Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008245/0.0008246, allocations: 92.95 kB / 16.3 MB, free: 6.133 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.0008335/0.0008336, allocations: 179 kB / 17.2 MB, free: 6.016 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.221/1.221, allocations: 223.2 MB / 241.1 MB, free: 364 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1619/0.1619, allocations: 38.09 MB / 330.3 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003016, allocations: 12 kB / 400 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.09947, allocations: 59.16 MB / 459.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005776/0.1053, allocations: 4.759 MB / 463.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003296/0.1086, allocations: 2.09 MB / 466 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005796/0.1092, allocations: 31.81 kB / 466 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004728/0.1097, allocations: 87.2 kB / 466.1 MB, free: 464 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.1107, allocations: 319 kB / 466.4 MB, free: 144 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009377/0.1117, allocations: 310.6 kB / 466.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007937/0.1125, allocations: 0.5156 MB / 467.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009467/0.1134, allocations: 0.539 MB / 467.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004465/0.1139, allocations: 266.9 kB / 468 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.1143, allocations: 242.8 kB / 468.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.804e-05/0.1144, allocations: 24 kB / 468.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.1147, allocations: 163.7 kB / 468.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.1149, allocations: 127.5 kB / 468.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.115, allocations: 129.4 kB / 468.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006542/0.1157, allocations: 0.6741 MB / 469.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.063e-06/0.1157, allocations: 0 / 469.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1157, allocations: 0 / 469.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.979e-05/0.1157, allocations: 0 / 469.4 MB, free: 13.13 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.00188/0.1176, allocations: 0.9332 MB / 470.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.1177, allocations: 8.031 kB / 470.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000873/0.1185, allocations: 163 kB / 470.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008972/0.1195, allocations: 496.6 kB / 471 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.1195, allocations: 40.98 kB / 471 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.47e-05/0.1196, allocations: 55.86 kB / 471.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.1208, allocations: 0.6787 MB / 471.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.1208, allocations: 11.92 kB / 471.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.1209, allocations: 20 kB / 471.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.512e-05/0.1209, allocations: 25 kB / 471.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.1222, allocations: 0.6323 MB / 472.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.1256, allocations: 2.696 MB / 475.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.127, allocations: 0.6767 MB / 475.8 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.127, allocations: 12.28 kB / 475.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005557/0.1276, allocations: 303.4 kB / 476.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.884e-06/0.1276, allocations: 0 / 476.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001749/0.1294, allocations: 0.8032 MB / 476.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.53e-05/0.1295, allocations: 132.5 kB / 477 MB, free: 5.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006825/0.1302, allocations: 494.1 kB / 477.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.1302, allocations: 41.67 kB / 477.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.1304, allocations: 308 kB / 477.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1306, allocations: 142 kB / 478 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.1306, allocations: 8 kB / 478 MB, free: 4.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1307, allocations: 374.7 kB / 478.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004399/0.1312, allocations: 201 kB / 478.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.1317, allocations: 323.1 kB / 478.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004949/0.1322, allocations: 265.5 kB / 479.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1322, allocations: 0 / 479.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001643/0.1339, allocations: 0.8154 MB / 480 MB, free: 2.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005029/0.1344, allocations: 1.341 MB / 481.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1344, allocations: 4 kB / 481.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005013/0.1349, allocations: 165.1 kB / 481.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.1353, allocations: 91.88 kB / 481.6 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003053/0.1383, allocations: 2.518 MB / 484.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.1388, allocations: 91.45 kB / 484.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-05/0.1388, allocations: 27.94 kB / 484.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.594e-06/0.1388, allocations: 4 kB / 484.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001208/0.14, allocations: 0.6308 MB / 484.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1401, allocations: 4.094 kB / 484.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002924/0.1404, allocations: 133.5 kB / 485 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/0.1407, allocations: 100.1 kB / 485.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/0.1429, allocations: 2.263 MB / 487.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.1433, allocations: 75.5 kB / 487.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.1433, allocations: 27.98 kB / 487.4 MB, free: 10.2 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.1436, allocations: 277 kB / 487.7 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.638e-05/0.1437, allocations: 55.34 kB / 487.7 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.1449, allocations: 0.5548 MB / 488.3 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.1449, allocations: 4 kB / 488.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1449, allocations: 0 / 488.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.1449, allocations: 7.984 kB / 488.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.147, allocations: 1.202 MB / 489.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.147, allocations: 0 / 489.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004259/0.1474, allocations: 95.88 kB / 489.6 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.289e-05/0.1475, allocations: 32.78 kB / 489.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.372e-05/0.1476, allocations: 11.98 kB / 489.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009282/0.1485, allocations: 1.359 MB / 491 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1485, allocations: 0 / 491 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.1501, allocations: 0.9108 MB / 491.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.1503, allocations: 176.3 kB / 492.1 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-05/0.1504, allocations: 12 kB / 492.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.1508, allocations: 51.94 kB / 492.1 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.1509, allocations: 31.95 kB / 492.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.1509, allocations: 16 kB / 492.2 MB, free: 5.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004659/0.1514, allocations: 362.8 kB / 492.6 MB, free: 4.785 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1514, allocations: 0 / 492.6 MB, free: 4.785 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007592/0.1521, allocations: 247.3 kB / 492.8 MB, free: 4.543 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001251/0.1523, allocations: 109.7 kB / 492.9 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.1541, allocations: 1.169 MB / 494.1 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1541, allocations: 0 / 494.1 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005621/0.1547, allocations: 362.8 kB / 494.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000511/0.1552, allocations: 107.8 kB / 494.5 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.1571, allocations: 1.467 MB / 496 MB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.1575, allocations: 0.9139 MB / 496.9 MB, free: 308 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003101/0.1578, allocations: 108.2 kB / 497 MB, free: 196 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.158, allocations: 35.44 kB / 497 MB, free: 160 kB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.158, allocations: 0 / 497 MB, free: 160 kB / 366.1 MB Notification: Performance of Templates: time 0.01226/0.1702, allocations: 7.372 MB / 0.4926 GB, free: 8.836 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches