Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 106.5 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 193.4 kB / 18 MB, free: 5.172 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1755/0.1755, allocations: 38.03 MB / 329.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 67.89 kB / 457.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3194, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.005534/0.325, allocations: 5.443 MB / 0.5089 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002973/0.328, allocations: 2.259 MB / 0.5111 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003871/0.3284, allocations: 29.06 kB / 0.5112 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008694/0.3293, allocations: 279.8 kB / 0.5114 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006961/0.33, allocations: 343.7 kB / 0.5118 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009223/0.3309, allocations: 0.4958 MB / 0.5122 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009224/0.3318, allocations: 1.059 MB / 0.5133 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007727/0.3326, allocations: 0.6235 MB / 0.5139 GB, free: 492 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004879/0.3331, allocations: 399.8 kB / 0.5143 GB, free: 284 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.3336, allocations: 408 kB / 0.5147 GB, free: 64 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.3337, allocations: 81.25 kB / 0.5147 GB, free: 64 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006419/0.3344, allocations: 357.8 kB / 0.5151 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.3346, allocations: 222.1 kB / 0.5153 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004125/0.3351, allocations: 397.9 kB / 0.5157 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00153/0.3366, allocations: 1.091 MB / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3366, allocations: 0 / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3366, allocations: 1.438 kB / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.3366, allocations: 0 / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002308/0.3389, allocations: 1.164 MB / 0.5179 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.339, allocations: 13.38 kB / 0.5179 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/0.3392, allocations: 105.7 kB / 0.518 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008633/0.34, allocations: 164.3 kB / 0.5181 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.3412, allocations: 0.6133 MB / 0.5187 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.159e-05/0.3413, allocations: 46.53 kB / 0.5188 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.3414, allocations: 61.28 kB / 0.5188 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3429, allocations: 0.7727 MB / 0.5196 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.3429, allocations: 5.188 kB / 0.5196 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.448e-05/0.343, allocations: 25.8 kB / 0.5196 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-05/0.3431, allocations: 32.78 kB / 0.5197 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.3446, allocations: 0.6578 MB / 0.5203 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004967/0.3495, allocations: 2.911 MB / 0.5231 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.3512, allocations: 0.7321 MB / 0.5239 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005774/0.3518, allocations: 255.7 kB / 0.5241 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.483e-05/0.3518, allocations: 7.297 kB / 0.5241 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.3519, allocations: 41.75 kB / 0.5241 GB, free: 10.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.956e-06/0.3519, allocations: 0 / 0.5241 GB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.001943/0.3539, allocations: 0.7562 MB / 0.5249 GB, free: 10.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.227e-05/0.354, allocations: 113.7 kB / 0.525 GB, free: 10.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009525/0.3549, allocations: 0.5769 MB / 0.5256 GB, free: 9.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.355, allocations: 36.64 kB / 0.5256 GB, free: 9.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.3553, allocations: 361.7 kB / 0.5259 GB, free: 9.617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.3555, allocations: 186.7 kB / 0.5261 GB, free: 9.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.3557, allocations: 109.9 kB / 0.5262 GB, free: 9.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.356, allocations: 380.6 kB / 0.5266 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005664/0.3565, allocations: 237.2 kB / 0.5268 GB, free: 8.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006891/0.3572, allocations: 355.1 kB / 0.5272 GB, free: 8.742 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.3585, allocations: 0.5893 MB / 0.5277 GB, free: 8.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.3585, allocations: 1.031 kB / 0.5277 GB, free: 8.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001949/0.3604, allocations: 0.8229 MB / 0.5285 GB, free: 8.082 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3605, allocations: 6.75 kB / 0.5285 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3605, allocations: 3.25 kB / 0.5285 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004499/0.3609, allocations: 118.4 kB / 0.5287 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.3615, allocations: 139 kB / 0.5288 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003239/0.3648, allocations: 2.417 MB / 0.5311 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/0.3653, allocations: 87.52 kB / 0.5312 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.3654, allocations: 22.41 kB / 0.5313 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007392/0.3661, allocations: 383.8 kB / 0.5316 GB, free: 5.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005934/0.3667, allocations: 344.5 kB / 0.5319 GB, free: 5.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001059/0.3678, allocations: 0.5619 MB / 0.5325 GB, free: 5.266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.184e-06/0.3678, allocations: 1.25 kB / 0.5325 GB, free: 5.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001628/0.3694, allocations: 0.7348 MB / 0.5332 GB, free: 4.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3695, allocations: 15.89 kB / 0.5332 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3695, allocations: 3.781 kB / 0.5332 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.3698, allocations: 98.23 kB / 0.5333 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005564/0.3703, allocations: 139.9 kB / 0.5335 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.3727, allocations: 2.23 MB / 0.5356 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004884/0.3732, allocations: 75.03 kB / 0.5357 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.3733, allocations: 33.8 kB / 0.5357 GB, free: 2.785 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.3735, allocations: 212.8 kB / 0.5359 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.3736, allocations: 67.7 kB / 0.536 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.375, allocations: 0.6004 MB / 0.5366 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.375, allocations: 5.5 kB / 0.5366 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.375, allocations: 5.125 kB / 0.5366 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.375, allocations: 0 / 0.5366 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.3774, allocations: 1.355 MB / 0.5379 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3774, allocations: 0.9062 kB / 0.5379 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005754/0.378, allocations: 116 kB / 0.538 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.378, allocations: 2.188 kB / 0.538 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/0.3781, allocations: 11.41 kB / 0.5381 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-05/0.3781, allocations: 10.52 kB / 0.5381 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3781, allocations: 1.188 kB / 0.5381 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.3799, allocations: 0.962 MB / 0.539 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.3802, allocations: 196.1 kB / 0.5392 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.799e-05/0.3803, allocations: 12.69 kB / 0.5392 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.3807, allocations: 36.73 kB / 0.5392 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3808, allocations: 46.38 kB / 0.5393 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.502e-05/0.3808, allocations: 10.23 kB / 0.5393 GB, free: 416 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006315/0.3815, allocations: 425 kB / 0.5397 GB, free: 160 kB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3815, allocations: 5.094 kB / 0.5397 GB, free: 156 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009027/0.3824, allocations: 275.2 kB / 0.54 GB, free: 84 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002272/0.3847, allocations: 1.51 MB / 0.5414 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.3873, allocations: 1.14 MB / 0.5426 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3873, allocations: 3.938 kB / 0.5426 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005731/0.3879, allocations: 273.8 kB / 0.5428 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007806/0.3887, allocations: 144.5 kB / 0.543 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.3995, allocations: 6.283 MB / 0.5491 GB, free: 8.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.4001, allocations: 0.9418 MB / 0.55 GB, free: 7.934 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004466/0.4006, allocations: 128.6 kB / 0.5501 GB, free: 7.809 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003897/0.401, allocations: 255.3 kB / 0.5504 GB, free: 7.559 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.401, allocations: 0 / 0.5504 GB, free: 7.559 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04741/0.4484, allocations: 15.53 MB / 0.5655 GB, free: 8.219 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.21, allocations: 4 kB / 0.5655 GB, free: 8.215 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)