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.001188/0.001188, allocations: 111.6 kB / 17.68 MB, free: 5.332 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.001221/0.001221, allocations: 192 kB / 18.62 MB, free: 4.41 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.342/1.342, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2223/0.2223, allocations: 38.04 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.28 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.09036, allocations: 58.07 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005626/0.09603, allocations: 4.234 MB / 462.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.09939, allocations: 2.52 MB / 465.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.09959, allocations: 11.94 kB / 465.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.1007, allocations: 338.5 kB / 465.4 MB, free: 212 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006899/0.1014, allocations: 326.6 kB / 465.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008083/0.1022, allocations: 388.8 kB / 466.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006003/0.1028, allocations: 0.6195 MB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003574/0.1032, allocations: 242.1 kB / 467 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004074/0.1036, allocations: 259 kB / 467.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002887/0.1039, allocations: 247.1 kB / 467.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.044e-05/0.1039, allocations: 40 kB / 467.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007782/0.1047, allocations: 0.5456 MB / 468 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.1049, allocations: 143.5 kB / 468.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.1051, allocations: 191 kB / 468.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007612/0.1058, allocations: 0.6933 MB / 469.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1058, allocations: 0 / 469.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1058, allocations: 0 / 469.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.1059, allocations: 0 / 469.1 MB, free: 12.54 MB / 350.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.001166/0.107, allocations: 0.7746 MB / 469.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.1071, allocations: 11.89 kB / 469.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.1081, allocations: 112.3 kB / 470 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005927/0.1087, allocations: 427.7 kB / 470.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.1087, allocations: 16.94 kB / 470.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.009e-05/0.1088, allocations: 32.11 kB / 470.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/0.1096, allocations: 449.2 kB / 470.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1096, allocations: 7.984 kB / 470.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.1096, allocations: 4 kB / 470.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.035e-05/0.1097, allocations: 24.42 kB / 470.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000908/0.1106, allocations: 489.2 kB / 471.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1125, allocations: 1.783 MB / 473.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009414/0.1135, allocations: 377.2 kB / 473.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.1138, allocations: 137.6 kB / 473.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.1139, allocations: 19.92 kB / 473.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005039/0.1144, allocations: 281.2 kB / 474 MB, free: 7.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.054e-06/0.1144, allocations: 0 / 474 MB, free: 7.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001234/0.1156, allocations: 0.5197 MB / 474.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.1157, allocations: 243.3 kB / 474.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.1161, allocations: 349.7 kB / 475.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.1162, allocations: 41.7 kB / 475.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1163, allocations: 200.2 kB / 475.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.639e-05/0.1164, allocations: 98.69 kB / 475.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1165, allocations: 73.61 kB / 475.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1167, allocations: 346.8 kB / 475.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/0.117, allocations: 152.2 kB / 476 MB, free: 5.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.1175, allocations: 273.8 kB / 476.2 MB, free: 4.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.1183, allocations: 470.3 kB / 476.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1183, allocations: 4 kB / 476.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009726/0.1193, allocations: 0.5141 MB / 477.2 MB, free: 3.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/0.1193, allocations: 33.7 kB / 477.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1193, allocations: 7.938 kB / 477.2 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1194, allocations: 8 kB / 477.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.1197, allocations: 96.25 kB / 477.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1197, allocations: 8 kB / 477.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.12, allocations: 59.44 kB / 477.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.12, allocations: 23.98 kB / 477.4 MB, free: 3.652 MB / 350.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.0001887/0.1202, allocations: 197.4 kB / 477.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.518e-05/0.1203, allocations: 39.56 kB / 477.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.894e-05/0.1204, allocations: 47.28 kB / 477.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1204, allocations: 4 kB / 477.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.1204, allocations: 8 kB / 477.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.1204, allocations: 3.984 kB / 477.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008005/0.1213, allocations: 0.8507 MB / 478.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1213, allocations: 4 kB / 478.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.1215, allocations: 64.02 kB / 478.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1216, allocations: 4 kB / 478.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.1216, allocations: 8 kB / 478.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1216, allocations: 4 kB / 478.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1216, allocations: 3.984 kB / 478.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008505/0.1225, allocations: 461.5 kB / 479.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.315e-05/0.1225, allocations: 112.7 kB / 479.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.1226, allocations: 16 kB / 479.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.1228, allocations: 27.97 kB / 479.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.1229, allocations: 31.91 kB / 479.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.123, allocations: 19.98 kB / 479.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002458/0.1232, allocations: 251.2 kB / 479.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1232, allocations: 0 / 479.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004037/0.1236, allocations: 95.83 kB / 479.7 MB, free: 1.289 MB / 350.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.0009956/0.1246, allocations: 461.5 kB / 480.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008537/0.1255, allocations: 418.9 kB / 480.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1255, allocations: 0 / 480.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004195/0.1259, allocations: 189.2 kB / 480.7 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.1264, allocations: 79.08 kB / 480.8 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.1275, allocations: 0.7083 MB / 481.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.1279, allocations: 0.8073 MB / 482.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.1281, allocations: 87.2 kB / 482.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.1282, allocations: 43.42 kB / 482.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1282, allocations: 0 / 482.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Templates: time 0.008428/0.1366, allocations: 4.665 MB / 487.1 MB, free: 10 MB / 366.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 -s cvode -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