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.0008392/0.0008393, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0008972/0.0008974, allocations: 177 kB / 17.56 MB, free: 6.18 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.317/1.317, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1824/0.1824, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 8 kB / 400.7 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.0931, allocations: 59.16 MB / 459.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006353/0.0995, allocations: 5.125 MB / 465 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004249/0.1038, allocations: 2.226 MB / 467.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008584/0.1047, allocations: 31.81 kB / 467.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005823/0.1053, allocations: 87.28 kB / 467.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.1065, allocations: 318.6 kB / 467.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.1076, allocations: 354.8 kB / 468 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.1089, allocations: 1.01 MB / 469 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.1101, allocations: 0.6284 MB / 469.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000611/0.1108, allocations: 274.6 kB / 469.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006556/0.1114, allocations: 298.5 kB / 470.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.1116, allocations: 24 kB / 470.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007375/0.1123, allocations: 375.1 kB / 470.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.1125, allocations: 131.5 kB / 470.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003635/0.1129, allocations: 303.9 kB / 471 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.1141, allocations: 0.8797 MB / 471.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1141, allocations: 0 / 471.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1141, allocations: 0 / 471.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.416e-05/0.1142, allocations: 0 / 471.9 MB, free: 10.97 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.002201/0.1164, allocations: 0.9217 MB / 472.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.1164, allocations: 12.03 kB / 472.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009835/0.1174, allocations: 140 kB / 473 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.1184, allocations: 0.517 MB / 473.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.1185, allocations: 37.38 kB / 473.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.1187, allocations: 52.31 kB / 473.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.1202, allocations: 0.6944 MB / 474.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.1202, allocations: 4 kB / 474.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.1203, allocations: 20 kB / 474.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.511e-05/0.1204, allocations: 28.98 kB / 474.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.1219, allocations: 0.6284 MB / 474.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004065/0.126, allocations: 2.708 MB / 477.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.1275, allocations: 0.6454 MB / 478.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000532/0.1281, allocations: 222.3 kB / 478.5 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.1281, allocations: 4.328 kB / 478.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006778/0.1288, allocations: 326.1 kB / 478.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.305e-06/0.1288, allocations: 0 / 478.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.002208/0.131, allocations: 0.7954 MB / 479.6 MB, free: 2.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.1311, allocations: 140.5 kB / 479.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008047/0.132, allocations: 0.4904 MB / 480.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.132, allocations: 37.7 kB / 480.3 MB, free: 2.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.1323, allocations: 307.9 kB / 480.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.1324, allocations: 134 kB / 480.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.1325, allocations: 45.7 kB / 480.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1326, allocations: 366.8 kB / 481.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005122/0.1332, allocations: 205 kB / 481.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005846/0.1338, allocations: 323.2 kB / 481.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.1349, allocations: 0.5645 MB / 482.2 MB, free: 120 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1349, allocations: 0 / 482.2 MB, free: 120 kB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001985/0.1369, allocations: 0.831 MB / 483 MB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/0.1371, allocations: 210.8 kB / 483.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.1371, allocations: 7.938 kB / 483.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005343/0.1376, allocations: 141.1 kB / 483.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004084/0.1381, allocations: 99.88 kB / 483.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.1416, allocations: 2.478 MB / 486 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005172/0.1421, allocations: 95.44 kB / 486.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.1421, allocations: 16 kB / 486.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.1422, allocations: 6.344 kB / 486.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001423/0.1436, allocations: 0.639 MB / 486.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1436, allocations: 4 kB / 486.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003495/0.144, allocations: 132.8 kB / 486.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.1444, allocations: 100.1 kB / 487 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.1468, allocations: 2.248 MB / 489.2 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.1473, allocations: 83.48 kB / 489.3 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.1473, allocations: 20 kB / 489.3 MB, free: 8.676 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,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003386/0.1477, allocations: 285 kB / 489.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.792e-05/0.1478, allocations: 51.34 kB / 489.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.149, allocations: 0.5548 MB / 490.2 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1491, allocations: 4 kB / 490.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1491, allocations: 0 / 490.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1491, allocations: 11.97 kB / 490.2 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.1511, allocations: 1.198 MB / 491.4 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.1511, allocations: 4 kB / 491.4 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.1516, allocations: 91.88 kB / 491.5 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.1517, allocations: 36.84 kB / 491.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.1518, allocations: 8 kB / 491.5 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009553/0.1527, allocations: 1.351 MB / 492.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1527, allocations: 4.031 kB / 492.9 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.1545, allocations: 0.884 MB / 493.8 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.1547, allocations: 176.3 kB / 493.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.749e-05/0.1548, allocations: 15.98 kB / 494 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.1553, allocations: 47.95 kB / 494 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.1554, allocations: 31.95 kB / 494 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.1554, allocations: 15.94 kB / 494.1 MB, free: 3.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005486/0.156, allocations: 366.8 kB / 494.4 MB, free: 3.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.156, allocations: 0 / 494.4 MB, free: 3.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009045/0.1569, allocations: 247.3 kB / 494.7 MB, free: 3.055 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 (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001702/0.1571, allocations: 111.4 kB / 494.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.1595, allocations: 1.176 MB / 495.9 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.1595, allocations: 0 / 495.9 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007857/0.1603, allocations: 362.8 kB / 496.3 MB, free: 1.344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009373/0.1612, allocations: 118.7 kB / 496.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.1637, allocations: 1.525 MB / 497.9 MB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005275/0.1643, allocations: 0.906 MB / 498.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.1646, allocations: 104.3 kB / 498.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.1648, allocations: 39.44 kB / 499 MB, free: 14.59 MB / 382.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1648, allocations: 4 kB / 499 MB, free: 14.59 MB / 382.1 MB Notification: Performance of Templates: time 0.01441/0.1792, allocations: 7.599 MB / 0.4947 GB, free: 7.039 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches