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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> 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.001098/0.001097, allocations: 109.5 kB / 16.92 MB, free: 6.145 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.001121/0.001121, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.36/1.36, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1747/0.1747, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 64.88 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1121, allocations: 58.07 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.008119/0.1202, allocations: 5.124 MB / 462.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003815/0.1241, allocations: 2.136 MB / 464.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006948/0.1248, allocations: 23.88 kB / 464.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.126, allocations: 256.4 kB / 464.5 MB, free: 368 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001044/0.1271, allocations: 334.1 kB / 464.8 MB, free: 32 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.1281, allocations: 414.6 kB / 465.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.1292, allocations: 0.9048 MB / 466.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008141/0.13, allocations: 0.5122 MB / 466.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005597/0.1306, allocations: 338.7 kB / 467 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005391/0.1312, allocations: 354.4 kB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.1313, allocations: 68 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005614/0.1319, allocations: 343.2 kB / 467.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.1321, allocations: 187.4 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003478/0.1324, allocations: 338.2 kB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009475/0.1334, allocations: 0.9074 MB / 469.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1334, allocations: 0 / 469.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1334, allocations: 0 / 469.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.1335, allocations: 0 / 469.2 MB, free: 11.69 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002111/0.1356, allocations: 1.034 MB / 470.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.1356, allocations: 11.89 kB / 470.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.1358, allocations: 90.64 kB / 470.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008932/0.1367, allocations: 148 kB / 470.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009516/0.1376, allocations: 0.5092 MB / 470.9 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.1377, allocations: 37.36 kB / 471 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.1378, allocations: 48.38 kB / 471 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.1391, allocations: 0.6747 MB / 471.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.1392, allocations: 7.938 kB / 471.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.1393, allocations: 23.98 kB / 471.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.813e-05/0.1393, allocations: 24.98 kB / 471.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.1407, allocations: 0.6049 MB / 472.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003851/0.1446, allocations: 2.7 MB / 475.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.1459, allocations: 0.6092 MB / 475.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004649/0.1464, allocations: 214.2 kB / 475.9 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.1465, allocations: 4.328 kB / 475.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006035/0.1471, allocations: 297.7 kB / 476.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.835e-06/0.1471, allocations: 0 / 476.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001858/0.149, allocations: 0.7523 MB / 476.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.1491, allocations: 132.5 kB / 477.1 MB, free: 3.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007183/0.1498, allocations: 0.4943 MB / 477.6 MB, free: 2.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.1498, allocations: 33.86 kB / 477.6 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/0.1501, allocations: 307.9 kB / 477.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.1502, allocations: 138 kB / 478 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.1504, allocations: 90.16 kB / 478.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1505, allocations: 366.8 kB / 478.5 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.151, allocations: 194.9 kB / 478.7 MB, free: 1.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005525/0.1516, allocations: 311.2 kB / 479 MB, free: 1.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.1526, allocations: 0.5255 MB / 479.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1527, allocations: 0 / 479.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001978/0.1546, allocations: 0.7721 MB / 480.3 MB, free: 24 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.459e-05/0.1547, allocations: 37.7 kB / 480.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.1548, allocations: 4 kB / 480.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000629/0.1554, allocations: 137 kB / 480.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004196/0.1558, allocations: 91.88 kB / 480.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/0.1594, allocations: 2.654 MB / 483.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005988/0.1601, allocations: 83.38 kB / 483.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.472e-05/0.1601, allocations: 16 kB / 483.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000774/0.1609, allocations: 337.1 kB / 483.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005305/0.1615, allocations: 299.2 kB / 483.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009389/0.1624, allocations: 0.5025 MB / 484.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.196e-06/0.1624, allocations: 4 kB / 484.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001473/0.1639, allocations: 0.6825 MB / 485.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.164, allocations: 33.7 kB / 485.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.164, allocations: 4 kB / 485.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003618/0.1643, allocations: 132.2 kB / 485.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.1647, allocations: 91.77 kB / 485.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.1674, allocations: 2.444 MB / 487.8 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000536/0.1679, allocations: 59.64 kB / 487.8 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.662e-05/0.168, allocations: 23.98 kB / 487.9 MB, free: 8.004 MB / 366.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,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,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 (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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.1682, allocations: 220.9 kB / 488.1 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.1683, allocations: 55.41 kB / 488.1 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.1696, allocations: 0.5158 MB / 488.6 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1696, allocations: 4 kB / 488.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1696, allocations: 0 / 488.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1696, allocations: 3.984 kB / 488.7 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/0.1716, allocations: 1.182 MB / 489.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1716, allocations: 0 / 489.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.1721, allocations: 91.88 kB / 489.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.1722, allocations: 28.84 kB / 490 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.1722, allocations: 12 kB / 490 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.1733, allocations: 1.449 MB / 491.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.1733, allocations: 3.938 kB / 491.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.175, allocations: 0.8528 MB / 492.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002481/0.1753, allocations: 168.4 kB / 492.4 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.849e-05/0.1754, allocations: 11.94 kB / 492.5 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.1758, allocations: 35.95 kB / 492.5 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.1759, allocations: 35.95 kB / 492.5 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.176, allocations: 16 kB / 492.5 MB, free: 3.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000575/0.1766, allocations: 358.8 kB / 492.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1766, allocations: 0 / 492.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009037/0.1775, allocations: 247.4 kB / 493.1 MB, free: 2.473 MB / 366.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 (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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001932/0.1794, allocations: 1.394 MB / 494.5 MB, free: 1.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002404/0.1818, allocations: 1.173 MB / 495.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.1819, allocations: 4 kB / 495.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006559/0.1825, allocations: 351.5 kB / 496 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007834/0.1833, allocations: 128.7 kB / 496.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009299/0.1926, allocations: 5.529 MB / 0.4899 GB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.1931, allocations: 0.9017 MB / 0.4908 GB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003814/0.1935, allocations: 108.3 kB / 0.4909 GB, free: 8.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.1938, allocations: 195.4 kB / 0.4911 GB, free: 8.391 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1938, allocations: 0 / 0.4911 GB, free: 8.391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.2351, allocations: 13.62 MB / 0.5044 GB, free: 10.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.68, allocations: 3.625 kB / 0.5044 GB, free: 10.93 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)