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 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.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.001152/0.001152, allocations: 104 kB / 16.92 MB, free: 5.793 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.001517/0.001517, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.385/1.385, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1971/0.1971, allocations: 38.03 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 61.59 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1084, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.01061/0.119, allocations: 5.912 MB / 462.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005962/0.125, allocations: 2.723 MB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000908/0.126, allocations: 23.88 kB / 465.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.1277, allocations: 381.8 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00179/0.1295, allocations: 473.5 kB / 466.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.1313, allocations: 0.5565 MB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.1334, allocations: 1.198 MB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001573/0.135, allocations: 0.713 MB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009773/0.1359, allocations: 458.2 kB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009393/0.1369, allocations: 473.9 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003275/0.1372, allocations: 88 kB / 469.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.1387, allocations: 0.5184 MB / 470.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004229/0.1391, allocations: 271.1 kB / 470.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007103/0.1398, allocations: 425.8 kB / 471.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002096/0.1419, allocations: 1.223 MB / 472.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.142, allocations: 4 kB / 472.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.142, allocations: 0 / 472.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.389e-05/0.142, allocations: 0 / 472.3 MB, free: 8.512 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003587/0.1456, allocations: 1.2 MB / 473.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1457, allocations: 11.89 kB / 473.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002252/0.1459, allocations: 118.7 kB / 473.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00224/0.1482, allocations: 199.7 kB / 473.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.1498, allocations: 0.6084 MB / 474.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.807e-05/0.1499, allocations: 53.67 kB / 474.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/0.1501, allocations: 64.38 kB / 474.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00241/0.1525, allocations: 0.8819 MB / 475.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.1525, allocations: 4 kB / 475.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.1527, allocations: 24 kB / 475.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.723e-05/0.1528, allocations: 45.23 kB / 475.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002326/0.1551, allocations: 0.7818 MB / 476.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005293/0.1604, allocations: 3.257 MB / 479.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.1622, allocations: 0.9642 MB / 480.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006325/0.1629, allocations: 311.3 kB / 480.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.173e-05/0.163, allocations: 4.562 kB / 480.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.163, allocations: 43.12 kB / 480.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 3.677e-06/0.163, allocations: 0 / 480.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.00567/0.1687, allocations: 2.549 MB / 483.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.515e-05/0.1688, allocations: 111.4 kB / 483.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008531/0.1697, allocations: 0.5744 MB / 484.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.062e-05/0.1697, allocations: 37.7 kB / 484.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.17, allocations: 368.1 kB / 484.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.1702, allocations: 228.8 kB / 484.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.1704, allocations: 114.7 kB / 484.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1706, allocations: 386.7 kB / 485.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/0.1712, allocations: 268.7 kB / 485.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006902/0.1719, allocations: 421.8 kB / 485.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.1733, allocations: 0.6889 MB / 486.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1733, allocations: 8 kB / 486.6 MB, free: 9.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001711/0.175, allocations: 0.8266 MB / 487.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.175, allocations: 8 kB / 487.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.1751, allocations: 4 kB / 487.4 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003067/0.1754, allocations: 61.25 kB / 487.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007891/0.1762, allocations: 183.7 kB / 487.7 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.1782, allocations: 1.803 MB / 489.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.1787, allocations: 51.88 kB / 489.5 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.307e-05/0.1788, allocations: 28 kB / 489.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008175/0.1796, allocations: 446 kB / 490 MB, free: 6.051 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000633/0.1803, allocations: 401.8 kB / 490.4 MB, free: 5.605 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001146/0.1814, allocations: 0.6772 MB / 491.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.079e-06/0.1815, allocations: 8 kB / 491.1 MB, free: 4.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization_lambda0): time 0.001591/0.183, allocations: 0.7994 MB / 491.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.1831, allocations: 4 kB / 491.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1831, allocations: 7.938 kB / 491.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.1834, allocations: 65.25 kB / 492 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007095/0.1841, allocations: 171.7 kB / 492.1 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/0.1858, allocations: 1.813 MB / 493.9 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005142/0.1863, allocations: 47.95 kB / 494 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.472e-05/0.1864, allocations: 24 kB / 494 MB, free: 1.797 MB / 366.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 (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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002237/0.1866, allocations: 221 kB / 494.2 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1867, allocations: 67.16 kB / 494.3 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.1885, allocations: 0.7841 MB / 495.1 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.852e-06/0.1885, allocations: 4 kB / 495.1 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.1885, allocations: 4 kB / 495.1 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1885, allocations: 7.922 kB / 495.1 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.1927, allocations: 2.142 MB / 497.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.1928, allocations: 8 kB / 497.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005792/0.1934, allocations: 127.8 kB / 497.4 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002207/0.1936, allocations: 60.75 kB / 497.4 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.954e-05/0.1937, allocations: 23.98 kB / 497.4 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001609/0.1953, allocations: 1.771 MB / 499.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.1953, allocations: 7.938 kB / 499.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.1975, allocations: 1.322 MB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003253/0.1979, allocations: 204.1 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.198, allocations: 23.98 kB / 0.489 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005351/0.1986, allocations: 51.95 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.1987, allocations: 71.69 kB / 0.4892 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.463e-05/0.1988, allocations: 28 kB / 0.4892 GB, free: 10.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006704/0.1995, allocations: 419 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1995, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001094/0.2006, allocations: 256 kB / 0.4898 GB, free: 9.816 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 (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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002544/0.2031, allocations: 1.878 MB / 0.4917 GB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002839/0.206, allocations: 1.325 MB / 0.4929 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.206, allocations: 4 kB / 0.493 GB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009422/0.207, allocations: 0.5039 MB / 0.4934 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.208, allocations: 166.5 kB / 0.4936 GB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.2188, allocations: 6.923 MB / 0.5004 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006117/0.2194, allocations: 0.9861 MB / 0.5013 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000571/0.22, allocations: 145.1 kB / 0.5015 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004059/0.2204, allocations: 279.3 kB / 0.5017 GB, free: 13.09 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2205, allocations: 0 / 0.5017 GB, free: 13.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2287/0.4491, allocations: 15.58 MB / 0.5169 GB, free: 70.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.66, allocations: 4.531 kB / 0.517 GB, free: 70.43 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_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_PowerPlantTest3.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)