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.001511/0.001511, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.001313/0.001313, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.302/1.302, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1727/0.1727, allocations: 38.03 MB / 330.6 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.89 kB / 458.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3115, allocations: 58.06 MB / 0.5048 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.00413/0.3157, allocations: 3.689 MB / 0.5084 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.3183, allocations: 2.04 MB / 0.5104 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.3185, allocations: 15 kB / 0.5104 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000813/0.3193, allocations: 234.8 kB / 0.5106 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006343/0.3199, allocations: 281 kB / 0.5109 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006381/0.3206, allocations: 281.4 kB / 0.5111 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000491/0.3211, allocations: 0.5348 MB / 0.5117 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000325/0.3214, allocations: 219.6 kB / 0.5119 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.3218, allocations: 231.5 kB / 0.5121 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002941/0.3221, allocations: 216.7 kB / 0.5123 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.199e-05/0.3222, allocations: 37.81 kB / 0.5123 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000647/0.3228, allocations: 398 kB / 0.5127 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.323, allocations: 128.1 kB / 0.5128 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.3231, allocations: 187.9 kB / 0.513 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007406/0.3239, allocations: 0.6347 MB / 0.5136 GB, free: 2.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3239, allocations: 1.188 kB / 0.5136 GB, free: 2.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.3239, allocations: 0 / 0.5136 GB, free: 2.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.3239, allocations: 7.938 kB / 0.5136 GB, free: 2.211 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.001088/0.325, allocations: 0.7391 MB / 0.5144 GB, free: 1.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3251, allocations: 12.83 kB / 0.5144 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008515/0.3259, allocations: 108.4 kB / 0.5145 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.3265, allocations: 419.2 kB / 0.5149 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.3265, allocations: 14.58 kB / 0.5149 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.3265, allocations: 34.05 kB / 0.5149 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007635/0.3273, allocations: 443.6 kB / 0.5153 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3273, allocations: 0 / 0.5153 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.3274, allocations: 7.734 kB / 0.5154 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.3274, allocations: 20.36 kB / 0.5154 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009967/0.3284, allocations: 0.5007 MB / 0.5159 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.3304, allocations: 1.678 MB / 0.5175 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009826/0.3314, allocations: 375.2 kB / 0.5179 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003915/0.3318, allocations: 139.1 kB / 0.518 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.3318, allocations: 8.062 kB / 0.518 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006092/0.3325, allocations: 286.9 kB / 0.5183 GB, free: 15.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 3.687e-06/0.3325, allocations: 4 kB / 0.5183 GB, free: 15.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001328/0.3338, allocations: 0.5232 MB / 0.5188 GB, free: 15.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.3339, allocations: 293.3 kB / 0.5191 GB, free: 14.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/0.3343, allocations: 333.3 kB / 0.5194 GB, free: 14.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.3344, allocations: 39.33 kB / 0.5194 GB, free: 14.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.3345, allocations: 190.7 kB / 0.5196 GB, free: 14.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.3346, allocations: 104.4 kB / 0.5197 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3347, allocations: 73.64 kB / 0.5198 GB, free: 14.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3348, allocations: 347 kB / 0.5201 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.3352, allocations: 143.6 kB / 0.5202 GB, free: 13.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.3357, allocations: 274.5 kB / 0.5205 GB, free: 13.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008225/0.3365, allocations: 455.9 kB / 0.5209 GB, free: 13.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3365, allocations: 1.094 kB / 0.5209 GB, free: 13.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00105/0.3376, allocations: 0.5144 MB / 0.5214 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.3376, allocations: 34.44 kB / 0.5215 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3376, allocations: 4.438 kB / 0.5215 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.3376, allocations: 7.562 kB / 0.5215 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.338, allocations: 88.69 kB / 0.5216 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.338, allocations: 15.83 kB / 0.5216 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.3383, allocations: 51.75 kB / 0.5216 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.3384, allocations: 18.38 kB / 0.5217 GB, free: 13.04 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.0002286/0.3386, allocations: 205.2 kB / 0.5218 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.63e-05/0.3387, allocations: 41.89 kB / 0.5219 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.3388, allocations: 56.58 kB / 0.5219 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.3388, allocations: 4.047 kB / 0.5219 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3388, allocations: 2.25 kB / 0.5219 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.911e-05/0.3389, allocations: 110 kB / 0.5221 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.339, allocations: 15.83 kB / 0.5221 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3392, allocations: 24.45 kB / 0.5221 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3393, allocations: 42.52 kB / 0.5221 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001265/0.3406, allocations: 1.103 MB / 0.5232 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001142/0.3417, allocations: 1.159 MB / 0.5243 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004526/0.3422, allocations: 187.4 kB / 0.5245 GB, free: 10.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.3425, allocations: 232.9 kB / 0.5247 GB, free: 10.72 MB / 398.1 MB Notification: Performance of Backend: time 6.12e-07/0.3425, allocations: 0 / 0.5247 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.3455, allocations: 0.91 MB / 0.5256 GB, free: 10.36 MB / 398.1 MB Notification: Performance of SimCode: time 0.001241/0.3467, allocations: 1.055 MB / 0.5267 GB, free: 9.551 MB / 398.1 MB Notification: Performance of Templates: time 0.01217/0.3589, allocations: 6.682 MB / 0.5332 GB, free: 7.148 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