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.00125/0.00125, allocations: 102.5 kB / 17.05 MB, free: 6.125 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.001368/0.001368, allocations: 194.9 kB / 18 MB, free: 5.199 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.418/1.418, allocations: 222.9 MB / 241.7 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.1778/0.1778, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 59.89 kB / 458.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4082, allocations: 58.06 MB / 0.5041 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005134/0.4133, allocations: 3.678 MB / 0.5077 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.4163, allocations: 2.053 MB / 0.5097 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.4165, allocations: 14.66 kB / 0.5097 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009194/0.4174, allocations: 222.7 kB / 0.5099 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006838/0.4181, allocations: 288.8 kB / 0.5102 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007973/0.4189, allocations: 294 kB / 0.5105 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006038/0.4195, allocations: 0.5312 MB / 0.511 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003997/0.42, allocations: 220.9 kB / 0.5112 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004622/0.4204, allocations: 234.6 kB / 0.5114 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.4207, allocations: 209.6 kB / 0.5116 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.375e-05/0.4208, allocations: 37.88 kB / 0.5117 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007198/0.4215, allocations: 397.6 kB / 0.512 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.4217, allocations: 132.1 kB / 0.5122 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.4219, allocations: 183 kB / 0.5123 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000917/0.4229, allocations: 0.6361 MB / 0.513 GB, free: 2.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4229, allocations: 0.6094 kB / 0.513 GB, free: 2.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4229, allocations: 0.9688 kB / 0.513 GB, free: 2.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.4229, allocations: 0 / 0.513 GB, free: 2.246 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.001227/0.4241, allocations: 0.7391 MB / 0.5137 GB, free: 1.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4242, allocations: 13.64 kB / 0.5137 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009046/0.4251, allocations: 116.1 kB / 0.5138 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.4257, allocations: 419.2 kB / 0.5142 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.4257, allocations: 18.52 kB / 0.5142 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.4258, allocations: 23.78 kB / 0.5143 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009449/0.4267, allocations: 447.9 kB / 0.5147 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.4268, allocations: 0 / 0.5147 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.358e-05/0.4268, allocations: 12.59 kB / 0.5147 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.371e-05/0.4269, allocations: 20.81 kB / 0.5147 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.4281, allocations: 0.4954 MB / 0.5152 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.4307, allocations: 1.675 MB / 0.5168 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.4319, allocations: 379 kB / 0.5172 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004242/0.4323, allocations: 144.1 kB / 0.5173 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.601e-05/0.4323, allocations: 7.188 kB / 0.5173 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000626/0.433, allocations: 288.2 kB / 0.5176 GB, free: 15.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.444e-06/0.433, allocations: 0 / 0.5176 GB, free: 15.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001452/0.4345, allocations: 0.5277 MB / 0.5181 GB, free: 15.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001779/0.4346, allocations: 297.5 kB / 0.5184 GB, free: 14.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000513/0.4352, allocations: 330.5 kB / 0.5187 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.06e-05/0.4352, allocations: 38.17 kB / 0.5188 GB, free: 14.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.4355, allocations: 190.7 kB / 0.5189 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.4356, allocations: 107.8 kB / 0.519 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.4358, allocations: 71.98 kB / 0.5191 GB, free: 14.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.4361, allocations: 348.7 kB / 0.5194 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004471/0.4365, allocations: 135.4 kB / 0.5196 GB, free: 13.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.4371, allocations: 278.8 kB / 0.5198 GB, free: 13.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009356/0.438, allocations: 462.1 kB / 0.5203 GB, free: 13.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.438, allocations: 2.188 kB / 0.5203 GB, free: 13.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001108/0.4391, allocations: 0.5041 MB / 0.5208 GB, free: 13.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.065e-05/0.4392, allocations: 43 kB / 0.5208 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.4392, allocations: 4.469 kB / 0.5208 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/0.4392, allocations: 6.031 kB / 0.5208 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.4396, allocations: 89.7 kB / 0.5209 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.4396, allocations: 11.64 kB / 0.5209 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.4399, allocations: 46.31 kB / 0.521 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-05/0.44, allocations: 19.62 kB / 0.521 GB, free: 13.07 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.0003177/0.4403, allocations: 208.6 kB / 0.5212 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.4404, allocations: 42.22 kB / 0.5212 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.4405, allocations: 50.16 kB / 0.5213 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4405, allocations: 5.594 kB / 0.5213 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.4405, allocations: 2.781 kB / 0.5213 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.4406, allocations: 4.609 kB / 0.5213 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.4416, allocations: 1.03 MB / 0.5223 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4417, allocations: 2.094 kB / 0.5223 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.4419, allocations: 59.58 kB / 0.5224 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4419, allocations: 3.375 kB / 0.5224 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.252e-05/0.442, allocations: 16.12 kB / 0.5224 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.442, allocations: 16.22 kB / 0.5224 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.442, allocations: 3.375 kB / 0.5224 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009856/0.443, allocations: 464.9 kB / 0.5228 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.193e-05/0.4431, allocations: 113 kB / 0.5229 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.296e-05/0.4432, allocations: 16.05 kB / 0.523 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.4434, allocations: 33.47 kB / 0.523 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.4435, allocations: 33.14 kB / 0.523 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.4435, allocations: 16.97 kB / 0.523 GB, free: 11.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003015/0.4439, allocations: 237.4 kB / 0.5233 GB, free: 11.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4439, allocations: 0 / 0.5233 GB, free: 11.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004644/0.4443, allocations: 86.66 kB / 0.5233 GB, free: 11.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001265/0.4456, allocations: 466.4 kB / 0.5238 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.4467, allocations: 420.8 kB / 0.5242 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.4467, allocations: 0 / 0.5242 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000498/0.4472, allocations: 198.2 kB / 0.5244 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.4477, allocations: 77.62 kB / 0.5245 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.4492, allocations: 0.701 MB / 0.5251 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.4497, allocations: 0.8082 MB / 0.5259 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000277/0.45, allocations: 84.02 kB / 0.526 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.4502, allocations: 45.17 kB / 0.5261 GB, free: 9.738 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4502, allocations: 0 / 0.5261 GB, free: 9.738 MB / 398.1 MB Notification: Performance of Templates: time 0.01094/0.4611, allocations: 4.679 MB / 0.5306 GB, free: 8.297 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches