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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 117 kB / 17.7 MB, free: 5.285 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.001599/0.001599, allocations: 191 kB / 18.63 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1756/0.1756, allocations: 37.98 MB / 309.8 MB, free: 5.977 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 67.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2167, allocations: 55.24 MB / 432 MB, free: 19.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006767/0.2235, allocations: 5.933 MB / 438 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003887/0.2275, allocations: 2.77 MB / 440.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006729/0.2282, allocations: 27.88 kB / 440.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.2293, allocations: 384.8 kB / 441.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009503/0.2302, allocations: 477.6 kB / 441.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009979/0.2312, allocations: 0.5522 MB / 442.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008266/0.2321, allocations: 1.198 MB / 443.4 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007614/0.2329, allocations: 0.7207 MB / 444.1 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004106/0.2333, allocations: 462.1 kB / 444.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004089/0.2337, allocations: 481.9 kB / 445 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.622e-05/0.2338, allocations: 84 kB / 445.1 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006409/0.2345, allocations: 0.5301 MB / 445.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.2346, allocations: 263.2 kB / 445.9 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002747/0.2349, allocations: 429.7 kB / 446.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009214/0.2358, allocations: 1.242 MB / 447.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2359, allocations: 0 / 447.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2359, allocations: 0 / 447.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.2359, allocations: 0 / 447.5 MB, free: 4.086 MB / 318.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.00187/0.2378, allocations: 1.215 MB / 448.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2378, allocations: 15.88 kB / 448.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.239, allocations: 195.7 kB / 448.9 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008912/0.2399, allocations: 0.6475 MB / 449.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.2399, allocations: 53.67 kB / 449.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.24, allocations: 72.36 kB / 449.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.2412, allocations: 0.8782 MB / 450.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.2413, allocations: 7.922 kB / 450.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.938e-05/0.2413, allocations: 28 kB / 450.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.805e-05/0.2414, allocations: 41.25 kB / 450.7 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.2426, allocations: 0.7819 MB / 451.5 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.247, allocations: 3.233 MB / 454.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.2486, allocations: 0.9679 MB / 455.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.2492, allocations: 307.3 kB / 456 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.728e-05/0.2493, allocations: 12.55 kB / 456 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.2493, allocations: 47.11 kB / 456 MB, free: 11.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 1.963e-06/0.2493, allocations: 0 / 456 MB, free: 11.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.00475/0.2541, allocations: 2.529 MB / 458.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/0.2541, allocations: 107.4 kB / 458.6 MB, free: 8.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007541/0.2549, allocations: 0.5899 MB / 459.2 MB, free: 7.895 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.28e-05/0.255, allocations: 33.7 kB / 459.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.2553, allocations: 376.2 kB / 459.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.2554, allocations: 220.8 kB / 459.9 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.2556, allocations: 118.6 kB / 460 MB, free: 7.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2558, allocations: 378.8 kB / 460.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005543/0.2563, allocations: 280.6 kB / 460.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/0.257, allocations: 421.8 kB / 461 MB, free: 6.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.2582, allocations: 0.6927 MB / 461.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2582, allocations: 0 / 461.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001571/0.2597, allocations: 0.8344 MB / 462.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.2598, allocations: 8 kB / 462.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2598, allocations: 8.375 kB / 462.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/0.2601, allocations: 64.81 kB / 462.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.2608, allocations: 175.8 kB / 462.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.2625, allocations: 1.799 MB / 464.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/0.263, allocations: 51.95 kB / 464.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.2631, allocations: 31.92 kB / 464.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007194/0.2638, allocations: 441.9 kB / 465.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005827/0.2644, allocations: 409.8 kB / 465.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001069/0.2655, allocations: 0.6694 MB / 466.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.244e-06/0.2655, allocations: 0 / 466.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization_lambda0): time 0.001446/0.2669, allocations: 0.811 MB / 467 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.267, allocations: 4 kB / 467 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.267, allocations: 4 kB / 467 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.2672, allocations: 64.75 kB / 467.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006715/0.2679, allocations: 180.1 kB / 467.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.2693, allocations: 1.811 MB / 469.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.2698, allocations: 48.02 kB / 469.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/0.2698, allocations: 28 kB / 469.1 MB, free: 13.45 MB / 350.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.0001845/0.27, allocations: 216.1 kB / 469.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.2701, allocations: 75.06 kB / 469.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.2718, allocations: 0.7723 MB / 470.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.2718, allocations: 8 kB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.2718, allocations: 0 / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.2718, allocations: 7.984 kB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004052/0.2759, allocations: 2.135 MB / 472.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.2759, allocations: 8 kB / 472.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/0.2765, allocations: 127.8 kB / 472.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001993/0.2767, allocations: 61.25 kB / 472.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.704e-05/0.2768, allocations: 23.98 kB / 472.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/0.2782, allocations: 1.763 MB / 474.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.2782, allocations: 15.92 kB / 474.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002145/0.2804, allocations: 1.319 MB / 475.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.2807, allocations: 200.1 kB / 475.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2808, allocations: 27.98 kB / 475.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.2813, allocations: 51.89 kB / 475.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.2815, allocations: 71.69 kB / 476 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.629e-05/0.2815, allocations: 27.98 kB / 476 MB, free: 6.148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006046/0.2821, allocations: 423 kB / 476.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2821, allocations: 0 / 476.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001073/0.2832, allocations: 252 kB / 476.7 MB, free: 5.492 MB / 350.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.0001696/0.2834, allocations: 127.8 kB / 476.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002426/0.2858, allocations: 1.266 MB / 478.1 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.2859, allocations: 4.125 kB / 478.1 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.2869, allocations: 0.5074 MB / 478.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009284/0.2878, allocations: 177.2 kB / 478.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.2908, allocations: 1.703 MB / 480.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/0.2915, allocations: 0.9861 MB / 481.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005048/0.292, allocations: 153 kB / 481.6 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.2922, allocations: 51.44 kB / 481.6 MB, free: 356 kB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2922, allocations: 0 / 481.6 MB, free: 356 kB / 350.1 MB Notification: Performance of Templates: time 0.01739/0.3096, allocations: 8.532 MB / 490.2 MB, free: 7.828 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (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 & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)