Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.001177/0.001177, allocations: 117 kB / 17.06 MB, free: 5.816 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.001228/0.001228, allocations: 194.9 kB / 18.01 MB, free: 4.938 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.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.174/0.174, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3243, allocations: 58.07 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.00707/0.3314, allocations: 5.406 MB / 0.5089 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004044/0.3354, allocations: 2.257 MB / 0.5111 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007775/0.3362, allocations: 25.59 kB / 0.5111 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.3374, allocations: 270.1 kB / 0.5114 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008875/0.3383, allocations: 347 kB / 0.5117 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.3394, allocations: 0.5028 MB / 0.5122 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.3408, allocations: 1.049 MB / 0.5132 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009857/0.3418, allocations: 0.6178 MB / 0.5138 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006099/0.3424, allocations: 412.7 kB / 0.5142 GB, free: 356 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004946/0.3429, allocations: 399.4 kB / 0.5146 GB, free: 140 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.3431, allocations: 80.38 kB / 0.5147 GB, free: 140 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007022/0.3438, allocations: 349.1 kB / 0.515 GB, free: 32 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003108/0.3441, allocations: 225.7 kB / 0.5152 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004/0.3445, allocations: 387.9 kB / 0.5156 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.346, allocations: 1.081 MB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.346, allocations: 4 kB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.346, allocations: 1.125 kB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.883e-05/0.346, allocations: 0.9844 kB / 0.5167 GB, free: 15.16 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.002374/0.3484, allocations: 1.143 MB / 0.5178 GB, free: 14.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.3485, allocations: 13.33 kB / 0.5178 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001457/0.3486, allocations: 102 kB / 0.5179 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009343/0.3495, allocations: 168.8 kB / 0.518 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.3507, allocations: 0.6107 MB / 0.5186 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.717e-05/0.3508, allocations: 50.53 kB / 0.5187 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.351, allocations: 65.97 kB / 0.5188 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3523, allocations: 0.7551 MB / 0.5195 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.948e-05/0.3524, allocations: 5.625 kB / 0.5195 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.584e-05/0.3525, allocations: 25.66 kB / 0.5195 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.918e-05/0.3525, allocations: 29.16 kB / 0.5195 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.3538, allocations: 0.6303 MB / 0.5202 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004533/0.3584, allocations: 2.902 MB / 0.523 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.3598, allocations: 0.7033 MB / 0.5237 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004713/0.3603, allocations: 233.2 kB / 0.5239 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.716e-05/0.3603, allocations: 10.62 kB / 0.5239 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.3604, allocations: 38.5 kB / 0.524 GB, free: 10.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.3604, allocations: 0 / 0.524 GB, free: 10.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.00159/0.362, allocations: 0.7119 MB / 0.5246 GB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.3621, allocations: 113.2 kB / 0.5248 GB, free: 10.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000833/0.3629, allocations: 0.5837 MB / 0.5253 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.363, allocations: 35.98 kB / 0.5254 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.3632, allocations: 353.4 kB / 0.5257 GB, free: 9.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.3634, allocations: 188.1 kB / 0.5259 GB, free: 9.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.3636, allocations: 96.97 kB / 0.526 GB, free: 9.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3638, allocations: 381 kB / 0.5263 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005252/0.3643, allocations: 214.5 kB / 0.5265 GB, free: 9.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006738/0.365, allocations: 337.2 kB / 0.5269 GB, free: 8.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.3662, allocations: 0.5677 MB / 0.5274 GB, free: 8.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.3662, allocations: 1.312 kB / 0.5274 GB, free: 8.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001975/0.3682, allocations: 0.7808 MB / 0.5282 GB, free: 8.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3682, allocations: 7.312 kB / 0.5282 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3682, allocations: 4.438 kB / 0.5282 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004641/0.3687, allocations: 114.2 kB / 0.5283 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/0.3693, allocations: 131.1 kB / 0.5284 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.3724, allocations: 2.416 MB / 0.5308 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005592/0.373, allocations: 87.98 kB / 0.5309 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.876e-05/0.373, allocations: 25.72 kB / 0.5309 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006815/0.3737, allocations: 361.8 kB / 0.5312 GB, free: 5.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005037/0.3742, allocations: 334.7 kB / 0.5316 GB, free: 5.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008905/0.3751, allocations: 0.526 MB / 0.5321 GB, free: 5.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.479e-06/0.3752, allocations: 2.406 kB / 0.5321 GB, free: 5.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001496/0.3767, allocations: 0.7082 MB / 0.5328 GB, free: 5.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.3767, allocations: 10.41 kB / 0.5328 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3767, allocations: 4.375 kB / 0.5328 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.377, allocations: 99.25 kB / 0.5329 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/0.3776, allocations: 131 kB / 0.533 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/0.3803, allocations: 2.227 MB / 0.5352 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.3808, allocations: 65 kB / 0.5352 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-05/0.3809, allocations: 25.86 kB / 0.5353 GB, free: 3.09 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 (60): * Single equations (assignments): 59 * 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.0003293/0.3813, allocations: 214.2 kB / 0.5355 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.3815, allocations: 75.56 kB / 0.5355 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.3828, allocations: 0.5601 MB / 0.5361 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.3829, allocations: 9.938 kB / 0.5361 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3829, allocations: 0 / 0.5361 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3829, allocations: 5.141 kB / 0.5361 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.3855, allocations: 1.314 MB / 0.5374 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3855, allocations: 1.219 kB / 0.5374 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00059/0.3861, allocations: 114.4 kB / 0.5375 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.3861, allocations: 3.188 kB / 0.5375 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.3862, allocations: 11.12 kB / 0.5375 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.3862, allocations: 2.375 kB / 0.5375 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3862, allocations: 1.156 kB / 0.5375 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.388, allocations: 0.9079 MB / 0.5384 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003619/0.3884, allocations: 194.9 kB / 0.5386 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3886, allocations: 12.75 kB / 0.5386 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004601/0.389, allocations: 38.56 kB / 0.5386 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3892, allocations: 41.34 kB / 0.5387 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.3892, allocations: 17.69 kB / 0.5387 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008167/0.3901, allocations: 422.5 kB / 0.5391 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3901, allocations: 0 / 0.5391 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001324/0.3914, allocations: 263.1 kB / 0.5393 GB, free: 480 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 (50): * Single equations (assignments): 49 * 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.002215/0.3936, allocations: 1.468 MB / 0.5408 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002388/0.396, allocations: 1.095 MB / 0.5418 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.396, allocations: 0 / 0.5418 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005505/0.3966, allocations: 252.2 kB / 0.5421 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009132/0.3975, allocations: 148.5 kB / 0.5422 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.41, allocations: 6.206 MB / 0.5483 GB, free: 9.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006573/0.4107, allocations: 0.9418 MB / 0.5492 GB, free: 8.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000516/0.4112, allocations: 124.6 kB / 0.5493 GB, free: 8.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.4116, allocations: 255.3 kB / 0.5496 GB, free: 8.34 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4117, allocations: 0 / 0.5496 GB, free: 8.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.4576, allocations: 15.28 MB / 0.5645 GB, free: 9.246 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.96, allocations: 8 kB / 0.5645 GB, free: 9.238 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)