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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008978/0.0008979, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001022/0.001022, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.777/1.777, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3363/0.3363, allocations: 38.05 MB / 309.7 MB, free: 8.828 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.0005613/0.0005616, allocations: 15.98 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1362, allocations: 56.33 MB / 433 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006521/0.1428, allocations: 4.884 MB / 437.8 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003961/0.1468, allocations: 2.184 MB / 440 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004654/0.1473, allocations: 27.81 kB / 440.1 MB, free: 15.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005348/0.1479, allocations: 99.19 kB / 440.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007063/0.1486, allocations: 282.4 kB / 440.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008229/0.1494, allocations: 287.4 kB / 440.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009265/0.1503, allocations: 0.8774 MB / 441.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.1514, allocations: 0.5507 MB / 442.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.1518, allocations: 266.8 kB / 442.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/0.1522, allocations: 294.6 kB / 442.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.521e-05/0.1523, allocations: 24 kB / 442.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003474/0.1526, allocations: 159.6 kB / 442.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.1528, allocations: 135.5 kB / 443 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.1529, allocations: 133.4 kB / 443.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007629/0.1537, allocations: 0.6857 MB / 443.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.1537, allocations: 0 / 443.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1537, allocations: 0 / 443.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1537, allocations: 0 / 443.8 MB, free: 11.66 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.001738/0.1555, allocations: 0.9332 MB / 444.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1555, allocations: 8.031 kB / 444.7 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.1557, allocations: 98.5 kB / 444.8 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007695/0.1564, allocations: 143 kB / 445 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000885/0.1573, allocations: 0.5005 MB / 445.5 MB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.1574, allocations: 41 kB / 445.5 MB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.1575, allocations: 55.91 kB / 445.6 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.1589, allocations: 0.6903 MB / 446.3 MB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.1589, allocations: 3.953 kB / 446.3 MB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.159, allocations: 20 kB / 446.3 MB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.032e-05/0.159, allocations: 28.98 kB / 446.3 MB, free: 9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.1603, allocations: 0.6323 MB / 447 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003614/0.1639, allocations: 2.7 MB / 449.7 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.1652, allocations: 0.6396 MB / 450.3 MB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004563/0.1656, allocations: 222.3 kB / 450.5 MB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-05/0.1657, allocations: 8.312 kB / 450.5 MB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006176/0.1663, allocations: 321.8 kB / 450.8 MB, free: 4.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.1663, allocations: 0 / 450.8 MB, free: 4.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001712/0.168, allocations: 0.7953 MB / 451.6 MB, free: 3.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.1681, allocations: 148.6 kB / 451.8 MB, free: 3.285 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006576/0.1688, allocations: 498.2 kB / 452.3 MB, free: 2.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.1689, allocations: 37.69 kB / 452.3 MB, free: 2.742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.1691, allocations: 303.9 kB / 452.6 MB, free: 2.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.1692, allocations: 142 kB / 452.7 MB, free: 2.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.1693, allocations: 4 kB / 452.7 MB, free: 2.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1694, allocations: 366.8 kB / 453.1 MB, free: 1.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.1699, allocations: 205 kB / 453.3 MB, free: 1.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005344/0.1704, allocations: 323.2 kB / 453.6 MB, free: 1.371 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000494/0.1709, allocations: 265.5 kB / 453.9 MB, free: 1.105 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1709, allocations: 0 / 453.9 MB, free: 1.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00163/0.1726, allocations: 0.823 MB / 454.7 MB, free: 272 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.1727, allocations: 215 kB / 454.9 MB, free: 0 / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.262/0.4347, allocations: 3.578 kB / 454.9 MB, free: 51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006954/0.4355, allocations: 167.9 kB / 455.1 MB, free: 51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.4359, allocations: 95.38 kB / 455.2 MB, free: 51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002603/0.4385, allocations: 2.467 MB / 457.6 MB, free: 49.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004937/0.4391, allocations: 87.17 kB / 457.7 MB, free: 49.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.4391, allocations: 24.81 kB / 457.7 MB, free: 49.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.328e-06/0.4391, allocations: 3.938 kB / 457.7 MB, free: 49.69 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001172/0.4403, allocations: 0.6402 MB / 458.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4403, allocations: 6.984 kB / 458.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000296/0.4406, allocations: 131.4 kB / 458.5 MB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.4409, allocations: 96.39 kB / 458.6 MB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.443, allocations: 2.233 MB / 460.8 MB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.4434, allocations: 78.03 kB / 460.9 MB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.4434, allocations: 17.25 kB / 460.9 MB, free: 48.29 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.0003196/0.4438, allocations: 304.4 kB / 461.2 MB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.286e-05/0.4438, allocations: 52.56 kB / 461.3 MB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009635/0.4448, allocations: 0.5373 MB / 461.8 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.4448, allocations: 10.56 kB / 461.8 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.4448, allocations: 0 / 461.8 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.4449, allocations: 10.52 kB / 461.8 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.4465, allocations: 1.197 MB / 463 MB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.4465, allocations: 7.078 kB / 463 MB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.4469, allocations: 91.03 kB / 463.1 MB, free: 47.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.463e-05/0.447, allocations: 27.23 kB / 463.2 MB, free: 47.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.873e-05/0.4471, allocations: 11.36 kB / 463.2 MB, free: 47.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007434/0.4478, allocations: 1.358 MB / 464.5 MB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4478, allocations: 0 / 464.5 MB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.4492, allocations: 0.8958 MB / 465.4 MB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.4493, allocations: 173.6 kB / 465.6 MB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.502e-05/0.4494, allocations: 14.25 kB / 465.6 MB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003434/0.4497, allocations: 47.92 kB / 465.7 MB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.4498, allocations: 37.42 kB / 465.7 MB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.4499, allocations: 17.53 kB / 465.7 MB, free: 46.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004506/0.4503, allocations: 355 kB / 466.1 MB, free: 45.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4504, allocations: 3 kB / 466.1 MB, free: 45.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008234/0.4512, allocations: 245.8 kB / 466.3 MB, free: 45.89 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.001596/0.4528, allocations: 1.439 MB / 467.7 MB, free: 44.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.4546, allocations: 1.165 MB / 468.9 MB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4546, allocations: 0 / 468.9 MB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005112/0.4551, allocations: 366.9 kB / 469.3 MB, free: 44.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006115/0.4557, allocations: 112.5 kB / 469.4 MB, free: 44.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/0.4615, allocations: 3.927 MB / 473.3 MB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.4618, allocations: 0.901 MB / 474.2 MB, free: 41.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003745/0.4622, allocations: 98.3 kB / 474.3 MB, free: 41.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.4625, allocations: 203.7 kB / 474.5 MB, free: 41.22 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4625, allocations: 0 / 474.5 MB, free: 41.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.4892, allocations: 12.69 MB / 487.2 MB, free: 40.1 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000265/0.4896, allocations: 225.7 kB / 487.4 MB, free: 39.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.567, allocations: 4 kB / 487.4 MB, free: 39.85 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) Environment - environmentSimulation: