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.001464/0.001464, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001685/0.001685, allocations: 187 kB / 18.67 MB, free: 4.375 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.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.03 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.89 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3297, allocations: 58.05 MB / 0.5048 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004623/0.3344, allocations: 3.687 MB / 0.5084 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.337, allocations: 2.049 MB / 0.5104 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.3372, allocations: 10.75 kB / 0.5104 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008283/0.338, allocations: 230.7 kB / 0.5106 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006619/0.3387, allocations: 285.1 kB / 0.5109 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007056/0.3394, allocations: 289.8 kB / 0.5111 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005585/0.34, allocations: 0.5309 MB / 0.5117 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003326/0.3403, allocations: 215.7 kB / 0.5119 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003975/0.3407, allocations: 234.9 kB / 0.5121 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.341, allocations: 210.1 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-05/0.3411, allocations: 37.19 kB / 0.5123 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006745/0.3418, allocations: 405.8 kB / 0.5127 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.3419, allocations: 128.2 kB / 0.5128 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.3421, allocations: 186.2 kB / 0.513 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008862/0.343, allocations: 0.6411 MB / 0.5136 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.343, allocations: 0.7969 kB / 0.5136 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.343, allocations: 0 / 0.5136 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3431, allocations: 0 / 0.5136 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.001185/0.3442, allocations: 0.7392 MB / 0.5144 GB, free: 1.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.3443, allocations: 12.7 kB / 0.5144 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009031/0.3452, allocations: 109.9 kB / 0.5145 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.3458, allocations: 417.8 kB / 0.5149 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.3458, allocations: 27.17 kB / 0.5149 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.896e-05/0.3458, allocations: 23.39 kB / 0.5149 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008678/0.3467, allocations: 440.3 kB / 0.5153 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.3467, allocations: 4 kB / 0.5153 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.053e-05/0.3468, allocations: 15.39 kB / 0.5154 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.3468, allocations: 18.11 kB / 0.5154 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.3479, allocations: 0.4959 MB / 0.5159 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.35, allocations: 1.675 MB / 0.5175 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.351, allocations: 370.1 kB / 0.5178 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004367/0.3515, allocations: 144.2 kB / 0.518 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.494e-05/0.3515, allocations: 7.719 kB / 0.518 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006677/0.3522, allocations: 286.5 kB / 0.5183 GB, free: 15.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.355e-06/0.3522, allocations: 4.469 kB / 0.5183 GB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001441/0.3537, allocations: 0.5227 MB / 0.5188 GB, free: 15.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/0.3538, allocations: 298.8 kB / 0.5191 GB, free: 14.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004132/0.3543, allocations: 333 kB / 0.5194 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.3543, allocations: 38.86 kB / 0.5194 GB, free: 14.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.3545, allocations: 195.9 kB / 0.5196 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.09e-05/0.3546, allocations: 99.67 kB / 0.5197 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3547, allocations: 72.75 kB / 0.5198 GB, free: 14.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3549, allocations: 346.9 kB / 0.5201 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/0.3553, allocations: 135.5 kB / 0.5202 GB, free: 13.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004711/0.3557, allocations: 281 kB / 0.5205 GB, free: 13.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008486/0.3566, allocations: 456.4 kB / 0.5209 GB, free: 13.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3566, allocations: 5.531 kB / 0.5209 GB, free: 13.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001075/0.3577, allocations: 0.5055 MB / 0.5214 GB, free: 13.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.3578, allocations: 39.97 kB / 0.5215 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3578, allocations: 4.219 kB / 0.5215 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.3578, allocations: 6.562 kB / 0.5215 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.3581, allocations: 91.58 kB / 0.5216 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.3582, allocations: 6.25 kB / 0.5216 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.3585, allocations: 56.12 kB / 0.5216 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.3585, allocations: 19.84 kB / 0.5216 GB, free: 13.02 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.000227/0.3588, allocations: 202.7 kB / 0.5218 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.007e-05/0.3589, allocations: 41.47 kB / 0.5219 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.359, allocations: 53.14 kB / 0.5219 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.359, allocations: 5.219 kB / 0.5219 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.359, allocations: 3.219 kB / 0.5219 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.359, allocations: 3.703 kB / 0.5219 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009802/0.36, allocations: 1.032 MB / 0.523 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.36, allocations: 2.875 kB / 0.523 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.3603, allocations: 66.56 kB / 0.523 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/0.3603, allocations: 7.531 kB / 0.523 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.3604, allocations: 11.39 kB / 0.523 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.3604, allocations: 4.266 kB / 0.523 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3604, allocations: 6.578 kB / 0.523 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009498/0.3613, allocations: 462 kB / 0.5235 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.569e-05/0.3614, allocations: 117 kB / 0.5236 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.3615, allocations: 16.23 kB / 0.5236 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.3617, allocations: 25.25 kB / 0.5236 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.891e-05/0.3618, allocations: 33.98 kB / 0.5237 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.3619, allocations: 16.31 kB / 0.5237 GB, free: 11.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002811/0.3622, allocations: 237.2 kB / 0.5239 GB, free: 11.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3622, allocations: 0 / 0.5239 GB, free: 11.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004454/0.3626, allocations: 94.66 kB / 0.524 GB, free: 11.36 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.001033/0.3637, allocations: 459.4 kB / 0.5244 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009699/0.3646, allocations: 418.2 kB / 0.5248 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3647, allocations: 2.25 kB / 0.5248 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004711/0.3651, allocations: 185.1 kB / 0.525 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.3657, allocations: 85.69 kB / 0.5251 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.367, allocations: 0.742 MB / 0.5258 GB, free: 10.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.3674, allocations: 0.8139 MB / 0.5266 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3675, allocations: 40.69 kB / 0.5267 GB, free: 9.672 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3675, allocations: 0 / 0.5267 GB, free: 9.672 MB / 398.1 MB Notification: Performance of Templates: time 0.009016/0.3766, allocations: 5.418 MB / 0.5319 GB, free: 7.82 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