Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_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.001491/0.001491, 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.001664/0.001664, 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.363/1.363, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.179/0.179, allocations: 38.03 MB / 329.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001399, allocations: 59.12 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1013, allocations: 58.07 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.008308/0.1097, allocations: 5.608 MB / 462.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004633/0.1143, allocations: 2.617 MB / 465.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006924/0.1151, allocations: 27.81 kB / 465.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.1165, allocations: 358.1 kB / 465.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001637/0.1182, allocations: 465.7 kB / 466 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.1195, allocations: 455.7 kB / 466.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.121, allocations: 1.061 MB / 467.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009248/0.1219, allocations: 0.5551 MB / 468.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000708/0.1226, allocations: 406.4 kB / 468.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000809/0.1235, allocations: 430.2 kB / 468.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002072/0.1237, allocations: 76 kB / 469 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.1248, allocations: 0.4989 MB / 469.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003224/0.1251, allocations: 235.3 kB / 469.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006044/0.1257, allocations: 378.1 kB / 470.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.1274, allocations: 1.063 MB / 471.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.1274, allocations: 4 kB / 471.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1274, allocations: 0 / 471.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.321e-05/0.1275, allocations: 0 / 471.1 MB, free: 9.746 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.002636/0.1301, allocations: 1.102 MB / 472.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1302, allocations: 11.89 kB / 472.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.1303, allocations: 98.69 kB / 472.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/0.1317, allocations: 191.8 kB / 472.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.1328, allocations: 0.5326 MB / 473.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.1329, allocations: 45.69 kB / 473.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.133, allocations: 60.27 kB / 473.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.1346, allocations: 0.7825 MB / 474 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.1346, allocations: 4 kB / 474 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/0.1347, allocations: 23.98 kB / 474 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-05/0.1348, allocations: 37.3 kB / 474 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.1363, allocations: 0.7311 MB / 474.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004763/0.1411, allocations: 2.923 MB / 477.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.1424, allocations: 0.5816 MB / 478.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006809/0.1432, allocations: 358.8 kB / 478.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.1432, allocations: 16.41 kB / 478.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008051/0.144, allocations: 426.2 kB / 479 MB, free: 1.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.216e-06/0.144, allocations: 3.938 kB / 479 MB, free: 1.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.005858/0.1499, allocations: 2.113 MB / 481.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.557e-05/0.15, allocations: 111.4 kB / 481.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/0.1508, allocations: 493.9 kB / 481.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.1509, allocations: 37.7 kB / 481.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002511/0.1511, allocations: 308.5 kB / 482.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.1513, allocations: 197.1 kB / 482.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.1515, allocations: 106.3 kB / 482.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1517, allocations: 370.8 kB / 482.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006341/0.1523, allocations: 287.3 kB / 483 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008022/0.1532, allocations: 410.9 kB / 483.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.1546, allocations: 0.7184 MB / 484.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.1546, allocations: 4 kB / 484.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00231/0.1569, allocations: 1.005 MB / 485.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.346e-05/0.157, allocations: 41.88 kB / 485.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.157, allocations: 4 kB / 485.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006281/0.1576, allocations: 189.5 kB / 485.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004847/0.1581, allocations: 107.9 kB / 485.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004981/0.1631, allocations: 4.146 MB / 489.6 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007813/0.1639, allocations: 59.91 kB / 489.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.1641, allocations: 20 kB / 489.7 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008966/0.165, allocations: 453.3 kB / 490.2 MB, free: 5.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006411/0.1656, allocations: 383 kB / 490.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001195/0.1668, allocations: 0.7028 MB / 491.2 MB, free: 4.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.368e-06/0.1669, allocations: 0 / 491.2 MB, free: 4.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.00207/0.1689, allocations: 0.9268 MB / 492.2 MB, free: 3.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.169, allocations: 41.69 kB / 492.2 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.169, allocations: 4 kB / 492.2 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005277/0.1695, allocations: 169.9 kB / 492.4 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004958/0.17, allocations: 119.8 kB / 492.5 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003894/0.1739, allocations: 3.939 MB / 496.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006125/0.1746, allocations: 55.94 kB / 496.5 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.767e-05/0.1747, allocations: 24.06 kB / 496.5 MB, free: 15.13 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.0002632/0.1749, allocations: 231 kB / 496.7 MB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.1751, allocations: 59.28 kB / 496.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.1769, allocations: 0.8149 MB / 497.6 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.1769, allocations: 7.938 kB / 497.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1769, allocations: 4 kB / 497.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.1769, allocations: 7.922 kB / 497.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.1798, allocations: 1.671 MB / 499.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.1798, allocations: 0 / 499.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006155/0.1805, allocations: 127.8 kB / 499.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002417/0.1807, allocations: 61.86 kB / 499.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.1808, allocations: 19.98 kB / 499.5 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.1833, allocations: 2.898 MB / 0.4906 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.1834, allocations: 7.969 kB / 0.4906 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.1859, allocations: 1.302 MB / 0.4919 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003589/0.1863, allocations: 192.3 kB / 0.4921 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1864, allocations: 16 kB / 0.4921 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005304/0.187, allocations: 55.94 kB / 0.4922 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.1871, allocations: 48.48 kB / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.1872, allocations: 20 kB / 0.4922 GB, free: 7.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005101/0.1877, allocations: 350.8 kB / 0.4926 GB, free: 6.812 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1877, allocations: 0 / 0.4926 GB, free: 6.812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001071/0.1888, allocations: 256 kB / 0.4928 GB, free: 6.562 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.002729/0.1915, allocations: 1.866 MB / 0.4946 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003405/0.1949, allocations: 1.836 MB / 0.4964 GB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.1949, allocations: 0 / 0.4964 GB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009917/0.1959, allocations: 0.6064 MB / 0.497 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008765/0.1968, allocations: 138.3 kB / 0.4971 GB, free: 1.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.208, allocations: 6.473 MB / 0.5035 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006844/0.2087, allocations: 0.947 MB / 0.5044 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005414/0.2093, allocations: 152.5 kB / 0.5045 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/0.2096, allocations: 235.4 kB / 0.5048 GB, free: 9.91 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2096, allocations: 3.938 kB / 0.5048 GB, free: 9.906 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2376/0.4472, allocations: 15.95 MB / 0.5203 GB, free: 69.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.24, allocations: 2.719 kB / 0.5203 GB, free: 69.9 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)