Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") [: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.001189/0.001189, allocations: 184.8 kB / 8.133 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.19/1.19, 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.0008509/0.0008509, allocations: 91.28 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1728/0.1728, allocations: 37.98 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.116e-06/8.146e-06, allocations: 0 / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 56.32 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2983/0.4045, allocations: 93.91 MB / 0.5471 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4047, allocations: 79.95 kB / 0.5472 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03293/0.4377, allocations: 13.82 MB / 0.5607 GB, free: 2.641 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.4377, allocations: 4 kB / 0.5607 GB, free: 2.637 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.0005851/0.4383, allocations: 494.4 kB / 0.5612 GB, free: 2.109 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.4384, allocations: 12.03 kB / 0.5612 GB, free: 2.098 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009194/0.4393, allocations: 95.59 kB / 0.5613 GB, free: 2.004 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.4397, allocations: 270.5 kB / 0.5615 GB, free: 1.699 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.4397, allocations: 8 kB / 0.5615 GB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.4397, allocations: 8 kB / 0.5615 GB, free: 1.684 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000325/0.4401, allocations: 204.3 kB / 0.5617 GB, free: 1.484 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.4405, allocations: 289.7 kB / 0.562 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.4405, allocations: 0 / 0.562 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.4405, allocations: 0 / 0.562 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.068e-05/0.4406, allocations: 27.97 kB / 0.562 GB, free: 1.148 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.4422, allocations: 1.31 MB / 0.5633 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.4426, allocations: 213.1 kB / 0.5635 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.4427, allocations: 101.7 kB / 0.5636 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.4427, allocations: 4.281 kB / 0.5636 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.4428, allocations: 34.56 kB / 0.5636 GB, free: 15.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.4428, allocations: 0 / 0.5636 GB, free: 15.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006696/0.4435, allocations: 352.2 kB / 0.564 GB, free: 15.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.4435, allocations: 85.14 kB / 0.5641 GB, free: 14.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.4437, allocations: 167.2 kB / 0.5642 GB, free: 14.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4437, allocations: 25.7 kB / 0.5642 GB, free: 14.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.49e-05/0.4438, allocations: 148 kB / 0.5644 GB, free: 14.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.4438, allocations: 51.2 kB / 0.5644 GB, free: 14.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.4438, allocations: 0 / 0.5644 GB, free: 14.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.4439, allocations: 334.7 kB / 0.5648 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.444, allocations: 80.44 kB / 0.5648 GB, free: 14.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.4442, allocations: 154.6 kB / 0.565 GB, free: 13.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.4443, allocations: 109.3 kB / 0.5651 GB, free: 13.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.4443, allocations: 3.938 kB / 0.5651 GB, free: 13.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000359/0.4447, allocations: 273 kB / 0.5653 GB, free: 13.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.4447, allocations: 4 kB / 0.5654 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4447, allocations: 4.281 kB / 0.5654 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.4448, allocations: 8 kB / 0.5654 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.445, allocations: 51.91 kB / 0.5654 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.445, allocations: 0 / 0.5654 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.4452, allocations: 15.98 kB / 0.5654 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.4452, allocations: 12 kB / 0.5654 GB, free: 13.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.478e-05/0.4453, allocations: 108.9 kB / 0.5655 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.4454, allocations: 19.72 kB / 0.5656 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003405/0.4457, allocations: 223.1 kB / 0.5658 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.4457, allocations: 0 / 0.5658 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4457, allocations: 4 kB / 0.5658 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.4457, allocations: 3.984 kB / 0.5658 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.4471, allocations: 1.084 MB / 0.5668 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4471, allocations: 4 kB / 0.5668 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.4473, allocations: 39.92 kB / 0.5669 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.4473, allocations: 7.938 kB / 0.5669 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.4473, allocations: 8 kB / 0.5669 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.675e-06/0.4473, allocations: 11.89 kB / 0.5669 GB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.4473, allocations: 4 kB / 0.5669 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005158/0.4478, allocations: 0.6044 MB / 0.5675 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.512e-05/0.4479, allocations: 96.91 kB / 0.5676 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.448, allocations: 4 kB / 0.5676 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.4482, allocations: 11.98 kB / 0.5676 GB, free: 10.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.4482, allocations: 23.89 kB / 0.5676 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.4482, allocations: 8 kB / 0.5676 GB, free: 10.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001171/0.4483, allocations: 139.1 kB / 0.5678 GB, free: 10.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003811/0.4487, allocations: 56 kB / 0.5678 GB, free: 10.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (18): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001395/0.4489, allocations: 111.1 kB / 0.5679 GB, free: 10.53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002948/0.4492, allocations: 207.7 kB / 0.5681 GB, free: 10.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4492, allocations: 0 / 0.5681 GB, free: 10.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.4493, allocations: 91.83 kB / 0.5682 GB, free: 10.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.4496, allocations: 41.7 kB / 0.5683 GB, free: 10.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007254/0.4504, allocations: 436.2 kB / 0.5687 GB, free: 9.691 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.4508, allocations: 0.7862 MB / 0.5694 GB, free: 8.879 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4508, allocations: 0 / 0.5694 GB, free: 8.879 MB / 410.7 MB Notification: Performance of Templates: time 0.004445/0.4552, allocations: 1.914 MB / 0.5713 GB, free: 6.965 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches