Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002208/0.002212, allocations: 183.8 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.997/1.997, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 98.78 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2986/0.2986, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004844, allocations: 8 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1206, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4935/0.6142, allocations: 103.6 MB / 0.569 GB, free: 12.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/0.6145, allocations: 91.19 kB / 0.5691 GB, free: 12.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09783/0.7124, allocations: 22.64 MB / 0.5912 GB, free: 9.629 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.7125, allocations: 0 / 0.5912 GB, free: 9.629 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.822e-05/0.7126, allocations: 16 kB / 0.5912 GB, free: 9.613 MB / 394.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.003509/0.7161, allocations: 1.076 MB / 0.5923 GB, free: 8.543 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.7161, allocations: 12.03 kB / 0.5923 GB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.7179, allocations: 174.8 kB / 0.5924 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/0.72, allocations: 0.6196 MB / 0.5931 GB, free: 7.805 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.338e-05/0.7201, allocations: 45.81 kB / 0.5931 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/0.7203, allocations: 61.5 kB / 0.5932 GB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.7227, allocations: 0.7706 MB / 0.5939 GB, free: 7.152 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.366e-05/0.7228, allocations: 11.92 kB / 0.5939 GB, free: 7.141 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.911e-05/0.7229, allocations: 24.56 kB / 0.5939 GB, free: 7.133 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.814e-05/0.723, allocations: 29.27 kB / 0.594 GB, free: 7.105 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.7254, allocations: 0.6696 MB / 0.5946 GB, free: 6.637 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007212/0.7327, allocations: 2.969 MB / 0.5975 GB, free: 4.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002884/0.7356, allocations: 0.7748 MB / 0.5983 GB, free: 3.562 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.7358, allocations: 12.42 kB / 0.5983 GB, free: 3.551 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.7358, allocations: 42.44 kB / 0.5983 GB, free: 3.508 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 3.527e-06/0.7358, allocations: 4 kB / 0.5983 GB, free: 3.504 MB / 394.7 MB Notification: Performance of matching and sorting (n=50): time 0.003202/0.739, allocations: 0.78 MB / 0.5991 GB, free: 2.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.7392, allocations: 107.2 kB / 0.5992 GB, free: 2.781 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/0.7406, allocations: 0.5224 MB / 0.5997 GB, free: 2.363 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.7408, allocations: 37.25 kB / 0.5997 GB, free: 2.328 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/0.7411, allocations: 370.7 kB / 0.6001 GB, free: 2.062 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002486/0.7414, allocations: 180.1 kB / 0.6003 GB, free: 1.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.7414, allocations: 11.88 kB / 0.6003 GB, free: 1.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.7416, allocations: 334.7 kB / 0.6006 GB, free: 1.582 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009625/0.7426, allocations: 229.8 kB / 0.6008 GB, free: 1.426 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.7436, allocations: 374.9 kB / 0.6012 GB, free: 1.09 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.7447, allocations: 275.5 kB / 0.6014 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.7447, allocations: 0 / 0.6014 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003098/0.7478, allocations: 0.7899 MB / 0.6022 GB, free: 312 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006852/0.7486, allocations: 1.401 MB / 0.6036 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.7486, allocations: 4 kB / 0.6036 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008137/0.7494, allocations: 139.5 kB / 0.6037 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.7506, allocations: 143.2 kB / 0.6039 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.7519, allocations: 0.7513 MB / 0.6046 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009989/0.7529, allocations: 97.89 kB / 0.6047 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.725e-05/0.753, allocations: 22.06 kB / 0.6047 GB, free: 13.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.753, allocations: 4 kB / 0.6047 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002375/0.7554, allocations: 0.6604 MB / 0.6053 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.7554, allocations: 8 kB / 0.6054 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004539/0.7559, allocations: 107.1 kB / 0.6055 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.757, allocations: 144 kB / 0.6056 GB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003071/0.7601, allocations: 2.03 MB / 0.6076 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006957/0.7609, allocations: 61.83 kB / 0.6076 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/0.761, allocations: 26.8 kB / 0.6077 GB, free: 11.21 MB / 410.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.0006393/0.7616, allocations: 309 kB / 0.608 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.7619, allocations: 67.16 kB / 0.608 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/0.7642, allocations: 0.6212 MB / 0.6086 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.7642, allocations: 4 kB / 0.6086 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.7643, allocations: 4 kB / 0.6086 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.7643, allocations: 3.984 kB / 0.6086 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003794/0.7681, allocations: 1.347 MB / 0.61 GB, free: 9.379 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.7681, allocations: 3.938 kB / 0.61 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.7694, allocations: 123.8 kB / 0.6101 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/0.7694, allocations: 0 / 0.6101 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.878e-05/0.7695, allocations: 15.86 kB / 0.6101 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.127e-06/0.7695, allocations: 4 kB / 0.6101 GB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.7695, allocations: 0 / 0.6101 GB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003309/0.7728, allocations: 1.001 MB / 0.6111 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.7733, allocations: 195.1 kB / 0.6113 GB, free: 8.285 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.7735, allocations: 12.62 kB / 0.6113 GB, free: 8.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007895/0.7743, allocations: 53.64 kB / 0.6113 GB, free: 8.234 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.7745, allocations: 38 kB / 0.6114 GB, free: 8.203 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.7745, allocations: 14.69 kB / 0.6114 GB, free: 8.191 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001107/0.7756, allocations: 430.2 kB / 0.6118 GB, free: 7.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7757, allocations: 4.562 kB / 0.6118 GB, free: 7.789 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001413/0.7771, allocations: 267.2 kB / 0.612 GB, free: 7.527 MB / 410.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.000252/0.7774, allocations: 127.2 kB / 0.6122 GB, free: 7.395 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003713/0.7811, allocations: 1.017 MB / 0.6132 GB, free: 6.371 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.7811, allocations: 0 / 0.6132 GB, free: 6.371 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.7822, allocations: 290.4 kB / 0.6134 GB, free: 6.082 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.7834, allocations: 122.8 kB / 0.6136 GB, free: 5.965 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.7886, allocations: 1.859 MB / 0.6154 GB, free: 4.062 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008332/0.7895, allocations: 0.9615 MB / 0.6163 GB, free: 3.074 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003876/0.7899, allocations: 47.44 kB / 0.6164 GB, free: 3.027 MB / 410.7 MB Notification: Performance of SimCode: time 3.036e-06/0.7899, allocations: 0 / 0.6164 GB, free: 3.027 MB / 410.7 MB Notification: Performance of Templates: time 0.02362/0.8135, allocations: 9.53 MB / 0.6257 GB, free: 9.5 MB / 426.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)