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.0007306/0.0007309, allocations: 92.75 kB / 16.65 MB, free: 6.262 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.0008324/0.0008324, allocations: 177.2 kB / 17.56 MB, free: 5.875 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.244/1.244, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.16/0.16, allocations: 38.09 MB / 330.8 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003149, allocations: 9.531 kB / 400.7 MB, free: 34.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.0955, allocations: 59.16 MB / 459.9 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006109/0.1017, allocations: 5.129 MB / 465 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003849/0.1055, allocations: 2.218 MB / 467.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007205/0.1063, allocations: 31.81 kB / 467.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005218/0.1068, allocations: 87.28 kB / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.1079, allocations: 318.6 kB / 467.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009307/0.1088, allocations: 362.5 kB / 468 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.11, allocations: 1.01 MB / 469 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.1111, allocations: 0.6207 MB / 469.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005087/0.1116, allocations: 270.6 kB / 469.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.1121, allocations: 298.5 kB / 470.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.261e-05/0.1122, allocations: 24 kB / 470.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006186/0.1129, allocations: 379.1 kB / 470.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.113, allocations: 139.5 kB / 470.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000313/0.1134, allocations: 299.9 kB / 471 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009526/0.1143, allocations: 0.8758 MB / 471.9 MB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1143, allocations: 0 / 471.9 MB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1143, allocations: 4 kB / 471.9 MB, free: 11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.536e-05/0.1144, allocations: 0 / 471.9 MB, free: 11 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.001867/0.1162, allocations: 0.9178 MB / 472.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1163, allocations: 12.03 kB / 472.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008731/0.1172, allocations: 144 kB / 473 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008283/0.118, allocations: 0.5131 MB / 473.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.1181, allocations: 37.38 kB / 473.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.1182, allocations: 56.31 kB / 473.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1194, allocations: 0.6905 MB / 474.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.1195, allocations: 0 / 474.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.1195, allocations: 24 kB / 474.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.691e-05/0.1196, allocations: 24.98 kB / 474.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.1209, allocations: 0.6323 MB / 474.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003525/0.1244, allocations: 2.708 MB / 477.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.1257, allocations: 0.6493 MB / 478.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.1262, allocations: 226.3 kB / 478.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.1263, allocations: 4.328 kB / 478.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005916/0.1269, allocations: 318.1 kB / 478.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.084e-06/0.1269, allocations: 0 / 478.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001775/0.1287, allocations: 0.7994 MB / 479.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.1288, allocations: 148.4 kB / 479.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006505/0.1294, allocations: 498.2 kB / 480.3 MB, free: 2.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.1295, allocations: 37.7 kB / 480.3 MB, free: 2.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002188/0.1297, allocations: 303.9 kB / 480.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.1298, allocations: 138 kB / 480.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/0.1299, allocations: 49.73 kB / 480.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1301, allocations: 366.8 kB / 481.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004681/0.1305, allocations: 201 kB / 481.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005452/0.1311, allocations: 327.2 kB / 481.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.1321, allocations: 0.5606 MB / 482.2 MB, free: 148 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1322, allocations: 0 / 482.2 MB, free: 148 kB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001799/0.134, allocations: 0.827 MB / 483 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.1341, allocations: 215 kB / 483.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1342, allocations: 3.938 kB / 483.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004729/0.1346, allocations: 141.1 kB / 483.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003696/0.135, allocations: 99.88 kB / 483.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003138/0.1382, allocations: 2.477 MB / 486 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000466/0.1386, allocations: 99.44 kB / 486.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.1387, allocations: 16 kB / 486.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.206e-06/0.1387, allocations: 6.344 kB / 486.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00134/0.1401, allocations: 0.639 MB / 486.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.1401, allocations: 4 kB / 486.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003435/0.1404, allocations: 141 kB / 486.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.1408, allocations: 91.88 kB / 487 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/0.143, allocations: 2.245 MB / 489.2 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004499/0.1434, allocations: 75.55 kB / 489.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.1435, allocations: 20 kB / 489.3 MB, free: 8.715 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.0003347/0.1438, allocations: 289 kB / 489.6 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.754e-05/0.1439, allocations: 51.34 kB / 489.6 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.1451, allocations: 0.5548 MB / 490.2 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1451, allocations: 4 kB / 490.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1452, allocations: 0 / 490.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.1452, allocations: 7.984 kB / 490.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.1471, allocations: 1.202 MB / 491.4 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1471, allocations: 0 / 491.4 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.1476, allocations: 95.88 kB / 491.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.666e-05/0.1477, allocations: 32.84 kB / 491.5 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.1477, allocations: 8 kB / 491.5 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.1488, allocations: 1.366 MB / 492.9 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1488, allocations: 0 / 492.9 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.1504, allocations: 0.8801 MB / 493.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.1506, allocations: 176.3 kB / 494 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.1507, allocations: 15.98 kB / 494 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003949/0.1511, allocations: 47.95 kB / 494 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.1512, allocations: 31.95 kB / 494 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.1513, allocations: 15.94 kB / 494.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.1518, allocations: 362.8 kB / 494.4 MB, free: 3.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1518, allocations: 0 / 494.4 MB, free: 3.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008618/0.1527, allocations: 255.3 kB / 494.7 MB, free: 3.082 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.0001644/0.1528, allocations: 109.2 kB / 494.8 MB, free: 2.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002153/0.155, allocations: 1.176 MB / 495.9 MB, free: 1.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.155, allocations: 0 / 495.9 MB, free: 1.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006425/0.1557, allocations: 362.8 kB / 496.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007508/0.1564, allocations: 123 kB / 496.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.1587, allocations: 1.526 MB / 497.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004949/0.1592, allocations: 0.9022 MB / 498.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.1595, allocations: 108.3 kB / 499 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.1597, allocations: 39.44 kB / 499 MB, free: 14.62 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1597, allocations: 0 / 499 MB, free: 14.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01327/0.173, allocations: 7.603 MB / 0.4947 GB, free: 7.066 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