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.001029/0.001029, allocations: 92.84 kB / 16.3 MB, free: 5.996 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.0009227/0.0009227, allocations: 184.1 kB / 17.2 MB, free: 5.914 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.759/1.759, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3564/0.3564, allocations: 38.06 MB / 309.7 MB, free: 8.844 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.0005409/0.0005411, allocations: 22.19 kB / 376.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1339, allocations: 56.34 MB / 432.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006612/0.1406, allocations: 5.608 MB / 438.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004777/0.1454, allocations: 2.737 MB / 441.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006678/0.1461, allocations: 39.75 kB / 441.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005332/0.1467, allocations: 119 kB / 441.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.1477, allocations: 398.7 kB / 441.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.149, allocations: 435.2 kB / 442.2 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008433/0.1498, allocations: 0.6487 MB / 442.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001088/0.1509, allocations: 0.7174 MB / 443.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004818/0.1514, allocations: 330.6 kB / 443.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.1518, allocations: 322.4 kB / 444.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-05/0.1519, allocations: 32 kB / 444.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005907/0.1525, allocations: 247.5 kB / 444.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001942/0.1527, allocations: 183.4 kB / 444.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.1529, allocations: 169.2 kB / 444.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000854/0.1537, allocations: 0.8962 MB / 445.8 MB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1537, allocations: 0 / 445.8 MB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1538, allocations: 4 kB / 445.8 MB, free: 9.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.1538, allocations: 0 / 445.8 MB, free: 9.684 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.001957/0.1557, allocations: 1.079 MB / 446.8 MB, free: 8.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1558, allocations: 12.03 kB / 446.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.1559, allocations: 110.5 kB / 447 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/0.1572, allocations: 214.6 kB / 447.2 MB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1582, allocations: 0.5843 MB / 447.8 MB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.347e-05/0.1583, allocations: 53.31 kB / 447.8 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.1584, allocations: 71.97 kB / 447.9 MB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.1599, allocations: 0.8818 MB / 448.8 MB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.1599, allocations: 7.938 kB / 448.8 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.16, allocations: 27.98 kB / 448.8 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-05/0.16, allocations: 37.31 kB / 448.8 MB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.1615, allocations: 0.8014 MB / 449.6 MB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/0.1661, allocations: 3.28 MB / 452.9 MB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.1678, allocations: 0.9843 MB / 453.9 MB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.542e-05/0.1679, allocations: 16.55 kB / 453.9 MB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.168, allocations: 39.12 kB / 453.9 MB, free: 1.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=59): time 2.415e-06/0.168, allocations: 3.938 kB / 454 MB, free: 1.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.2651/0.4331, allocations: 2.608 MB / 456.6 MB, free: 50.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.4332, allocations: 109.5 kB / 456.7 MB, free: 50.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007251/0.4339, allocations: 0.5845 MB / 457.3 MB, free: 50.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.434, allocations: 42.8 kB / 457.3 MB, free: 50.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.4342, allocations: 362.7 kB / 457.6 MB, free: 50.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.4344, allocations: 228.1 kB / 457.9 MB, free: 49.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.4344, allocations: 16.41 kB / 457.9 MB, free: 49.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4345, allocations: 384.2 kB / 458.3 MB, free: 49.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.435, allocations: 272 kB / 458.5 MB, free: 49.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005556/0.4356, allocations: 422.6 kB / 458.9 MB, free: 49.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006068/0.4362, allocations: 325.3 kB / 459.3 MB, free: 49.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4362, allocations: 0 / 459.3 MB, free: 49.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001501/0.4377, allocations: 0.8597 MB / 460.1 MB, free: 49.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004103/0.4381, allocations: 1.481 MB / 461.6 MB, free: 47.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.4381, allocations: 3 kB / 461.6 MB, free: 47.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002969/0.4384, allocations: 70.84 kB / 461.7 MB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007381/0.4392, allocations: 184.2 kB / 461.8 MB, free: 47.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.441, allocations: 1.682 MB / 463.5 MB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005902/0.4416, allocations: 63.66 kB / 463.6 MB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.4417, allocations: 30.72 kB / 463.6 MB, free: 46.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.4417, allocations: 3.219 kB / 463.6 MB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00133/0.443, allocations: 0.7344 MB / 464.4 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4431, allocations: 3.344 kB / 464.4 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.4433, allocations: 62.73 kB / 464.4 MB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/0.4439, allocations: 175.3 kB / 464.6 MB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.4453, allocations: 1.684 MB / 466.3 MB, free: 44.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004964/0.4458, allocations: 61.23 kB / 466.3 MB, free: 44.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.847e-05/0.4458, allocations: 28.11 kB / 466.4 MB, free: 44.92 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.0004904/0.4463, allocations: 318.9 kB / 466.7 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.4464, allocations: 74.92 kB / 466.8 MB, free: 44.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.4482, allocations: 0.8049 MB / 467.6 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4482, allocations: 6.656 kB / 467.6 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4482, allocations: 7.344 kB / 467.6 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.4482, allocations: 5.859 kB / 467.6 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00368/0.4519, allocations: 2.195 MB / 469.8 MB, free: 43.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4519, allocations: 6.594 kB / 469.8 MB, free: 43.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.4525, allocations: 131.3 kB / 469.9 MB, free: 43.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000199/0.4527, allocations: 60.5 kB / 470 MB, free: 43.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.4527, allocations: 24.56 kB / 470 MB, free: 43.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.4539, allocations: 1.646 MB / 471.6 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.4539, allocations: 13.69 kB / 471.6 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.4561, allocations: 1.659 MB / 473.3 MB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.4564, allocations: 206.6 kB / 473.5 MB, free: 40.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.769e-05/0.4565, allocations: 24.38 kB / 473.5 MB, free: 40.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004569/0.457, allocations: 53.09 kB / 473.6 MB, free: 40.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.4571, allocations: 71 kB / 473.7 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.4572, allocations: 30.61 kB / 473.7 MB, free: 40.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006025/0.4578, allocations: 413.4 kB / 474.1 MB, free: 40.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4578, allocations: 0 / 474.1 MB, free: 40.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001162/0.459, allocations: 252.6 kB / 474.3 MB, free: 40.22 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.00259/0.4616, allocations: 4.02 MB / 478.4 MB, free: 36.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.4638, allocations: 1.278 MB / 479.6 MB, free: 36.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.4638, allocations: 128 / 479.6 MB, free: 36.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007938/0.4646, allocations: 0.518 MB / 480.2 MB, free: 35.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007672/0.4654, allocations: 138.8 kB / 480.3 MB, free: 35.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007941/0.4733, allocations: 7.344 MB / 487.6 MB, free: 30.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.4739, allocations: 1.007 MB / 488.6 MB, free: 30.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.4744, allocations: 145 kB / 488.8 MB, free: 30.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003412/0.4747, allocations: 285.1 kB / 489.1 MB, free: 29.85 MB / 382.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4748, allocations: 0 / 489.1 MB, free: 29.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03656/0.5113, allocations: 14.51 MB / 0.4918 GB, free: 28.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/0.5116, allocations: 219.1 kB / 0.492 GB, free: 28.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.587, allocations: 8 kB / 0.492 GB, free: 28.41 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: