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.0007304/0.0007305, allocations: 87.61 kB / 16.31 MB, free: 6.457 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.0007329/0.0007329, allocations: 180.3 kB / 17.21 MB, free: 6.324 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.233/1.233, allocations: 223.3 MB / 241.2 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2583/0.2583, allocations: 38.08 MB / 330.4 MB, free: 14.15 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.0002581, allocations: 8 kB / 400.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2385, allocations: 59.16 MB / 459.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.004698/0.2433, allocations: 5.499 MB / 464.7 MB, free: 26.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003092/0.2464, allocations: 2.622 MB / 467.3 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003795/0.2468, allocations: 41.22 kB / 467.4 MB, free: 24.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004668/0.2473, allocations: 118 kB / 467.5 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.2483, allocations: 397.7 kB / 467.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.2494, allocations: 337 kB / 468.2 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.2509, allocations: 1.073 MB / 469.3 MB, free: 23.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.2519, allocations: 0.6412 MB / 469.9 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.2523, allocations: 328.5 kB / 470.3 MB, free: 23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004474/0.2528, allocations: 364.1 kB / 470.6 MB, free: 22.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.89e-05/0.2529, allocations: 31.91 kB / 470.6 MB, free: 22.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006203/0.2535, allocations: 253.6 kB / 470.9 MB, free: 22.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.2537, allocations: 182.6 kB / 471.1 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.2539, allocations: 148.6 kB / 471.2 MB, free: 22.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.255, allocations: 0.7764 MB / 472 MB, free: 22.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.255, allocations: 0 / 472 MB, free: 22.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2551, allocations: 0 / 472 MB, free: 22.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.2551, allocations: 1.312 kB / 472 MB, free: 22.42 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.001647/0.2567, allocations: 0.9963 MB / 473 MB, free: 21.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.2568, allocations: 9.281 kB / 473 MB, free: 21.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001099/0.2579, allocations: 179 kB / 473.2 MB, free: 21.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000756/0.2586, allocations: 0.5319 MB / 473.7 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.2587, allocations: 47.91 kB / 473.7 MB, free: 21.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.822e-05/0.2588, allocations: 56.14 kB / 473.8 MB, free: 21.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.2601, allocations: 0.7927 MB / 474.6 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.2601, allocations: 14 kB / 474.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.67e-05/0.2601, allocations: 21.84 kB / 474.6 MB, free: 20.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.961e-05/0.2602, allocations: 31.41 kB / 474.7 MB, free: 20.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/0.2615, allocations: 0.7615 MB / 475.4 MB, free: 20.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003189/0.2647, allocations: 2.935 MB / 478.4 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.2659, allocations: 0.6134 MB / 479 MB, free: 17.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000597/0.2666, allocations: 378.4 kB / 479.3 MB, free: 17.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.2666, allocations: 14.11 kB / 479.4 MB, free: 17.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006422/0.2673, allocations: 436.2 kB / 479.8 MB, free: 17.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.743e-06/0.2673, allocations: 0 / 479.8 MB, free: 17.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003616/0.2709, allocations: 2.185 MB / 482 MB, free: 16.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.2709, allocations: 113.6 kB / 482.1 MB, free: 16.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005498/0.2715, allocations: 483.4 kB / 482.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.2715, allocations: 36.8 kB / 482.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2717, allocations: 311.8 kB / 482.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.2718, allocations: 201.6 kB / 483.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.2719, allocations: 14.34 kB / 483.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.272, allocations: 368.5 kB / 483.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005323/0.2725, allocations: 299.4 kB / 483.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005726/0.2731, allocations: 415.8 kB / 484.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005444/0.2736, allocations: 370.9 kB / 484.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2736, allocations: 0 / 484.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001708/0.2754, allocations: 1.063 MB / 485.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.436e-05/0.2754, allocations: 203.4 kB / 485.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2755, allocations: 4 kB / 485.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005604/0.276, allocations: 215.3 kB / 486 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.2765, allocations: 127.8 kB / 486.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/0.2795, allocations: 3.84 MB / 490 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.2799, allocations: 63.92 kB / 490 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.28, allocations: 20 kB / 490 MB, free: 8.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.28, allocations: 4 kB / 490 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001416/0.2814, allocations: 0.8869 MB / 490.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2814, allocations: 4 kB / 490.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004077/0.2819, allocations: 173.9 kB / 491.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.2823, allocations: 119.8 kB / 491.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/0.285, allocations: 3.619 MB / 494.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005886/0.2856, allocations: 63.78 kB / 494.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.2856, allocations: 24 kB / 494.9 MB, free: 3.082 MB / 350.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,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.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 (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004926/0.2861, allocations: 316 kB / 495.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.109e-05/0.2862, allocations: 55.34 kB / 495.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001455/0.2877, allocations: 0.8461 MB / 496.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2877, allocations: 7.938 kB / 496.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2877, allocations: 7.953 kB / 496.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.2877, allocations: 3.984 kB / 496.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002244/0.29, allocations: 1.702 MB / 497.9 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.29, allocations: 4.188 kB / 497.9 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005905/0.2906, allocations: 147.7 kB / 498 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002081/0.2908, allocations: 65.67 kB / 498.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.195e-05/0.2908, allocations: 15.98 kB / 498.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001808/0.2927, allocations: 2.689 MB / 0.489 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.2927, allocations: 3.953 kB / 0.489 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.2948, allocations: 1.345 MB / 0.4904 GB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.295, allocations: 188.2 kB / 0.4905 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.423e-05/0.2951, allocations: 16 kB / 0.4906 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004291/0.2956, allocations: 63.92 kB / 0.4906 GB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.2957, allocations: 56.67 kB / 0.4907 GB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/0.2957, allocations: 19.98 kB / 0.4907 GB, free: 11.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004577/0.2962, allocations: 338.8 kB / 0.491 GB, free: 10.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2962, allocations: 0 / 0.491 GB, free: 10.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001009/0.2972, allocations: 264 kB / 0.4913 GB, free: 10.52 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001664/0.2974, allocations: 119.1 kB / 0.4914 GB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.3001, allocations: 1.77 MB / 0.4931 GB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3001, allocations: 4 kB / 0.4931 GB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009105/0.301, allocations: 0.622 MB / 0.4937 GB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006909/0.3017, allocations: 125 kB / 0.4938 GB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.3042, allocations: 1.813 MB / 0.4956 GB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.3047, allocations: 0.9431 MB / 0.4965 GB, free: 4.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004418/0.3052, allocations: 148.6 kB / 0.4967 GB, free: 4.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3053, allocations: 51.36 kB / 0.4967 GB, free: 4.746 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3053, allocations: 0 / 0.4967 GB, free: 4.746 MB / 366.1 MB Notification: Performance of Templates: time 0.01411/0.3195, allocations: 9.066 MB / 0.5056 GB, free: 11.73 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