Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.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.WindFarmHVDCTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|inverter.I|windFarm.p.1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|inverter.I|windFarm.p.1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001767/0.001767, allocations: 191 kB / 18 MB, free: 4.977 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.39/1.39, 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.1787/0.1787, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 67.89 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4244/0.4257, allocations: 58.05 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005531/0.4313, allocations: 4.247 MB / 0.5082 GB, free: 4.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003438/0.4348, allocations: 2.5 MB / 0.5107 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003116/0.4351, allocations: 11.41 kB / 0.5107 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.4364, allocations: 355.1 kB / 0.511 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.4375, allocations: 336.2 kB / 0.5114 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.4387, allocations: 384.7 kB / 0.5117 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009214/0.4396, allocations: 0.622 MB / 0.5123 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004411/0.44, allocations: 242.8 kB / 0.5126 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005051/0.4406, allocations: 268.3 kB / 0.5128 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004467/0.441, allocations: 249.2 kB / 0.5131 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.539e-05/0.4411, allocations: 38.5 kB / 0.5131 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00123/0.4424, allocations: 0.5398 MB / 0.5136 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.4426, allocations: 128.8 kB / 0.5137 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.4428, allocations: 203.7 kB / 0.5139 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.444, allocations: 0.6935 MB / 0.5146 GB, free: 1.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.444, allocations: 1.188 kB / 0.5146 GB, free: 1.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.444, allocations: 0 / 0.5146 GB, free: 1.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.444, allocations: 0 / 0.5146 GB, free: 1.191 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001318/0.4454, allocations: 0.7757 MB / 0.5154 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.4454, allocations: 12.95 kB / 0.5154 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.4465, allocations: 114 kB / 0.5155 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.4472, allocations: 423.6 kB / 0.5159 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.4473, allocations: 14.94 kB / 0.5159 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.716e-05/0.4473, allocations: 28.19 kB / 0.5159 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009899/0.4483, allocations: 456.4 kB / 0.5164 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4483, allocations: 1.531 kB / 0.5164 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.4484, allocations: 11.16 kB / 0.5164 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.554e-05/0.4484, allocations: 18.73 kB / 0.5164 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.4497, allocations: 494.4 kB / 0.5169 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.4522, allocations: 1.766 MB / 0.5186 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000986/0.4532, allocations: 384 kB / 0.519 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003383/0.4536, allocations: 139.4 kB / 0.5191 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.59e-05/0.4536, allocations: 20.22 kB / 0.5191 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005761/0.4542, allocations: 292.5 kB / 0.5194 GB, free: 14.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.395e-06/0.4542, allocations: 1 kB / 0.5194 GB, free: 14.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=30): time 0.001418/0.4556, allocations: 0.5142 MB / 0.5199 GB, free: 13.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000171/0.4558, allocations: 248.3 kB / 0.5201 GB, free: 13.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000456/0.4563, allocations: 360.5 kB / 0.5205 GB, free: 13.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.4563, allocations: 34.11 kB / 0.5205 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.4565, allocations: 199.1 kB / 0.5207 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.4566, allocations: 104.2 kB / 0.5208 GB, free: 13.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.4567, allocations: 74.33 kB / 0.5209 GB, free: 13.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.4569, allocations: 349.7 kB / 0.5212 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003899/0.4573, allocations: 143.6 kB / 0.5213 GB, free: 12.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.4578, allocations: 271.5 kB / 0.5216 GB, free: 12.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008411/0.4586, allocations: 461.8 kB / 0.522 GB, free: 12.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.4586, allocations: 1.031 kB / 0.522 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001132/0.4598, allocations: 0.522 MB / 0.5225 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.489e-05/0.4598, allocations: 38.45 kB / 0.5226 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.4599, allocations: 4.344 kB / 0.5226 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.4599, allocations: 8.172 kB / 0.5226 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003509/0.4602, allocations: 90.09 kB / 0.5227 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.842e-05/0.4603, allocations: 12.45 kB / 0.5227 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.4606, allocations: 54.02 kB / 0.5227 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.4606, allocations: 20.16 kB / 0.5228 GB, free: 11.88 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 (44): * Single equations (assignments): 43 * 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.0002456/0.4609, allocations: 200.8 kB / 0.523 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.588e-05/0.461, allocations: 42.05 kB / 0.523 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.4611, allocations: 54.2 kB / 0.523 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4611, allocations: 4.125 kB / 0.5231 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.4611, allocations: 2.75 kB / 0.5231 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.4611, allocations: 7.438 kB / 0.5231 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009518/0.4621, allocations: 0.8474 MB / 0.5239 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.4621, allocations: 2.125 kB / 0.5239 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002551/0.4624, allocations: 60.97 kB / 0.524 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.4624, allocations: 6.75 kB / 0.524 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.4624, allocations: 11.56 kB / 0.524 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.4624, allocations: 3.406 kB / 0.524 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.4624, allocations: 1.375 kB / 0.524 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000941/0.4634, allocations: 467.3 kB / 0.5244 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.135e-05/0.4635, allocations: 113.3 kB / 0.5245 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.475e-05/0.4636, allocations: 10.77 kB / 0.5245 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.4638, allocations: 28.36 kB / 0.5246 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.4639, allocations: 41.64 kB / 0.5246 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.4639, allocations: 15.94 kB / 0.5246 GB, free: 10.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002895/0.4642, allocations: 253.3 kB / 0.5249 GB, free: 10.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4642, allocations: 0 / 0.5249 GB, free: 10.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004665/0.4647, allocations: 93.66 kB / 0.525 GB, free: 10.4 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (30): * Single equations (assignments): 25 * 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.001113/0.4658, allocations: 464 kB / 0.5254 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.4669, allocations: 418.3 kB / 0.5258 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4669, allocations: 0 / 0.5258 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004773/0.4674, allocations: 195.7 kB / 0.526 GB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.4679, allocations: 81.34 kB / 0.5261 GB, free: 9.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.4694, allocations: 0.6946 MB / 0.5267 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.4699, allocations: 0.8055 MB / 0.5275 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002537/0.4702, allocations: 89.83 kB / 0.5276 GB, free: 8.773 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.4703, allocations: 44.16 kB / 0.5276 GB, free: 8.762 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4703, allocations: 0 / 0.5276 GB, free: 8.762 MB / 398.1 MB Notification: Performance of Templates: time 0.01224/0.4825, allocations: 4.738 MB / 0.5323 GB, free: 7.133 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches