Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.001698/0.001698, allocations: 191 kB / 18.63 MB, free: 4.512 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.395/1.395, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1717/0.1717, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 65.45 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1355, allocations: 58.05 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.009998/0.1455, allocations: 5.423 MB / 463.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00518/0.1508, allocations: 2.253 MB / 466 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006518/0.1514, allocations: 23.88 kB / 466 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.1527, allocations: 274.2 kB / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.1538, allocations: 342 kB / 466.6 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.1553, allocations: 0.4984 MB / 467.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00172/0.1571, allocations: 1.05 MB / 468.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001241/0.1583, allocations: 0.6074 MB / 468.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006711/0.159, allocations: 398.4 kB / 469.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007251/0.1598, allocations: 402.1 kB / 469.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001987/0.16, allocations: 80 kB / 469.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008197/0.1608, allocations: 355.3 kB / 470 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002974/0.1611, allocations: 219.2 kB / 470.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.1616, allocations: 386 kB / 470.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00154/0.1632, allocations: 1.082 MB / 471.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1632, allocations: 0 / 471.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1632, allocations: 0 / 471.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1632, allocations: 3.938 kB / 471.7 MB, free: 9.938 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.002534/0.1658, allocations: 1.12 MB / 472.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1658, allocations: 11.89 kB / 472.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009674/0.1668, allocations: 159.8 kB / 472.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.1678, allocations: 0.6046 MB / 473.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.831e-05/0.1679, allocations: 53.67 kB / 473.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.168, allocations: 60.38 kB / 473.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.1693, allocations: 0.7603 MB / 474.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.1693, allocations: 0 / 474.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.918e-05/0.1694, allocations: 27.98 kB / 474.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-05/0.1694, allocations: 37.23 kB / 474.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.1706, allocations: 0.6297 MB / 475.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003856/0.1745, allocations: 2.883 MB / 478 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.1758, allocations: 0.711 MB / 478.7 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.1762, allocations: 227 kB / 478.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.126e-05/0.1763, allocations: 12.38 kB / 478.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.1763, allocations: 47.03 kB / 479 MB, free: 2.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.064e-06/0.1763, allocations: 0 / 479 MB, free: 2.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001479/0.1778, allocations: 0.6943 MB / 479.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.288e-05/0.1779, allocations: 115.2 kB / 479.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000739/0.1786, allocations: 0.5821 MB / 480.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.1787, allocations: 37.7 kB / 480.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.1789, allocations: 348.5 kB / 480.8 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.1791, allocations: 177.5 kB / 480.9 MB, free: 320 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.1792, allocations: 106.1 kB / 481 MB, free: 208 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1794, allocations: 374.8 kB / 481.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.1799, allocations: 211 kB / 481.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/0.1804, allocations: 344.5 kB / 481.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009468/0.1814, allocations: 0.549 MB / 482.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.1814, allocations: 7.938 kB / 482.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001601/0.183, allocations: 0.7807 MB / 483.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.183, allocations: 4 kB / 483.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.183, allocations: 4 kB / 483.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004004/0.1834, allocations: 117.2 kB / 483.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.184, allocations: 131.8 kB / 483.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002865/0.1869, allocations: 2.424 MB / 486 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004407/0.1873, allocations: 79.28 kB / 486 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.1874, allocations: 28.05 kB / 486.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006097/0.188, allocations: 365.2 kB / 486.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004832/0.1885, allocations: 328.4 kB / 486.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008803/0.1894, allocations: 0.5294 MB / 487.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.184e-06/0.1894, allocations: 4 kB / 487.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.00128/0.1907, allocations: 0.7026 MB / 488 MB, free: 8.879 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.1907, allocations: 8 kB / 488 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1907, allocations: 4 kB / 488 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.191, allocations: 100.8 kB / 488.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000529/0.1915, allocations: 136.2 kB / 488.2 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.1937, allocations: 2.213 MB / 490.4 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.1942, allocations: 67.5 kB / 490.5 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.1942, allocations: 20 kB / 490.5 MB, free: 6.195 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 (60): * Single equations (assignments): 59 * 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.0001793/0.1944, allocations: 214.3 kB / 490.7 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.1945, allocations: 71.09 kB / 490.8 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.1957, allocations: 0.5693 MB / 491.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1957, allocations: 4 kB / 491.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.1957, allocations: 0 / 491.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.934e-06/0.1958, allocations: 3.984 kB / 491.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.1979, allocations: 1.314 MB / 492.7 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.1979, allocations: 4.109 kB / 492.7 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005699/0.1985, allocations: 115.8 kB / 492.8 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.1985, allocations: 4 kB / 492.8 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.1985, allocations: 12 kB / 492.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1985, allocations: 4 kB / 492.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1985, allocations: 192 / 492.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.2001, allocations: 0.9141 MB / 493.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.2004, allocations: 196.1 kB / 493.9 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.2005, allocations: 8 kB / 493.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003854/0.2009, allocations: 31.97 kB / 494 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.603e-05/0.201, allocations: 40.38 kB / 494 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.201, allocations: 12 kB / 494 MB, free: 2.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006035/0.2016, allocations: 427 kB / 494.4 MB, free: 2.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2016, allocations: 0 / 494.4 MB, free: 2.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008944/0.2025, allocations: 267.2 kB / 494.7 MB, free: 1.91 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 (50): * Single equations (assignments): 49 * 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.000133/0.2027, allocations: 107.3 kB / 494.8 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002033/0.2047, allocations: 1.1 MB / 495.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2047, allocations: 0 / 495.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004936/0.2052, allocations: 258.3 kB / 496.1 MB, free: 432 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007248/0.206, allocations: 148.9 kB / 496.3 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.2088, allocations: 1.499 MB / 497.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.2094, allocations: 0.9456 MB / 498.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004077/0.2098, allocations: 124.6 kB / 498.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.2099, allocations: 47.42 kB / 498.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.793e-06/0.2099, allocations: 4 kB / 498.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of Templates: time 0.01538/0.2253, allocations: 8.234 MB / 0.4953 GB, free: 5.426 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)