Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Filter.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica.Blocks.Examples.Filter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Bessel.x.1.|Bessel.x.2.|Bessel.x.3.|Butterworth.x.1.|Butterworth.x.2.|Butterworth.x.3.|ChebyshevI.x.1.|ChebyshevI.x.2.|ChebyshevI.x.3.|CriticalDamping.x.1.|CriticalDamping.x.2.|CriticalDamping.x.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Filter") translateModel(Modelica.Blocks.Examples.Filter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Bessel.x.1.|Bessel.x.2.|Bessel.x.3.|Butterworth.x.1.|Butterworth.x.2.|Butterworth.x.3.|ChebyshevI.x.1.|ChebyshevI.x.2.|ChebyshevI.x.3.|CriticalDamping.x.1.|CriticalDamping.x.2.|CriticalDamping.x.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Filter") [: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 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 183.4 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 221.4 MB / 229.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008585/0.0008585, allocations: 95.3 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.781e-06, allocations: 0 / 336.5 MB, free: 9.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1902, allocations: 50.4 MB / 386.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09418/0.2844, allocations: 89.54 MB / 476.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.2846, allocations: 68.56 kB / 476.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2409/0.5256, allocations: 35.41 MB / 0.4999 GB, free: 91.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.359e-05/0.5257, allocations: 18.97 kB / 0.4999 GB, free: 91.64 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001722/0.5274, allocations: 0.8191 MB / 0.5007 GB, free: 91.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.5274, allocations: 7.562 kB / 0.5007 GB, free: 91.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.5276, allocations: 45.72 kB / 0.5008 GB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007297/0.5283, allocations: 452.5 kB / 0.5012 GB, free: 90.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.5283, allocations: 7.469 kB / 0.5012 GB, free: 90.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.766e-05/0.5284, allocations: 19 kB / 0.5012 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002235/0.5286, allocations: 133 kB / 0.5014 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.529, allocations: 309.3 kB / 0.5017 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.529, allocations: 0 / 0.5017 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.529, allocations: 3.609 kB / 0.5017 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.529, allocations: 6.875 kB / 0.5017 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009571/0.53, allocations: 0.6373 MB / 0.5023 GB, free: 90.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004907/0.5305, allocations: 312 kB / 0.5026 GB, free: 90.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.5306, allocations: 97.16 kB / 0.5027 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.5307, allocations: 3.062 kB / 0.5027 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.5307, allocations: 38.59 kB / 0.5027 GB, free: 90.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.5307, allocations: 0 / 0.5027 GB, free: 90.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004068/0.5311, allocations: 278.2 kB / 0.503 GB, free: 90.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.5312, allocations: 373.2 kB / 0.5034 GB, free: 89.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.5315, allocations: 331 kB / 0.5037 GB, free: 89.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.5315, allocations: 29.42 kB / 0.5037 GB, free: 89.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.5316, allocations: 142 kB / 0.5038 GB, free: 89.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.5316, allocations: 84.86 kB / 0.5039 GB, free: 89.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.904e-05/0.5317, allocations: 0 / 0.5039 GB, free: 89.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.653e-05/0.5317, allocations: 361.7 kB / 0.5043 GB, free: 89.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.532, allocations: 196.7 kB / 0.5044 GB, free: 89.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.5322, allocations: 291 kB / 0.5047 GB, free: 89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.5326, allocations: 238.7 kB / 0.505 GB, free: 88.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.5327, allocations: 3.75 kB / 0.505 GB, free: 88.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009625/0.5336, allocations: 0.6227 MB / 0.5056 GB, free: 88.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.5336, allocations: 3.719 kB / 0.5056 GB, free: 88.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.35e-05/0.5337, allocations: 13.17 kB / 0.5056 GB, free: 88.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003699/0.5341, allocations: 133.7 kB / 0.5057 GB, free: 88.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.5344, allocations: 66.8 kB / 0.5058 GB, free: 88.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.5344, allocations: 0 / 0.5058 GB, free: 88.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.5345, allocations: 38.75 kB / 0.5058 GB, free: 88.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.5346, allocations: 20.14 kB / 0.5058 GB, free: 88.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 27 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.951e-05/0.5347, allocations: 111.2 kB / 0.5059 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.5348, allocations: 42.03 kB / 0.506 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.569e-05/0.5348, allocations: 38.97 kB / 0.506 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.5349, allocations: 3.719 kB / 0.506 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5349, allocations: 3.703 kB / 0.506 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.5349, allocations: 0 / 0.506 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002706/0.5351, allocations: 313.8 kB / 0.5063 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.5352, allocations: 3.719 kB / 0.5063 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.5355, allocations: 42.45 kB / 0.5064 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.5355, allocations: 2.953 kB / 0.5064 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.5355, allocations: 12.09 kB / 0.5064 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5355, allocations: 0 / 0.5064 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5355, allocations: 0 / 0.5064 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004627/0.536, allocations: 497.1 kB / 0.5068 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.893e-05/0.5361, allocations: 112.7 kB / 0.507 GB, free: 87.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.13e-05/0.5361, allocations: 14.95 kB / 0.507 GB, free: 87.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.5363, allocations: 7.281 kB / 0.507 GB, free: 87.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.647e-05/0.5364, allocations: 10.81 kB / 0.507 GB, free: 87.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.5364, allocations: 8.75 kB / 0.507 GB, free: 87.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001789/0.5366, allocations: 248.5 kB / 0.5072 GB, free: 87.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001914/0.5385, allocations: 0.6848 MB / 0.5079 GB, free: 87.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (CriticalDamping.x[1],CriticalDamping.x[2],CriticalDamping.x[3],Bessel.x[1],Bessel.x[2],Bessel.x[3],Butterworth.x[1],Butterworth.x[2],Butterworth.x[3],ChebyshevI.x[1],ChebyshevI.x[2],ChebyshevI.x[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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 Backend phase and start with SimCode phase: time 0.001971/0.5405, allocations: 0.7124 MB / 0.5086 GB, free: 87.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007931/0.5413, allocations: 0.8377 MB / 0.5094 GB, free: 86.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5413, allocations: 2.875 kB / 0.5094 GB, free: 86.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.5414, allocations: 114.3 kB / 0.5095 GB, free: 86.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.5419, allocations: 89.34 kB / 0.5096 GB, free: 86.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.5431, allocations: 0.7097 MB / 0.5103 GB, free: 86.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.5434, allocations: 0.8725 MB / 0.5112 GB, free: 85.88 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5435, allocations: 0 / 0.5112 GB, free: 85.88 MB / 378.7 MB Notification: Performance of Templates: time 0.01813/0.5616, allocations: 12.52 MB / 0.5234 GB, free: 83.24 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Filter.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Filter.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Filter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Filter.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Filter.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Filter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Filter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Filter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Filter/Filter.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Filter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches