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.001153/0.001159, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001126/0.001126, allocations: 191 kB / 18 MB, free: 5.105 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.407/1.407, allocations: 222.9 MB / 241.7 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.1854/0.1854, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 67.91 kB / 458.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.3999, allocations: 58.06 MB / 0.5041 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005499/0.4054, allocations: 3.687 MB / 0.5077 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002904/0.4083, allocations: 2.036 MB / 0.5097 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.4085, allocations: 13.91 kB / 0.5097 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009052/0.4094, allocations: 238.7 kB / 0.5099 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006571/0.4101, allocations: 281.7 kB / 0.5102 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007943/0.4109, allocations: 286.1 kB / 0.5105 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006495/0.4116, allocations: 0.5255 MB / 0.511 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004179/0.412, allocations: 228.8 kB / 0.5112 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004491/0.4124, allocations: 239.2 kB / 0.5114 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003141/0.4128, allocations: 204.2 kB / 0.5116 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.224e-05/0.4128, allocations: 42.28 kB / 0.5117 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006858/0.4135, allocations: 401.9 kB / 0.512 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.4137, allocations: 128.7 kB / 0.5122 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.4139, allocations: 183.3 kB / 0.5123 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009478/0.4149, allocations: 0.6397 MB / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4149, allocations: 0 / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4149, allocations: 0 / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.4149, allocations: 0 / 0.513 GB, free: 2.188 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.001239/0.4162, allocations: 0.7398 MB / 0.5137 GB, free: 1.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.4162, allocations: 12.98 kB / 0.5137 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008927/0.4171, allocations: 109.7 kB / 0.5138 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006176/0.4177, allocations: 422.2 kB / 0.5142 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.4178, allocations: 23.16 kB / 0.5142 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.4178, allocations: 22.59 kB / 0.5143 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000838/0.4187, allocations: 444.2 kB / 0.5147 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.4187, allocations: 0 / 0.5147 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.4187, allocations: 16.39 kB / 0.5147 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.4188, allocations: 16.53 kB / 0.5147 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.4198, allocations: 0.4966 MB / 0.5152 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.422, allocations: 1.678 MB / 0.5168 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.4231, allocations: 370.6 kB / 0.5172 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/0.4236, allocations: 140.2 kB / 0.5173 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.4236, allocations: 11.19 kB / 0.5173 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007021/0.4243, allocations: 287.2 kB / 0.5176 GB, free: 15.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.874e-06/0.4243, allocations: 0 / 0.5176 GB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001435/0.4258, allocations: 0.5239 MB / 0.5181 GB, free: 15.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.426, allocations: 302.2 kB / 0.5184 GB, free: 14.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.4264, allocations: 328 kB / 0.5187 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.4265, allocations: 38.83 kB / 0.5188 GB, free: 14.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.4266, allocations: 195.6 kB / 0.5189 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.4268, allocations: 104.4 kB / 0.519 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.4269, allocations: 72.95 kB / 0.5191 GB, free: 14.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.427, allocations: 347.8 kB / 0.5194 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.4274, allocations: 138.7 kB / 0.5196 GB, free: 13.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005013/0.4279, allocations: 277.8 kB / 0.5198 GB, free: 13.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009925/0.4289, allocations: 461.5 kB / 0.5203 GB, free: 13.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.4289, allocations: 1.25 kB / 0.5203 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001255/0.4302, allocations: 0.5043 MB / 0.5208 GB, free: 13.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.894e-05/0.4303, allocations: 39.39 kB / 0.5208 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.4303, allocations: 3.438 kB / 0.5208 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/0.4303, allocations: 6.812 kB / 0.5208 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.4307, allocations: 88.27 kB / 0.5209 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.4307, allocations: 9.812 kB / 0.5209 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.4311, allocations: 58.47 kB / 0.521 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.4312, allocations: 19.48 kB / 0.521 GB, free: 13.01 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.0003521/0.4315, allocations: 204.4 kB / 0.5212 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.4316, allocations: 42.72 kB / 0.5212 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.4318, allocations: 52.58 kB / 0.5213 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4318, allocations: 5.453 kB / 0.5213 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.4318, allocations: 2.75 kB / 0.5213 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.4318, allocations: 7.828 kB / 0.5213 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.433, allocations: 1.028 MB / 0.5223 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.433, allocations: 1.344 kB / 0.5223 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.4333, allocations: 72.09 kB / 0.5224 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.4333, allocations: 4.031 kB / 0.5224 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.4334, allocations: 7.984 kB / 0.5224 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.4334, allocations: 3.094 kB / 0.5224 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4334, allocations: 2.922 kB / 0.5224 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009695/0.4344, allocations: 469.5 kB / 0.5228 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.532e-05/0.4345, allocations: 113 kB / 0.5229 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.4345, allocations: 12.56 kB / 0.523 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.4348, allocations: 25.67 kB / 0.523 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.4349, allocations: 37 kB / 0.523 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.4349, allocations: 17.06 kB / 0.523 GB, free: 11.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003174/0.4353, allocations: 240.6 kB / 0.5233 GB, free: 11.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4353, allocations: 0 / 0.5233 GB, free: 11.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000524/0.4358, allocations: 91.12 kB / 0.5233 GB, free: 11.35 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.001159/0.437, allocations: 456.7 kB / 0.5238 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.438, allocations: 418.4 kB / 0.5242 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.438, allocations: 256 / 0.5242 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004584/0.4385, allocations: 199.6 kB / 0.5244 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.439, allocations: 82.16 kB / 0.5244 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.4404, allocations: 0.7009 MB / 0.5251 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.4409, allocations: 0.8087 MB / 0.5259 GB, free: 9.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000257/0.4411, allocations: 88.03 kB / 0.526 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.4413, allocations: 43.41 kB / 0.526 GB, free: 9.684 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4413, allocations: 4 kB / 0.5261 GB, free: 9.68 MB / 398.1 MB Notification: Performance of Templates: time 0.0111/0.4524, allocations: 4.672 MB / 0.5306 GB, free: 8.332 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