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.001362/0.001362, allocations: 193 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 226.5 MB / 244.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007647/0.0007648, allocations: 109.2 kB / 296.8 MB, free: 6.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002366/0.0002367, allocations: 8 kB / 356.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2044, allocations: 51.29 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.FastFourierTransform.Examples.RealFFT2): time 0.001019/0.2055, allocations: 1.033 MB / 409.1 MB, free: 26.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.2068, allocations: 1.016 MB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.107e-05/0.2068, allocations: 1.219 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.2072, allocations: 79.78 kB / 410.2 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.2074, allocations: 91 kB / 410.3 MB, free: 25.45 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.0004228/0.2078, allocations: 191.7 kB / 410.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.2079, allocations: 163.6 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.088e-05/0.208, allocations: 4 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.2081, allocations: 131.7 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.2083, allocations: 155.8 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.2083, allocations: 4 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000308/0.2087, allocations: 228.4 kB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.093e-05/0.2088, allocations: 203.4 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.2089, allocations: 228.7 kB / 411.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.2092, allocations: 395.9 kB / 411.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2092, allocations: 0 / 411.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2092, allocations: 0 / 411.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.2092, allocations: 0 / 411.9 MB, free: 23.78 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.0006633/0.2099, allocations: 0.9816 MB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.2099, allocations: 12.03 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002007/0.2102, allocations: 75.98 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.2103, allocations: 255.4 kB / 413.2 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.2104, allocations: 12.38 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.2104, allocations: 16.36 kB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.2109, allocations: 0.8296 MB / 414.1 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.2109, allocations: 4 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2109, allocations: 7.875 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2109, allocations: 0 / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003976/0.2113, allocations: 0.7751 MB / 414.9 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002168/0.2115, allocations: 380.1 kB / 415.3 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.2124, allocations: 1.879 MB / 417.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007807/0.2132, allocations: 1.868 MB / 419 MB, free: 16.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.99e-06/0.2132, allocations: 4 kB / 419 MB, free: 16.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006222/0.2138, allocations: 1.068 MB / 420.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=225): time 1.542e-06/0.2138, allocations: 0 / 420.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=225): time 0.003656/0.2175, allocations: 4.498 MB / 424.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.2177, allocations: 400.5 kB / 425 MB, free: 10.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.2179, allocations: 195.1 kB / 425.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001819/0.218, allocations: 189.6 kB / 425.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.2181, allocations: 107.9 kB / 425.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004412/0.2185, allocations: 0.9254 MB / 426.4 MB, free: 9.086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-05/0.2186, allocations: 72 kB / 426.4 MB, free: 9.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2188, allocations: 466.7 kB / 426.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.2199, allocations: 1.022 MB / 427.9 MB, free: 7.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.2215, allocations: 2.616 MB / 430.5 MB, free: 4.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.2245, allocations: 3.865 MB / 434.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.508e-05/0.2245, allocations: 16 kB / 434.4 MB, free: 15.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.004988/0.2295, allocations: 3.705 MB / 438.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/0.2296, allocations: 53.7 kB / 438.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.756e-05/0.2297, allocations: 56 kB / 438.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.147e-05/0.2298, allocations: 76 kB / 438.3 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.231, allocations: 0.5222 MB / 438.8 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.382e-05/0.2311, allocations: 111.6 kB / 438.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.2321, allocations: 301 kB / 439.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.2323, allocations: 176 kB / 439.4 MB, free: 10.5 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.0007193/0.233, allocations: 0.7616 MB / 440.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.2332, allocations: 115 kB / 440.3 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.149e-05/0.2332, allocations: 13.16 kB / 440.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2332, allocations: 4 kB / 440.3 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2332, allocations: 0 / 440.3 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.2332, allocations: 0 / 440.3 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.2336, allocations: 0.5135 MB / 440.8 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2336, allocations: 7.922 kB / 440.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.914e-06/0.2336, allocations: 0 / 440.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2336, allocations: 3.938 kB / 440.8 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.702e-05/0.2337, allocations: 32 kB / 440.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2337, allocations: 0 / 440.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2337, allocations: 4 kB / 440.8 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/0.2494, allocations: 21.86 MB / 462.7 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.2496, allocations: 179.5 kB / 462.9 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.2497, allocations: 47.97 kB / 462.9 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.25, allocations: 36 kB / 463 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-05/0.2501, allocations: 20 kB / 463 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-05/0.2501, allocations: 39.98 kB / 463 MB, free: 2.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.2502, allocations: 135.2 kB / 463.2 MB, free: 2.605 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2502, allocations: 0 / 463.2 MB, free: 2.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001803/0.2521, allocations: 484 kB / 463.6 MB, free: 2.133 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.0007665/0.2528, allocations: 367.1 kB / 464 MB, free: 1.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00423/0.2571, allocations: 3.18 MB / 467.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2571, allocations: 4 kB / 467.2 MB, free: 14.63 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1895/0.4466, allocations: 52.35 MB / 0.5073 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.4471, allocations: 69.5 kB / 0.5074 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.4491, allocations: 2.328 MB / 0.5097 GB, free: 98.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.4494, allocations: 0.979 MB / 0.5106 GB, free: 97.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.4496, allocations: 71.44 kB / 0.5107 GB, free: 97.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4496, allocations: 0 / 0.5107 GB, free: 97.34 MB / 378.7 MB Notification: Performance of Templates: time 0.01709/0.4667, allocations: 15.48 MB / 0.5258 GB, free: 81.91 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