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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009649/0.000965, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009503/0.0009503, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.2 MB / 241.1 MB, free: 5.324 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002355, allocations: 10.28 kB / 300.7 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08446/0.08471, allocations: 50.42 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.FastFourierTransform.Examples.RealFFT2): time 0.001152/0.08589, allocations: 1.005 MB / 352.1 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.08731, allocations: 0.9772 MB / 353.1 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.387e-05/0.08737, allocations: 0 / 353.1 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.08778, allocations: 71.81 kB / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.08793, allocations: 103.7 kB / 353.3 MB, free: 9.52 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0004474/0.08839, allocations: 167.5 kB / 353.4 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.08855, allocations: 135.8 kB / 353.6 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.093e-05/0.0886, allocations: 7.984 kB / 353.6 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.08874, allocations: 119.7 kB / 353.7 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.08895, allocations: 143.8 kB / 353.8 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.08897, allocations: 4 kB / 353.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003103/0.08928, allocations: 191.7 kB / 354 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.08943, allocations: 199.4 kB / 354.2 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.192e-05/0.08952, allocations: 109.3 kB / 354.3 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.08993, allocations: 363.3 kB / 354.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.08994, allocations: 0 / 354.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.08995, allocations: 4 kB / 354.7 MB, free: 8.098 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.08996, allocations: 0 / 354.7 MB, free: 8.098 MB / 286.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.000959/0.09092, allocations: 0.9791 MB / 355.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.09096, allocations: 8.031 kB / 355.7 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.195e-05/0.09105, allocations: 75 kB / 355.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.09129, allocations: 262 kB / 356 MB, free: 6.684 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.09131, allocations: 8 kB / 356 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.09134, allocations: 8 kB / 356 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006611/0.09201, allocations: 0.8295 MB / 356.9 MB, free: 5.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.09202, allocations: 0 / 356.9 MB, free: 5.836 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.09204, allocations: 7.984 kB / 356.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.09205, allocations: 0 / 356.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.09264, allocations: 0.7829 MB / 357.6 MB, free: 5.043 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00032/0.09297, allocations: 384 kB / 358 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.09426, allocations: 1.875 MB / 359.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.836e-06/0.09427, allocations: 4.031 kB / 359.9 MB, free: 2.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008882/0.09517, allocations: 1.068 MB / 361 MB, free: 1.645 MB / 286.1 MB Notification: Performance of pre-optimization done (n=225): time 1.322e-06/0.09518, allocations: 0 / 361 MB, free: 1.645 MB / 286.1 MB Notification: Performance of matching and sorting (n=225): time 0.004392/0.09957, allocations: 4.68 MB / 365.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002378/0.09983, allocations: 404.5 kB / 366 MB, free: 12.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.1001, allocations: 199 kB / 366.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.1003, allocations: 185.6 kB / 366.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.088e-05/0.1003, allocations: 107.9 kB / 366.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006236/0.101, allocations: 0.9139 MB / 367.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.754e-05/0.1011, allocations: 79.94 kB / 367.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.1013, allocations: 466.7 kB / 368 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.1026, allocations: 1.018 MB / 369 MB, free: 9.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/0.1047, allocations: 2.6 MB / 371.6 MB, free: 6.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.1065, allocations: 1.531 MB / 373.1 MB, free: 4.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.24e-05/0.1066, allocations: 16 kB / 373.1 MB, free: 4.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.004761/0.1113, allocations: 3.705 MB / 376.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.091e-05/0.1114, allocations: 56.52 kB / 376.9 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.691e-05/0.1115, allocations: 52 kB / 377 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001061/0.1116, allocations: 84 kB / 377 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.113, allocations: 0.5183 MB / 377.6 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.842e-05/0.1131, allocations: 115.6 kB / 377.7 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.1144, allocations: 293.2 kB / 378 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/0.1146, allocations: 180 kB / 378.1 MB, free: 15.61 MB / 318.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.0007402/0.1154, allocations: 0.7733 MB / 378.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1155, allocations: 111 kB / 379 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.765e-05/0.1155, allocations: 13.16 kB / 379 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1155, allocations: 0 / 379 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1155, allocations: 4 kB / 379 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1156, allocations: 0 / 379 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/0.1159, allocations: 0.5136 MB / 379.5 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1159, allocations: 3.938 kB / 379.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1159, allocations: 4 kB / 379.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.116, allocations: 0 / 379.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.221e-05/0.116, allocations: 32 kB / 379.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.116, allocations: 4 kB / 379.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.116, allocations: 0 / 379.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/0.1315, allocations: 21.87 MB / 401.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.1316, allocations: 171.7 kB / 401.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.1317, allocations: 47.97 kB / 401.7 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.132, allocations: 36 kB / 401.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.488e-05/0.1321, allocations: 24 kB / 401.7 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.682e-05/0.1321, allocations: 40.02 kB / 401.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.407e-05/0.1322, allocations: 132.3 kB / 401.9 MB, free: 7.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1322, allocations: 0 / 401.9 MB, free: 7.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001787/0.134, allocations: 492 kB / 402.4 MB, free: 7.23 MB / 334.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.0007209/0.1348, allocations: 369.5 kB / 402.7 MB, free: 6.922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003917/0.1387, allocations: 3.183 MB / 405.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1387, allocations: 0 / 405.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.167/0.3057, allocations: 52.37 MB / 458.3 MB, free: 43.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.306, allocations: 35.97 kB / 458.3 MB, free: 43.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.3078, allocations: 2.255 MB / 460.6 MB, free: 41.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.3081, allocations: 0.9921 MB / 461.6 MB, free: 40.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.3083, allocations: 188 kB / 461.8 MB, free: 40.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.3085, allocations: 71.44 kB / 461.8 MB, free: 39.95 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3085, allocations: 0 / 461.8 MB, free: 39.95 MB / 350.1 MB Notification: Performance of Templates: time 0.01471/0.3232, allocations: 12.75 MB / 474.6 MB, free: 27.31 MB / 350.1 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