Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008845/0.0008845, allocations: 98.31 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 182.2 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.3 MB / 241.9 MB, free: 336 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2465/0.2465, allocations: 44.26 MB / 337.3 MB, free: 2.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003429, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1783, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0008507/0.1792, allocations: 254.8 kB / 471.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.1807, allocations: 0.5596 MB / 472.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.08e-05/0.1808, allocations: 0 / 472.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.1809, allocations: 11.94 kB / 472.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.1809, allocations: 0 / 472.4 MB, free: 12.88 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:842:5-926:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.randomNumbers‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.1819, allocations: 171.5 kB / 472.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.818e-05/0.182, allocations: 23.92 kB / 472.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.1821, allocations: 7.984 kB / 472.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.793e-05/0.1822, allocations: 8 kB / 472.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.97e-05/0.1822, allocations: 23.92 kB / 472.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1823, allocations: 0 / 472.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004086/0.1827, allocations: 159.7 kB / 472.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1828, allocations: 59.89 kB / 472.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.037e-05/0.1829, allocations: 49.64 kB / 472.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.1833, allocations: 147.7 kB / 473.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.1833, allocations: 0 / 473.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1833, allocations: 0 / 473.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1833, allocations: 0 / 473.1 MB, free: 12.24 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007086/0.184, allocations: 468.5 kB / 473.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.1841, allocations: 12.02 kB / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.407e-05/0.1842, allocations: 15.81 kB / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.1844, allocations: 178.8 kB / 473.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.1845, allocations: 20 kB / 473.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.1845, allocations: 19.95 kB / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.1849, allocations: 128.3 kB / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1849, allocations: 3.984 kB / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1849, allocations: 0 / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1849, allocations: 0 / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.185, allocations: 96.41 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.1854, allocations: 222.2 kB / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.1857, allocations: 174.9 kB / 474.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.1858, allocations: 149.7 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.1858, allocations: 4 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.1861, allocations: 165.9 kB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.883e-06/0.1861, allocations: 0 / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001176/0.1873, allocations: 0.7732 MB / 475.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/0.1874, allocations: 103.8 kB / 475.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.876e-05/0.1875, allocations: 121.7 kB / 475.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.931e-05/0.1876, allocations: 69.67 kB / 475.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.613e-05/0.1877, allocations: 93.45 kB / 475.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.1878, allocations: 138.5 kB / 476 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.1879, allocations: 16 kB / 476 MB, free: 9.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.1881, allocations: 342.8 kB / 476.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.1885, allocations: 181.8 kB / 476.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006607/0.1892, allocations: 0.5331 MB / 477 MB, free: 7.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005663/0.1897, allocations: 267.7 kB / 477.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.1898, allocations: 4 kB / 477.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001294/0.1911, allocations: 0.7312 MB / 478 MB, free: 6.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.1911, allocations: 15.95 kB / 478 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.1911, allocations: 15.94 kB / 478.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.782e-05/0.1912, allocations: 16.78 kB / 478.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.1916, allocations: 119.7 kB / 478.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-05/0.1917, allocations: 27.92 kB / 478.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.192, allocations: 63.38 kB / 478.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-05/0.1921, allocations: 44 kB / 478.3 MB, free: 6.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.0004078/0.1925, allocations: 245.9 kB / 478.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.1925, allocations: 11.75 kB / 478.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.818e-05/0.1926, allocations: 9.828 kB / 478.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1926, allocations: 4 kB / 478.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.1926, allocations: 0 / 478.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1926, allocations: 0 / 478.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003558/0.1929, allocations: 197.8 kB / 478.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.193, allocations: 0 / 478.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.763e-06/0.193, allocations: 0 / 478.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.193, allocations: 12 kB / 478.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.193, allocations: 0 / 478.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.193, allocations: 3.953 kB / 478.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.193, allocations: 3.938 kB / 478.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009194/0.1939, allocations: 0.6147 MB / 479.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.611e-05/0.194, allocations: 100.8 kB / 479.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.194, allocations: 0 / 479.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.1941, allocations: 0 / 479.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.891e-05/0.1941, allocations: 7.984 kB / 479.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.1941, allocations: 4 kB / 479.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.511e-05/0.1942, allocations: 79.31 kB / 479.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1942, allocations: 0 / 479.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000605/0.1948, allocations: 91.98 kB / 479.7 MB, free: 5.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008116/0.1956, allocations: 267.3 kB / 480 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008705/0.1965, allocations: 460.2 kB / 480.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1965, allocations: 0 / 480.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.1967, allocations: 164.3 kB / 480.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.1969, allocations: 5.562 kB / 480.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009106/0.1978, allocations: 454.8 kB / 481 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/0.1983, allocations: 0.7298 MB / 481.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.1985, allocations: 47.58 kB / 481.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.1985, allocations: 19.44 kB / 481.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1985, allocations: 3.938 kB / 481.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of Templates: time 0.008297/0.2068, allocations: 2.82 MB / 484.6 MB, free: 148 kB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches