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 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.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.001154/0.001154, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001154/0.001154, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.403/1.403, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1934/0.1934, allocations: 38.02 MB / 329.7 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 62.3 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1088, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007694/0.1165, allocations: 5.616 MB / 462.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004732/0.1213, allocations: 2.614 MB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007823/0.1221, allocations: 23.88 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.1235, allocations: 370 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.1251, allocations: 461.8 kB / 466 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.1265, allocations: 465.6 kB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.128, allocations: 1.045 MB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.1293, allocations: 0.5707 MB / 468.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.1303, allocations: 406.4 kB / 468.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009196/0.1312, allocations: 418.3 kB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003424/0.1316, allocations: 72 kB / 469 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.1328, allocations: 0.4989 MB / 469.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003647/0.1332, allocations: 239.3 kB / 469.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006476/0.1338, allocations: 378.1 kB / 470.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.1356, allocations: 1.067 MB / 471.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1356, allocations: 0 / 471.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1356, allocations: 3.938 kB / 471.1 MB, free: 9.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.52e-05/0.1357, allocations: 0 / 471.1 MB, free: 9.703 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002921/0.1386, allocations: 1.098 MB / 472.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1386, allocations: 15.89 kB / 472.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.1388, allocations: 102.7 kB / 472.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/0.1401, allocations: 183.8 kB / 472.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009971/0.1411, allocations: 0.5326 MB / 473.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.1412, allocations: 45.67 kB / 473.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1413, allocations: 60.28 kB / 473.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.1428, allocations: 0.7903 MB / 474 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.1428, allocations: 0 / 474 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.1429, allocations: 20 kB / 474 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-05/0.1429, allocations: 33.3 kB / 474 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.1444, allocations: 0.735 MB / 474.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/0.1487, allocations: 2.927 MB / 477.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.1501, allocations: 0.5854 MB / 478.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000695/0.1508, allocations: 357.6 kB / 478.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.108e-05/0.1509, allocations: 12.44 kB / 478.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000767/0.1517, allocations: 422.2 kB / 479 MB, free: 1.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.224e-06/0.1517, allocations: 3.938 kB / 479 MB, free: 1.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004573/0.1563, allocations: 2.117 MB / 481.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.1564, allocations: 111.4 kB / 481.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008822/0.1573, allocations: 485.9 kB / 481.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/0.1574, allocations: 37.7 kB / 481.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.1577, allocations: 312.5 kB / 482.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/0.158, allocations: 201.1 kB / 482.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/0.1583, allocations: 110.3 kB / 482.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.1585, allocations: 366.8 kB / 482.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006795/0.1592, allocations: 291.3 kB / 483 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006895/0.1599, allocations: 406.9 kB / 483.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.1612, allocations: 0.7262 MB / 484.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.1612, allocations: 0 / 484.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002289/0.1635, allocations: 1.009 MB / 485.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.34e-05/0.1635, allocations: 33.7 kB / 485.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.1636, allocations: 4 kB / 485.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007144/0.1643, allocations: 189.6 kB / 485.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005146/0.1648, allocations: 115.8 kB / 485.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004917/0.1697, allocations: 4.133 MB / 489.6 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006575/0.1704, allocations: 55.94 kB / 489.7 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.337e-05/0.1705, allocations: 27.92 kB / 489.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008267/0.1713, allocations: 449.3 kB / 490.1 MB, free: 5.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006499/0.172, allocations: 383 kB / 490.5 MB, free: 5.426 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00118/0.1732, allocations: 0.6989 MB / 491.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.437e-06/0.1732, allocations: 4 kB / 491.2 MB, free: 4.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001844/0.1751, allocations: 0.9346 MB / 492.2 MB, free: 3.723 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.1751, allocations: 33.7 kB / 492.2 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1751, allocations: 0 / 492.2 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005076/0.1756, allocations: 173.9 kB / 492.4 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004895/0.1761, allocations: 119.8 kB / 492.5 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003902/0.18, allocations: 3.946 MB / 496.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007119/0.1808, allocations: 56 kB / 496.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.403e-05/0.1809, allocations: 31.98 kB / 496.5 MB, free: 15.08 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002811/0.1812, allocations: 215.1 kB / 496.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.1813, allocations: 59.28 kB / 496.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.1831, allocations: 0.8188 MB / 497.6 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.1832, allocations: 8 kB / 497.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1832, allocations: 0 / 497.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.1832, allocations: 3.938 kB / 497.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.1861, allocations: 1.671 MB / 499.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.1861, allocations: 4 kB / 499.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.1867, allocations: 127.8 kB / 499.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.1869, allocations: 73.8 kB / 499.5 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.187, allocations: 12 kB / 499.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/0.1891, allocations: 2.891 MB / 0.4906 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.1891, allocations: 7.875 kB / 0.4906 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.1914, allocations: 1.302 MB / 0.4919 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.1917, allocations: 192.3 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.621e-05/0.1918, allocations: 12 kB / 0.4921 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000518/0.1923, allocations: 67.92 kB / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.1925, allocations: 52.44 kB / 0.4922 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/0.1925, allocations: 16 kB / 0.4922 GB, free: 7.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005781/0.1931, allocations: 346.8 kB / 0.4925 GB, free: 6.781 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1931, allocations: 4 kB / 0.4925 GB, free: 6.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001098/0.1942, allocations: 260 kB / 0.4928 GB, free: 6.523 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002744/0.197, allocations: 1.866 MB / 0.4946 GB, free: 4.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003489/0.2005, allocations: 1.836 MB / 0.4964 GB, free: 2.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.2005, allocations: 4 kB / 0.4964 GB, free: 2.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.2016, allocations: 0.6103 MB / 0.497 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008347/0.2024, allocations: 122.9 kB / 0.4971 GB, free: 1.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.2132, allocations: 6.468 MB / 0.5034 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.2138, allocations: 0.9469 MB / 0.5044 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.2143, allocations: 152.5 kB / 0.5045 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.2147, allocations: 227.4 kB / 0.5047 GB, free: 9.883 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2147, allocations: 3.938 kB / 0.5047 GB, free: 9.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2264/0.4411, allocations: 15.96 MB / 0.5203 GB, free: 69.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.21, allocations: 5.453 kB / 0.5203 GB, free: 69.8 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)