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.001556/0.001556, allocations: 106.9 kB / 16.62 MB, free: 6.812 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.001669/0.001669, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.269/1.269, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1734/0.1734, allocations: 38.02 MB / 329.4 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 63.31 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08809, allocations: 58.06 MB / 456.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.00766/0.09578, allocations: 6.233 MB / 462.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.1003, allocations: 2.766 MB / 465.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000927/0.1013, allocations: 35.81 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.1025, allocations: 334.6 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.104, allocations: 418.2 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1053, allocations: 417.4 kB / 466.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.1068, allocations: 1.065 MB / 467.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008853/0.1077, allocations: 0.5863 MB / 468.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006146/0.1083, allocations: 410.3 kB / 468.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000666/0.109, allocations: 446.2 kB / 469.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.1091, allocations: 72 kB / 469.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007942/0.1099, allocations: 0.4989 MB / 469.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.1102, allocations: 235.3 kB / 469.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004091/0.1106, allocations: 374.1 kB / 470.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.1119, allocations: 1.098 MB / 471.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.112, allocations: 0 / 471.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.112, allocations: 3.938 kB / 471.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.112, allocations: 0 / 471.4 MB, free: 9.32 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.002073/0.1141, allocations: 1.106 MB / 472.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.1141, allocations: 11.89 kB / 472.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.1142, allocations: 98.69 kB / 472.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.1154, allocations: 191.7 kB / 472.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008/0.1162, allocations: 0.5326 MB / 473.3 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.1163, allocations: 41.69 kB / 473.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.59e-05/0.1164, allocations: 64.36 kB / 473.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1177, allocations: 0.7864 MB / 474.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1177, allocations: 7.938 kB / 474.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.074e-05/0.1178, allocations: 23.98 kB / 474.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.1178, allocations: 41.23 kB / 474.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1192, allocations: 0.7311 MB / 475 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.1228, allocations: 2.907 MB / 477.9 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.124, allocations: 0.5888 MB / 478.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006178/0.1247, allocations: 358.8 kB / 478.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.554e-05/0.1247, allocations: 12.42 kB / 478.9 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007062/0.1254, allocations: 426.3 kB / 479.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.154e-06/0.1254, allocations: 0 / 479.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.00382/0.1293, allocations: 2.113 MB / 481.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.1293, allocations: 107.4 kB / 481.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005859/0.1299, allocations: 485.9 kB / 482 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.13, allocations: 41.7 kB / 482 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.1302, allocations: 308.5 kB / 482.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.1303, allocations: 197 kB / 482.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.1305, allocations: 110.4 kB / 482.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1306, allocations: 370.8 kB / 483 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005415/0.1312, allocations: 291.3 kB / 483.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.1318, allocations: 402.9 kB / 483.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.133, allocations: 0.73 MB / 484.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.133, allocations: 0 / 484.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00199/0.135, allocations: 1.017 MB / 485.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.135, allocations: 36.05 kB / 485.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.135, allocations: 4 kB / 485.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005685/0.1356, allocations: 193 kB / 485.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.1361, allocations: 119.8 kB / 485.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004125/0.1402, allocations: 4.133 MB / 489.9 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.1407, allocations: 56 kB / 489.9 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/0.1408, allocations: 23.98 kB / 490 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007026/0.1415, allocations: 445.2 kB / 490.4 MB, free: 5.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005881/0.1421, allocations: 398.8 kB / 490.8 MB, free: 5.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001171/0.1433, allocations: 0.6951 MB / 491.5 MB, free: 4.289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.665e-06/0.1433, allocations: 0 / 491.5 MB, free: 4.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001772/0.145, allocations: 0.9346 MB / 492.4 MB, free: 3.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.1451, allocations: 29.7 kB / 492.4 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1451, allocations: 4.344 kB / 492.4 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004705/0.1456, allocations: 180.6 kB / 492.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/0.146, allocations: 115.9 kB / 492.7 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003482/0.1495, allocations: 3.935 MB / 496.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.15, allocations: 67.8 kB / 496.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.1501, allocations: 20 kB / 496.7 MB, free: 14.7 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.0001798/0.1503, allocations: 212.1 kB / 497 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.166e-05/0.1504, allocations: 67.25 kB / 497 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.1519, allocations: 0.8227 MB / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.152, allocations: 4 kB / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.152, allocations: 4 kB / 497.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.152, allocations: 7.922 kB / 497.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.1545, allocations: 1.659 MB / 499.5 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.1545, allocations: 4 kB / 499.5 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/0.1551, allocations: 140 kB / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.1553, allocations: 61.67 kB / 499.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.905e-05/0.1554, allocations: 12 kB / 499.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.1573, allocations: 2.91 MB / 0.4909 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1573, allocations: 3.938 kB / 0.4909 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.1594, allocations: 1.302 MB / 0.4921 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.1596, allocations: 184.3 kB / 0.4923 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.817e-05/0.1597, allocations: 16 kB / 0.4923 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.1602, allocations: 55.92 kB / 0.4924 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.1603, allocations: 52.44 kB / 0.4924 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.1604, allocations: 23.98 kB / 0.4925 GB, free: 6.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004487/0.1608, allocations: 346.8 kB / 0.4928 GB, free: 6.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1608, allocations: 0 / 0.4928 GB, free: 6.387 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008792/0.1617, allocations: 256 kB / 0.493 GB, free: 6.137 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.002386/0.1641, allocations: 1.862 MB / 0.4948 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.1671, allocations: 1.839 MB / 0.4966 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1671, allocations: 1 kB / 0.4966 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009169/0.168, allocations: 0.6099 MB / 0.4972 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.1688, allocations: 133.6 kB / 0.4974 GB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009944/0.1787, allocations: 6.705 MB / 0.5039 GB, free: 10.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.1792, allocations: 0.9509 MB / 0.5048 GB, free: 9.621 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004516/0.1797, allocations: 160.5 kB / 0.505 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.18, allocations: 231.3 kB / 0.5052 GB, free: 9.238 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.18, allocations: 0 / 0.5052 GB, free: 9.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2023/0.3823, allocations: 15.8 MB / 0.5206 GB, free: 70.58 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/0.3825, allocations: 242.5 kB / 0.5209 GB, free: 70.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.142/2.524, allocations: 5.594 kB / 0.5209 GB, free: 70.32 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 & /home/hudson/saved_omc/OMSimulator/install/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)