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.001503/0.001503, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001165/0.001165, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.368/1.368, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1819/0.1819, allocations: 38.02 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 65.03 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1043, allocations: 58.07 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.00719/0.1115, allocations: 5.435 MB / 462.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003576/0.1151, allocations: 2.249 MB / 464.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005913/0.1157, allocations: 31.81 kB / 464.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009794/0.1167, allocations: 266.4 kB / 465 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009363/0.1177, allocations: 353.9 kB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.1188, allocations: 0.4983 MB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.12, allocations: 1.057 MB / 466.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008505/0.1208, allocations: 0.6192 MB / 467.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000554/0.1214, allocations: 402.4 kB / 467.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005028/0.1219, allocations: 402.1 kB / 468.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.1221, allocations: 80 kB / 468.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006285/0.1227, allocations: 359.2 kB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.1229, allocations: 219.3 kB / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.1233, allocations: 397.8 kB / 469.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.1243, allocations: 1.063 MB / 470.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1244, allocations: 0 / 470.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1244, allocations: 0 / 470.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.1244, allocations: 0 / 470.4 MB, free: 10.5 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.002134/0.1265, allocations: 1.137 MB / 471.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1266, allocations: 15.89 kB / 471.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.1267, allocations: 110.7 kB / 471.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008403/0.1276, allocations: 159.8 kB / 471.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008671/0.1284, allocations: 0.5851 MB / 472.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.1285, allocations: 45.69 kB / 472.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.774e-05/0.1286, allocations: 60.38 kB / 472.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1299, allocations: 0.7758 MB / 473.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1299, allocations: 0 / 473.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.234e-05/0.13, allocations: 24 kB / 473.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.879e-05/0.13, allocations: 29.31 kB / 473.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.1313, allocations: 0.6609 MB / 473.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003937/0.1353, allocations: 2.918 MB / 476.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.1368, allocations: 0.7256 MB / 477.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005482/0.1373, allocations: 258.9 kB / 477.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.1374, allocations: 8.438 kB / 477.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.1374, allocations: 35 kB / 477.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.314e-06/0.1374, allocations: 8 kB / 477.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001736/0.1392, allocations: 0.752 MB / 478.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.1392, allocations: 107.2 kB / 478.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007842/0.14, allocations: 0.5829 MB / 479.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.161e-05/0.1401, allocations: 29.7 kB / 479.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.1404, allocations: 356.4 kB / 479.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.1405, allocations: 189.4 kB / 479.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.1407, allocations: 98.33 kB / 480 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1408, allocations: 378.8 kB / 480.4 MB, free: 120 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005286/0.1413, allocations: 231.3 kB / 480.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005806/0.1419, allocations: 361.5 kB / 480.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.143, allocations: 0.586 MB / 481.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.143, allocations: 0 / 481.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001786/0.1448, allocations: 0.8229 MB / 482.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1449, allocations: 8.031 kB / 482.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.1449, allocations: 7.984 kB / 482.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003847/0.1453, allocations: 108.8 kB / 482.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.1459, allocations: 143.8 kB / 482.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/0.1487, allocations: 2.428 MB / 485 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.1492, allocations: 83.39 kB / 485.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.1493, allocations: 28.05 kB / 485.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006632/0.15, allocations: 381.3 kB / 485.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005488/0.1505, allocations: 341.6 kB / 485.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001021/0.1516, allocations: 0.5704 MB / 486.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.455e-06/0.1516, allocations: 4 kB / 486.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001437/0.153, allocations: 0.7251 MB / 487.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.153, allocations: 11.94 kB / 487.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.153, allocations: 4.438 kB / 487.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002626/0.1533, allocations: 104.8 kB / 487.3 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005461/0.1539, allocations: 135.8 kB / 487.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.1561, allocations: 2.225 MB / 489.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.1566, allocations: 71.55 kB / 489.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.1566, allocations: 20.19 kB / 489.7 MB, free: 6.25 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.0001984/0.1569, allocations: 224.9 kB / 489.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.157, allocations: 67.19 kB / 490 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.1584, allocations: 0.5965 MB / 490.6 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1584, allocations: 8 kB / 490.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1584, allocations: 0 / 490.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/0.1584, allocations: 3.984 kB / 490.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.1606, allocations: 1.365 MB / 492 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1606, allocations: 4 kB / 492 MB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005867/0.1612, allocations: 115.9 kB / 492.1 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.1612, allocations: 4 kB / 492.1 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.1613, allocations: 12 kB / 492.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.1613, allocations: 4 kB / 492.1 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1613, allocations: 0 / 492.1 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.1631, allocations: 0.9558 MB / 493.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002293/0.1633, allocations: 196.1 kB / 493.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.1634, allocations: 16 kB / 493.3 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004072/0.1638, allocations: 39.95 kB / 493.3 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.429e-05/0.1639, allocations: 40.38 kB / 493.4 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/0.164, allocations: 19.98 kB / 493.4 MB, free: 2.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005864/0.1646, allocations: 415 kB / 493.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1646, allocations: 112 / 493.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009026/0.1655, allocations: 275.2 kB / 494 MB, free: 1.812 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.002041/0.1675, allocations: 1.513 MB / 495.6 MB, free: 268 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002388/0.1699, allocations: 1.187 MB / 496.7 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.17, allocations: 128 / 496.7 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005749/0.1705, allocations: 282.3 kB / 497 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007613/0.1713, allocations: 143.7 kB / 497.2 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.1819, allocations: 6.472 MB / 0.4918 GB, free: 7.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.1825, allocations: 0.9457 MB / 0.4928 GB, free: 6.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004757/0.183, allocations: 116.6 kB / 0.4929 GB, free: 6.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003558/0.1834, allocations: 259.3 kB / 0.4931 GB, free: 6.633 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1834, allocations: 3.938 kB / 0.4931 GB, free: 6.629 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.244/0.4274, allocations: 15.2 MB / 0.508 GB, free: 56.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.73, allocations: 8.375 kB / 0.508 GB, free: 56.1 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_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_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)