Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.001203/0.001203, allocations: 112.8 kB / 17.06 MB, free: 5.773 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.001212/0.001212, allocations: 200 kB / 18.01 MB, free: 4.914 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.462/1.462, 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.1839/0.1839, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 55.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3386, allocations: 58.06 MB / 0.5036 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006617/0.3452, allocations: 5.914 MB / 0.5094 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004466/0.3497, allocations: 2.731 MB / 0.5121 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.3508, allocations: 26.59 kB / 0.5121 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.3523, allocations: 381 kB / 0.5124 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001974/0.3543, allocations: 477.7 kB / 0.5129 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.3562, allocations: 0.5457 MB / 0.5134 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001891/0.3581, allocations: 1.208 MB / 0.5146 GB, free: 16 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.3597, allocations: 0.7134 MB / 0.5153 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.3609, allocations: 461.5 kB / 0.5157 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009963/0.3619, allocations: 474.7 kB / 0.5162 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001662/0.3621, allocations: 86.97 kB / 0.5163 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.3632, allocations: 0.5246 MB / 0.5168 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003366/0.3635, allocations: 264.5 kB / 0.517 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005487/0.3641, allocations: 432.2 kB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002269/0.3664, allocations: 1.25 MB / 0.5187 GB, free: 14.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.3664, allocations: 0.5312 kB / 0.5187 GB, free: 14.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3664, allocations: 0 / 0.5187 GB, free: 14.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.566e-05/0.3665, allocations: 0.5 kB / 0.5187 GB, free: 14.03 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003134/0.3696, allocations: 1.234 MB / 0.5199 GB, free: 13.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.3697, allocations: 17.08 kB / 0.5199 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001671/0.3698, allocations: 115.4 kB / 0.52 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.3713, allocations: 207.8 kB / 0.5202 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.3729, allocations: 0.6392 MB / 0.5208 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.811e-05/0.373, allocations: 48.94 kB / 0.5209 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.3732, allocations: 70.12 kB / 0.5209 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.3751, allocations: 0.883 MB / 0.5218 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.3751, allocations: 5 kB / 0.5218 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.074e-05/0.3752, allocations: 27.14 kB / 0.5218 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.876e-05/0.3753, allocations: 35.22 kB / 0.5219 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.377, allocations: 0.7847 MB / 0.5226 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005693/0.3827, allocations: 3.239 MB / 0.5258 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.3847, allocations: 0.9676 MB / 0.5267 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006347/0.3854, allocations: 311.6 kB / 0.527 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.955e-05/0.3855, allocations: 8.625 kB / 0.5271 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.3855, allocations: 42.22 kB / 0.5271 GB, free: 9.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.514e-06/0.3855, allocations: 1.188 kB / 0.5271 GB, free: 9.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=63): time 0.005702/0.3912, allocations: 2.556 MB / 0.5296 GB, free: 7.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.518e-05/0.3913, allocations: 110.8 kB / 0.5297 GB, free: 7.504 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.3924, allocations: 0.5789 MB / 0.5303 GB, free: 7.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.858e-05/0.3925, allocations: 36.48 kB / 0.5303 GB, free: 7.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000368/0.3928, allocations: 372.7 kB / 0.5307 GB, free: 6.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/0.3931, allocations: 239.6 kB / 0.5309 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002266/0.3934, allocations: 119.2 kB / 0.531 GB, free: 6.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.3936, allocations: 392 kB / 0.5314 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005947/0.3942, allocations: 269.8 kB / 0.5316 GB, free: 6.188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007655/0.395, allocations: 419.6 kB / 0.532 GB, free: 5.879 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.3963, allocations: 0.6903 MB / 0.5327 GB, free: 5.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3963, allocations: 1.031 kB / 0.5327 GB, free: 5.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001948/0.3983, allocations: 0.838 MB / 0.5335 GB, free: 5.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.3983, allocations: 6.531 kB / 0.5335 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3984, allocations: 3.594 kB / 0.5335 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/0.3987, allocations: 57.97 kB / 0.5336 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007705/0.3994, allocations: 183.9 kB / 0.5338 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.4015, allocations: 1.8 MB / 0.5355 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007406/0.4023, allocations: 57.86 kB / 0.5356 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.4024, allocations: 23.72 kB / 0.5356 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001161/0.4035, allocations: 448.5 kB / 0.536 GB, free: 2.887 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008854/0.4044, allocations: 395.9 kB / 0.5364 GB, free: 2.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001528/0.406, allocations: 0.6735 MB / 0.5371 GB, free: 2.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.396e-06/0.406, allocations: 2.156 kB / 0.5371 GB, free: 2.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization_lambda0): time 0.002101/0.4081, allocations: 0.8113 MB / 0.5379 GB, free: 1.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.4082, allocations: 7.25 kB / 0.5379 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.4082, allocations: 7.562 kB / 0.5379 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002697/0.4084, allocations: 70.41 kB / 0.5379 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007229/0.4092, allocations: 169.6 kB / 0.5381 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.4113, allocations: 1.801 MB / 0.5399 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007456/0.412, allocations: 44.58 kB / 0.5399 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.317e-05/0.4121, allocations: 23.81 kB / 0.5399 GB, free: 15.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 79 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003203/0.4124, allocations: 229.9 kB / 0.5401 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002286/0.4127, allocations: 81.14 kB / 0.5402 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.4146, allocations: 0.7789 MB / 0.541 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.4147, allocations: 5.594 kB / 0.541 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4147, allocations: 2.031 kB / 0.541 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4147, allocations: 3.984 kB / 0.541 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00498/0.4197, allocations: 2.14 MB / 0.5431 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/0.4197, allocations: 6.125 kB / 0.5431 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006184/0.4203, allocations: 131.6 kB / 0.5432 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002274/0.4206, allocations: 56.94 kB / 0.5433 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.4207, allocations: 22.62 kB / 0.5433 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.4224, allocations: 1.764 MB / 0.545 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.778e-06/0.4225, allocations: 10.69 kB / 0.545 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.4249, allocations: 1.314 MB / 0.5463 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004246/0.4254, allocations: 205.8 kB / 0.5465 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.4255, allocations: 23.64 kB / 0.5465 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005674/0.4261, allocations: 49.62 kB / 0.5466 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.4263, allocations: 84.47 kB / 0.5466 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.595e-05/0.4264, allocations: 23.16 kB / 0.5467 GB, free: 10.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008078/0.4272, allocations: 420.9 kB / 0.5471 GB, free: 10.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4272, allocations: 1.094 kB / 0.5471 GB, free: 10.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001337/0.4285, allocations: 253.3 kB / 0.5473 GB, free: 10.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002979/0.4315, allocations: 1.887 MB / 0.5492 GB, free: 8.512 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.4345, allocations: 1.278 MB / 0.5504 GB, free: 7.207 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.4345, allocations: 0 / 0.5504 GB, free: 7.207 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.4355, allocations: 0.5078 MB / 0.5509 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.4368, allocations: 174.7 kB / 0.5511 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.4498, allocations: 6.705 MB / 0.5576 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000908/0.4508, allocations: 0.9937 MB / 0.5586 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006117/0.4514, allocations: 148.8 kB / 0.5587 GB, free: 14.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004804/0.4519, allocations: 279.3 kB / 0.559 GB, free: 14.02 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4519, allocations: 0 / 0.559 GB, free: 14.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05221/0.5041, allocations: 15.92 MB / 0.5745 GB, free: 14.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.24, allocations: 7.938 kB / 0.5745 GB, free: 14.27 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_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_PowerPlantTest3.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)