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.001185/0.001185, allocations: 114.3 kB / 17.07 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.001786/0.001786, allocations: 191 kB / 18 MB, free: 5.098 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.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1753/0.1753, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 67.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3437, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006092/0.3498, allocations: 5.905 MB / 0.5094 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003535/0.3534, allocations: 2.735 MB / 0.512 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000467/0.3539, allocations: 26.94 kB / 0.5121 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.355, allocations: 381.1 kB / 0.5124 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009635/0.3559, allocations: 485.5 kB / 0.5129 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.3571, allocations: 0.5495 MB / 0.5134 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.3584, allocations: 1.206 MB / 0.5146 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.3594, allocations: 0.7168 MB / 0.5153 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006916/0.3601, allocations: 474.1 kB / 0.5158 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006119/0.3607, allocations: 474 kB / 0.5162 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.3609, allocations: 86.53 kB / 0.5163 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009772/0.3619, allocations: 0.5215 MB / 0.5168 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002958/0.3622, allocations: 272 kB / 0.5171 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004868/0.3627, allocations: 429.9 kB / 0.5175 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.3646, allocations: 1.251 MB / 0.5187 GB, free: 13.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3646, allocations: 0 / 0.5187 GB, free: 13.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3646, allocations: 1.125 kB / 0.5187 GB, free: 13.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3646, allocations: 0 / 0.5187 GB, free: 13.99 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.0024/0.367, allocations: 1.233 MB / 0.5199 GB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3671, allocations: 13.58 kB / 0.5199 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.3673, allocations: 113.3 kB / 0.52 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001363/0.3686, allocations: 203.9 kB / 0.5202 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.37, allocations: 0.6428 MB / 0.5208 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.825e-05/0.37, allocations: 53.09 kB / 0.5209 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.3702, allocations: 72.52 kB / 0.521 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.3723, allocations: 0.8826 MB / 0.5218 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.948e-05/0.3723, allocations: 0.9688 kB / 0.5218 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.375e-05/0.3724, allocations: 34.61 kB / 0.5219 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.131e-05/0.3725, allocations: 39.88 kB / 0.5219 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.3742, allocations: 0.784 MB / 0.5227 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005086/0.3793, allocations: 3.232 MB / 0.5258 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.3811, allocations: 0.9709 MB / 0.5268 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006259/0.3817, allocations: 304.1 kB / 0.5271 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.045e-05/0.3818, allocations: 7.875 kB / 0.5271 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.3818, allocations: 39.02 kB / 0.5271 GB, free: 9.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.685e-06/0.3818, allocations: 5.281 kB / 0.5271 GB, free: 9.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=63): time 0.005199/0.387, allocations: 2.552 MB / 0.5296 GB, free: 7.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.3871, allocations: 110.1 kB / 0.5297 GB, free: 7.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008075/0.3879, allocations: 0.5791 MB / 0.5303 GB, free: 7.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.388, allocations: 40.38 kB / 0.5303 GB, free: 7.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.3883, allocations: 372.8 kB / 0.5307 GB, free: 6.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.3885, allocations: 234.5 kB / 0.5309 GB, free: 6.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.3887, allocations: 117 kB / 0.531 GB, free: 6.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3888, allocations: 394.2 kB / 0.5314 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005885/0.3894, allocations: 270.3 kB / 0.5316 GB, free: 6.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006697/0.3901, allocations: 421.7 kB / 0.532 GB, free: 5.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.3914, allocations: 0.6904 MB / 0.5327 GB, free: 5.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.3914, allocations: 1.188 kB / 0.5327 GB, free: 5.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001651/0.393, allocations: 0.8375 MB / 0.5335 GB, free: 5.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3931, allocations: 6.812 kB / 0.5335 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-05/0.3931, allocations: 3.469 kB / 0.5335 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002696/0.3934, allocations: 65.88 kB / 0.5336 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007566/0.3941, allocations: 189.1 kB / 0.5338 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.3959, allocations: 1.791 MB / 0.5355 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005474/0.3965, allocations: 62.44 kB / 0.5356 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.3965, allocations: 22.72 kB / 0.5356 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008102/0.3973, allocations: 440.8 kB / 0.536 GB, free: 2.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006249/0.398, allocations: 400.6 kB / 0.5364 GB, free: 2.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001147/0.3991, allocations: 0.6741 MB / 0.5371 GB, free: 2.176 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.366e-06/0.3991, allocations: 1.375 kB / 0.5371 GB, free: 2.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization_lambda0): time 0.001519/0.4007, allocations: 0.8079 MB / 0.5379 GB, free: 1.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.4007, allocations: 13.28 kB / 0.5379 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4007, allocations: 7 kB / 0.5379 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002144/0.4009, allocations: 58.72 kB / 0.5379 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007043/0.4016, allocations: 177.4 kB / 0.5381 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.4033, allocations: 1.806 MB / 0.5399 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.4038, allocations: 44.8 kB / 0.5399 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-05/0.4039, allocations: 28.09 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.0002477/0.4041, allocations: 225.4 kB / 0.5402 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.4043, allocations: 74.16 kB / 0.5402 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.4061, allocations: 0.7775 MB / 0.541 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.4061, allocations: 5.812 kB / 0.541 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.4061, allocations: 1.094 kB / 0.541 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.4061, allocations: 5.141 kB / 0.541 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/0.4103, allocations: 2.145 MB / 0.5431 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.4103, allocations: 5.594 kB / 0.5431 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/0.4109, allocations: 128 kB / 0.5432 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001974/0.4111, allocations: 62.98 kB / 0.5433 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.4112, allocations: 24.36 kB / 0.5433 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.4126, allocations: 1.756 MB / 0.545 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.4126, allocations: 14.88 kB / 0.545 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/0.4148, allocations: 1.322 MB / 0.5463 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/0.4151, allocations: 201 kB / 0.5465 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.36e-05/0.4152, allocations: 23.89 kB / 0.5465 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.4157, allocations: 49.33 kB / 0.5466 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.4159, allocations: 80.19 kB / 0.5467 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.957e-05/0.4159, allocations: 28.03 kB / 0.5467 GB, free: 10.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000633/0.4166, allocations: 421 kB / 0.5471 GB, free: 10.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4166, allocations: 0 / 0.5471 GB, free: 10.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001111/0.4177, allocations: 257.1 kB / 0.5473 GB, free: 10.44 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.002427/0.4201, allocations: 1.883 MB / 0.5492 GB, free: 8.445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002311/0.4224, allocations: 1.274 MB / 0.5504 GB, free: 7.145 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4225, allocations: 128 / 0.5504 GB, free: 7.145 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008831/0.4233, allocations: 0.5116 MB / 0.5509 GB, free: 6.621 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009586/0.4243, allocations: 168.4 kB / 0.5511 GB, free: 6.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009748/0.4341, allocations: 6.714 MB / 0.5576 GB, free: 15.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/0.4347, allocations: 0.9937 MB / 0.5586 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005083/0.4352, allocations: 144.8 kB / 0.5587 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003787/0.4356, allocations: 279.3 kB / 0.559 GB, free: 13.96 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4356, allocations: 4 kB / 0.559 GB, free: 13.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03942/0.475, allocations: 15.92 MB / 0.5746 GB, free: 14.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.78, allocations: 4.062 kB / 0.5746 GB, free: 14.21 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)