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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001315/0.001319, allocations: 181.6 kB / 8.13 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009192/0.0009192, allocations: 87.28 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2178/0.2178, allocations: 37.98 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.545e-06/7.555e-06, allocations: 0 / 410 MB, free: 46.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1174, allocations: 56.32 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3121/0.4296, allocations: 99.01 MB / 0.5521 GB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006392/0.436, allocations: 2.202 MB / 0.5542 GB, free: 9.387 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). Notification: Performance of FrontEnd: time 0.04985/0.4859, allocations: 20.37 MB / 0.5741 GB, free: 4.789 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.817e-05/0.486, allocations: 12 kB / 0.5741 GB, free: 4.777 MB / 410.7 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.001286/0.4873, allocations: 0.7363 MB / 0.5749 GB, free: 3.988 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.4873, allocations: 8.031 kB / 0.5749 GB, free: 3.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001099/0.4884, allocations: 119.4 kB / 0.575 GB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.4891, allocations: 399.1 kB / 0.5754 GB, free: 3.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.4891, allocations: 8 kB / 0.5754 GB, free: 3.422 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/0.4891, allocations: 12 kB / 0.5754 GB, free: 3.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006326/0.4898, allocations: 388.7 kB / 0.5757 GB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.4904, allocations: 399.5 kB / 0.5761 GB, free: 2.609 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4904, allocations: 3.938 kB / 0.5761 GB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.4904, allocations: 3.984 kB / 0.5761 GB, free: 2.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.272e-05/0.4905, allocations: 28.36 kB / 0.5762 GB, free: 2.574 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.4927, allocations: 1.833 MB / 0.578 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.4932, allocations: 289.6 kB / 0.5782 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.4934, allocations: 118.2 kB / 0.5783 GB, free: 220 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.4935, allocations: 8.234 kB / 0.5784 GB, free: 212 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.4938, allocations: 241.4 kB / 0.5786 GB, free: 15.94 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 3.988e-06/0.4938, allocations: 0 / 0.5786 GB, free: 15.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005811/0.4944, allocations: 320.9 kB / 0.5789 GB, free: 15.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/0.4945, allocations: 235.3 kB / 0.5791 GB, free: 15.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.4948, allocations: 319.7 kB / 0.5794 GB, free: 15.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.4949, allocations: 37.69 kB / 0.5795 GB, free: 14.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.504e-05/0.495, allocations: 171.9 kB / 0.5796 GB, free: 14.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.932e-05/0.495, allocations: 102.7 kB / 0.5797 GB, free: 14.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/0.4951, allocations: 0 / 0.5797 GB, free: 14.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4952, allocations: 342.8 kB / 0.58 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.4954, allocations: 116.7 kB / 0.5802 GB, free: 14.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.4957, allocations: 258.4 kB / 0.5804 GB, free: 13.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.4959, allocations: 154.2 kB / 0.5805 GB, free: 13.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4959, allocations: 0 / 0.5805 GB, free: 13.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006668/0.4966, allocations: 419 kB / 0.5809 GB, free: 13.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.4966, allocations: 8 kB / 0.581 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.4966, allocations: 4 kB / 0.581 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.4967, allocations: 4 kB / 0.581 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.4971, allocations: 108 kB / 0.5811 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.4971, allocations: 15.92 kB / 0.5811 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.4974, allocations: 55.58 kB / 0.5811 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.4975, allocations: 19.98 kB / 0.5812 GB, free: 13.15 MB / 426.7 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 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.4976, allocations: 116.9 kB / 0.5813 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.472e-05/0.4977, allocations: 39.53 kB / 0.5813 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006686/0.4984, allocations: 380.5 kB / 0.5817 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.4984, allocations: 4 kB / 0.5817 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4984, allocations: 8 kB / 0.5817 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.4984, allocations: 7.891 kB / 0.5817 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000887/0.4993, allocations: 0.8474 MB / 0.5825 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.4993, allocations: 4 kB / 0.5825 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003426/0.4997, allocations: 91.95 kB / 0.5826 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.4997, allocations: 4 kB / 0.5826 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.4997, allocations: 4 kB / 0.5826 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.4998, allocations: 11.92 kB / 0.5826 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4998, allocations: 3.906 kB / 0.5826 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005976/0.5004, allocations: 499.4 kB / 0.5831 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.726e-05/0.5005, allocations: 124.6 kB / 0.5832 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.24e-05/0.5006, allocations: 8 kB / 0.5832 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.5008, allocations: 31.97 kB / 0.5833 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.5009, allocations: 35.95 kB / 0.5833 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.5009, allocations: 19.98 kB / 0.5833 GB, free: 10.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002399/0.5012, allocations: 239.1 kB / 0.5835 GB, free: 10.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004581/0.5017, allocations: 107.8 kB / 0.5836 GB, free: 10.43 MB / 426.7 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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007601/0.5024, allocations: 354.8 kB / 0.584 GB, free: 10.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00052/0.503, allocations: 337.8 kB / 0.5843 GB, free: 9.758 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.503, allocations: 4 kB / 0.5843 GB, free: 9.754 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.5033, allocations: 192 kB / 0.5845 GB, free: 9.566 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.5037, allocations: 54.59 kB / 0.5845 GB, free: 9.516 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.5048, allocations: 0.5368 MB / 0.5851 GB, free: 8.938 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005409/0.5053, allocations: 0.8835 MB / 0.5859 GB, free: 8.027 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5053, allocations: 3.938 kB / 0.5859 GB, free: 8.023 MB / 426.7 MB Notification: Performance of Templates: time 0.008815/0.5141, allocations: 4.726 MB / 0.5905 GB, free: 3.301 MB / 426.7 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","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches