Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008724/0.0008724, allocations: 177 kB / 15.78 MB, free: 6.312 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.267/1.267, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.00072/0.00072, allocations: 94.28 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1671/0.1671, allocations: 38.07 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003812, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1181, allocations: 56.34 MB / 479.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006105/0.1243, allocations: 5.14 MB / 484.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003721/0.128, allocations: 2.286 MB / 486.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004954/0.1286, allocations: 35.81 kB / 486.5 MB, free: 10.53 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004664/0.129, allocations: 111.1 kB / 486.6 MB, free: 10.42 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007568/0.1298, allocations: 290.3 kB / 486.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1308, allocations: 366.8 kB / 487.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.1319, allocations: 1.003 MB / 488.3 MB, free: 8.773 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000973/0.1329, allocations: 0.6237 MB / 488.9 MB, free: 8.105 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.1334, allocations: 302.5 kB / 489.2 MB, free: 7.809 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004022/0.1338, allocations: 322.4 kB / 489.5 MB, free: 7.492 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.134, allocations: 24 kB / 489.5 MB, free: 7.469 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003817/0.1344, allocations: 167.6 kB / 489.7 MB, free: 7.305 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.1345, allocations: 151.3 kB / 489.8 MB, free: 7.156 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.1347, allocations: 145.3 kB / 490 MB, free: 7.008 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007298/0.1354, allocations: 0.7988 MB / 490.8 MB, free: 6.207 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1354, allocations: 0 / 490.8 MB, free: 6.207 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1354, allocations: 0 / 490.8 MB, free: 6.207 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.1354, allocations: 0 / 490.8 MB, free: 6.207 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001895/0.1373, allocations: 1.013 MB / 491.8 MB, free: 5.145 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1374, allocations: 8.031 kB / 491.8 MB, free: 5.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008742/0.1383, allocations: 170.7 kB / 492 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009811/0.1393, allocations: 0.5687 MB / 492.5 MB, free: 4.359 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/0.1393, allocations: 49.3 kB / 492.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1394, allocations: 63.94 kB / 492.7 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.1409, allocations: 0.7796 MB / 493.4 MB, free: 3.426 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.141, allocations: 11.89 kB / 493.4 MB, free: 3.414 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.141, allocations: 31.92 kB / 493.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.432e-05/0.1411, allocations: 29.27 kB / 493.5 MB, free: 3.355 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.1425, allocations: 0.6843 MB / 494.2 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004371/0.1469, allocations: 2.93 MB / 497.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.1486, allocations: 0.7734 MB / 497.9 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005755/0.1492, allocations: 263 kB / 498.2 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.517e-05/0.1492, allocations: 8.469 kB / 498.2 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.1493, allocations: 42.98 kB / 498.2 MB, free: 14.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.186e-06/0.1493, allocations: 4 kB / 498.2 MB, free: 14.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.001947/0.1512, allocations: 0.7872 MB / 499 MB, free: 13.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/0.1513, allocations: 115.2 kB / 499.1 MB, free: 13.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008393/0.1522, allocations: 0.5829 MB / 499.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-05/0.1522, allocations: 33.7 kB / 499.7 MB, free: 12.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.1525, allocations: 360.4 kB / 0.4884 GB, free: 12.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.1527, allocations: 173.4 kB / 0.4885 GB, free: 12.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.1527, allocations: 11.94 kB / 0.4885 GB, free: 12.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1529, allocations: 386.9 kB / 0.4889 GB, free: 12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.1535, allocations: 233.2 kB / 0.4891 GB, free: 11.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006799/0.1542, allocations: 377.5 kB / 0.4895 GB, free: 11.35 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/0.1548, allocations: 270.1 kB / 0.4897 GB, free: 11.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.1548, allocations: 4 kB / 0.4897 GB, free: 11.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001909/0.1567, allocations: 0.8698 MB / 0.4906 GB, free: 10.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.1569, allocations: 192.3 kB / 0.4908 GB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.1569, allocations: 4 kB / 0.4908 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005036/0.1574, allocations: 136.7 kB / 0.4909 GB, free: 9.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006427/0.1581, allocations: 143.8 kB / 0.491 GB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003047/0.1611, allocations: 2.261 MB / 0.4933 GB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005254/0.1616, allocations: 95.23 kB / 0.4933 GB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.372e-05/0.1617, allocations: 24 kB / 0.4934 GB, free: 7.172 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.193e-06/0.1617, allocations: 4 kB / 0.4934 GB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001406/0.1631, allocations: 0.67 MB / 0.494 GB, free: 6.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1632, allocations: 8.031 kB / 0.494 GB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.1634, allocations: 100.8 kB / 0.4941 GB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.164, allocations: 143.8 kB / 0.4943 GB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/0.1661, allocations: 2.019 MB / 0.4962 GB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/0.1666, allocations: 87.34 kB / 0.4963 GB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.1667, allocations: 24 kB / 0.4963 GB, free: 3.984 MB / 346.7 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 (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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004452/0.1671, allocations: 305.4 kB / 0.4966 GB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1673, allocations: 67.16 kB / 0.4967 GB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.1686, allocations: 0.6358 MB / 0.4973 GB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.1686, allocations: 4 kB / 0.4973 GB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.1686, allocations: 0 / 0.4973 GB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.1686, allocations: 7.953 kB / 0.4973 GB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.1709, allocations: 1.381 MB / 0.4987 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1709, allocations: 3.938 kB / 0.4987 GB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.1716, allocations: 127.8 kB / 0.4988 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.425e-06/0.1716, allocations: 4.109 kB / 0.4988 GB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.338e-05/0.1716, allocations: 27.88 kB / 0.4988 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.1717, allocations: 4 kB / 0.4988 GB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1717, allocations: 0 / 0.4988 GB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.1735, allocations: 0.9988 MB / 0.4998 GB, free: 340 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.1738, allocations: 188.1 kB / 0.5 GB, free: 132 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.1739, allocations: 12 kB / 0.5 GB, free: 120 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.1743, allocations: 59.91 kB / 0.5001 GB, free: 60 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.135e-05/0.1744, allocations: 36.38 kB / 0.5001 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.1745, allocations: 12 kB / 0.5001 GB, free: 12 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000646/0.1751, allocations: 419.1 kB / 0.5005 GB, free: 15.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1751, allocations: 0 / 0.5005 GB, free: 15.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009076/0.176, allocations: 271.1 kB / 0.5008 GB, free: 15.34 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001665/0.1762, allocations: 119.3 kB / 0.5009 GB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.1787, allocations: 1.171 MB / 0.502 GB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1787, allocations: 0 / 0.502 GB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006161/0.1793, allocations: 290.4 kB / 0.5023 GB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008001/0.1802, allocations: 130.8 kB / 0.5024 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.1835, allocations: 1.859 MB / 0.5042 GB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/0.1842, allocations: 0.946 MB / 0.5052 GB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.1844, allocations: 51.42 kB / 0.5052 GB, free: 10.68 MB / 362.7 MB Notification: Performance of SimCode: time 2.014e-06/0.1844, allocations: 4 kB / 0.5052 GB, free: 10.68 MB / 362.7 MB Notification: Performance of Templates: time 0.01586/0.2003, allocations: 9.896 MB / 0.5149 GB, free: 0.7734 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)