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.0009186/0.0009187, allocations: 95.77 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009124/0.0009125, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002177, allocations: 8 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.0984, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.FastFourierTransform.Examples.RealFFT2): time 0.001506/0.09996, allocations: 1.017 MB / 359.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.1015, allocations: 1.026 MB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.132e-05/0.1015, allocations: 4 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003891/0.1019, allocations: 67.81 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.1021, allocations: 95.8 kB / 360.3 MB, free: 11.7 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.0005013/0.1026, allocations: 171.5 kB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.1027, allocations: 131.8 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.998e-05/0.1028, allocations: 3.984 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.103, allocations: 139.7 kB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.1033, allocations: 135.8 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.1033, allocations: 4 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003998/0.1037, allocations: 203.6 kB / 361 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.1039, allocations: 199.4 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.104, allocations: 105.3 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003934/0.1044, allocations: 371.3 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.1044, allocations: 0 / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1044, allocations: 0 / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1044, allocations: 0 / 361.7 MB, free: 10.25 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.0009276/0.1053, allocations: 0.983 MB / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1054, allocations: 11.97 kB / 362.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.1056, allocations: 74.97 kB / 362.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.1059, allocations: 270.1 kB / 363 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.1059, allocations: 8 kB / 363 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.106, allocations: 12 kB / 363 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007223/0.1067, allocations: 0.8334 MB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1067, allocations: 0 / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.1067, allocations: 3.984 kB / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1067, allocations: 0 / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006597/0.1074, allocations: 0.779 MB / 364.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003016/0.1077, allocations: 380.1 kB / 365 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.109, allocations: 1.891 MB / 366.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.1091, allocations: 0 / 366.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008649/0.1099, allocations: 1.068 MB / 368 MB, free: 3.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=225): time 1.653e-06/0.1099, allocations: 0 / 368 MB, free: 3.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=225): time 0.1781/0.288, allocations: 4.676 MB / 372.7 MB, free: 20.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003279/0.2884, allocations: 398.5 kB / 373.1 MB, free: 20.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.2886, allocations: 187.8 kB / 373.2 MB, free: 20.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002018/0.2888, allocations: 187.6 kB / 373.4 MB, free: 20.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.2889, allocations: 107 kB / 373.5 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006649/0.2895, allocations: 0.9264 MB / 374.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/0.2897, allocations: 73.44 kB / 374.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002966/0.29, allocations: 466.7 kB / 375 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/0.2918, allocations: 1.019 MB / 376 MB, free: 19.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002057/0.2939, allocations: 2.608 MB / 378.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/0.2961, allocations: 1.521 MB / 380.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.501e-05/0.2961, allocations: 15.62 kB / 380.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.006044/0.3022, allocations: 3.699 MB / 383.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.772e-05/0.3023, allocations: 54.91 kB / 383.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/0.3025, allocations: 58.55 kB / 384 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.3026, allocations: 88.25 kB / 384 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.3043, allocations: 0.5229 MB / 384.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001305/0.3044, allocations: 108.5 kB / 384.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.3062, allocations: 296.8 kB / 385 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/0.3065, allocations: 178.2 kB / 385.1 MB, free: 15.08 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.00102/0.3075, allocations: 0.7733 MB / 385.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.3077, allocations: 109.9 kB / 386 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/0.3077, allocations: 15.53 kB / 386 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3077, allocations: 0 / 386 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3078, allocations: 5.859 kB / 386 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3078, allocations: 0.75 kB / 386 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004915/0.3083, allocations: 0.5178 MB / 386.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3083, allocations: 0 / 386.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-06/0.3083, allocations: 5.297 kB / 386.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.3083, allocations: 2.062 kB / 386.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.521e-05/0.3084, allocations: 35.09 kB / 386.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3084, allocations: 0.7969 kB / 386.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3084, allocations: 0 / 386.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01612/0.3245, allocations: 21.86 MB / 408.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.3248, allocations: 175.7 kB / 408.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.3249, allocations: 55.92 kB / 408.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/0.3252, allocations: 28.52 kB / 408.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.3254, allocations: 23.98 kB / 408.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.764e-05/0.3254, allocations: 39.94 kB / 408.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.3256, allocations: 131.5 kB / 408.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3256, allocations: 4 kB / 408.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00281/0.3284, allocations: 489.2 kB / 409.4 MB, free: 10.96 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.0009483/0.3294, allocations: 370 kB / 409.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004826/0.3342, allocations: 3.183 MB / 412.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3342, allocations: 0 / 412.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03495/0.3692, allocations: 52.37 MB / 465.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.3697, allocations: 38.34 kB / 465.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.3734, allocations: 2.253 MB / 467.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.374, allocations: 0.9922 MB / 468.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006312/0.3747, allocations: 192.9 kB / 468.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.375, allocations: 67.44 kB / 468.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.893e-06/0.375, allocations: 0 / 468.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of Templates: time 0.02382/0.3989, allocations: 12.76 MB / 481.6 MB, free: 2.77 MB / 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","../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