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.001661/0.001661, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001864/0.001864, allocations: 189.4 kB / 18 MB, free: 5.102 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.475/1.475, 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.1842/0.1842, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 59.89 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3337, allocations: 58.06 MB / 0.5036 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006894/0.3406, allocations: 5.436 MB / 0.5089 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00395/0.3446, allocations: 2.262 MB / 0.5111 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009292/0.3455, allocations: 26.16 kB / 0.5112 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.3467, allocations: 275.9 kB / 0.5114 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00113/0.3478, allocations: 348.6 kB / 0.5118 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.3492, allocations: 0.4961 MB / 0.5122 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.3507, allocations: 1.057 MB / 0.5133 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.3517, allocations: 0.6255 MB / 0.5139 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006464/0.3523, allocations: 395.2 kB / 0.5143 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005396/0.3529, allocations: 411.5 kB / 0.5146 GB, free: 412 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.353, allocations: 82.5 kB / 0.5147 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008066/0.3538, allocations: 357.6 kB / 0.5151 GB, free: 296 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002468/0.3541, allocations: 222.2 kB / 0.5153 GB, free: 160 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004593/0.3546, allocations: 396.8 kB / 0.5157 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002043/0.3566, allocations: 1.088 MB / 0.5167 GB, free: 15.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3566, allocations: 0 / 0.5167 GB, free: 15.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3567, allocations: 0 / 0.5167 GB, free: 15.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.3567, allocations: 0 / 0.5167 GB, free: 15.42 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.003008/0.3597, allocations: 1.175 MB / 0.5179 GB, free: 14.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.3598, allocations: 13.33 kB / 0.5179 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001767/0.3599, allocations: 105 kB / 0.518 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.361, allocations: 165.3 kB / 0.5181 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.3624, allocations: 0.6147 MB / 0.5187 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-05/0.3625, allocations: 50.14 kB / 0.5188 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.3626, allocations: 62.09 kB / 0.5188 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.3643, allocations: 0.7702 MB / 0.5196 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.3643, allocations: 1.281 kB / 0.5196 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.827e-05/0.3644, allocations: 29.83 kB / 0.5196 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.858e-05/0.3645, allocations: 29.84 kB / 0.5197 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.3661, allocations: 0.6603 MB / 0.5203 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005356/0.3715, allocations: 2.911 MB / 0.5231 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3734, allocations: 0.7364 MB / 0.5239 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006872/0.3741, allocations: 251.6 kB / 0.5241 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.027e-05/0.3742, allocations: 6.688 kB / 0.5241 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.3e-05/0.3742, allocations: 42.92 kB / 0.5242 GB, free: 10.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 3.406e-06/0.3742, allocations: 0 / 0.5242 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.001995/0.3762, allocations: 0.7517 MB / 0.5249 GB, free: 10.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.501e-05/0.3763, allocations: 109.6 kB / 0.525 GB, free: 10.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.3775, allocations: 0.5852 MB / 0.5256 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.206e-05/0.3775, allocations: 36.08 kB / 0.5256 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/0.3779, allocations: 359.5 kB / 0.5259 GB, free: 9.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/0.3782, allocations: 191.5 kB / 0.5261 GB, free: 9.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/0.3784, allocations: 107.3 kB / 0.5262 GB, free: 9.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002878/0.3787, allocations: 380.2 kB / 0.5266 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/0.3793, allocations: 232.4 kB / 0.5268 GB, free: 9.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006883/0.38, allocations: 359.6 kB / 0.5272 GB, free: 9.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.3813, allocations: 0.5849 MB / 0.5277 GB, free: 8.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3813, allocations: 1.812 kB / 0.5277 GB, free: 8.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002171/0.3835, allocations: 0.826 MB / 0.5285 GB, free: 8.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3835, allocations: 7.359 kB / 0.5285 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3835, allocations: 3.875 kB / 0.5285 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004947/0.384, allocations: 110.1 kB / 0.5286 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006576/0.3847, allocations: 138.2 kB / 0.5288 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/0.3886, allocations: 2.435 MB / 0.5312 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008428/0.3895, allocations: 86.14 kB / 0.5312 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-05/0.3895, allocations: 21.78 kB / 0.5313 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008411/0.3904, allocations: 389.4 kB / 0.5316 GB, free: 6.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006262/0.391, allocations: 344.4 kB / 0.532 GB, free: 5.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001196/0.3922, allocations: 0.5534 MB / 0.5325 GB, free: 5.598 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.3923, allocations: 2.719 kB / 0.5325 GB, free: 5.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001887/0.3942, allocations: 0.7438 MB / 0.5332 GB, free: 5.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3942, allocations: 10.41 kB / 0.5332 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3942, allocations: 3.219 kB / 0.5332 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003162/0.3945, allocations: 95.42 kB / 0.5333 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006137/0.3951, allocations: 144.3 kB / 0.5335 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/0.3979, allocations: 2.226 MB / 0.5356 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/0.3986, allocations: 72.84 kB / 0.5357 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.3987, allocations: 24.34 kB / 0.5357 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 (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.0002926/0.399, allocations: 217.2 kB / 0.5359 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.3991, allocations: 71.98 kB / 0.536 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.4006, allocations: 0.5971 MB / 0.5366 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4006, allocations: 5.594 kB / 0.5366 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-06/0.4007, allocations: 0 / 0.5366 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.4007, allocations: 5.016 kB / 0.5366 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/0.4032, allocations: 1.351 MB / 0.5379 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4032, allocations: 1.094 kB / 0.5379 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006111/0.4038, allocations: 114.7 kB / 0.538 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.4038, allocations: 6.875 kB / 0.538 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.822e-05/0.4039, allocations: 15.45 kB / 0.5381 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.4039, allocations: 10.28 kB / 0.5381 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4039, allocations: 1.375 kB / 0.5381 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.4059, allocations: 0.958 MB / 0.539 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002718/0.4062, allocations: 192.1 kB / 0.5392 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.408e-05/0.4063, allocations: 16.42 kB / 0.5392 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.4067, allocations: 45.45 kB / 0.5392 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.4068, allocations: 38.44 kB / 0.5393 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.4069, allocations: 13.91 kB / 0.5393 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006917/0.4076, allocations: 421.7 kB / 0.5397 GB, free: 452 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.043e-06/0.4076, allocations: 4.094 kB / 0.5397 GB, free: 448 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001084/0.4087, allocations: 275 kB / 0.54 GB, free: 376 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.002382/0.4111, allocations: 1.511 MB / 0.5414 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.4136, allocations: 1.143 MB / 0.5426 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.4136, allocations: 1.375 kB / 0.5426 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006174/0.4143, allocations: 281.4 kB / 0.5428 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009092/0.4152, allocations: 138.1 kB / 0.543 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.4276, allocations: 6.28 MB / 0.5491 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007702/0.4284, allocations: 0.9496 MB / 0.55 GB, free: 8.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000606/0.4291, allocations: 120.6 kB / 0.5501 GB, free: 7.926 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/0.4295, allocations: 259.3 kB / 0.5504 GB, free: 7.672 MB / 414.1 MB Notification: Performance of SimCode: time 2.014e-06/0.4295, allocations: 3.938 kB / 0.5504 GB, free: 7.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05054/0.4801, allocations: 15.53 MB / 0.5656 GB, free: 8.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/13.83, allocations: 0 / 0.5656 GB, free: 8.32 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)