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 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.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.0008799/0.00088, allocations: 87.78 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.0009211/0.0009212, allocations: 181.7 kB / 17.21 MB, free: 6.324 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.738/1.738, allocations: 205.4 MB / 223.4 MB, free: 5.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3119/0.3119, allocations: 38.07 MB / 309.7 MB, free: 8.859 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.0005715/0.0005717, allocations: 23.98 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.12, allocations: 56.32 MB / 433 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006416/0.1264, allocations: 5.118 MB / 438.1 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004727/0.1312, allocations: 2.289 MB / 440.4 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.1326, allocations: 31.81 kB / 440.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008586/0.1334, allocations: 107.1 kB / 440.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.1348, allocations: 278.4 kB / 440.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.1362, allocations: 379.3 kB / 441.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001505/0.1377, allocations: 0.9833 MB / 442.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.1391, allocations: 0.6237 MB / 442.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006529/0.1398, allocations: 306.5 kB / 443 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005994/0.1404, allocations: 314.4 kB / 443.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.1405, allocations: 24 kB / 443.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005214/0.141, allocations: 159.6 kB / 443.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.1413, allocations: 147.4 kB / 443.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.1415, allocations: 157.3 kB / 443.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009435/0.1424, allocations: 0.7871 MB / 444.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.1425, allocations: 4 kB / 444.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1425, allocations: 0 / 444.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.7e-05/0.1425, allocations: 0 / 444.6 MB, free: 10.84 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002183/0.1447, allocations: 0.997 MB / 445.6 MB, free: 9.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1448, allocations: 12.03 kB / 445.6 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002013/0.145, allocations: 102.5 kB / 445.7 MB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008961/0.1459, allocations: 154.9 kB / 445.9 MB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1469, allocations: 0.5648 MB / 446.4 MB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.817e-05/0.147, allocations: 49.3 kB / 446.5 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.582e-05/0.1471, allocations: 67.91 kB / 446.6 MB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1484, allocations: 0.7561 MB / 447.3 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.1484, allocations: 7.953 kB / 447.3 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.1485, allocations: 27.98 kB / 447.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.391e-05/0.1485, allocations: 25.31 kB / 447.4 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.1497, allocations: 0.6452 MB / 448 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00404/0.1538, allocations: 2.93 MB / 450.9 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.1551, allocations: 0.7272 MB / 451.7 MB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004463/0.1555, allocations: 251 kB / 451.9 MB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.876e-05/0.1556, allocations: 4.438 kB / 451.9 MB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.1556, allocations: 43.03 kB / 452 MB, free: 3.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 1.623e-06/0.1557, allocations: 7.938 kB / 452 MB, free: 3.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001474/0.1571, allocations: 0.7175 MB / 452.7 MB, free: 2.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.1572, allocations: 123.3 kB / 452.8 MB, free: 2.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007793/0.158, allocations: 0.5784 MB / 453.4 MB, free: 1.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.1581, allocations: 33.7 kB / 453.4 MB, free: 1.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002882/0.1584, allocations: 352.4 kB / 453.8 MB, free: 1.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.1585, allocations: 177.4 kB / 453.9 MB, free: 1.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.1585, allocations: 12 kB / 454 MB, free: 1.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1587, allocations: 386.7 kB / 454.3 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.1592, allocations: 209 kB / 454.5 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005268/0.1597, allocations: 352.5 kB / 454.9 MB, free: 164 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2743/0.434, allocations: 250.4 kB / 455.1 MB, free: 50.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.4341, allocations: 0 / 455.1 MB, free: 50.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001787/0.4359, allocations: 0.8198 MB / 455.9 MB, free: 50.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.782e-05/0.436, allocations: 196.7 kB / 456.1 MB, free: 50.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.436, allocations: 7.781 kB / 456.1 MB, free: 50.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004413/0.4364, allocations: 136.6 kB / 456.3 MB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/0.4369, allocations: 132.7 kB / 456.4 MB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.4392, allocations: 2.255 MB / 458.7 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.4397, allocations: 88.39 kB / 458.7 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.4398, allocations: 27.08 kB / 458.8 MB, free: 49.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.4398, allocations: 6.656 kB / 458.8 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001214/0.441, allocations: 0.6176 MB / 459.4 MB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.441, allocations: 6.562 kB / 459.4 MB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.4413, allocations: 105.9 kB / 459.5 MB, free: 49.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005071/0.4418, allocations: 127.3 kB / 459.6 MB, free: 49.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002191/0.444, allocations: 2.024 MB / 461.7 MB, free: 47.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/0.4446, allocations: 80.84 kB / 461.7 MB, free: 47.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.4447, allocations: 25.66 kB / 461.8 MB, free: 47.77 MB / 382.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 (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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004856/0.4452, allocations: 300.2 kB / 462.1 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.4453, allocations: 68.22 kB / 462.1 MB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.4465, allocations: 0.5893 MB / 462.7 MB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4465, allocations: 6.281 kB / 462.7 MB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.4465, allocations: 1.062 kB / 462.7 MB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4465, allocations: 3.422 kB / 462.7 MB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.4486, allocations: 1.331 MB / 464.1 MB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4486, allocations: 0 / 464.1 MB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.4491, allocations: 112.8 kB / 464.2 MB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4491, allocations: 3.844 kB / 464.2 MB, free: 47.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.4492, allocations: 13.25 kB / 464.2 MB, free: 47.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4492, allocations: 3.094 kB / 464.2 MB, free: 47.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4492, allocations: 3.469 kB / 464.2 MB, free: 47.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.4506, allocations: 0.9388 MB / 465.1 MB, free: 46.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.4508, allocations: 186.6 kB / 465.3 MB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.4509, allocations: 15.14 kB / 465.3 MB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.4512, allocations: 44.88 kB / 465.4 MB, free: 46.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.4513, allocations: 39.36 kB / 465.4 MB, free: 46.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.4514, allocations: 20.92 kB / 465.4 MB, free: 46.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005382/0.4519, allocations: 418 kB / 465.8 MB, free: 46.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4519, allocations: 0 / 465.8 MB, free: 46.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001023/0.453, allocations: 265 kB / 466.1 MB, free: 46.46 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001734/0.4547, allocations: 1.488 MB / 467.6 MB, free: 45.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.4566, allocations: 1.102 MB / 468.7 MB, free: 44.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.4567, allocations: 4.125 kB / 468.7 MB, free: 44.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.4571, allocations: 262.2 kB / 468.9 MB, free: 44.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008175/0.458, allocations: 129.8 kB / 469.1 MB, free: 44.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007458/0.4654, allocations: 4.653 MB / 473.7 MB, free: 42.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.4659, allocations: 0.9467 MB / 474.7 MB, free: 41.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004586/0.4664, allocations: 115 kB / 474.8 MB, free: 41.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.4667, allocations: 253 kB / 475 MB, free: 41.57 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4667, allocations: 0 / 475 MB, free: 41.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03966/0.5064, allocations: 13.96 MB / 489 MB, free: 40.35 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/0.5067, allocations: 215.1 kB / 489.2 MB, free: 40.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.615, allocations: 0 / 489.2 MB, free: 40.11 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) Environment - environmentSimulation: