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.001671/0.001671, allocations: 112.6 kB / 17.07 MB, free: 5.984 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.002083/0.002083, allocations: 195 kB / 18 MB, free: 5.074 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.441/1.441, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2091/0.2091, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 71.88 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4098, allocations: 58.05 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007235/0.4171, allocations: 5.442 MB / 0.5089 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004473/0.4216, allocations: 2.257 MB / 0.5111 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.4226, allocations: 33.84 kB / 0.5112 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.4239, allocations: 271.8 kB / 0.5114 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.4252, allocations: 350.8 kB / 0.5118 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.4265, allocations: 0.4993 MB / 0.5122 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.4283, allocations: 1.057 MB / 0.5133 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.4295, allocations: 0.6293 MB / 0.5139 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007664/0.4303, allocations: 411.6 kB / 0.5143 GB, free: 324 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005619/0.4308, allocations: 407.4 kB / 0.5147 GB, free: 104 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.431, allocations: 81.34 kB / 0.5147 GB, free: 104 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008333/0.4318, allocations: 361.3 kB / 0.5151 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003063/0.4321, allocations: 220.3 kB / 0.5153 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004889/0.4326, allocations: 400.4 kB / 0.5157 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001854/0.4345, allocations: 1.09 MB / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.4345, allocations: 1.406 kB / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4345, allocations: 0 / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.4346, allocations: 0 / 0.5167 GB, free: 15.11 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.002961/0.4375, allocations: 1.168 MB / 0.5179 GB, free: 14.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.4376, allocations: 14.25 kB / 0.5179 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.4378, allocations: 108.7 kB / 0.518 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.4389, allocations: 161.8 kB / 0.5182 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.4403, allocations: 0.6119 MB / 0.5188 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.343e-05/0.4404, allocations: 47.09 kB / 0.5188 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.4405, allocations: 66.02 kB / 0.5189 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4422, allocations: 0.7726 MB / 0.5196 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.4422, allocations: 1.062 kB / 0.5196 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.937e-05/0.4423, allocations: 21.5 kB / 0.5196 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-05/0.4424, allocations: 33.08 kB / 0.5197 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.4438, allocations: 0.6582 MB / 0.5203 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005116/0.449, allocations: 2.91 MB / 0.5232 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.4508, allocations: 0.7411 MB / 0.5239 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000569/0.4513, allocations: 254 kB / 0.5241 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.4514, allocations: 6.953 kB / 0.5241 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.4515, allocations: 42.25 kB / 0.5242 GB, free: 10.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.365e-06/0.4515, allocations: 0 / 0.5242 GB, free: 10.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.002079/0.4536, allocations: 0.7512 MB / 0.5249 GB, free: 10.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.182e-05/0.4537, allocations: 117.3 kB / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.4547, allocations: 0.5792 MB / 0.5256 GB, free: 9.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.458e-05/0.4548, allocations: 35.14 kB / 0.5256 GB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.4551, allocations: 364.3 kB / 0.526 GB, free: 9.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.4553, allocations: 187.2 kB / 0.5261 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.4556, allocations: 107.7 kB / 0.5262 GB, free: 9.438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002202/0.4558, allocations: 384.1 kB / 0.5266 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.4564, allocations: 228 kB / 0.5268 GB, free: 9.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007574/0.4571, allocations: 356.5 kB / 0.5272 GB, free: 8.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.4584, allocations: 0.5883 MB / 0.5277 GB, free: 8.445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/0.4585, allocations: 1.125 kB / 0.5277 GB, free: 8.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002217/0.4607, allocations: 0.8225 MB / 0.5285 GB, free: 8.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.4607, allocations: 7 kB / 0.5286 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.4607, allocations: 4.578 kB / 0.5286 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004593/0.4612, allocations: 115.5 kB / 0.5287 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006207/0.4618, allocations: 137 kB / 0.5288 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003429/0.4653, allocations: 2.421 MB / 0.5312 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007686/0.4661, allocations: 89.38 kB / 0.5312 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.649e-05/0.4661, allocations: 25.23 kB / 0.5313 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009265/0.4671, allocations: 384.1 kB / 0.5316 GB, free: 5.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006266/0.4677, allocations: 345.5 kB / 0.532 GB, free: 5.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001245/0.469, allocations: 0.5616 MB / 0.5325 GB, free: 5.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.967e-06/0.469, allocations: 1.469 kB / 0.5325 GB, free: 5.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001838/0.4708, allocations: 0.7387 MB / 0.5332 GB, free: 4.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4709, allocations: 10.8 kB / 0.5332 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4709, allocations: 4.125 kB / 0.5333 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/0.4712, allocations: 98.44 kB / 0.5333 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006063/0.4718, allocations: 141.2 kB / 0.5335 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002654/0.4745, allocations: 2.233 MB / 0.5357 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006964/0.4752, allocations: 75.84 kB / 0.5357 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.048e-05/0.4753, allocations: 21.66 kB / 0.5358 GB, free: 2.836 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.000303/0.4756, allocations: 212.8 kB / 0.536 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.4758, allocations: 71.77 kB / 0.536 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.4774, allocations: 0.5963 MB / 0.5366 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.946e-06/0.4774, allocations: 10.59 kB / 0.5366 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4775, allocations: 0 / 0.5366 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.4775, allocations: 5.203 kB / 0.5366 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.4803, allocations: 1.355 MB / 0.5379 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4804, allocations: 1.25 kB / 0.5379 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006563/0.481, allocations: 115.3 kB / 0.5381 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.481, allocations: 2.562 kB / 0.5381 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.447e-05/0.4811, allocations: 8.469 kB / 0.5381 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.4811, allocations: 5.406 kB / 0.5381 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4811, allocations: 1.406 kB / 0.5381 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.4832, allocations: 0.9659 MB / 0.539 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.4836, allocations: 191.7 kB / 0.5392 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.4838, allocations: 20.11 kB / 0.5392 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005026/0.4843, allocations: 41.61 kB / 0.5393 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4844, allocations: 37.89 kB / 0.5393 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/0.4845, allocations: 14.59 kB / 0.5393 GB, free: 464 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008908/0.4854, allocations: 416.8 kB / 0.5397 GB, free: 216 kB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4854, allocations: 3.938 kB / 0.5397 GB, free: 212 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001436/0.4869, allocations: 275.7 kB / 0.54 GB, free: 140 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.002571/0.4894, allocations: 1.515 MB / 0.5415 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002818/0.4923, allocations: 1.142 MB / 0.5426 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.4923, allocations: 5.312 kB / 0.5426 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006799/0.493, allocations: 277.5 kB / 0.5428 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.4941, allocations: 141.4 kB / 0.543 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.5062, allocations: 6.285 MB / 0.5491 GB, free: 8.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.5068, allocations: 0.9418 MB / 0.55 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005605/0.5074, allocations: 124.6 kB / 0.5501 GB, free: 7.789 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.5078, allocations: 263.3 kB / 0.5504 GB, free: 7.531 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5079, allocations: 0 / 0.5504 GB, free: 7.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0481/0.556, allocations: 15.53 MB / 0.5656 GB, free: 8.191 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/13.01, allocations: 8 kB / 0.5656 GB, free: 8.184 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)