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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00145/0.001451, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.396/1.396, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.001016/0.001016, allocations: 88.8 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.258e-05/2.259e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4487, allocations: 77.41 MB / 464.9 MB, free: 1.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4489, allocations: 77.95 kB / 464.9 MB, free: 1.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03643/0.4854, allocations: 13.5 MB / 478.4 MB, free: 3.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4854, allocations: 0 / 478.4 MB, free: 3.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.4855, allocations: 12 kB / 478.5 MB, free: 3.848 MB / 346.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.001036/0.4865, allocations: 0.9675 MB / 479.4 MB, free: 2.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.4865, allocations: 8.031 kB / 479.4 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.871e-05/0.4867, allocations: 71.02 kB / 479.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009305/0.496, allocations: 3.719 MB / 483.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.496, allocations: 0 / 483.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.827e-05/0.4961, allocations: 15.98 kB / 483.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008799/0.497, allocations: 0.7048 MB / 483.9 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007831/0.4978, allocations: 0.7826 MB / 484.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.4978, allocations: 0 / 484.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.4978, allocations: 3.953 kB / 484.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.4978, allocations: 0 / 484.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003358/0.4982, allocations: 274.7 kB / 485 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.4995, allocations: 1.809 MB / 486.8 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.5009, allocations: 1.801 MB / 488.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.899e-06/0.5009, allocations: 0 / 488.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009562/0.5019, allocations: 1.025 MB / 489.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=225): time 1.533e-06/0.5019, allocations: 0 / 489.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=225): time 0.005217/0.5071, allocations: 1.848 MB / 491.5 MB, free: 6.645 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002616/0.5074, allocations: 396.5 kB / 491.9 MB, free: 6.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.5076, allocations: 165.7 kB / 492 MB, free: 6.059 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.5078, allocations: 157.6 kB / 492.2 MB, free: 5.898 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.308e-05/0.5079, allocations: 103.9 kB / 492.3 MB, free: 5.793 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007129/0.5086, allocations: 0.8982 MB / 493.2 MB, free: 4.883 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/0.5087, allocations: 0 / 493.2 MB, free: 4.883 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002688/0.509, allocations: 474.6 kB / 493.6 MB, free: 4.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.5102, allocations: 0.9168 MB / 494.6 MB, free: 3.492 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002207/0.5124, allocations: 2.488 MB / 497 MB, free: 264 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.5143, allocations: 1.404 MB / 498.5 MB, free: 14.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-05/0.5143, allocations: 16 kB / 498.5 MB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.004739/0.519, allocations: 3.188 MB / 0.4899 GB, free: 11.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.079e-05/0.5191, allocations: 53.7 kB / 0.4899 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.816e-05/0.5192, allocations: 56 kB / 0.49 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.14e-05/0.5193, allocations: 84 kB / 0.4901 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.5207, allocations: 0.5229 MB / 0.4906 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.898e-05/0.5208, allocations: 112.4 kB / 0.4907 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.5219, allocations: 225.1 kB / 0.4909 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001932/0.5221, allocations: 180 kB / 0.4911 GB, free: 10.41 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.0006678/0.5228, allocations: 0.581 MB / 0.4917 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.523, allocations: 107.1 kB / 0.4918 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.189e-05/0.523, allocations: 13.47 kB / 0.4918 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.523, allocations: 0 / 0.4918 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.523, allocations: 3.938 kB / 0.4918 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.523, allocations: 0 / 0.4918 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004123/0.5235, allocations: 442.4 kB / 0.4922 GB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.5235, allocations: 4 kB / 0.4922 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.5235, allocations: 0 / 0.4922 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5235, allocations: 3.984 kB / 0.4922 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.306e-05/0.5236, allocations: 36 kB / 0.4922 GB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5236, allocations: 4 kB / 0.4922 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.5236, allocations: 0 / 0.4922 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006621/0.5302, allocations: 2.903 MB / 0.4951 GB, free: 6.242 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.5304, allocations: 179.6 kB / 0.4952 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.5306, allocations: 48 kB / 0.4953 GB, free: 6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.5308, allocations: 40 kB / 0.4953 GB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.5309, allocations: 23.98 kB / 0.4954 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.531, allocations: 67.94 kB / 0.4954 GB, free: 5.871 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.5312, allocations: 128.3 kB / 0.4955 GB, free: 5.746 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5312, allocations: 0 / 0.4955 GB, free: 5.746 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002039/0.5332, allocations: 424 kB / 0.4959 GB, free: 5.332 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.0008049/0.534, allocations: 367.4 kB / 0.4963 GB, free: 5.016 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003945/0.538, allocations: 2.962 MB / 0.4992 GB, free: 2.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.538, allocations: 8.062 kB / 0.4992 GB, free: 2.047 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2259/0.7639, allocations: 52.31 MB / 0.5503 GB, free: 143.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.7643, allocations: 38.7 kB / 0.5503 GB, free: 143.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.7667, allocations: 1.771 MB / 0.552 GB, free: 143.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.7672, allocations: 0.9942 MB / 0.553 GB, free: 142.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004139/0.7676, allocations: 192.4 kB / 0.5532 GB, free: 142.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.7678, allocations: 75.84 kB / 0.5533 GB, free: 142.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7678, allocations: 3.75 kB / 0.5533 GB, free: 142.9 MB / 426.7 MB Notification: Performance of Templates: time 0.02449/0.7923, allocations: 12.62 MB / 0.5656 GB, free: 140.8 MB / 426.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