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.001407/0.001407, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001312/0.001312, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1788/0.1788, allocations: 38.04 MB / 330.6 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 55.91 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3174, allocations: 58.06 MB / 0.5048 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006027/0.3235, allocations: 5.137 MB / 0.5098 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003224/0.3268, allocations: 2.132 MB / 0.5119 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006935/0.3275, allocations: 26.94 kB / 0.5119 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009762/0.3285, allocations: 253.5 kB / 0.5121 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009834/0.3295, allocations: 341.1 kB / 0.5125 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009472/0.3304, allocations: 394.6 kB / 0.5128 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.3316, allocations: 0.9092 MB / 0.5137 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007566/0.3323, allocations: 0.5154 MB / 0.5142 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005748/0.3329, allocations: 357.8 kB / 0.5146 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.3335, allocations: 360.2 kB / 0.5149 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.3337, allocations: 68.41 kB / 0.515 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006209/0.3343, allocations: 338.8 kB / 0.5153 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.3345, allocations: 191.8 kB / 0.5155 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003781/0.3349, allocations: 326.5 kB / 0.5158 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001221/0.3361, allocations: 0.9328 MB / 0.5167 GB, free: 112 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3361, allocations: 1.188 kB / 0.5167 GB, free: 112 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3361, allocations: 0 / 0.5167 GB, free: 112 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.776e-05/0.3362, allocations: 3.938 kB / 0.5167 GB, free: 108 kB / 382.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.002439/0.3386, allocations: 1.031 MB / 0.5177 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3387, allocations: 13.94 kB / 0.5177 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009601/0.3396, allocations: 143.9 kB / 0.5179 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.3407, allocations: 0.5217 MB / 0.5184 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.3408, allocations: 42.45 kB / 0.5184 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3409, allocations: 50.22 kB / 0.5185 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.3426, allocations: 0.675 MB / 0.5191 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.3426, allocations: 5.031 kB / 0.5191 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.577e-05/0.3427, allocations: 30.14 kB / 0.5192 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.258e-05/0.3428, allocations: 25.05 kB / 0.5192 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.3442, allocations: 0.6006 MB / 0.5198 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.3481, allocations: 2.68 MB / 0.5224 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.3495, allocations: 0.622 MB / 0.523 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004703/0.35, allocations: 211.5 kB / 0.5232 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.35, allocations: 4.953 kB / 0.5232 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006317/0.3506, allocations: 305.3 kB / 0.5235 GB, free: 11.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.555e-06/0.3507, allocations: 0 / 0.5235 GB, free: 11.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001901/0.3526, allocations: 0.753 MB / 0.5242 GB, free: 11.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.3527, allocations: 137.3 kB / 0.5244 GB, free: 11.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008059/0.3535, allocations: 0.4953 MB / 0.5248 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.449e-05/0.3535, allocations: 32.45 kB / 0.5249 GB, free: 11.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.3538, allocations: 302.8 kB / 0.5252 GB, free: 10.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.354, allocations: 139.9 kB / 0.5253 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.3541, allocations: 91.08 kB / 0.5254 GB, free: 10.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3543, allocations: 364.8 kB / 0.5257 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000516/0.3548, allocations: 199.4 kB / 0.5259 GB, free: 10.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.3554, allocations: 312.1 kB / 0.5262 GB, free: 10.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.3565, allocations: 0.5147 MB / 0.5267 GB, free: 9.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3565, allocations: 5.406 kB / 0.5267 GB, free: 9.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001994/0.3585, allocations: 0.7756 MB / 0.5275 GB, free: 9.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.3586, allocations: 35.48 kB / 0.5275 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3586, allocations: 3.25 kB / 0.5275 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.3591, allocations: 144.5 kB / 0.5277 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/0.3595, allocations: 86.61 kB / 0.5277 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/0.3631, allocations: 2.648 MB / 0.5303 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005875/0.3637, allocations: 79.34 kB / 0.5304 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.265e-05/0.3637, allocations: 24.12 kB / 0.5304 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000669/0.3644, allocations: 332.9 kB / 0.5307 GB, free: 7.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005232/0.3649, allocations: 297 kB / 0.531 GB, free: 6.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009497/0.3659, allocations: 0.5037 MB / 0.5315 GB, free: 6.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.2e-06/0.3659, allocations: 5.141 kB / 0.5315 GB, free: 6.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001494/0.3674, allocations: 0.6763 MB / 0.5322 GB, free: 6.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.3675, allocations: 38.88 kB / 0.5322 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3675, allocations: 7.188 kB / 0.5322 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.3679, allocations: 129 kB / 0.5323 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003854/0.3683, allocations: 88.03 kB / 0.5324 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.371, allocations: 2.452 MB / 0.5348 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005331/0.3715, allocations: 60.52 kB / 0.5349 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/0.3716, allocations: 23.12 kB / 0.5349 GB, free: 4.09 MB / 398.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.0002036/0.3718, allocations: 209.4 kB / 0.5351 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3719, allocations: 58.56 kB / 0.5352 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.3731, allocations: 0.5156 MB / 0.5357 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.3731, allocations: 5.141 kB / 0.5357 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3731, allocations: 4 kB / 0.5357 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.3734, allocations: 168.7 kB / 0.5358 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.868e-05/0.3735, allocations: 15.28 kB / 0.5359 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.3739, allocations: 44.78 kB / 0.5359 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.374, allocations: 31.36 kB / 0.5359 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001587/0.3756, allocations: 0.7706 MB / 0.5367 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001641/0.3772, allocations: 1.069 MB / 0.5377 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00046/0.3777, allocations: 215.2 kB / 0.5379 GB, free: 1.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005852/0.3783, allocations: 352.7 kB / 0.5383 GB, free: 1.766 MB / 398.1 MB Notification: Performance of Backend: time 5.31e-07/0.3783, allocations: 4 kB / 0.5383 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002799/0.3811, allocations: 1.206 MB / 0.5394 GB, free: 0.918 MB / 398.1 MB Notification: Performance of SimCode: time 0.002292/0.3834, allocations: 1.657 MB / 0.5411 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Templates: time 0.01843/0.4019, allocations: 11.17 MB / 0.552 GB, free: 7.234 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches