Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",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.001114/0.001114, allocations: 94.64 kB / 16.3 MB, free: 5.992 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.001348/0.001348, allocations: 181.4 kB / 17.2 MB, free: 5.906 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.767/1.767, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.363/0.363, allocations: 38.05 MB / 309.7 MB, free: 9.062 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.0005409/0.0005409, allocations: 12 kB / 376.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1459, allocations: 56.34 MB / 432.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006319/0.1523, allocations: 5.323 MB / 438.2 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004665/0.157, allocations: 2.647 MB / 440.9 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009146/0.158, allocations: 35.75 kB / 440.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005152/0.1585, allocations: 107.2 kB / 441 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.1597, allocations: 402.6 kB / 441.4 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1608, allocations: 363.2 kB / 441.8 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008992/0.1617, allocations: 0.5702 MB / 442.3 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.1628, allocations: 0.6404 MB / 443 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004737/0.1633, allocations: 306.8 kB / 443.3 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003663/0.1636, allocations: 290.6 kB / 443.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.037e-05/0.1637, allocations: 28 kB / 443.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006238/0.1643, allocations: 247.5 kB / 443.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.1645, allocations: 159.5 kB / 444 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.1647, allocations: 149.3 kB / 444.1 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007724/0.1654, allocations: 0.787 MB / 444.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1654, allocations: 0 / 444.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1655, allocations: 4 kB / 444.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.1655, allocations: 0 / 444.9 MB, free: 10.65 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001842/0.1673, allocations: 0.9965 MB / 445.9 MB, free: 9.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1674, allocations: 12.03 kB / 445.9 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.1675, allocations: 110.4 kB / 446.1 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.1687, allocations: 194.9 kB / 446.2 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009058/0.1697, allocations: 0.5239 MB / 446.8 MB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/0.1697, allocations: 49.3 kB / 446.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.974e-05/0.1698, allocations: 52 kB / 446.9 MB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.1711, allocations: 0.802 MB / 447.7 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.1712, allocations: 0 / 447.7 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/0.1712, allocations: 24 kB / 447.7 MB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-05/0.1713, allocations: 33.3 kB / 447.7 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.1728, allocations: 0.7623 MB / 448.5 MB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00434/0.1772, allocations: 2.935 MB / 451.4 MB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.1786, allocations: 0.6159 MB / 452 MB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.946e-05/0.1786, allocations: 16.38 kB / 452.1 MB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007926/0.1794, allocations: 430.2 kB / 452.5 MB, free: 2.809 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.485e-06/0.1794, allocations: 3.938 kB / 452.5 MB, free: 2.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004324/0.1838, allocations: 2.211 MB / 454.7 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/0.1839, allocations: 115.4 kB / 454.8 MB, free: 384 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2402/0.4241, allocations: 483.3 kB / 455.3 MB, free: 51.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.4243, allocations: 37.3 kB / 455.3 MB, free: 51.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.4245, allocations: 315.4 kB / 455.6 MB, free: 51.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.4247, allocations: 202.7 kB / 455.8 MB, free: 51.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/0.4247, allocations: 7.875 kB / 455.8 MB, free: 51.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.122e-05/0.4248, allocations: 374.8 kB / 456.2 MB, free: 50.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.4254, allocations: 294.5 kB / 456.5 MB, free: 50.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000548/0.426, allocations: 416 kB / 456.9 MB, free: 50.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.4266, allocations: 370.5 kB / 457.2 MB, free: 50.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4266, allocations: 0 / 457.2 MB, free: 50.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002029/0.4286, allocations: 1.064 MB / 458.3 MB, free: 50.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001862/0.4288, allocations: 1.08 MB / 459.4 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4289, allocations: 0 / 459.4 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006101/0.4295, allocations: 209.6 kB / 459.6 MB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004566/0.4299, allocations: 124.5 kB / 459.7 MB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003392/0.4333, allocations: 3.904 MB / 463.6 MB, free: 46.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000506/0.4339, allocations: 63.56 kB / 463.7 MB, free: 46.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.413e-05/0.4339, allocations: 27.11 kB / 463.7 MB, free: 46.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/0.4339, allocations: 6 kB / 463.7 MB, free: 46.86 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001501/0.4354, allocations: 0.8877 MB / 464.6 MB, free: 46.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.4355, allocations: 3.375 kB / 464.6 MB, free: 46.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/0.4359, allocations: 165.1 kB / 464.8 MB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.4363, allocations: 122.8 kB / 464.9 MB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002553/0.4389, allocations: 3.664 MB / 468.5 MB, free: 43.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004833/0.4394, allocations: 65.09 kB / 468.6 MB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.4394, allocations: 29.42 kB / 468.6 MB, free: 43.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.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 (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003243/0.4398, allocations: 303.7 kB / 468.9 MB, free: 43.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.156e-05/0.4399, allocations: 56.62 kB / 469 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.4413, allocations: 0.8554 MB / 469.8 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.4413, allocations: 6.719 kB / 469.9 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4413, allocations: 0 / 469.9 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4413, allocations: 3.328 kB / 469.9 MB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.4436, allocations: 1.707 MB / 471.6 MB, free: 42.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4436, allocations: 3.5 kB / 471.6 MB, free: 42.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000554/0.4441, allocations: 130.9 kB / 471.7 MB, free: 42.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/0.4444, allocations: 75.34 kB / 471.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.4444, allocations: 13.84 kB / 471.8 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.4458, allocations: 2.702 MB / 474.5 MB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4458, allocations: 9.984 kB / 474.5 MB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.4478, allocations: 1.416 MB / 475.9 MB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000247/0.4481, allocations: 199.5 kB / 476.1 MB, free: 38.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.655e-05/0.4481, allocations: 24.81 kB / 476.1 MB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004697/0.4486, allocations: 65.7 kB / 476.2 MB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4488, allocations: 56.62 kB / 476.2 MB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.4488, allocations: 20.61 kB / 476.3 MB, free: 38.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004749/0.4493, allocations: 342 kB / 476.6 MB, free: 38.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4493, allocations: 0 / 476.6 MB, free: 38.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001041/0.4503, allocations: 261 kB / 476.9 MB, free: 38.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002243/0.4526, allocations: 2.464 MB / 479.3 MB, free: 36.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002705/0.4553, allocations: 1.773 MB / 481.1 MB, free: 35.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4553, allocations: 0 / 481.1 MB, free: 35.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008226/0.4562, allocations: 0.6213 MB / 481.7 MB, free: 35.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005756/0.4567, allocations: 111.5 kB / 481.8 MB, free: 35.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007288/0.464, allocations: 6.274 MB / 488.1 MB, free: 31.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.4645, allocations: 0.9676 MB / 489.1 MB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004385/0.4649, allocations: 154 kB / 489.2 MB, free: 30.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/0.4653, allocations: 231.4 kB / 489.4 MB, free: 30.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4653, allocations: 0 / 489.4 MB, free: 30.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.4977, allocations: 14.86 MB / 0.4925 GB, free: 29.19 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/0.4979, allocations: 221.6 kB / 0.4927 GB, free: 28.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.539, allocations: 4 kB / 0.4927 GB, free: 28.94 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) Environment - environmentSimulation: