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.001107/0.001107, allocations: 113.5 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.001151/0.001151, allocations: 191 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.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1809/0.1809, allocations: 38 MB / 309.8 MB, free: 5.984 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.001488/0.001488, allocations: 72.45 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2462, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.007845/0.2541, allocations: 5.469 MB / 437.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003709/0.2579, allocations: 2.316 MB / 439.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005201/0.2584, allocations: 23.88 kB / 439.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001013/0.2595, allocations: 280.9 kB / 440.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007752/0.2603, allocations: 342 kB / 440.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.2613, allocations: 0.4988 MB / 440.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.2624, allocations: 1.057 MB / 442 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007485/0.2631, allocations: 0.6231 MB / 442.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.2636, allocations: 402.4 kB / 443 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004334/0.264, allocations: 402.1 kB / 443.4 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-05/0.2641, allocations: 80 kB / 443.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004981/0.2646, allocations: 359.2 kB / 443.8 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.2648, allocations: 231.2 kB / 444.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002428/0.265, allocations: 397.8 kB / 444.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001125/0.2662, allocations: 1.078 MB / 445.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2662, allocations: 8 kB / 445.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2662, allocations: 4 kB / 445.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2662, allocations: 0 / 445.5 MB, free: 5.93 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.001849/0.2681, allocations: 1.145 MB / 446.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2681, allocations: 11.89 kB / 446.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007918/0.2689, allocations: 167.7 kB / 446.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008411/0.2698, allocations: 0.6124 MB / 447.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.737e-05/0.2698, allocations: 49.69 kB / 447.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.738e-05/0.2699, allocations: 60.38 kB / 447.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.271, allocations: 0.7759 MB / 448.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.271, allocations: 0 / 448.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/0.2711, allocations: 24 kB / 448.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/0.2711, allocations: 33.3 kB / 448.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2722, allocations: 0.6531 MB / 449.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003528/0.2757, allocations: 2.906 MB / 452 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.2773, allocations: 0.7422 MB / 452.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.2778, allocations: 251 kB / 453 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.689e-05/0.2778, allocations: 20.36 kB / 453 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.2779, allocations: 35 kB / 453 MB, free: 14.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.265e-06/0.2779, allocations: 0 / 453 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.001699/0.2796, allocations: 0.7481 MB / 453.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.702e-05/0.2797, allocations: 115.2 kB / 453.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008367/0.2805, allocations: 0.5862 MB / 454.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.2806, allocations: 37.7 kB / 454.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000331/0.2809, allocations: 353.1 kB / 454.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.2811, allocations: 177.4 kB / 455 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.2813, allocations: 106.3 kB / 455.1 MB, free: 12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.2816, allocations: 378.8 kB / 455.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005664/0.2821, allocations: 227.4 kB / 455.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007433/0.2829, allocations: 361.5 kB / 456.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/0.2841, allocations: 0.5899 MB / 456.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.2841, allocations: 4 kB / 456.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001942/0.2861, allocations: 0.8148 MB / 457.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.2861, allocations: 8 kB / 457.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2861, allocations: 4 kB / 457.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004146/0.2866, allocations: 109.2 kB / 457.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005733/0.2871, allocations: 143.8 kB / 457.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002873/0.29, allocations: 2.423 MB / 460.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.2905, allocations: 87.33 kB / 460.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.2906, allocations: 28.06 kB / 460.3 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006764/0.2912, allocations: 385.2 kB / 460.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005597/0.2918, allocations: 345.5 kB / 461 MB, free: 5.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009392/0.2928, allocations: 0.5627 MB / 461.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.224e-06/0.2928, allocations: 0 / 461.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001456/0.2942, allocations: 0.7251 MB / 462.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.2943, allocations: 8 kB / 462.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2943, allocations: 8.344 kB / 462.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002822/0.2946, allocations: 108.8 kB / 462.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.2952, allocations: 135.9 kB / 462.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.2973, allocations: 2.225 MB / 464.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/0.2978, allocations: 79.55 kB / 464.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/0.2979, allocations: 24 kB / 464.9 MB, free: 1.742 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.0001982/0.2981, allocations: 215.1 kB / 465.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.2982, allocations: 71.14 kB / 465.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.2994, allocations: 0.5929 MB / 465.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2994, allocations: 4 kB / 465.7 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.2995, allocations: 4 kB / 465.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2995, allocations: 3.984 kB / 465.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.3016, allocations: 1.357 MB / 467.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3016, allocations: 4 kB / 467.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006008/0.3022, allocations: 119.9 kB / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3023, allocations: 0 / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.935e-05/0.3023, allocations: 12 kB / 467.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.199e-06/0.3023, allocations: 4.109 kB / 467.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3023, allocations: 3.938 kB / 467.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.304, allocations: 0.9608 MB / 468.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.3043, allocations: 192.1 kB / 468.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.142e-05/0.3044, allocations: 12 kB / 468.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.3048, allocations: 43.95 kB / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.3049, allocations: 32.39 kB / 468.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.552e-05/0.3049, allocations: 15.98 kB / 468.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006094/0.3056, allocations: 431 kB / 468.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3056, allocations: 0 / 468.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008923/0.3065, allocations: 271.1 kB / 469.2 MB, free: 13.31 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.0001767/0.3067, allocations: 115.2 kB / 469.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.3089, allocations: 1.135 MB / 470.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3089, allocations: 0 / 470.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005564/0.3095, allocations: 279.3 kB / 470.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007626/0.3103, allocations: 143 kB / 470.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.3133, allocations: 1.535 MB / 472.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007779/0.3141, allocations: 0.9418 MB / 473.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004336/0.3146, allocations: 124.6 kB / 473.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.3148, allocations: 47.44 kB / 473.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of SimCode: time 1.153e-06/0.3148, allocations: 0 / 473.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01564/0.3304, allocations: 8.463 MB / 481.9 MB, free: 484 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)