Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009912/0.0009912, allocations: 117.3 kB / 296.7 MB, free: 6.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009979/0.000998, allocations: 59.89 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1838, allocations: 50.45 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001773/0.1856, allocations: 1.301 MB / 408.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006986/0.1864, allocations: 477.5 kB / 408.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.877e-05/0.1864, allocations: 0 / 408.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.891e-05/0.1864, allocations: 6.594 kB / 408.8 MB, free: 26.03 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeBindings: time 0.0003439/0.1868, allocations: 59.81 kB / 408.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001008/0.1869, allocations: 51.89 kB / 408.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.161e-05/0.187, allocations: 43.83 kB / 409 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.603e-05/0.187, allocations: 0 / 409 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.187, allocations: 23.92 kB / 409 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.255e-05/0.1871, allocations: 23.91 kB / 409 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.1871, allocations: 2.531 kB / 409 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.1873, allocations: 115.8 kB / 409.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.813e-05/0.1873, allocations: 31.92 kB / 409.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.411e-05/0.1874, allocations: 51.66 kB / 409.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1876, allocations: 171.4 kB / 409.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1876, allocations: 0 / 409.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1876, allocations: 0 / 409.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1876, allocations: 3.094 kB / 409.4 MB, free: 25.46 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004055/0.188, allocations: 0.5646 MB / 410 MB, free: 24.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.188, allocations: 8.031 kB / 410 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1881, allocations: 20.75 kB / 410 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.525e-05/0.1882, allocations: 181.7 kB / 410.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.1883, allocations: 384 / 410.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.1883, allocations: 8.375 kB / 410.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.1885, allocations: 283.8 kB / 410.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.1885, allocations: 192 / 410.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1885, allocations: 11.92 kB / 410.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1885, allocations: 0 / 410.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.886e-05/0.1886, allocations: 147.9 kB / 410.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.1888, allocations: 198.2 kB / 410.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.189, allocations: 497.2 kB / 411.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.1892, allocations: 470.3 kB / 411.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.1892, allocations: 0 / 411.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.1895, allocations: 484.9 kB / 412.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 9.61e-07/0.1895, allocations: 0 / 412.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005649/0.1901, allocations: 0.7115 MB / 412.9 MB, free: 21.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.1901, allocations: 160.5 kB / 413.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.284e-05/0.1902, allocations: 97.86 kB / 413.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.1902, allocations: 29.7 kB / 413.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.668e-05/0.1902, allocations: 85.12 kB / 413.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.1903, allocations: 82.81 kB / 413.4 MB, free: 21.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.1903, allocations: 45.64 kB / 413.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.453e-05/0.1904, allocations: 330.9 kB / 413.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.752e-05/0.1904, allocations: 84.28 kB / 413.8 MB, free: 20.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.465e-05/0.1905, allocations: 114.2 kB / 413.9 MB, free: 20.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000202/0.1907, allocations: 413.4 kB / 414.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1907, allocations: 0 / 414.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002623/0.191, allocations: 356.7 kB / 414.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.81e-05/0.1911, allocations: 115.3 kB / 414.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1911, allocations: 4.094 kB / 414.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1911, allocations: 0 / 414.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.1911, allocations: 4 kB / 414.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.1911, allocations: 0 / 414.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.763e-05/0.1912, allocations: 19.75 kB / 414.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.1912, allocations: 8 kB / 414.8 MB, free: 19.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.1913, allocations: 301.2 kB / 415.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.1914, allocations: 31.73 kB / 415.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.1914, allocations: 9.562 kB / 415.2 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1914, allocations: 4 kB / 415.2 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1914, allocations: 0 / 415.2 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1914, allocations: 0 / 415.2 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.1915, allocations: 225.3 kB / 415.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1915, allocations: 8 kB / 415.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1915, allocations: 0 / 415.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1916, allocations: 3.938 kB / 415.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.1916, allocations: 19.98 kB / 415.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1916, allocations: 3.938 kB / 415.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1916, allocations: 336 / 415.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.1928, allocations: 2.042 MB / 417.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.766e-05/0.1928, allocations: 104.8 kB / 417.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.894e-05/0.1929, allocations: 67.94 kB / 417.6 MB, free: 16.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.12e-05/0.1929, allocations: 12 kB / 417.6 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.193, allocations: 4 kB / 417.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.193, allocations: 19.98 kB / 417.7 MB, free: 16.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.841e-05/0.193, allocations: 87.22 kB / 417.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1931, allocations: 0 / 417.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003956/0.1935, allocations: 91.98 kB / 417.8 MB, free: 16.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004715/0.1939, allocations: 307.9 kB / 418.1 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.1951, allocations: 2.127 MB / 420.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1951, allocations: 0 / 420.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009119/0.196, allocations: 2.182 MB / 422.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.1962, allocations: 20 kB / 422.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006153/0.1968, allocations: 0.6459 MB / 423.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.197, allocations: 0.7408 MB / 423.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.139e-05/0.197, allocations: 3.984 kB / 423.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.058e-05/0.197, allocations: 11.44 kB / 423.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.197, allocations: 0 / 423.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of Templates: time 0.004665/0.2017, allocations: 3.007 MB / 426.9 MB, free: 7.32 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches