Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001537/0.001536, allocations: 110.9 kB / 16.63 MB, free: 6.953 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.001904/0.001905, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.321/1.321, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1685/0.1685, allocations: 38.02 MB / 329.4 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 66.48 kB / 398.4 MB, free: 34.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.101, allocations: 58.06 MB / 456.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007948/0.109, allocations: 5.846 MB / 462.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004256/0.1133, allocations: 2.354 MB / 464.6 MB, free: 48 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007634/0.1141, allocations: 35.81 kB / 464.7 MB, free: 12 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.1153, allocations: 234.8 kB / 464.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.1163, allocations: 298.6 kB / 465.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1175, allocations: 470.5 kB / 465.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.119, allocations: 1.054 MB / 466.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.1203, allocations: 0.6386 MB / 467.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008258/0.1211, allocations: 402.3 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007682/0.1219, allocations: 414.1 kB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002231/0.1221, allocations: 83.98 kB / 468.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007568/0.1229, allocations: 367.2 kB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.1232, allocations: 223.3 kB / 468.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003894/0.1236, allocations: 397.8 kB / 469.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.1248, allocations: 1.071 MB / 470.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.798e-05/0.1249, allocations: 4 kB / 470.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1249, allocations: 0 / 470.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1249, allocations: 0 / 470.3 MB, free: 10.39 MB / 350.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.002136/0.127, allocations: 1.145 MB / 471.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1271, allocations: 15.89 kB / 471.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.1272, allocations: 102.7 kB / 471.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008231/0.128, allocations: 159.8 kB / 471.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008637/0.1289, allocations: 0.5773 MB / 472.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.129, allocations: 49.62 kB / 472.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.792e-05/0.1291, allocations: 64.38 kB / 472.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.1304, allocations: 0.7719 MB / 473.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.1304, allocations: 4 kB / 473.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-05/0.1305, allocations: 27.94 kB / 473.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.763e-05/0.1305, allocations: 29.3 kB / 473.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.1318, allocations: 0.6609 MB / 473.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/0.1359, allocations: 2.914 MB / 476.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.1374, allocations: 0.7399 MB / 477.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005139/0.138, allocations: 254.9 kB / 477.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-05/0.138, allocations: 8.422 kB / 477.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.1381, allocations: 43 kB / 477.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.764e-06/0.1381, allocations: 0 / 477.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001693/0.1398, allocations: 0.7481 MB / 478.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.1399, allocations: 111.2 kB / 478.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007769/0.1407, allocations: 0.5829 MB / 479.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.929e-05/0.1407, allocations: 41.7 kB / 479.3 MB, free: 1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/0.141, allocations: 352.4 kB / 479.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1411, allocations: 173.5 kB / 479.8 MB, free: 492 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.1413, allocations: 102.3 kB / 479.9 MB, free: 384 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.1415, allocations: 382.8 kB / 480.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005207/0.142, allocations: 231.4 kB / 480.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005976/0.1426, allocations: 361.5 kB / 480.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.1437, allocations: 0.5783 MB / 481.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1438, allocations: 4 kB / 481.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00183/0.1456, allocations: 0.8264 MB / 482.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.1456, allocations: 8 kB / 482.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.1456, allocations: 4 kB / 482.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005035/0.1462, allocations: 113 kB / 482.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006207/0.1468, allocations: 143.8 kB / 482.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003455/0.1503, allocations: 2.416 MB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/0.1508, allocations: 87.45 kB / 485 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.1508, allocations: 20 kB / 485.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006854/0.1515, allocations: 377.3 kB / 485.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005764/0.1521, allocations: 349.6 kB / 485.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001031/0.1532, allocations: 0.5587 MB / 486.3 MB, free: 9.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.475e-06/0.1532, allocations: 0 / 486.3 MB, free: 9.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001527/0.1547, allocations: 0.7372 MB / 487.1 MB, free: 8.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1547, allocations: 11.94 kB / 487.1 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1548, allocations: 4 kB / 487.1 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.155, allocations: 96.84 kB / 487.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.1556, allocations: 143.9 kB / 487.3 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.1578, allocations: 2.233 MB / 489.6 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.1584, allocations: 71.61 kB / 489.6 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.1584, allocations: 24 kB / 489.6 MB, free: 6.121 MB / 366.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 (61): * Single equations (assignments): 60 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002036/0.1586, allocations: 213 kB / 489.9 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.1588, allocations: 71.09 kB / 489.9 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.1601, allocations: 0.6007 MB / 490.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.1602, allocations: 4 kB / 490.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1602, allocations: 8.047 kB / 490.5 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.1602, allocations: 7.922 kB / 490.5 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.1627, allocations: 1.357 MB / 491.9 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.1627, allocations: 0 / 491.9 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006428/0.1634, allocations: 123.9 kB / 492 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.201e-05/0.1634, allocations: 4 kB / 492 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.584e-05/0.1634, allocations: 12 kB / 492 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1635, allocations: 0 / 492 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1635, allocations: 4 kB / 492 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.1652, allocations: 0.9597 MB / 493 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.1655, allocations: 192.1 kB / 493.2 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.1656, allocations: 15.98 kB / 493.2 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.1661, allocations: 39.95 kB / 493.2 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.1662, allocations: 36.39 kB / 493.3 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.1663, allocations: 12 kB / 493.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007354/0.167, allocations: 427 kB / 493.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.167, allocations: 0 / 493.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001018/0.1681, allocations: 267.2 kB / 494 MB, free: 1.691 MB / 366.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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002138/0.1702, allocations: 1.513 MB / 495.5 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002604/0.1728, allocations: 1.187 MB / 496.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1729, allocations: 0 / 496.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005562/0.1734, allocations: 274.3 kB / 496.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.1743, allocations: 157.4 kB / 497.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.1869, allocations: 6.718 MB / 0.492 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.1876, allocations: 0.9457 MB / 0.4929 GB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005057/0.1881, allocations: 128.6 kB / 0.493 GB, free: 6.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/0.1885, allocations: 259.5 kB / 0.4933 GB, free: 6.254 MB / 382.1 MB Notification: Performance of SimCode: time 2.294e-06/0.1885, allocations: 0 / 0.4933 GB, free: 6.254 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1971/0.3856, allocations: 14.94 MB / 0.5079 GB, free: 55.89 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.3858, allocations: 229.3 kB / 0.5081 GB, free: 55.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.449, allocations: 3.938 kB / 0.5081 GB, free: 55.63 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)