Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009293/0.0009294, allocations: 177.2 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.4 MB / 221.9 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 94.28 kB / 270.3 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1693/0.1693, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003544, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1108, allocations: 56.33 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.007567/0.1184, allocations: 5.753 MB / 484.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004984/0.1235, allocations: 2.788 MB / 487.6 MB, free: 9.461 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.1246, allocations: 39.75 kB / 487.6 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007679/0.1254, allocations: 127 kB / 487.8 MB, free: 9.297 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00151/0.1269, allocations: 397.9 kB / 488.2 MB, free: 8.906 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.1284, allocations: 407 kB / 488.5 MB, free: 8.512 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001743/0.1302, allocations: 1.198 MB / 489.7 MB, free: 7.309 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001455/0.1317, allocations: 0.7135 MB / 490.5 MB, free: 6.551 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007626/0.1324, allocations: 354.3 kB / 490.8 MB, free: 6.203 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006387/0.1331, allocations: 394.2 kB / 491.2 MB, free: 5.816 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.1332, allocations: 28 kB / 491.2 MB, free: 5.789 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006915/0.1339, allocations: 263.3 kB / 491.5 MB, free: 5.531 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002484/0.1342, allocations: 191.3 kB / 491.7 MB, free: 5.344 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.1344, allocations: 161.3 kB / 491.8 MB, free: 5.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.1356, allocations: 0.908 MB / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1356, allocations: 0 / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1356, allocations: 0 / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.172e-05/0.1356, allocations: 3.938 kB / 492.7 MB, free: 4.266 MB / 330.7 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.002729/0.1384, allocations: 1.071 MB / 493.8 MB, free: 3.145 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1384, allocations: 12.03 kB / 493.8 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.1398, allocations: 202.6 kB / 494 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1411, allocations: 0.5959 MB / 494.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.283e-05/0.1412, allocations: 57.23 kB / 494.7 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.1413, allocations: 64 kB / 494.7 MB, free: 2.176 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.143, allocations: 0.8896 MB / 495.6 MB, free: 1.242 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/0.1431, allocations: 11.91 kB / 495.6 MB, free: 1.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.307e-05/0.1432, allocations: 24 kB / 495.7 MB, free: 1.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-05/0.1432, allocations: 49.23 kB / 495.7 MB, free: 1.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.1449, allocations: 0.7975 MB / 496.5 MB, free: 372 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00532/0.1502, allocations: 3.276 MB / 499.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.152, allocations: 0.9843 MB / 0.489 GB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006208/0.1527, allocations: 323.3 kB / 0.4893 GB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.005e-05/0.1527, allocations: 16.53 kB / 0.4893 GB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.1528, allocations: 43.06 kB / 0.4894 GB, free: 11.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.296e-06/0.1528, allocations: 0 / 0.4894 GB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.005658/0.1585, allocations: 2.607 MB / 0.4919 GB, free: 8.809 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.1586, allocations: 111.4 kB / 0.492 GB, free: 8.672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008791/0.1595, allocations: 0.586 MB / 0.4926 GB, free: 8.078 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.495e-05/0.1595, allocations: 37.7 kB / 0.4926 GB, free: 8.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.1598, allocations: 372.1 kB / 0.493 GB, free: 7.668 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.16, allocations: 220.8 kB / 0.4932 GB, free: 7.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.1601, allocations: 12 kB / 0.4932 GB, free: 7.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.1603, allocations: 382.8 kB / 0.4936 GB, free: 7.055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006059/0.1609, allocations: 273.8 kB / 0.4939 GB, free: 6.785 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006951/0.1616, allocations: 429.7 kB / 0.4943 GB, free: 6.309 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006628/0.1623, allocations: 330.1 kB / 0.4946 GB, free: 5.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.1623, allocations: 4 kB / 0.4946 GB, free: 5.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001691/0.164, allocations: 0.8462 MB / 0.4954 GB, free: 5.125 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.1641, allocations: 201.4 kB / 0.4956 GB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1641, allocations: 4 kB / 0.4956 GB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002788/0.1644, allocations: 68.77 kB / 0.4957 GB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.1652, allocations: 179.8 kB / 0.4958 GB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.1669, allocations: 1.631 MB / 0.4974 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005264/0.1674, allocations: 56.02 kB / 0.4975 GB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.543e-05/0.1675, allocations: 31.98 kB / 0.4975 GB, free: 2.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/0.1675, allocations: 7.938 kB / 0.4975 GB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/0.1692, allocations: 0.7321 MB / 0.4982 GB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.1693, allocations: 4 kB / 0.4982 GB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.1695, allocations: 69.19 kB / 0.4983 GB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/0.1703, allocations: 175.8 kB / 0.4985 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.172, allocations: 1.608 MB / 0.5 GB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005928/0.1726, allocations: 52.08 kB / 0.5001 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.573e-05/0.1726, allocations: 27.94 kB / 0.5001 GB, free: 15.96 MB / 362.7 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.0004873/0.1731, allocations: 332.7 kB / 0.5004 GB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.1733, allocations: 71.16 kB / 0.5005 GB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.175, allocations: 0.7997 MB / 0.5013 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.1751, allocations: 7.953 kB / 0.5013 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1751, allocations: 8 kB / 0.5013 GB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1751, allocations: 7.984 kB / 0.5013 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004435/0.1795, allocations: 2.181 MB / 0.5034 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.1796, allocations: 8 kB / 0.5034 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006424/0.1802, allocations: 135.8 kB / 0.5036 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002383/0.1805, allocations: 61.16 kB / 0.5036 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.906e-05/0.1806, allocations: 20 kB / 0.5037 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/0.1821, allocations: 1.592 MB / 0.5052 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.1821, allocations: 11.94 kB / 0.5052 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.1846, allocations: 1.349 MB / 0.5065 GB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003741/0.185, allocations: 208.2 kB / 0.5067 GB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.1852, allocations: 20 kB / 0.5068 GB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005763/0.1858, allocations: 55.95 kB / 0.5068 GB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.1859, allocations: 75.75 kB / 0.5069 GB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.186, allocations: 27.98 kB / 0.5069 GB, free: 8.586 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006872/0.1867, allocations: 411 kB / 0.5073 GB, free: 8.191 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1867, allocations: 3.938 kB / 0.5073 GB, free: 8.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001275/0.188, allocations: 260 kB / 0.5076 GB, free: 7.934 MB / 362.7 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.0001993/0.1882, allocations: 127.8 kB / 0.5077 GB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002802/0.191, allocations: 1.286 MB / 0.5089 GB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.191, allocations: 0 / 0.5089 GB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.192, allocations: 499.2 kB / 0.5094 GB, free: 5.992 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.1931, allocations: 162.1 kB / 0.5096 GB, free: 5.836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.1966, allocations: 2.065 MB / 0.5116 GB, free: 3.656 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.1973, allocations: 0.99 MB / 0.5125 GB, free: 2.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.1976, allocations: 59.42 kB / 0.5126 GB, free: 2.582 MB / 362.7 MB Notification: Performance of SimCode: time 1.423e-06/0.1976, allocations: 0 / 0.5126 GB, free: 2.582 MB / 362.7 MB Notification: Performance of Templates: time 0.2266/0.4242, allocations: 12.44 MB / 0.5247 GB, free: 47.24 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)