Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008955/0.0008955, allocations: 195.9 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: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007034/0.0007035, allocations: 97.81 kB / 296.4 MB, free: 6.773 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002034, allocations: 7.984 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1832, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0009678/0.1842, allocations: 0.9565 MB / 408.4 MB, free: 26.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006819/0.1849, allocations: 421.9 kB / 408.9 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.848e-05/0.1849, allocations: 5.094 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.927e-05/0.185, allocations: 0 / 408.9 MB, free: 26.43 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.0004144/0.1854, allocations: 55.88 kB / 408.9 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001028/0.1855, allocations: 49.67 kB / 409 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.014e-05/0.1856, allocations: 43.77 kB / 409 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.1856, allocations: 3.938 kB / 409 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.124e-05/0.1857, allocations: 19.98 kB / 409 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.975e-05/0.1857, allocations: 16.72 kB / 409 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.1857, allocations: 4 kB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.1859, allocations: 112.8 kB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.531e-05/0.186, allocations: 31.91 kB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.186, allocations: 49.58 kB / 409.2 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.1862, allocations: 116.5 kB / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1862, allocations: 1.906 kB / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1862, allocations: 4 kB / 409.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.1862, allocations: 0 / 409.4 MB, free: 25.93 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.0003847/0.1866, allocations: 0.5488 MB / 409.9 MB, free: 25.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1866, allocations: 9.969 kB / 409.9 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1867, allocations: 19.81 kB / 409.9 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.087e-05/0.1868, allocations: 175.9 kB / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.1869, allocations: 0 / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.1869, allocations: 8 kB / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.1871, allocations: 280.1 kB / 410.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.1871, allocations: 5.188 kB / 410.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.1871, allocations: 4 kB / 410.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1871, allocations: 0 / 410.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.1873, allocations: 148.6 kB / 410.5 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001187/0.1874, allocations: 201.9 kB / 410.7 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.1876, allocations: 493.1 kB / 411.2 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.1878, allocations: 470.4 kB / 411.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-06/0.1878, allocations: 0 / 411.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.1881, allocations: 493.6 kB / 412.2 MB, free: 22.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 9.02e-07/0.1881, allocations: 0 / 412.2 MB, free: 22.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.000553/0.1887, allocations: 0.7115 MB / 412.9 MB, free: 22.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.1887, allocations: 156.5 kB / 413 MB, free: 21.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.528e-05/0.1888, allocations: 101.8 kB / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.1888, allocations: 29.7 kB / 413.2 MB, free: 21.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.708e-05/0.1888, allocations: 85.08 kB / 413.2 MB, free: 21.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.1889, allocations: 86.75 kB / 413.3 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-06/0.1889, allocations: 4.062 kB / 413.3 MB, free: 21.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.992e-05/0.1889, allocations: 334.8 kB / 413.7 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.555e-05/0.189, allocations: 76.36 kB / 413.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.956e-05/0.1891, allocations: 110.4 kB / 413.8 MB, free: 21.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.1892, allocations: 196.4 kB / 414 MB, free: 20.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1892, allocations: 0 / 414 MB, free: 20.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002307/0.1894, allocations: 352.6 kB / 414.4 MB, free: 20.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/0.1895, allocations: 115.2 kB / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1895, allocations: 8.094 kB / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.1895, allocations: 0 / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1895, allocations: 0 / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1895, allocations: 3.984 kB / 414.5 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.592e-05/0.1896, allocations: 23.75 kB / 414.5 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.1896, allocations: 8 kB / 414.5 MB, free: 20.41 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 ($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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.1898, allocations: 295.7 kB / 414.8 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.1898, allocations: 27.81 kB / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-06/0.1898, allocations: 9.516 kB / 414.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1898, allocations: 0 / 414.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1898, allocations: 0 / 414.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1898, allocations: 0 / 414.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.19, allocations: 233.4 kB / 415.1 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.19, allocations: 4 kB / 415.1 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.19, allocations: 0 / 415.1 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.19, allocations: 7.938 kB / 415.1 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.19, allocations: 15.98 kB / 415.1 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.19, allocations: 7.953 kB / 415.1 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.19, allocations: 0 / 415.1 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000787/0.1908, allocations: 1.22 MB / 416.3 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.375e-05/0.1908, allocations: 100.8 kB / 416.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.419e-05/0.1909, allocations: 67.94 kB / 416.5 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.088e-05/0.191, allocations: 8 kB / 416.5 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.191, allocations: 16.27 kB / 416.5 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.191, allocations: 19.98 kB / 416.6 MB, free: 18.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.953e-05/0.1911, allocations: 83.27 kB / 416.6 MB, free: 18.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1911, allocations: 0 / 416.6 MB, free: 18.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002747/0.1914, allocations: 91.98 kB / 416.7 MB, free: 18.1 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 (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.0004162/0.1918, allocations: 300.3 kB / 417 MB, free: 17.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1928, allocations: 2.127 MB / 419.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.1928, allocations: 0 / 419.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009027/0.1937, allocations: 2.182 MB / 421.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/0.1939, allocations: 20 kB / 421.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004256/0.1943, allocations: 441.1 kB / 421.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.1945, allocations: 0.7247 MB / 422.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.107e-06/0.1945, allocations: 7.438 kB / 422.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.1945, allocations: 0 / 422.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of Templates: time 0.003463/0.1979, allocations: 2.843 MB / 425.3 MB, free: 9.375 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches