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.001471/0.001471, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001723/0.001722, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.304/1.304, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1716/0.1716, allocations: 38.05 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 61.39 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08815/0.08938, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006405/0.09581, allocations: 5.604 MB / 462.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.09935, allocations: 2.617 MB / 465.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.09966, allocations: 23.88 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.1007, allocations: 366.1 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008517/0.1015, allocations: 465.7 kB / 466 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009192/0.1025, allocations: 461.9 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009542/0.1034, allocations: 1.065 MB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006822/0.1041, allocations: 0.5512 MB / 468.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.1046, allocations: 406.4 kB / 468.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004462/0.105, allocations: 430.2 kB / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1051, allocations: 76 kB / 469 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006804/0.1058, allocations: 0.5028 MB / 469.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.106, allocations: 231.3 kB / 469.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003014/0.1063, allocations: 374.1 kB / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009694/0.1073, allocations: 1.067 MB / 471.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1073, allocations: 0 / 471.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.088e-06/0.1073, allocations: 4 kB / 471.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.1074, allocations: 3.938 kB / 471.2 MB, free: 9.711 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.001922/0.1093, allocations: 1.102 MB / 472.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.1093, allocations: 11.89 kB / 472.3 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.1094, allocations: 98.69 kB / 472.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/0.1106, allocations: 179.9 kB / 472.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007881/0.1114, allocations: 0.5404 MB / 473.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.1115, allocations: 45.69 kB / 473.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.857e-05/0.1116, allocations: 60.27 kB / 473.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.1129, allocations: 0.7864 MB / 474 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.1129, allocations: 4 kB / 474 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.914e-05/0.113, allocations: 20 kB / 474 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.352e-05/0.113, allocations: 37.3 kB / 474 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.1145, allocations: 0.7272 MB / 474.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003927/0.1184, allocations: 2.927 MB / 477.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.1198, allocations: 0.5893 MB / 478.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00068/0.1205, allocations: 358.8 kB / 478.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.243e-05/0.1205, allocations: 4.438 kB / 478.6 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007654/0.1213, allocations: 426.2 kB / 479 MB, free: 1.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.799e-06/0.1213, allocations: 0 / 479 MB, free: 1.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004147/0.1255, allocations: 2.12 MB / 481.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.1256, allocations: 111.4 kB / 481.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006593/0.1262, allocations: 489.9 kB / 481.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.818e-05/0.1263, allocations: 41.7 kB / 481.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.1265, allocations: 308.5 kB / 482.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.1267, allocations: 197.1 kB / 482.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.1269, allocations: 106.3 kB / 482.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.127, allocations: 370.8 kB / 482.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/0.1276, allocations: 291.3 kB / 483 MB, free: 13.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006571/0.1283, allocations: 403 kB / 483.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.1296, allocations: 0.7223 MB / 484.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1296, allocations: 0 / 484.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002167/0.1318, allocations: 1.013 MB / 485.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.1318, allocations: 33.89 kB / 485.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1318, allocations: 4 kB / 485.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/0.1325, allocations: 185.5 kB / 485.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.1329, allocations: 119.8 kB / 485.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004384/0.1373, allocations: 4.138 MB / 489.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/0.1379, allocations: 55.94 kB / 489.7 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.426e-05/0.138, allocations: 23.98 kB / 489.7 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007433/0.1387, allocations: 449.3 kB / 490.2 MB, free: 5.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006071/0.1393, allocations: 387 kB / 490.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001159/0.1405, allocations: 0.695 MB / 491.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.785e-06/0.1405, allocations: 4 kB / 491.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001787/0.1423, allocations: 0.9308 MB / 492.2 MB, free: 3.738 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.1423, allocations: 35.73 kB / 492.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1424, allocations: 4 kB / 492.2 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004852/0.1429, allocations: 177.9 kB / 492.4 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004689/0.1433, allocations: 111.8 kB / 492.5 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003484/0.1468, allocations: 3.938 MB / 496.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.1474, allocations: 59.92 kB / 496.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/0.1474, allocations: 20.05 kB / 496.5 MB, free: 15.11 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.0001931/0.1476, allocations: 227 kB / 496.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.275e-05/0.1477, allocations: 63.28 kB / 496.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.1494, allocations: 0.8187 MB / 497.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.1494, allocations: 8 kB / 497.6 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1494, allocations: 0 / 497.6 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.1494, allocations: 11.92 kB / 497.6 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/0.1521, allocations: 1.663 MB / 499.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1521, allocations: 0 / 499.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000615/0.1528, allocations: 139.8 kB / 499.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000226/0.153, allocations: 61.86 kB / 499.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-05/0.1531, allocations: 16 kB / 499.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/0.1552, allocations: 2.894 MB / 0.4906 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.1552, allocations: 7.969 kB / 0.4906 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.1574, allocations: 1.302 MB / 0.4919 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.1577, allocations: 188.3 kB / 0.4921 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.547e-05/0.1578, allocations: 19.94 kB / 0.4921 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.1583, allocations: 55.92 kB / 0.4921 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.1584, allocations: 48.5 kB / 0.4922 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.1585, allocations: 23.98 kB / 0.4922 GB, free: 7.133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.159, allocations: 346.8 kB / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.159, allocations: 0 / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009535/0.1599, allocations: 256 kB / 0.4928 GB, free: 6.547 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.00261/0.1626, allocations: 1.866 MB / 0.4946 GB, free: 4.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003197/0.1658, allocations: 1.836 MB / 0.4964 GB, free: 2.707 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1658, allocations: 0 / 0.4964 GB, free: 2.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009537/0.1667, allocations: 0.6103 MB / 0.497 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000743/0.1675, allocations: 154.8 kB / 0.4972 GB, free: 1.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.1781, allocations: 6.455 MB / 0.5035 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.1787, allocations: 0.9509 MB / 0.5044 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004718/0.1792, allocations: 144.5 kB / 0.5045 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.1796, allocations: 239.3 kB / 0.5048 GB, free: 9.891 MB / 398.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1796, allocations: 0 / 0.5048 GB, free: 9.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2058/0.3855, allocations: 15.96 MB / 0.5203 GB, free: 69.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.33, allocations: 13.19 kB / 0.5203 GB, free: 69.93 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)