Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, 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.001557/0.001558, 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2029/0.2029, allocations: 38.04 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 59.91 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3236, allocations: 58.06 MB / 0.5048 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004381/0.3281, allocations: 3.68 MB / 0.5084 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.3305, allocations: 2.049 MB / 0.5104 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.3308, allocations: 13.66 kB / 0.5104 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007866/0.3315, allocations: 235.2 kB / 0.5106 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006098/0.3322, allocations: 285.3 kB / 0.5109 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006836/0.3329, allocations: 286.2 kB / 0.5111 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005098/0.3334, allocations: 0.5306 MB / 0.5117 GB, free: 3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.3337, allocations: 220.9 kB / 0.5119 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003746/0.3341, allocations: 237.5 kB / 0.5121 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.3344, allocations: 210.3 kB / 0.5123 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.764e-05/0.3345, allocations: 38.44 kB / 0.5123 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006849/0.3352, allocations: 401.2 kB / 0.5127 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001618/0.3353, allocations: 131.3 kB / 0.5128 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.3356, allocations: 183.6 kB / 0.513 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009216/0.3365, allocations: 0.6406 MB / 0.5136 GB, free: 2.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3365, allocations: 0 / 0.5136 GB, free: 2.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3365, allocations: 1.062 kB / 0.5136 GB, free: 2.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3365, allocations: 0 / 0.5136 GB, free: 2.113 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001191/0.3377, allocations: 0.7357 MB / 0.5144 GB, free: 1.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3378, allocations: 15.98 kB / 0.5144 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009493/0.3387, allocations: 104.6 kB / 0.5145 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.3393, allocations: 419 kB / 0.5149 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.3393, allocations: 27.03 kB / 0.5149 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.292e-05/0.3394, allocations: 28.2 kB / 0.5149 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.3402, allocations: 439 kB / 0.5154 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3402, allocations: 1.219 kB / 0.5154 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.3403, allocations: 14.5 kB / 0.5154 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-05/0.3403, allocations: 17.53 kB / 0.5154 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3414, allocations: 0.4959 MB / 0.5159 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.3435, allocations: 1.679 MB / 0.5175 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.3446, allocations: 367 kB / 0.5179 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.345, allocations: 143.9 kB / 0.518 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.728e-05/0.3451, allocations: 15.55 kB / 0.518 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006751/0.3457, allocations: 287 kB / 0.5183 GB, free: 15.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.545e-06/0.3458, allocations: 0 / 0.5183 GB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00147/0.3472, allocations: 0.5228 MB / 0.5188 GB, free: 14.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.3474, allocations: 297.7 kB / 0.5191 GB, free: 14.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.3478, allocations: 328.8 kB / 0.5194 GB, free: 14.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.3479, allocations: 43.52 kB / 0.5194 GB, free: 14.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.3481, allocations: 191.3 kB / 0.5196 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3482, allocations: 104.7 kB / 0.5197 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.3483, allocations: 72.17 kB / 0.5198 GB, free: 14.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3484, allocations: 346.9 kB / 0.5201 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.3488, allocations: 136.9 kB / 0.5202 GB, free: 13.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/0.3493, allocations: 282 kB / 0.5205 GB, free: 13.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008558/0.3502, allocations: 456.4 kB / 0.5209 GB, free: 13.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3502, allocations: 1.094 kB / 0.5209 GB, free: 13.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001085/0.3513, allocations: 0.5099 MB / 0.5214 GB, free: 13.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.3513, allocations: 38.64 kB / 0.5215 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3513, allocations: 4.984 kB / 0.5215 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3514, allocations: 6.938 kB / 0.5215 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.3517, allocations: 86.34 kB / 0.5216 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3517, allocations: 13.16 kB / 0.5216 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.3521, allocations: 49.66 kB / 0.5216 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.3521, allocations: 22.41 kB / 0.5217 GB, free: 12.95 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002381/0.3523, allocations: 208.2 kB / 0.5219 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.023e-05/0.3524, allocations: 43.77 kB / 0.5219 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3525, allocations: 49.47 kB / 0.5219 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3526, allocations: 6.062 kB / 0.522 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3526, allocations: 2.656 kB / 0.522 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.738e-05/0.3527, allocations: 110.8 kB / 0.5221 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.17e-05/0.3527, allocations: 14.53 kB / 0.5221 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.353, allocations: 27.91 kB / 0.5221 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3531, allocations: 38.91 kB / 0.5221 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001303/0.3544, allocations: 1.092 MB / 0.5232 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001165/0.3556, allocations: 1.162 MB / 0.5243 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004438/0.3561, allocations: 191.1 kB / 0.5245 GB, free: 10.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002717/0.3563, allocations: 237.6 kB / 0.5247 GB, free: 10.62 MB / 398.1 MB Notification: Performance of Backend: time 4.71e-07/0.3564, allocations: 0 / 0.5247 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003019/0.3594, allocations: 0.9059 MB / 0.5256 GB, free: 10.26 MB / 398.1 MB Notification: Performance of SimCode: time 0.001337/0.3607, allocations: 1.057 MB / 0.5267 GB, free: 9.449 MB / 398.1 MB Notification: Performance of Templates: time 0.01264/0.3734, allocations: 6.693 MB / 0.5332 GB, free: 7.109 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches