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.0009982/0.0009982, allocations: 94.11 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.001142/0.001142, allocations: 183.6 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.743/1.743, allocations: 205.4 MB / 223.4 MB, free: 5.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.351/0.351, allocations: 38.06 MB / 309.7 MB, free: 8.801 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.0005178/0.0005178, allocations: 16 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1307, allocations: 56.34 MB / 432.9 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006261/0.137, allocations: 4.749 MB / 437.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004812/0.1419, allocations: 2.157 MB / 439.8 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007777/0.1427, allocations: 27.81 kB / 439.9 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004668/0.1432, allocations: 91.27 kB / 439.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009159/0.1441, allocations: 322.9 kB / 440.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008751/0.145, allocations: 307.3 kB / 440.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006306/0.1457, allocations: 0.5079 MB / 441.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000826/0.1465, allocations: 0.5507 MB / 441.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003833/0.1469, allocations: 274.9 kB / 441.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003144/0.1472, allocations: 242.8 kB / 442.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.164e-05/0.1473, allocations: 24 kB / 442.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003685/0.1477, allocations: 151.7 kB / 442.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.1478, allocations: 127.5 kB / 442.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.1479, allocations: 133.4 kB / 442.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006485/0.1486, allocations: 0.6741 MB / 443.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.1486, allocations: 0 / 443.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1486, allocations: 4 kB / 443.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1486, allocations: 0 / 443.2 MB, free: 12.2 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.001756/0.1504, allocations: 0.9331 MB / 444.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1504, allocations: 8.031 kB / 444.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.1506, allocations: 94.52 kB / 444.3 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000839/0.1514, allocations: 155 kB / 444.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008287/0.1522, allocations: 0.5045 MB / 444.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.1523, allocations: 33 kB / 445 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.493e-05/0.1524, allocations: 55.91 kB / 445 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.1535, allocations: 0.6903 MB / 445.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.1536, allocations: 7.938 kB / 445.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-05/0.1536, allocations: 20 kB / 445.7 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.281e-05/0.1537, allocations: 25 kB / 445.7 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.1549, allocations: 0.6323 MB / 446.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003389/0.1583, allocations: 2.688 MB / 449.1 MB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.1598, allocations: 0.6749 MB / 449.7 MB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.1598, allocations: 4.328 kB / 449.7 MB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006174/0.1604, allocations: 311.2 kB / 450.1 MB, free: 5.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.255e-06/0.1605, allocations: 4 kB / 450.1 MB, free: 5.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001762/0.1622, allocations: 0.8001 MB / 450.9 MB, free: 4.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.1623, allocations: 136.7 kB / 451 MB, free: 4.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006502/0.163, allocations: 0.4904 MB / 451.5 MB, free: 3.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.889e-05/0.163, allocations: 37.7 kB / 451.5 MB, free: 3.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.1633, allocations: 307.9 kB / 451.8 MB, free: 3.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.1634, allocations: 142 kB / 452 MB, free: 3.051 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.388e-05/0.1634, allocations: 8 kB / 452 MB, free: 3.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1636, allocations: 370.8 kB / 452.3 MB, free: 2.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.1641, allocations: 197 kB / 452.5 MB, free: 2.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.1646, allocations: 331.2 kB / 452.8 MB, free: 2.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005204/0.1651, allocations: 265.5 kB / 453.1 MB, free: 1.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1652, allocations: 0 / 453.1 MB, free: 1.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001698/0.1669, allocations: 0.8191 MB / 453.9 MB, free: 1.012 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.2606/0.4274, allocations: 1.339 MB / 455.3 MB, free: 50.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.4275, allocations: 4.438 kB / 455.3 MB, free: 50.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007041/0.4282, allocations: 168.1 kB / 455.4 MB, free: 50.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.4286, allocations: 94.36 kB / 455.5 MB, free: 50.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002873/0.4315, allocations: 2.516 MB / 458 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005846/0.4321, allocations: 85.61 kB / 458.1 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.357e-05/0.4322, allocations: 23.14 kB / 458.1 MB, free: 49.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/0.4322, allocations: 3.031 kB / 458.1 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001278/0.4335, allocations: 0.6414 MB / 458.8 MB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4335, allocations: 3.562 kB / 458.8 MB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003217/0.4338, allocations: 127.5 kB / 458.9 MB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.4342, allocations: 100.5 kB / 459 MB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.4364, allocations: 2.272 MB / 461.3 MB, free: 47.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.4369, allocations: 79.48 kB / 461.4 MB, free: 47.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.4369, allocations: 19 kB / 461.4 MB, free: 47.76 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.0004085/0.4374, allocations: 291.9 kB / 461.7 MB, free: 47.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.4375, allocations: 56.38 kB / 461.7 MB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.4386, allocations: 0.534 MB / 462.3 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4386, allocations: 6.094 kB / 462.3 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4386, allocations: 7.781 kB / 462.3 MB, free: 47.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.557e-06/0.4386, allocations: 7.547 kB / 462.3 MB, free: 47.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.4404, allocations: 1.201 MB / 463.5 MB, free: 47.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4404, allocations: 3.219 kB / 463.5 MB, free: 47.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.4408, allocations: 100.2 kB / 463.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.301e-05/0.4409, allocations: 27.3 kB / 463.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.441, allocations: 8.562 kB / 463.6 MB, free: 47.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000801/0.4418, allocations: 1.367 MB / 465 MB, free: 45.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4418, allocations: 0 / 465 MB, free: 45.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.4433, allocations: 0.9136 MB / 465.9 MB, free: 45.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.4435, allocations: 175.5 kB / 466.1 MB, free: 45.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.48e-05/0.4435, allocations: 10.16 kB / 466.1 MB, free: 45.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003811/0.4439, allocations: 61.19 kB / 466.1 MB, free: 45.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.444, allocations: 33.91 kB / 466.2 MB, free: 45.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.4441, allocations: 10.62 kB / 466.2 MB, free: 45.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004771/0.4446, allocations: 355.2 kB / 466.5 MB, free: 45.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.4446, allocations: 0 / 466.5 MB, free: 45.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008967/0.4455, allocations: 247.2 kB / 466.8 MB, free: 45.26 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.00166/0.4471, allocations: 1.606 MB / 468.4 MB, free: 44.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.4491, allocations: 1.16 MB / 469.5 MB, free: 43.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4491, allocations: 0 / 469.5 MB, free: 43.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005368/0.4496, allocations: 362.7 kB / 469.9 MB, free: 43.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005579/0.4502, allocations: 100.9 kB / 470 MB, free: 43.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006437/0.4566, allocations: 6.01 MB / 476 MB, free: 39.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.4571, allocations: 0.9175 MB / 476.9 MB, free: 38.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003598/0.4574, allocations: 102 kB / 477 MB, free: 38.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.4577, allocations: 194.6 kB / 477.2 MB, free: 38.33 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4577, allocations: 0 / 477.2 MB, free: 38.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.4873, allocations: 12.67 MB / 489.9 MB, free: 37.22 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.4876, allocations: 223.6 kB / 490.1 MB, free: 36.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.448, allocations: 3.938 kB / 490.1 MB, free: 36.97 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: