Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009303/0.0009303, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007219/0.0007219, allocations: 101.3 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002197/0.0002197, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1864, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.FastFourierTransform.Examples.RealFFT2): time 0.0008813/0.1873, allocations: 1.023 MB / 408.5 MB, free: 26.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.1884, allocations: 1.032 MB / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.588e-05/0.1885, allocations: 0 / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003234/0.1888, allocations: 76.42 kB / 409.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.1889, allocations: 90.36 kB / 409.7 MB, free: 25.62 MB / 298.7 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.0003616/0.1893, allocations: 180.8 kB / 409.9 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.1894, allocations: 167.2 kB / 410.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.106e-05/0.1895, allocations: 0 / 410.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1896, allocations: 139.7 kB / 410.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.1897, allocations: 159.8 kB / 410.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.1898, allocations: 4 kB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.19, allocations: 224.4 kB / 410.6 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.071e-05/0.1901, allocations: 203.4 kB / 410.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.1902, allocations: 105.9 kB / 410.9 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.1904, allocations: 379.9 kB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1905, allocations: 4 kB / 411.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1905, allocations: 0 / 411.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1905, allocations: 0 / 411.2 MB, free: 24.08 MB / 298.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.0005811/0.1911, allocations: 0.9869 MB / 412.2 MB, free: 23.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.684e-05/0.1911, allocations: 11.97 kB / 412.2 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.1913, allocations: 75 kB / 412.3 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.1914, allocations: 262.1 kB / 412.6 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.1915, allocations: 8 kB / 412.6 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.1915, allocations: 12 kB / 412.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.1919, allocations: 0.8334 MB / 413.4 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.71e-06/0.1919, allocations: 0 / 413.4 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1919, allocations: 4 kB / 413.4 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.1919, allocations: 0 / 413.4 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003655/0.1923, allocations: 0.7868 MB / 414.2 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.1925, allocations: 372.1 kB / 414.6 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007528/0.1933, allocations: 1.879 MB / 416.5 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007404/0.194, allocations: 1.876 MB / 418.3 MB, free: 16.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.712e-06/0.194, allocations: 0 / 418.3 MB, free: 16.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005345/0.1946, allocations: 1.076 MB / 419.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=225): time 1.162e-06/0.1946, allocations: 0 / 419.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=225): time 0.003056/0.1976, allocations: 4.498 MB / 423.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.1978, allocations: 404.5 kB / 424.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.1979, allocations: 191.1 kB / 424.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.1981, allocations: 197.6 kB / 424.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/0.1981, allocations: 99.91 kB / 424.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/0.1985, allocations: 0.9139 MB / 425.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.675e-05/0.1985, allocations: 72 kB / 425.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1986, allocations: 474.6 kB / 426.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.1997, allocations: 1.014 MB / 427.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.2013, allocations: 2.624 MB / 429.9 MB, free: 4.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.2028, allocations: 1.524 MB / 431.4 MB, free: 2.914 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.668e-05/0.2028, allocations: 12 kB / 431.4 MB, free: 2.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.004011/0.2069, allocations: 3.704 MB / 435.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.01e-05/0.2069, allocations: 61.64 kB / 435.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.475e-05/0.207, allocations: 56 kB / 435.2 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.783e-05/0.2071, allocations: 87.98 kB / 435.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.2084, allocations: 0.5229 MB / 435.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.899e-05/0.2085, allocations: 111.6 kB / 435.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009455/0.2094, allocations: 297.1 kB / 436.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/0.2096, allocations: 184 kB / 436.4 MB, free: 13.87 MB / 314.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 () * 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.0006902/0.2103, allocations: 0.7615 MB / 437.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.2104, allocations: 107 kB / 437.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.051e-05/0.2104, allocations: 25.09 kB / 437.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.2104, allocations: 0 / 437.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2104, allocations: 0 / 437.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.2105, allocations: 0 / 437.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003692/0.2108, allocations: 0.5058 MB / 437.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2108, allocations: 11.94 kB / 437.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.2108, allocations: 0 / 437.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2108, allocations: 0 / 437.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-05/0.2109, allocations: 39.98 kB / 437.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.969e-06/0.2109, allocations: 3.953 kB / 437.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2109, allocations: 3.938 kB / 437.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/0.2262, allocations: 21.86 MB / 459.7 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.2263, allocations: 175.7 kB / 459.9 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.656e-05/0.2264, allocations: 48.02 kB / 459.9 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.2267, allocations: 28 kB / 460 MB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.2268, allocations: 39.88 kB / 460 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/0.2268, allocations: 32 kB / 460 MB, free: 6.105 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.686e-05/0.2269, allocations: 135.2 kB / 460.2 MB, free: 5.973 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2269, allocations: 0 / 460.2 MB, free: 5.973 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001658/0.2286, allocations: 488 kB / 460.6 MB, free: 5.496 MB / 330.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) * 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.0006625/0.2293, allocations: 368.4 kB / 461 MB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003833/0.2331, allocations: 3.184 MB / 464.2 MB, free: 2.004 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2331, allocations: 0 / 464.2 MB, free: 2.004 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1645/0.3976, allocations: 52.36 MB / 0.5044 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.398, allocations: 69.83 kB / 0.5045 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.4004, allocations: 2.321 MB / 0.5068 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.4008, allocations: 0.9783 MB / 0.5077 GB, free: 99.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.4009, allocations: 69.59 kB / 0.5078 GB, free: 99.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4009, allocations: 0 / 0.5078 GB, free: 99.34 MB / 378.7 MB Notification: Performance of Templates: time 0.01513/0.4161, allocations: 15.49 MB / 0.5229 GB, free: 85.29 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.makefile (rm -f Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.sim & ./Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Math.FastFourierTransform.Examples.RealFFT2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches