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.001732/0.001731, allocations: 109.3 kB / 17.06 MB, free: 5.992 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.001868/0.001868, allocations: 200 kB / 18.01 MB, free: 5.066 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.541/1.541, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1793/0.1793, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001913, allocations: 68.03 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3366, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.0062/0.3428, allocations: 5.41 MB / 0.5089 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0037/0.3465, allocations: 2.251 MB / 0.5111 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006323/0.3472, allocations: 24.97 kB / 0.5111 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.3483, allocations: 271 kB / 0.5114 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.3494, allocations: 343.7 kB / 0.5117 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.3506, allocations: 0.4986 MB / 0.5122 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.3518, allocations: 1.046 MB / 0.5132 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008508/0.3526, allocations: 0.6233 MB / 0.5138 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005602/0.3532, allocations: 400 kB / 0.5142 GB, free: 372 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005238/0.3537, allocations: 395.5 kB / 0.5146 GB, free: 160 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.3539, allocations: 80.84 kB / 0.5147 GB, free: 160 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006245/0.3545, allocations: 356.5 kB / 0.515 GB, free: 44 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002548/0.3547, allocations: 217.4 kB / 0.5152 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000417/0.3552, allocations: 395.1 kB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.3568, allocations: 1.077 MB / 0.5166 GB, free: 15.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3568, allocations: 4 kB / 0.5166 GB, free: 15.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3568, allocations: 5.438 kB / 0.5166 GB, free: 15.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.3568, allocations: 0 / 0.5166 GB, free: 15.17 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.002431/0.3593, allocations: 1.139 MB / 0.5178 GB, free: 14.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3593, allocations: 13.11 kB / 0.5178 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/0.3595, allocations: 106.4 kB / 0.5179 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009591/0.3605, allocations: 171.9 kB / 0.518 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.3617, allocations: 0.6075 MB / 0.5186 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.142e-05/0.3618, allocations: 50.58 kB / 0.5187 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.3619, allocations: 61.47 kB / 0.5187 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.3634, allocations: 0.7601 MB / 0.5195 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.3634, allocations: 1.125 kB / 0.5195 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.506e-05/0.3635, allocations: 30.06 kB / 0.5195 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.235e-05/0.3636, allocations: 32.27 kB / 0.5195 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.3649, allocations: 0.6309 MB / 0.5202 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004668/0.3696, allocations: 2.894 MB / 0.523 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.3711, allocations: 0.7082 MB / 0.5237 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005041/0.3716, allocations: 236.6 kB / 0.5239 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.3717, allocations: 6.203 kB / 0.5239 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.3717, allocations: 38.91 kB / 0.5239 GB, free: 10.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.3717, allocations: 0 / 0.5239 GB, free: 10.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.001708/0.3734, allocations: 0.7098 MB / 0.5246 GB, free: 10.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.3735, allocations: 113.5 kB / 0.5247 GB, free: 10.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009185/0.3745, allocations: 0.5803 MB / 0.5253 GB, free: 10.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.3745, allocations: 36.55 kB / 0.5253 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.3749, allocations: 355.2 kB / 0.5257 GB, free: 9.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.3751, allocations: 185.3 kB / 0.5259 GB, free: 9.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.3752, allocations: 103.3 kB / 0.526 GB, free: 9.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.3755, allocations: 380.7 kB / 0.5263 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.376, allocations: 210.4 kB / 0.5265 GB, free: 9.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006006/0.3766, allocations: 344.3 kB / 0.5269 GB, free: 8.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.3777, allocations: 0.5594 MB / 0.5274 GB, free: 8.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3777, allocations: 1.281 kB / 0.5274 GB, free: 8.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001917/0.3796, allocations: 0.7857 MB / 0.5282 GB, free: 8.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3796, allocations: 6.844 kB / 0.5282 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3796, allocations: 3.844 kB / 0.5282 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000431/0.3801, allocations: 113.5 kB / 0.5283 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005666/0.3807, allocations: 133 kB / 0.5284 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003333/0.384, allocations: 2.423 MB / 0.5308 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.3846, allocations: 84.94 kB / 0.5309 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/0.3847, allocations: 22.34 kB / 0.5309 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007365/0.3854, allocations: 365.9 kB / 0.5312 GB, free: 5.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005288/0.386, allocations: 325.9 kB / 0.5315 GB, free: 5.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009646/0.387, allocations: 0.5303 MB / 0.5321 GB, free: 5.426 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.905e-06/0.387, allocations: 1.219 kB / 0.5321 GB, free: 5.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001473/0.3884, allocations: 0.708 MB / 0.5327 GB, free: 5.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.3885, allocations: 10.41 kB / 0.5328 GB, free: 5.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3885, allocations: 5.016 kB / 0.5328 GB, free: 5.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002967/0.3888, allocations: 99.28 kB / 0.5329 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005376/0.3893, allocations: 126.7 kB / 0.533 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002472/0.3918, allocations: 2.231 MB / 0.5352 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005542/0.3924, allocations: 65.41 kB / 0.5352 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.3924, allocations: 28.36 kB / 0.5352 GB, free: 3.074 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.0002444/0.3927, allocations: 213.2 kB / 0.5355 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3928, allocations: 79.62 kB / 0.5355 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.3941, allocations: 0.5639 MB / 0.5361 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3941, allocations: 5.281 kB / 0.5361 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.3941, allocations: 0 / 0.5361 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3942, allocations: 5.109 kB / 0.5361 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.3964, allocations: 1.311 MB / 0.5374 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3964, allocations: 0 / 0.5374 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000566/0.397, allocations: 115.1 kB / 0.5375 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.397, allocations: 2.156 kB / 0.5375 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.554e-05/0.397, allocations: 12.53 kB / 0.5375 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.3971, allocations: 2.219 kB / 0.5375 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3971, allocations: 5.031 kB / 0.5375 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.3988, allocations: 0.9065 MB / 0.5384 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002591/0.399, allocations: 196.5 kB / 0.5386 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.517e-05/0.3991, allocations: 15.2 kB / 0.5386 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.3995, allocations: 34.88 kB / 0.5386 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.3997, allocations: 33.67 kB / 0.5387 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.86e-05/0.3997, allocations: 17.3 kB / 0.5387 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006802/0.4004, allocations: 422.5 kB / 0.5391 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4004, allocations: 1.062 kB / 0.5391 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009709/0.4014, allocations: 267.5 kB / 0.5393 GB, free: 456 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.002051/0.4034, allocations: 1.463 MB / 0.5408 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.4057, allocations: 1.09 MB / 0.5418 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4057, allocations: 0 / 0.5418 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005401/0.4063, allocations: 256.1 kB / 0.5421 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00087/0.4071, allocations: 149.8 kB / 0.5422 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.4186, allocations: 6.205 MB / 0.5483 GB, free: 9.738 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006673/0.4193, allocations: 0.9418 MB / 0.5492 GB, free: 8.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004837/0.4198, allocations: 124.6 kB / 0.5493 GB, free: 8.641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/0.4202, allocations: 255.3 kB / 0.5495 GB, free: 8.391 MB / 414.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4202, allocations: 0 / 0.5495 GB, free: 8.391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04778/0.468, allocations: 15.28 MB / 0.5645 GB, free: 9.289 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.55, allocations: 3.938 kB / 0.5645 GB, free: 9.285 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)