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.001457/0.001457, allocations: 111.1 kB / 17.74 MB, free: 5.312 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.001802/0.001802, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.371/1.371, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1908/0.1908, allocations: 38.04 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 67.89 kB / 458.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3203, allocations: 58.05 MB / 0.5047 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.004869/0.3252, allocations: 4.248 MB / 0.5089 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003115/0.3283, allocations: 2.506 MB / 0.5113 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.3286, allocations: 11.62 kB / 0.5114 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.3297, allocations: 355.5 kB / 0.5117 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008183/0.3305, allocations: 328 kB / 0.512 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009928/0.3315, allocations: 392 kB / 0.5124 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006609/0.3322, allocations: 0.6199 MB / 0.513 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.3326, allocations: 235 kB / 0.5132 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004944/0.3331, allocations: 264.3 kB / 0.5135 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.3334, allocations: 253.1 kB / 0.5137 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.041e-05/0.3335, allocations: 43.02 kB / 0.5137 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009274/0.3344, allocations: 0.534 MB / 0.5143 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.3346, allocations: 138.6 kB / 0.5144 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.3348, allocations: 190.5 kB / 0.5146 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009414/0.3357, allocations: 0.6926 MB / 0.5153 GB, free: 1.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3358, allocations: 0 / 0.5153 GB, free: 1.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3358, allocations: 5.109 kB / 0.5153 GB, free: 1.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3358, allocations: 0.9062 kB / 0.5153 GB, free: 1.355 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.001254/0.337, allocations: 0.7703 MB / 0.516 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3371, allocations: 12.83 kB / 0.516 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.3382, allocations: 110.7 kB / 0.5161 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005562/0.3388, allocations: 430.6 kB / 0.5165 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.3388, allocations: 16.08 kB / 0.5166 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.3389, allocations: 36.97 kB / 0.5166 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008332/0.3397, allocations: 451.3 kB / 0.517 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3397, allocations: 0 / 0.517 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.3398, allocations: 8.75 kB / 0.517 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.321e-05/0.3398, allocations: 22.36 kB / 0.5171 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.341, allocations: 490 kB / 0.5175 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002387/0.3434, allocations: 1.77 MB / 0.5192 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.3445, allocations: 383.5 kB / 0.5196 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003923/0.3449, allocations: 149.7 kB / 0.5198 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3449, allocations: 6.828 kB / 0.5198 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005786/0.3455, allocations: 284.5 kB / 0.52 GB, free: 14.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.3455, allocations: 5.016 kB / 0.52 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=30): time 0.001434/0.3469, allocations: 0.5157 MB / 0.5205 GB, free: 14.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.3471, allocations: 250.8 kB / 0.5208 GB, free: 13.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004637/0.3476, allocations: 361.3 kB / 0.5211 GB, free: 13.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.3476, allocations: 35.03 kB / 0.5212 GB, free: 13.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.3478, allocations: 205 kB / 0.5214 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.322e-05/0.3479, allocations: 96.91 kB / 0.5214 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.348, allocations: 76.8 kB / 0.5215 GB, free: 13.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3482, allocations: 349.1 kB / 0.5219 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.3486, allocations: 140.3 kB / 0.522 GB, free: 12.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004751/0.3491, allocations: 275.7 kB / 0.5223 GB, free: 12.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008735/0.35, allocations: 466.8 kB / 0.5227 GB, free: 12.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.35, allocations: 1.094 kB / 0.5227 GB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001183/0.3512, allocations: 0.5224 MB / 0.5232 GB, free: 12.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.332e-05/0.3512, allocations: 36.97 kB / 0.5232 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3513, allocations: 5.281 kB / 0.5232 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3513, allocations: 10.14 kB / 0.5233 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003565/0.3516, allocations: 94.31 kB / 0.5233 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.3517, allocations: 7.906 kB / 0.5234 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003272/0.352, allocations: 47.58 kB / 0.5234 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.352, allocations: 19.97 kB / 0.5234 GB, free: 12.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 (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.0002405/0.3523, allocations: 204.7 kB / 0.5236 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.3524, allocations: 46.66 kB / 0.5237 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.3525, allocations: 49.56 kB / 0.5237 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3525, allocations: 4.125 kB / 0.5237 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3525, allocations: 1.375 kB / 0.5237 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3525, allocations: 4.812 kB / 0.5237 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008487/0.3534, allocations: 0.8465 MB / 0.5245 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3534, allocations: 2.75 kB / 0.5245 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.3537, allocations: 60.17 kB / 0.5246 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.3537, allocations: 4.125 kB / 0.5246 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.3537, allocations: 10.05 kB / 0.5246 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3538, allocations: 3.453 kB / 0.5246 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3538, allocations: 2.75 kB / 0.5246 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.3548, allocations: 470 kB / 0.5251 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.3549, allocations: 114.7 kB / 0.5252 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.3549, allocations: 13.61 kB / 0.5252 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.3552, allocations: 25.17 kB / 0.5252 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.3553, allocations: 33.3 kB / 0.5252 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.3553, allocations: 15.97 kB / 0.5253 GB, free: 10.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000306/0.3556, allocations: 253.1 kB / 0.5255 GB, free: 10.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3557, allocations: 1.312 kB / 0.5255 GB, free: 10.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004746/0.3561, allocations: 88.41 kB / 0.5256 GB, free: 10.58 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.001062/0.3572, allocations: 472.1 kB / 0.526 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009902/0.3582, allocations: 417.3 kB / 0.5264 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3582, allocations: 0 / 0.5264 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004525/0.3587, allocations: 185.5 kB / 0.5266 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.3592, allocations: 84.58 kB / 0.5267 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.3605, allocations: 0.7399 MB / 0.5274 GB, free: 9.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003863/0.3609, allocations: 0.8089 MB / 0.5282 GB, free: 8.906 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3611, allocations: 43.03 kB / 0.5283 GB, free: 8.898 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3611, allocations: 0 / 0.5283 GB, free: 8.898 MB / 398.1 MB Notification: Performance of Templates: time 0.009176/0.3702, allocations: 5.555 MB / 0.5337 GB, free: 6.742 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches