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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0008115/0.0008115, allocations: 86.7 kB / 16.31 MB, free: 6.457 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.001024/0.001024, allocations: 180.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3392/0.3392, allocations: 38.06 MB / 309.7 MB, free: 9.07 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005229/0.0005232, allocations: 14.66 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1281, allocations: 56.32 MB / 432.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.0073/0.1355, allocations: 5.762 MB / 438.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004834/0.1403, allocations: 2.776 MB / 441.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007/0.1411, allocations: 43.69 kB / 441.5 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005599/0.1416, allocations: 127 kB / 441.7 MB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.1427, allocations: 389.9 kB / 442 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.1439, allocations: 427.2 kB / 442.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.1451, allocations: 1.186 MB / 443.6 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.1463, allocations: 0.7135 MB / 444.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.1468, allocations: 354.3 kB / 444.7 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005015/0.1473, allocations: 398.2 kB / 445.1 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.323e-05/0.1474, allocations: 28 kB / 445.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005786/0.148, allocations: 263.4 kB / 445.4 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002042/0.1482, allocations: 195.3 kB / 445.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.1484, allocations: 165.2 kB / 445.7 MB, free: 9.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008851/0.1493, allocations: 0.9079 MB / 446.6 MB, free: 8.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1493, allocations: 0 / 446.6 MB, free: 8.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1493, allocations: 0 / 446.6 MB, free: 8.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1493, allocations: 0 / 446.6 MB, free: 8.953 MB / 382.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.001907/0.1512, allocations: 1.079 MB / 447.7 MB, free: 7.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1513, allocations: 12.03 kB / 447.7 MB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.1514, allocations: 110.5 kB / 447.8 MB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.1526, allocations: 202.6 kB / 448 MB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009175/0.1535, allocations: 0.5921 MB / 448.6 MB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.025e-05/0.1536, allocations: 49.3 kB / 448.7 MB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1537, allocations: 64 kB / 448.7 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.1552, allocations: 0.9012 MB / 449.6 MB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.1553, allocations: 0 / 449.6 MB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.1553, allocations: 28 kB / 449.7 MB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.048e-05/0.1554, allocations: 33.3 kB / 449.7 MB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.1568, allocations: 0.8053 MB / 450.5 MB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.1615, allocations: 3.276 MB / 453.8 MB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.1632, allocations: 0.9882 MB / 454.8 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.1638, allocations: 315.3 kB / 455.1 MB, free: 184 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.567e-05/0.1638, allocations: 12.56 kB / 455.1 MB, free: 172 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.1639, allocations: 43.06 kB / 455.1 MB, free: 120 kB / 382.1 MB Notification: Performance of pre-optimization done (n=59): time 2.244e-06/0.1639, allocations: 0 / 455.1 MB, free: 120 kB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.2726/0.4366, allocations: 2.601 MB / 457.7 MB, free: 50.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.4367, allocations: 114.6 kB / 457.8 MB, free: 50.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007576/0.4374, allocations: 0.5892 MB / 458.4 MB, free: 50.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.4375, allocations: 35.86 kB / 458.5 MB, free: 50.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.4377, allocations: 373.2 kB / 458.8 MB, free: 50.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.4379, allocations: 217.8 kB / 459 MB, free: 50.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.4379, allocations: 13.41 kB / 459 MB, free: 50.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.438, allocations: 388.6 kB / 459.4 MB, free: 49.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004835/0.4385, allocations: 273.9 kB / 459.7 MB, free: 49.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005697/0.4391, allocations: 434.8 kB / 460.1 MB, free: 49.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005625/0.4396, allocations: 325.7 kB / 460.4 MB, free: 49.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4397, allocations: 0 / 460.4 MB, free: 49.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001447/0.4411, allocations: 0.8533 MB / 461.3 MB, free: 49.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.4412, allocations: 209.6 kB / 461.5 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.4412, allocations: 3.188 kB / 461.5 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000246/0.4415, allocations: 60.61 kB / 461.6 MB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006674/0.4422, allocations: 182.8 kB / 461.7 MB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.4436, allocations: 1.627 MB / 463.4 MB, free: 47.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.444, allocations: 60.8 kB / 463.4 MB, free: 47.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/0.4441, allocations: 30.14 kB / 463.5 MB, free: 47.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/0.4441, allocations: 3.219 kB / 463.5 MB, free: 47.88 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001397/0.4455, allocations: 0.7371 MB / 464.2 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4455, allocations: 3.25 kB / 464.2 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.4457, allocations: 63.91 kB / 464.3 MB, free: 47.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/0.4463, allocations: 182 kB / 464.4 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.4475, allocations: 1.611 MB / 466 MB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.4479, allocations: 59.09 kB / 466.1 MB, free: 46.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.448, allocations: 22.59 kB / 466.1 MB, free: 46.45 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003852/0.4484, allocations: 327.1 kB / 466.4 MB, free: 46.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.4485, allocations: 70.5 kB / 466.5 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.45, allocations: 0.7993 MB / 467.3 MB, free: 45.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.45, allocations: 10.12 kB / 467.3 MB, free: 45.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.45, allocations: 7.891 kB / 467.3 MB, free: 45.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.45, allocations: 3.516 kB / 467.3 MB, free: 45.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003453/0.4535, allocations: 2.189 MB / 469.5 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.4535, allocations: 6.562 kB / 469.5 MB, free: 44.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005056/0.454, allocations: 133.9 kB / 469.7 MB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001663/0.4542, allocations: 58.91 kB / 469.7 MB, free: 44.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/0.4543, allocations: 24.97 kB / 469.7 MB, free: 44.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.4554, allocations: 1.588 MB / 471.3 MB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.4554, allocations: 10.06 kB / 471.3 MB, free: 43.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.4573, allocations: 1.35 MB / 472.7 MB, free: 42.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.4575, allocations: 200.2 kB / 472.9 MB, free: 42.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.4576, allocations: 25.27 kB / 472.9 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004176/0.458, allocations: 55.05 kB / 473 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.4582, allocations: 70.53 kB / 473 MB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/0.4582, allocations: 27.23 kB / 473.1 MB, free: 42.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005211/0.4587, allocations: 415.7 kB / 473.5 MB, free: 42.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4587, allocations: 0 / 473.5 MB, free: 42.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00103/0.4598, allocations: 253.2 kB / 473.7 MB, free: 42.06 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0021/0.4619, allocations: 1.925 MB / 475.6 MB, free: 40.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.464, allocations: 1.281 MB / 476.9 MB, free: 40.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.464, allocations: 6.266 kB / 476.9 MB, free: 40.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007649/0.4648, allocations: 0.5134 MB / 477.4 MB, free: 39.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008782/0.4656, allocations: 165.2 kB / 477.6 MB, free: 39.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007032/0.4727, allocations: 4.982 MB / 482.6 MB, free: 37.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.4732, allocations: 0.9961 MB / 483.6 MB, free: 36.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005289/0.4737, allocations: 146.4 kB / 483.7 MB, free: 36.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003402/0.4741, allocations: 284.9 kB / 484 MB, free: 36.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4741, allocations: 0 / 484 MB, free: 36.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03769/0.5118, allocations: 14.54 MB / 498.5 MB, free: 35.03 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.512, allocations: 224.2 kB / 498.8 MB, free: 34.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.08/2.592, allocations: 0 / 498.8 MB, free: 34.78 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) Environment - environmentSimulation: