Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.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.Math.FastFourierTransform.Examples.RealFFT2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ai.1.|Ai.2.|Ai.3.|Ai.4.|Ai.5.|Ai.6.|Ai.7.|Ai.8.|Ai.9.|Ai.10.|Ai.11.|Ai.12.|Ai.13.|Ai.14.|Ai.15.|Ai.16.|Ai.17.|Ai.18.|Ai.19.|Ai.20.|Ai.21.|info|y",fileNamePrefix="Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2") translateModel(Modelica.Math.FastFourierTransform.Examples.RealFFT2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ai.1.|Ai.2.|Ai.3.|Ai.4.|Ai.5.|Ai.6.|Ai.7.|Ai.8.|Ai.9.|Ai.10.|Ai.11.|Ai.12.|Ai.13.|Ai.14.|Ai.15.|Ai.16.|Ai.17.|Ai.18.|Ai.19.|Ai.20.|Ai.21.|info|y",fileNamePrefix="Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2") [: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.00101/0.00101, allocations: 185.5 kB / 8.135 MB, free: 2.184 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.177/1.177, allocations: 221.4 MB / 229.9 MB, free: 3.039 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.0009197/0.0009197, allocations: 94.12 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.199e-06/5.23e-06, allocations: 0 / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1749, allocations: 50.4 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07849/0.2535, allocations: 77.34 MB / 464.2 MB, free: 9.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001794/0.2537, allocations: 76.61 kB / 464.3 MB, free: 9.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03647/0.2902, allocations: 13.12 MB / 477.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.2902, allocations: 12 kB / 477.4 MB, free: 12.23 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.0008895/0.2911, allocations: 0.9707 MB / 478.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2912, allocations: 8.031 kB / 478.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.912e-05/0.2913, allocations: 74.97 kB / 478.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.3022, allocations: 3.703 MB / 482.2 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.3022, allocations: 0 / 482.2 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.3022, allocations: 8.938 kB / 482.2 MB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006653/0.3029, allocations: 0.7205 MB / 482.9 MB, free: 6.645 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.3036, allocations: 0.7943 MB / 483.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.3036, allocations: 0 / 483.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.3037, allocations: 0 / 483.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3037, allocations: 0 / 483.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002799/0.304, allocations: 282.6 kB / 484 MB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.3052, allocations: 1.824 MB / 485.8 MB, free: 3.699 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/0.3064, allocations: 1.813 MB / 487.6 MB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.122e-05/0.3064, allocations: 0 / 487.6 MB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008346/0.3072, allocations: 1.038 MB / 488.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=225): time 1.934e-06/0.3072, allocations: 0 / 488.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of matching and sorting (n=225): time 0.004651/0.3119, allocations: 6.317 MB / 495 MB, free: 10.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002404/0.3122, allocations: 400.5 kB / 495.4 MB, free: 10.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.3123, allocations: 165.8 kB / 495.5 MB, free: 9.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001944/0.3125, allocations: 161.6 kB / 495.7 MB, free: 9.746 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.268e-05/0.3126, allocations: 99.91 kB / 495.8 MB, free: 9.645 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005711/0.3131, allocations: 0.9021 MB / 496.7 MB, free: 8.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.889e-05/0.3132, allocations: 3.938 kB / 496.7 MB, free: 8.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.3134, allocations: 474.6 kB / 497.2 MB, free: 8.254 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.3146, allocations: 0.9871 MB / 498.2 MB, free: 7.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.3167, allocations: 2.547 MB / 0.489 GB, free: 3.973 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.3185, allocations: 1.499 MB / 0.4904 GB, free: 2.473 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/0.3185, allocations: 16 kB / 0.4905 GB, free: 2.457 MB / 378.7 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.1069/0.4254, allocations: 3.295 MB / 0.4937 GB, free: 138.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.4254, allocations: 7.125 kB / 0.4937 GB, free: 138.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.558e-05/0.4255, allocations: 57.5 kB / 0.4937 GB, free: 138.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.233e-05/0.4256, allocations: 82.72 kB / 0.4938 GB, free: 138.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.4268, allocations: 0.5227 MB / 0.4943 GB, free: 138.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.563e-05/0.4269, allocations: 113.2 kB / 0.4944 GB, free: 138.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.4281, allocations: 217.6 kB / 0.4946 GB, free: 138.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.4282, allocations: 181.1 kB / 0.4948 GB, free: 138.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 246 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.Ai[21],Ai[21],$PRE.Ai[20],Ai[20],$PRE.Ai[19],Ai[19],$PRE.Ai[18],Ai[18],$PRE.Ai[17],Ai[17],$PRE.Ai[16],Ai[16],$PRE.Ai[15],Ai[15],$PRE.Ai[14],Ai[14],$PRE.Ai[13],Ai[13],$PRE.Ai[12],Ai[12],$PRE.Ai[11],Ai[11],$PRE.Ai[10],Ai[10],$PRE.Ai[9],Ai[9],$PRE.Ai[8],Ai[8],$PRE.Ai[7],Ai[7],$PRE.Ai[6],Ai[6],$PRE.Ai[5],Ai[5],$PRE.Ai[4],Ai[4],$PRE.Ai[3],Ai[3],$PRE.Ai[2],Ai[2],$PRE.Ai[1],Ai[1],$PRE.info,info,$PRE.y_buf[200],y_buf[200],$PRE.y,y,$PRE.iTick,iTick,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (470): * Single equations (assignments): 469 * 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.0005074/0.4287, allocations: 0.5699 MB / 0.4954 GB, free: 138.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.4289, allocations: 110.4 kB / 0.4955 GB, free: 138.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.4289, allocations: 22.81 kB / 0.4955 GB, free: 138.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4289, allocations: 2.688 kB / 0.4955 GB, free: 138.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4289, allocations: 0 / 0.4955 GB, free: 138.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4289, allocations: 0 / 0.4955 GB, free: 138.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.4292, allocations: 440.2 kB / 0.4959 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.4293, allocations: 2.391 kB / 0.4959 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4293, allocations: 0 / 0.4959 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4293, allocations: 3.469 kB / 0.4959 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.366e-05/0.4293, allocations: 36.72 kB / 0.496 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.4294, allocations: 3.125 kB / 0.496 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4294, allocations: 3.594 kB / 0.496 GB, free: 138.3 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006616/0.436, allocations: 7.565 MB / 0.5033 GB, free: 138.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.4361, allocations: 177.7 kB / 0.5035 GB, free: 138.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.4363, allocations: 55.23 kB / 0.5036 GB, free: 138.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.4366, allocations: 29.12 kB / 0.5036 GB, free: 138.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4367, allocations: 25.7 kB / 0.5036 GB, free: 138.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.4368, allocations: 61.72 kB / 0.5037 GB, free: 138.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.661e-05/0.4369, allocations: 128.9 kB / 0.5038 GB, free: 138.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001951/0.4389, allocations: 426.2 kB / 0.5042 GB, free: 138.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,y,Ai[1],Ai[2],Ai[3],Ai[4],Ai[5],Ai[6],Ai[7],Ai[8],Ai[9],Ai[10],Ai[11],Ai[12],Ai[13],Ai[14],Ai[15],Ai[16],Ai[17],Ai[18],Ai[19],Ai[20],Ai[21],info,iTick,y_buf[200]) * Number of discrete states: 26 (Ai[21],Ai[20],Ai[19],Ai[18],Ai[17],Ai[16],Ai[15],Ai[14],Ai[13],Ai[12],Ai[11],Ai[10],Ai[9],Ai[8],Ai[7],Ai[6],Ai[5],Ai[4],Ai[3],Ai[2],Ai[1],info,y_buf[200],y,iTick,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0007551/0.4396, allocations: 364.7 kB / 0.5046 GB, free: 138 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003438/0.4431, allocations: 3.064 MB / 0.5076 GB, free: 137.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4431, allocations: 2.188 kB / 0.5076 GB, free: 137.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02542/0.4685, allocations: 53.51 MB / 0.5598 GB, free: 90.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.4689, allocations: 36.19 kB / 0.5598 GB, free: 90.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.4708, allocations: 1.871 MB / 0.5617 GB, free: 88.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000413/0.4713, allocations: 1.058 MB / 0.5627 GB, free: 87.31 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4713, allocations: 0.625 kB / 0.5627 GB, free: 87.31 MB / 378.7 MB Notification: Performance of Templates: time 0.01639/0.4877, allocations: 12.87 MB / 0.5753 GB, free: 74.77 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.makefile (rm -f Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe >> ../files/Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.sim & ./Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/FastFourierTransform/Examples/RealFFT2/RealFFT2.csv","../files/Modelica_4.0.0_Modelica.Math.FastFourierTransform.Examples.RealFFT2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Ai[1],Ai[2],Ai[3],Ai[4],Ai[5],Ai[6],Ai[7],Ai[8],Ai[9],Ai[10],Ai[11],Ai[12],Ai[13],Ai[14],Ai[15],Ai[16],Ai[17],Ai[18],Ai[19],Ai[20],Ai[21],info,y Variables in the result:Ai[10],Ai[11],Ai[12],Ai[13],Ai[14],Ai[15],Ai[16],Ai[17],Ai[18],Ai[19],Ai[1],Ai[20],Ai[21],Ai[2],Ai[3],Ai[4],Ai[5],Ai[6],Ai[7],Ai[8],Ai[9],T,Ts,f1,f2,f_max,f_max_FFT,f_resolution,fi[10],fi[11],fi[12],fi[13],fi[14],fi[15],fi[16],fi[17],fi[18],fi[19],fi[1],fi[20],fi[21],fi[2],fi[3],fi[4],fi[5],fi[6],fi[7],fi[8],fi[9],info,nf,nfi,ns,time,y