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: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 114.9 kB / 16.63 MB, free: 6.812 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.00169/0.00169, allocations: 186 kB / 17.55 MB, free: 5.934 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.351/1.351, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1701/0.1701, allocations: 38.03 MB / 329.4 MB, free: 8.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 65.64 kB / 398.3 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09362/0.09482, allocations: 58.05 MB / 456.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007301/0.1022, allocations: 5.858 MB / 462.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.1061, allocations: 2.351 MB / 464.5 MB, free: 156 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007536/0.1069, allocations: 31.81 kB / 464.6 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.108, allocations: 234.8 kB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.1092, allocations: 306.5 kB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.1105, allocations: 462.5 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.112, allocations: 1.057 MB / 466.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.1132, allocations: 0.6309 MB / 467.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007663/0.114, allocations: 406.3 kB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007216/0.1148, allocations: 418 kB / 468 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002507/0.115, allocations: 84 kB / 468.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007915/0.1158, allocations: 359.2 kB / 468.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003414/0.1162, allocations: 223.3 kB / 468.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005314/0.1167, allocations: 389.8 kB / 469.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001487/0.1182, allocations: 1.094 MB / 470.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1182, allocations: 0 / 470.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1182, allocations: 0 / 470.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.996e-05/0.1183, allocations: 0 / 470.2 MB, free: 10.49 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.002553/0.1208, allocations: 1.137 MB / 471.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.1209, allocations: 11.89 kB / 471.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009612/0.1219, allocations: 163.8 kB / 471.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009641/0.1228, allocations: 0.5851 MB / 472.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.17e-05/0.1229, allocations: 45.69 kB / 472.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.123, allocations: 60.38 kB / 472.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.1244, allocations: 0.7798 MB / 472.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.1245, allocations: 0 / 472.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-05/0.1246, allocations: 24 kB / 473 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.832e-05/0.1246, allocations: 37.23 kB / 473 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.126, allocations: 0.657 MB / 473.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004388/0.1304, allocations: 2.918 MB / 476.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.132, allocations: 0.7336 MB / 477.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005365/0.1325, allocations: 243 kB / 477.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.281e-05/0.1326, allocations: 20.45 kB / 477.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.1326, allocations: 38.94 kB / 477.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.1327, allocations: 8 kB / 477.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001802/0.1345, allocations: 0.7442 MB / 478.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/0.1346, allocations: 107.2 kB / 478.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008272/0.1354, allocations: 0.5867 MB / 479.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.1355, allocations: 29.7 kB / 479.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.1357, allocations: 352.5 kB / 479.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.1359, allocations: 185.4 kB / 479.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.1361, allocations: 98.33 kB / 479.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.1363, allocations: 382.8 kB / 480.1 MB, free: 224 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005426/0.1368, allocations: 227.4 kB / 480.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/0.1375, allocations: 361.5 kB / 480.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.1386, allocations: 0.5822 MB / 481.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1386, allocations: 4 kB / 481.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001842/0.1405, allocations: 0.819 MB / 482.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1405, allocations: 8 kB / 482.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1405, allocations: 7.938 kB / 482.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004161/0.1409, allocations: 112.8 kB / 482.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006105/0.1416, allocations: 139.8 kB / 482.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.1446, allocations: 2.424 MB / 484.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005001/0.1451, allocations: 87.45 kB / 484.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-05/0.1452, allocations: 27.97 kB / 484.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007652/0.146, allocations: 381.3 kB / 485.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005654/0.1466, allocations: 337.6 kB / 485.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001027/0.1476, allocations: 0.5665 MB / 486.1 MB, free: 9.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.225e-06/0.1476, allocations: 4 kB / 486.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001523/0.1491, allocations: 0.7251 MB / 486.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.1492, allocations: 8.469 kB / 486.9 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.1492, allocations: 11.94 kB / 486.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.1495, allocations: 105.2 kB / 487 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005937/0.1501, allocations: 135.8 kB / 487.1 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.1523, allocations: 2.233 MB / 489.3 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004719/0.1528, allocations: 71.5 kB / 489.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/0.1529, allocations: 28.05 kB / 489.4 MB, free: 6.34 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.0002045/0.1531, allocations: 212.1 kB / 489.6 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.1532, allocations: 63.25 kB / 489.7 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.1547, allocations: 0.6043 MB / 490.3 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1547, allocations: 8 kB / 490.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.1547, allocations: 0 / 490.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1547, allocations: 112 / 490.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.1573, allocations: 1.365 MB / 491.7 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1573, allocations: 0 / 491.7 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006245/0.1579, allocations: 119.9 kB / 491.8 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-06/0.158, allocations: 0 / 491.8 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.45e-05/0.158, allocations: 16.17 kB / 491.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.158, allocations: 4 kB / 491.8 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.158, allocations: 3.938 kB / 491.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.1599, allocations: 0.952 MB / 492.8 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003299/0.1603, allocations: 200.1 kB / 493 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.1604, allocations: 12 kB / 493 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.1608, allocations: 39.95 kB / 493 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.161, allocations: 40.38 kB / 493.1 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.161, allocations: 16 kB / 493.1 MB, free: 2.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006231/0.1616, allocations: 419 kB / 493.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1616, allocations: 0 / 493.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009731/0.1626, allocations: 271.2 kB / 493.8 MB, free: 1.914 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.0001608/0.1628, allocations: 111.3 kB / 493.9 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.1652, allocations: 1.195 MB / 495.1 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1653, allocations: 4 kB / 495.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005912/0.1659, allocations: 270.5 kB / 495.3 MB, free: 316 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008374/0.1667, allocations: 155.4 kB / 495.5 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.1698, allocations: 1.811 MB / 497.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/0.1704, allocations: 0.9457 MB / 498.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000474/0.1709, allocations: 124.5 kB / 498.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.1711, allocations: 51.42 kB / 498.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1711, allocations: 0 / 498.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of Templates: time 0.01528/0.1864, allocations: 8.258 MB / 0.4948 GB, free: 4.98 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (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 & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)