Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") [: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.001441/0.001441, allocations: 180.1 kB / 8.132 MB, free: 2.219 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.397/1.397, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0008251/0.0008251, allocations: 94.2 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.1581/0.1581, allocations: 37.98 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.154e-06/7.184e-06, allocations: 4 kB / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1001, allocations: 56.32 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3114/0.4115, allocations: 93.21 MB / 0.5464 GB, free: 1.375 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.4118, allocations: 89.28 kB / 0.5465 GB, free: 1.289 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.0321/0.4439, allocations: 12.75 MB / 0.559 GB, free: 4.391 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.444, allocations: 8 kB / 0.559 GB, free: 4.383 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000655/0.4447, allocations: 482.5 kB / 0.5594 GB, free: 3.867 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4447, allocations: 12.03 kB / 0.5594 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008589/0.4456, allocations: 95.59 kB / 0.5595 GB, free: 3.762 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.446, allocations: 265.5 kB / 0.5598 GB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.446, allocations: 12 kB / 0.5598 GB, free: 3.449 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.446, allocations: 8 kB / 0.5598 GB, free: 3.441 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003807/0.4464, allocations: 204.2 kB / 0.56 GB, free: 3.242 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.4469, allocations: 286.4 kB / 0.5603 GB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.4469, allocations: 0 / 0.5603 GB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.4469, allocations: 0 / 0.5603 GB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.524e-05/0.447, allocations: 27.97 kB / 0.5603 GB, free: 2.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.4486, allocations: 1.256 MB / 0.5615 GB, free: 1.566 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.449, allocations: 165.2 kB / 0.5617 GB, free: 1.387 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.32e-05/0.4491, allocations: 49.78 kB / 0.5617 GB, free: 1.332 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.4491, allocations: 7.938 kB / 0.5617 GB, free: 1.324 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.4492, allocations: 34.55 kB / 0.5618 GB, free: 1.281 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.793e-06/0.4492, allocations: 0 / 0.5618 GB, free: 1.281 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007146/0.4499, allocations: 273.3 kB / 0.562 GB, free: 1.004 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.45, allocations: 77.11 kB / 0.5621 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.4502, allocations: 159.6 kB / 0.5623 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.4502, allocations: 25.7 kB / 0.5623 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.495e-05/0.4503, allocations: 151.8 kB / 0.5624 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.4504, allocations: 51.3 kB / 0.5625 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.4504, allocations: 0 / 0.5625 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4505, allocations: 322.8 kB / 0.5628 GB, free: 188 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.225e-05/0.4506, allocations: 48.02 kB / 0.5628 GB, free: 140 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.4507, allocations: 136.9 kB / 0.563 GB, free: 15.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.4509, allocations: 80.16 kB / 0.563 GB, free: 15.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4509, allocations: 4 kB / 0.563 GB, free: 15.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004496/0.4513, allocations: 225.9 kB / 0.5633 GB, free: 15.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4514, allocations: 5.406 kB / 0.5633 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4514, allocations: 12.31 kB / 0.5633 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.4516, allocations: 40.83 kB / 0.5633 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.4518, allocations: 43.91 kB / 0.5634 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.4529, allocations: 1.279 MB / 0.5646 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.4531, allocations: 4 kB / 0.5646 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.4531, allocations: 8 kB / 0.5646 GB, free: 14.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.4532, allocations: 125 kB / 0.5647 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.4533, allocations: 19.8 kB / 0.5648 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003502/0.4536, allocations: 163.8 kB / 0.5649 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4536, allocations: 0 / 0.5649 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4536, allocations: 4 kB / 0.5649 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.4537, allocations: 0 / 0.5649 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008238/0.4545, allocations: 0.4982 MB / 0.5654 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.4545, allocations: 4 kB / 0.5654 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.958e-05/0.4546, allocations: 16 kB / 0.5654 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.4548, allocations: 44.77 kB / 0.5655 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.4548, allocations: 0 / 0.5655 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009482/0.4557, allocations: 1.26 MB / 0.5667 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4558, allocations: 0 / 0.5667 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004019/0.4562, allocations: 330.3 kB / 0.567 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.4562, allocations: 92.83 kB / 0.5671 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.4563, allocations: 4 kB / 0.5671 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.4564, allocations: 0 / 0.5671 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.4564, allocations: 11.98 kB / 0.5671 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.4564, allocations: 4 kB / 0.5671 GB, free: 11.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001093/0.4566, allocations: 132.3 kB / 0.5672 GB, free: 11.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004015/0.457, allocations: 48 kB / 0.5673 GB, free: 11.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001504/0.4571, allocations: 107.1 kB / 0.5674 GB, free: 11.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005949/0.4577, allocations: 246.7 kB / 0.5676 GB, free: 10.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4578, allocations: 0 / 0.5676 GB, free: 10.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.4581, allocations: 161.6 kB / 0.5678 GB, free: 10.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.4584, allocations: 24.12 kB / 0.5678 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006169/0.4591, allocations: 297.2 kB / 0.5681 GB, free: 10.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.4595, allocations: 0.7821 MB / 0.5688 GB, free: 9.441 MB / 410.7 MB Notification: Performance of SimCode: time 3.8e-07/0.4595, allocations: 0 / 0.5688 GB, free: 9.441 MB / 410.7 MB Notification: Performance of Templates: time 0.004383/0.4639, allocations: 1.623 MB / 0.5704 GB, free: 7.816 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches