Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I|tur.vWin|tur.vIn",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I|tur.vWin|tur.vIn",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009957/0.0009957, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 182.4 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.68/2.68, allocations: 443.2 MB / 0.7181 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003855/0.0003855, allocations: 12.38 kB / 0.8801 GB, free: 42.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2983, allocations: 155.1 MB / 1.032 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.01049/0.3088, allocations: 6.996 MB / 1.038 GB, free: 13.69 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.1697/0.4785, allocations: 148 MB / 1.183 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.4801, allocations: 23.88 kB / 1.183 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.4814, allocations: 270.3 kB / 1.183 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003003/0.4844, allocations: 0.7004 MB / 1.184 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.003183/0.4876, allocations: 0.9247 MB / 1.185 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.003011/0.4906, allocations: 1.924 MB / 1.187 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002297/0.4929, allocations: 1.121 MB / 1.188 GB, free: 4.148 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.4941, allocations: 493.7 kB / 1.188 GB, free: 3.664 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.4954, allocations: 0.6143 MB / 1.189 GB, free: 3.047 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0003449/0.4958, allocations: 40 kB / 1.189 GB, free: 3.008 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.4974, allocations: 0.5773 MB / 1.189 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004832/0.4979, allocations: 310.7 kB / 1.19 GB, free: 2.125 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0009869/0.4989, allocations: 0.6112 MB / 1.19 GB, free: 1.504 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002238/0.5011, allocations: 1.555 MB / 1.192 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.5012, allocations: 4 kB / 1.192 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.566e-06/0.5012, allocations: 0 / 1.192 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.968e-05/0.5013, allocations: 0 / 1.192 GB, free: 15.94 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 273 * Number of variables: 273 Notification: Performance of Generate backend data structure: time 0.003734/0.505, allocations: 1.524 MB / 1.193 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.5051, allocations: 12.03 kB / 1.193 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.5067, allocations: 278.8 kB / 1.194 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.5086, allocations: 0.9491 MB / 1.195 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.5087, allocations: 82.09 kB / 1.195 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002239/0.509, allocations: 107.9 kB / 1.195 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/0.5116, allocations: 1.239 MB / 1.196 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.371e-05/0.5117, allocations: 3.938 kB / 1.196 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001653/0.5119, allocations: 48 kB / 1.196 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.972e-05/0.512, allocations: 58 kB / 1.196 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/0.5152, allocations: 1.35 MB / 1.197 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008826/0.5241, allocations: 4.7 MB / 1.202 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001923/0.526, allocations: 0.912 MB / 1.203 GB, free: 4.227 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007557/0.5268, allocations: 371.7 kB / 1.203 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 8.848e-05/0.5269, allocations: 32.95 kB / 1.203 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.528, allocations: 0.5382 MB / 1.204 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=89): time 3.316e-06/0.528, allocations: 0 / 1.204 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of matching and sorting (n=89): time 0.00279/0.5308, allocations: 1.227 MB / 1.205 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.531, allocations: 295.7 kB / 1.205 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.5327, allocations: 0.9533 MB / 1.206 GB, free: 0.6758 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.5328, allocations: 49.77 kB / 1.206 GB, free: 0.6211 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005531/0.5334, allocations: 0.5506 MB / 1.207 GB, free: 64 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.5337, allocations: 291.8 kB / 1.207 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.5339, allocations: 77.67 kB / 1.207 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.534, allocations: 345.9 kB / 1.207 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006625/0.5347, allocations: 301.8 kB / 1.208 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008158/0.5355, allocations: 484.5 kB / 1.208 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.5369, allocations: 0.7401 MB / 1.209 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.375e-06/0.537, allocations: 8 kB / 1.209 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002087/0.5391, allocations: 0.9656 MB / 1.21 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.5392, allocations: 162.6 kB / 1.21 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.5392, allocations: 4 kB / 1.21 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002279/0.5395, allocations: 36.83 kB / 1.21 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008073/0.5403, allocations: 195.7 kB / 1.21 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.5416, allocations: 1.288 MB / 1.211 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.5428, allocations: 131.1 kB / 1.212 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.5429, allocations: 47.97 kB / 1.212 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.5429, allocations: 5.562 kB / 1.212 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001646/0.5446, allocations: 0.8236 MB / 1.212 GB, free: 9.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.5446, allocations: 3.984 kB / 1.212 GB, free: 9.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.844e-05/0.5447, allocations: 11.98 kB / 1.212 GB, free: 9.898 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007892/0.5455, allocations: 199.7 kB / 1.213 GB, free: 9.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.5455, allocations: 8.344 kB / 1.213 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009785/0.5465, allocations: 127.2 kB / 1.213 GB, free: 9.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.449e-05/0.5466, allocations: 43.92 kB / 1.213 GB, free: 9.527 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0007374/0.5473, allocations: 426.5 kB / 1.213 GB, free: 9.102 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.5476, allocations: 110.7 kB / 1.213 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.55, allocations: 1.068 MB / 1.214 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.55, allocations: 12 kB / 1.214 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.55, allocations: 0 / 1.214 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.55, allocations: 7.984 kB / 1.214 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003969/0.554, allocations: 2.385 MB / 1.217 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.554, allocations: 0 / 1.217 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006741/0.5547, allocations: 163.7 kB / 1.217 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.5548, allocations: 28.84 kB / 1.217 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.5549, allocations: 27.97 kB / 1.217 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009646/0.5559, allocations: 1.28 MB / 1.218 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.5559, allocations: 8.188 kB / 1.218 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.5579, allocations: 1.058 MB / 1.219 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006456/0.5586, allocations: 335.2 kB / 1.22 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000246/0.5588, allocations: 24 kB / 1.22 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008715/0.5597, allocations: 83.92 kB / 1.22 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.5599, allocations: 72.84 kB / 1.22 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/0.56, allocations: 43.97 kB / 1.22 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001142/0.5611, allocations: 0.6691 MB / 1.22 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.51e-07/0.5611, allocations: 0 / 1.22 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001829/0.563, allocations: 0.6036 MB / 1.221 GB, free: 0.832 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.conTimMin.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001722/0.5647, allocations: 0.6582 MB / 1.222 GB, free: 388 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003002/0.5677, allocations: 1.352 MB / 1.223 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.5677, allocations: 0 / 1.223 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009468/0.5687, allocations: 0.5327 MB / 1.224 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.5709, allocations: 328.6 kB / 1.224 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004971/0.5759, allocations: 2.825 MB / 1.227 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009412/0.5768, allocations: 1.167 MB / 1.228 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000495/0.5773, allocations: 135.4 kB / 1.228 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of SimCode: time 1.062e-06/0.5774, allocations: 0 / 1.228 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of Templates: time 0.03816/0.6155, allocations: 22.93 MB / 1.25 GB, free: 3.09 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches