Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 93.59 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 203 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002046, allocations: 4 kB / 307.1 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08898, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.FastFourierTransform.Examples.RealFFT2): time 0.001641/0.09066, allocations: 1.033 MB / 359.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.09249, allocations: 1.031 MB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.502e-05/0.09256, allocations: 0 / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004056/0.09297, allocations: 71.8 kB / 360.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.09312, allocations: 91.8 kB / 360.8 MB, free: 11.21 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/FastFourierTransform.mo:538:3-629:25:writable] Warning: Pure function ‘Modelica.Math.FastFourierTransform.realFFTwriteToFile‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.09368, allocations: 179.6 kB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.09386, allocations: 171.5 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.0939, allocations: 4 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.09409, allocations: 139.7 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.09431, allocations: 163.7 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.09433, allocations: 4 kB / 361.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003682/0.09471, allocations: 223.6 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.09485, allocations: 195.4 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.09502, allocations: 109.3 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.09544, allocations: 379.3 kB / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.09545, allocations: 4 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09546, allocations: 0 / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.09547, allocations: 0 / 362.4 MB, free: 9.664 MB / 302.1 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.0009074/0.09638, allocations: 0.983 MB / 363.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.09643, allocations: 15.97 kB / 363.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.09666, allocations: 78.95 kB / 363.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.09694, allocations: 258.2 kB / 363.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.09697, allocations: 4 kB / 363.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.09699, allocations: 16 kB / 363.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007404/0.09774, allocations: 0.8373 MB / 364.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.09776, allocations: 0 / 364.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.09778, allocations: 0 / 364.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.09779, allocations: 3.938 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007608/0.09855, allocations: 0.779 MB / 365.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.09905, allocations: 388 kB / 365.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.1008, allocations: 1.879 MB / 367.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.1022, allocations: 1.872 MB / 369.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.1022, allocations: 3.984 kB / 369.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00137/0.1036, allocations: 1.068 MB / 370.6 MB, free: 1.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=225): time 4.288e-06/0.1036, allocations: 0 / 370.6 MB, free: 1.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=225): time 0.1715/0.2752, allocations: 4.507 MB / 375.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003131/0.2755, allocations: 400.1 kB / 375.5 MB, free: 20.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.2757, allocations: 185.7 kB / 375.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000235/0.276, allocations: 185.5 kB / 375.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.276, allocations: 108.1 kB / 375.9 MB, free: 20.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006676/0.2767, allocations: 0.9254 MB / 376.8 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.2768, allocations: 77.88 kB / 376.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.277, allocations: 466.2 kB / 377.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.2785, allocations: 1.018 MB / 378.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/0.2806, allocations: 2.62 MB / 381 MB, free: 16.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.2827, allocations: 1.522 MB / 382.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.96e-05/0.2827, allocations: 15.59 kB / 382.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.005759/0.2885, allocations: 3.699 MB / 386.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.747e-05/0.2885, allocations: 63.03 kB / 386.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-05/0.2886, allocations: 56.56 kB / 386.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.875e-05/0.2887, allocations: 85.09 kB / 386.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.2901, allocations: 0.5194 MB / 387 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.903e-05/0.2902, allocations: 115.7 kB / 387.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.2914, allocations: 306.5 kB / 387.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002032/0.2916, allocations: 178.5 kB / 387.6 MB, free: 14.43 MB / 302.1 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 () * Number of clocked 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.0008473/0.2925, allocations: 0.7678 MB / 388.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.2926, allocations: 111.9 kB / 388.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.031e-05/0.2926, allocations: 15.45 kB / 388.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2927, allocations: 0 / 388.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2927, allocations: 0.75 kB / 388.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2927, allocations: 1.25 kB / 388.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004092/0.2931, allocations: 0.5098 MB / 389 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2931, allocations: 0 / 389 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-06/0.2931, allocations: 4.562 kB / 389 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2931, allocations: 5.297 kB / 389 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.2932, allocations: 36.23 kB / 389 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2932, allocations: 1.75 kB / 389 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2932, allocations: 0.5156 kB / 389 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/0.3072, allocations: 21.86 MB / 410.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.3073, allocations: 175.6 kB / 411 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.3075, allocations: 55.92 kB / 411.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.3077, allocations: 36.03 kB / 411.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.3078, allocations: 23.98 kB / 411.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-05/0.3079, allocations: 36 kB / 411.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.308, allocations: 131.5 kB / 411.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.308, allocations: 0 / 411.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002194/0.3102, allocations: 488.6 kB / 411.8 MB, free: 8.379 MB / 318.1 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) * Number of clocked states: 0 () * 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.0007492/0.3109, allocations: 359.9 kB / 412.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004144/0.3151, allocations: 3.186 MB / 415.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3151, allocations: 1.812 kB / 415.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03365/0.3488, allocations: 52.37 MB / 467.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.3492, allocations: 60.19 kB / 467.8 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.352, allocations: 2.273 MB / 470 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.3524, allocations: 0.987 MB / 471 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003826/0.3528, allocations: 188.9 kB / 471.2 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.353, allocations: 71.44 kB / 471.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.353, allocations: 1.641 kB / 471.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of Templates: time 0.01898/0.372, allocations: 12.76 MB / 484 MB, free: 180 kB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.makefile (rm -f Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe ; mkfifo Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe >> ../files/Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.sim & ./Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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