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 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.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.001556/0.001556, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.0018/0.0018, allocations: 192 kB / 18.63 MB, free: 4.375 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.397/1.397, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1744/0.1744, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001654/0.001654, allocations: 75.89 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2161, allocations: 55.25 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007711/0.2238, allocations: 5.465 MB / 437.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003219/0.2271, allocations: 2.312 MB / 439.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006419/0.2278, allocations: 23.88 kB / 439.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009148/0.2287, allocations: 274.2 kB / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007225/0.2294, allocations: 346 kB / 440.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008742/0.2303, allocations: 0.5092 MB / 440.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007494/0.2311, allocations: 1.054 MB / 442 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006739/0.2317, allocations: 0.6153 MB / 442.6 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003781/0.2321, allocations: 406.4 kB / 443 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.2325, allocations: 406.1 kB / 443.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.2326, allocations: 80 kB / 443.5 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004301/0.233, allocations: 359.2 kB / 443.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.2332, allocations: 227.3 kB / 444.1 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.2334, allocations: 393.8 kB / 444.4 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008112/0.2342, allocations: 1.09 MB / 445.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2342, allocations: 4 kB / 445.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2342, allocations: 0 / 445.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.2343, allocations: 0 / 445.5 MB, free: 5.938 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001808/0.2361, allocations: 1.15 MB / 446.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2361, allocations: 11.89 kB / 446.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008323/0.237, allocations: 163.7 kB / 446.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000929/0.2379, allocations: 0.6202 MB / 447.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.238, allocations: 45.69 kB / 447.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.09e-05/0.2381, allocations: 60.38 kB / 447.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.2391, allocations: 0.772 MB / 448.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.2392, allocations: 0 / 448.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.315e-05/0.2392, allocations: 28 kB / 448.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-05/0.2393, allocations: 29.3 kB / 448.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2404, allocations: 0.657 MB / 449.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003575/0.244, allocations: 2.906 MB / 452 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.2455, allocations: 0.7344 MB / 452.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005077/0.246, allocations: 251 kB / 453 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.733e-05/0.2461, allocations: 12.38 kB / 453 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.2461, allocations: 35 kB / 453 MB, free: 14.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/0.2461, allocations: 0 / 453 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.001678/0.2478, allocations: 0.7559 MB / 453.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.2479, allocations: 115.2 kB / 453.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007892/0.2487, allocations: 0.5822 MB / 454.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.161e-05/0.2488, allocations: 37.7 kB / 454.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.249, allocations: 361.1 kB / 454.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.2492, allocations: 177.4 kB / 455 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.2494, allocations: 106.4 kB / 455.1 MB, free: 12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.2496, allocations: 378.8 kB / 455.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005252/0.2501, allocations: 227.4 kB / 455.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005856/0.2507, allocations: 365.5 kB / 456.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.2517, allocations: 0.5821 MB / 456.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.2518, allocations: 4 kB / 456.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001737/0.2535, allocations: 0.8187 MB / 457.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.2535, allocations: 8.406 kB / 457.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.2536, allocations: 8 kB / 457.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004011/0.254, allocations: 112.8 kB / 457.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005851/0.2546, allocations: 139.8 kB / 457.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002891/0.2575, allocations: 2.427 MB / 460.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.258, allocations: 87.33 kB / 460.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.258, allocations: 20 kB / 460.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000727/0.2588, allocations: 385.2 kB / 460.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005222/0.2593, allocations: 353.6 kB / 461 MB, free: 5.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009582/0.2603, allocations: 0.551 MB / 461.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.947e-06/0.2603, allocations: 4 kB / 461.5 MB, free: 5.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001453/0.2617, allocations: 0.733 MB / 462.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2618, allocations: 8 kB / 462.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.2618, allocations: 7.938 kB / 462.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002884/0.2621, allocations: 100.8 kB / 462.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/0.2626, allocations: 140.2 kB / 462.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.2648, allocations: 2.224 MB / 464.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/0.2653, allocations: 75.48 kB / 464.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.2653, allocations: 20 kB / 464.8 MB, free: 1.758 MB / 334.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.0002211/0.2655, allocations: 216.1 kB / 465.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.2657, allocations: 67.16 kB / 465.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.2669, allocations: 0.5968 MB / 465.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.2669, allocations: 8 kB / 465.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2669, allocations: 0 / 465.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.267, allocations: 3.984 kB / 465.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.2692, allocations: 1.365 MB / 467.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.2692, allocations: 0 / 467.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006017/0.2698, allocations: 115.9 kB / 467.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.2698, allocations: 0 / 467.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.2698, allocations: 16 kB / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.2699, allocations: 8.109 kB / 467.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2699, allocations: 3.938 kB / 467.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.2715, allocations: 0.9608 MB / 468.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002591/0.2718, allocations: 188.1 kB / 468.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.56e-05/0.2719, allocations: 12 kB / 468.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.2723, allocations: 47.95 kB / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.2724, allocations: 32.39 kB / 468.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.2725, allocations: 19.98 kB / 468.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005767/0.273, allocations: 419 kB / 468.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2731, allocations: 0 / 468.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009006/0.274, allocations: 279.1 kB / 469.2 MB, free: 13.32 MB / 350.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.0001414/0.2741, allocations: 119.2 kB / 469.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.2764, allocations: 1.136 MB / 470.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2764, allocations: 0 / 470.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.2769, allocations: 270.4 kB / 470.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007298/0.2776, allocations: 154 kB / 470.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.2803, allocations: 1.527 MB / 472.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.2808, allocations: 0.9418 MB / 473.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004161/0.2812, allocations: 132.6 kB / 473.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.2814, allocations: 47.44 kB / 473.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2814, allocations: 0 / 473.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of Templates: time 0.01404/0.2954, allocations: 8.45 MB / 481.9 MB, free: 496 kB / 350.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)