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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007282/0.0007284, 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.0008098/0.0008099, allocations: 175.5 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.209/1.209, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1574/0.1574, allocations: 38.08 MB / 330.8 MB, free: 8.531 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003092, allocations: 9.125 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09635, allocations: 59.17 MB / 459.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006594/0.103, allocations: 5.804 MB / 465.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004401/0.1074, allocations: 2.758 MB / 468.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006968/0.1082, allocations: 35.81 kB / 468.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004293/0.1086, allocations: 99.2 kB / 468.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000946/0.1095, allocations: 422.2 kB / 469 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000883/0.1104, allocations: 411.4 kB / 469.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.1115, allocations: 1.267 MB / 470.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.1126, allocations: 0.7337 MB / 471.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004291/0.1131, allocations: 314.4 kB / 471.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004218/0.1135, allocations: 386.2 kB / 472.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.1136, allocations: 24 kB / 472.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007763/0.1143, allocations: 0.5651 MB / 472.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.1145, allocations: 183.3 kB / 472.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.1148, allocations: 327.8 kB / 473.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009114/0.1157, allocations: 1.047 MB / 474.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1157, allocations: 0 / 474.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1158, allocations: 0 / 474.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1158, allocations: 0 / 474.2 MB, free: 8.617 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.001713/0.1175, allocations: 0.9889 MB / 475.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.1175, allocations: 8.031 kB / 475.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.1186, allocations: 187.8 kB / 475.4 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007404/0.1194, allocations: 0.5287 MB / 475.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.1194, allocations: 45.67 kB / 476 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-05/0.1195, allocations: 64.28 kB / 476 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1208, allocations: 0.8061 MB / 476.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.1209, allocations: 4 kB / 476.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.1209, allocations: 20 kB / 476.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.443e-05/0.121, allocations: 37.3 kB / 476.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.1224, allocations: 0.7623 MB / 477.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.1263, allocations: 2.935 MB / 480.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.1276, allocations: 0.6168 MB / 481.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006727/0.1283, allocations: 374.8 kB / 481.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.1283, allocations: 8.422 kB / 481.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007525/0.1291, allocations: 438.2 kB / 482 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.235e-06/0.1291, allocations: 0 / 482 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004108/0.1332, allocations: 2.199 MB / 484.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.1333, allocations: 119.3 kB / 484.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006072/0.1339, allocations: 489.8 kB / 484.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.134, allocations: 37.7 kB / 484.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.1342, allocations: 312.4 kB / 485.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.1344, allocations: 197.2 kB / 485.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.1345, allocations: 53.69 kB / 485.4 MB, free: 13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.1347, allocations: 374.7 kB / 485.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.1352, allocations: 297.1 kB / 486 MB, free: 12.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006563/0.1359, allocations: 422.9 kB / 486.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.1372, allocations: 0.7575 MB / 487.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1372, allocations: 3.938 kB / 487.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002123/0.1394, allocations: 1.064 MB / 488.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.1395, allocations: 207.4 kB / 488.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.1395, allocations: 4 kB / 488.5 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005905/0.1401, allocations: 196 kB / 488.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.1406, allocations: 119.8 kB / 488.8 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.1446, allocations: 3.849 MB / 492.7 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/0.1452, allocations: 63.94 kB / 492.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.854e-05/0.1452, allocations: 27.98 kB / 492.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.1452, allocations: 8.062 kB / 492.7 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001678/0.1469, allocations: 0.8831 MB / 493.6 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1469, allocations: 8.031 kB / 493.6 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004546/0.1474, allocations: 173.3 kB / 493.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004514/0.1479, allocations: 123.8 kB / 493.9 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.151, allocations: 3.63 MB / 497.6 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004676/0.1514, allocations: 55.94 kB / 497.6 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.1515, allocations: 28.05 kB / 497.6 MB, free: 28 kB / 366.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.000337/0.1518, allocations: 304.9 kB / 497.9 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.1519, allocations: 63.19 kB / 498 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.1536, allocations: 0.8501 MB / 498.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.1536, allocations: 8 kB / 498.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1536, allocations: 0 / 498.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.1536, allocations: 7.922 kB / 498.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.1562, allocations: 1.71 MB / 0.4888 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1562, allocations: 0 / 0.4888 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005843/0.1568, allocations: 139.8 kB / 0.489 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002079/0.1571, allocations: 65.75 kB / 0.489 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.165e-05/0.1571, allocations: 20 kB / 0.4891 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.159, allocations: 2.693 MB / 0.4917 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.159, allocations: 0 / 0.4917 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.1613, allocations: 1.349 MB / 0.493 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002299/0.1616, allocations: 192.4 kB / 0.4932 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.337e-05/0.1617, allocations: 19.98 kB / 0.4932 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004793/0.1621, allocations: 67.92 kB / 0.4933 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.1623, allocations: 56.42 kB / 0.4933 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.1623, allocations: 20 kB / 0.4933 GB, free: 8.035 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000483/0.1628, allocations: 346.8 kB / 0.4937 GB, free: 7.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1628, allocations: 0 / 0.4937 GB, free: 7.699 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001002/0.1638, allocations: 260 kB / 0.4939 GB, free: 7.445 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.0001945/0.164, allocations: 127 kB / 0.494 GB, free: 7.309 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.167, allocations: 1.778 MB / 0.4958 GB, free: 5.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.167, allocations: 7.875 kB / 0.4958 GB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009643/0.168, allocations: 0.6182 MB / 0.4964 GB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008488/0.1688, allocations: 130.4 kB / 0.4965 GB, free: 4.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.1715, allocations: 1.875 MB / 0.4983 GB, free: 2.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.172, allocations: 0.9431 MB / 0.4993 GB, free: 1.789 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004525/0.1725, allocations: 152.5 kB / 0.4994 GB, free: 1.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.1726, allocations: 51.42 kB / 0.4995 GB, free: 1.59 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1726, allocations: 0 / 0.4995 GB, free: 1.59 MB / 382.1 MB Notification: Performance of Templates: time 0.1772/0.3499, allocations: 9.338 MB / 0.5086 GB, free: 53.11 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile Environment - environmentSimulation: (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches