Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009471/0.0009472, allocations: 95.28 kB / 16.3 MB, free: 5.996 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.001195/0.001195, allocations: 184 kB / 17.2 MB, free: 5.914 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.581/1.581, allocations: 205.4 MB / 223.4 MB, free: 5.785 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3139/0.3139, allocations: 38.05 MB / 309.7 MB, free: 8.82 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.0004951/0.0004951, allocations: 22.17 kB / 376.5 MB, free: 15.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1373, allocations: 56.33 MB / 432.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005796/0.1432, allocations: 4.745 MB / 437.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003647/0.1469, allocations: 2.161 MB / 439.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005209/0.1474, allocations: 27.81 kB / 439.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004478/0.1479, allocations: 95.23 kB / 439.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000858/0.1488, allocations: 310.9 kB / 440.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008528/0.1496, allocations: 315.4 kB / 440.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000822/0.1505, allocations: 0.5078 MB / 441 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008409/0.1513, allocations: 0.539 MB / 441.5 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004286/0.1518, allocations: 262.9 kB / 441.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.1521, allocations: 246.8 kB / 442 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/0.1522, allocations: 28 kB / 442 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003589/0.1525, allocations: 163.7 kB / 442.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.1527, allocations: 131.5 kB / 442.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.1528, allocations: 133.3 kB / 442.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006348/0.1534, allocations: 0.6741 MB / 443.1 MB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1534, allocations: 0 / 443.1 MB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1534, allocations: 0 / 443.1 MB, free: 12.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1535, allocations: 0 / 443.1 MB, free: 12.47 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001736/0.1552, allocations: 0.9293 MB / 444.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.1552, allocations: 8.031 kB / 444.1 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008411/0.1561, allocations: 155 kB / 444.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008194/0.1569, allocations: 0.5083 MB / 444.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.157, allocations: 37 kB / 444.8 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.354e-05/0.1571, allocations: 51.91 kB / 444.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.1583, allocations: 0.6786 MB / 445.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/0.1583, allocations: 11.95 kB / 445.5 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.357e-05/0.1584, allocations: 24 kB / 445.5 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.281e-05/0.1584, allocations: 24.98 kB / 445.5 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.1596, allocations: 0.6284 MB / 446.2 MB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0033/0.1629, allocations: 2.704 MB / 448.9 MB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.1643, allocations: 0.6709 MB / 449.6 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.1644, allocations: 8.312 kB / 449.6 MB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005934/0.165, allocations: 311.2 kB / 449.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 3.457e-06/0.165, allocations: 4 kB / 449.9 MB, free: 5.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001699/0.1667, allocations: 0.8041 MB / 450.7 MB, free: 4.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.482e-05/0.1668, allocations: 132.5 kB / 450.8 MB, free: 4.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006485/0.1674, allocations: 0.4944 MB / 451.3 MB, free: 3.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.1675, allocations: 37.7 kB / 451.3 MB, free: 3.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.1677, allocations: 303.9 kB / 451.6 MB, free: 3.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1679, allocations: 138 kB / 451.8 MB, free: 3.418 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/0.1679, allocations: 8 kB / 451.8 MB, free: 3.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1681, allocations: 366.8 kB / 452.1 MB, free: 3.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004527/0.1685, allocations: 205 kB / 452.3 MB, free: 2.844 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005247/0.1691, allocations: 323.2 kB / 452.6 MB, free: 2.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005055/0.1696, allocations: 265.6 kB / 452.9 MB, free: 2.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1696, allocations: 0 / 452.9 MB, free: 2.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001618/0.1712, allocations: 0.823 MB / 453.7 MB, free: 1.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.23/0.4012, allocations: 1.334 MB / 455.1 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/0.4013, allocations: 3.031 kB / 455.1 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007287/0.402, allocations: 161 kB / 455.2 MB, free: 50.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004623/0.4025, allocations: 102.8 kB / 455.3 MB, free: 50.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002771/0.4053, allocations: 2.518 MB / 457.8 MB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005644/0.4059, allocations: 88.98 kB / 457.9 MB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.02e-05/0.4059, allocations: 20.72 kB / 457.9 MB, free: 49.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.867e-06/0.4059, allocations: 3.031 kB / 458 MB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001178/0.4071, allocations: 0.6468 MB / 458.6 MB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.4071, allocations: 2.969 kB / 458.6 MB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003051/0.4075, allocations: 126.5 kB / 458.7 MB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.4078, allocations: 106.3 kB / 458.8 MB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.4097, allocations: 2.26 MB / 461.1 MB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.4102, allocations: 77.77 kB / 461.2 MB, free: 48.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.4103, allocations: 22.92 kB / 461.2 MB, free: 48.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003382/0.4106, allocations: 280.9 kB / 461.5 MB, free: 47.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-05/0.4107, allocations: 64.58 kB / 461.5 MB, free: 47.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.4118, allocations: 0.5416 MB / 462.1 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4118, allocations: 6.594 kB / 462.1 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4118, allocations: 3.562 kB / 462.1 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.4118, allocations: 7.219 kB / 462.1 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.4135, allocations: 1.198 MB / 463.3 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.4136, allocations: 9.141 kB / 463.3 MB, free: 47.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004137/0.414, allocations: 91.91 kB / 463.4 MB, free: 47.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/0.4141, allocations: 33.88 kB / 463.4 MB, free: 47.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.4141, allocations: 11.11 kB / 463.4 MB, free: 47.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007637/0.4149, allocations: 1.363 MB / 464.8 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4149, allocations: 0.75 kB / 464.8 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.4164, allocations: 0.9119 MB / 465.7 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.4166, allocations: 181.2 kB / 465.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.627e-05/0.4166, allocations: 13.28 kB / 465.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.417, allocations: 51.64 kB / 465.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.088e-05/0.4171, allocations: 40.53 kB / 466 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.4172, allocations: 6.75 kB / 466 MB, free: 45.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.4176, allocations: 355.6 kB / 466.3 MB, free: 45.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4176, allocations: 0 / 466.3 MB, free: 45.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008575/0.4185, allocations: 250.9 kB / 466.6 MB, free: 45.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001328/0.4186, allocations: 118 kB / 466.7 MB, free: 45.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.4204, allocations: 1.159 MB / 467.9 MB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4204, allocations: 0 / 467.9 MB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005128/0.4209, allocations: 364.1 kB / 468.2 MB, free: 44.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005447/0.4214, allocations: 99.45 kB / 468.3 MB, free: 44.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.4233, allocations: 1.473 MB / 469.8 MB, free: 43.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.4236, allocations: 0.915 MB / 470.7 MB, free: 43.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.4239, allocations: 105.7 kB / 470.8 MB, free: 43.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.424, allocations: 33.19 kB / 470.8 MB, free: 43.08 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.424, allocations: 1.312 kB / 470.8 MB, free: 43.08 MB / 382.1 MB Notification: Performance of Templates: time 0.01167/0.4357, allocations: 7.378 MB / 478.2 MB, free: 42.52 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) Environment - environmentSimulation: