Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.0008892/0.0008893, allocations: 97.8 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008037/0.0008038, allocations: 180.6 kB / 16.92 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.4 MB / 223.1 MB, free: 5.457 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4888/0.4888, allocations: 43.57 MB / 315 MB, free: 8.922 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005707/0.0005707, allocations: 23.98 kB / 384.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1816, allocations: 58.85 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0009434/0.1826, allocations: 276.3 kB / 443.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.1843, allocations: 0.5968 MB / 444.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.41e-05/0.1843, allocations: 0 / 444.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.1845, allocations: 7.938 kB / 444.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.04e-06/0.1845, allocations: 0 / 444.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008448/0.1853, allocations: 167.7 kB / 444.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.631e-05/0.1854, allocations: 27.97 kB / 444.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.539e-05/0.1855, allocations: 4 kB / 444.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.54e-05/0.1855, allocations: 15.92 kB / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.855e-05/0.1857, allocations: 16.48 kB / 444.5 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.1857, allocations: 4 kB / 444.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003895/0.1861, allocations: 163.7 kB / 444.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1862, allocations: 56.45 kB / 444.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1863, allocations: 81.31 kB / 444.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.1867, allocations: 203.4 kB / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1867, allocations: 3.938 kB / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1867, allocations: 0 / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1867, allocations: 0 / 445 MB, free: 11.07 MB / 382.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.0006926/0.1874, allocations: 468.7 kB / 445.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.887e-05/0.1875, allocations: 8.031 kB / 445.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.1876, allocations: 20.75 kB / 445.5 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.1877, allocations: 176.2 kB / 445.7 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.183e-05/0.1878, allocations: 20.38 kB / 445.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.1879, allocations: 24.31 kB / 445.7 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.1881, allocations: 136.4 kB / 445.9 MB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1881, allocations: 0 / 445.9 MB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.1882, allocations: 3.938 kB / 445.9 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1882, allocations: 0 / 445.9 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.1883, allocations: 100.3 kB / 446 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002737/0.1886, allocations: 226.2 kB / 446.2 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.1888, allocations: 167 kB / 446.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.189, allocations: 157.7 kB / 446.5 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.189, allocations: 3.984 kB / 446.5 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000302/0.1893, allocations: 169.9 kB / 446.7 MB, free: 9.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.864e-06/0.1894, allocations: 0 / 446.7 MB, free: 9.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001464/0.1908, allocations: 0.7733 MB / 447.5 MB, free: 8.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.191, allocations: 107.8 kB / 447.6 MB, free: 8.367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.958e-05/0.1911, allocations: 113.7 kB / 447.7 MB, free: 8.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.497e-05/0.1912, allocations: 73.67 kB / 447.7 MB, free: 8.168 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.896e-05/0.1912, allocations: 89.45 kB / 447.8 MB, free: 8.078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.1914, allocations: 138.5 kB / 448 MB, free: 7.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.1916, allocations: 93.66 kB / 448.1 MB, free: 7.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.1918, allocations: 346.8 kB / 448.4 MB, free: 7.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004223/0.1923, allocations: 185.9 kB / 448.6 MB, free: 7.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000737/0.193, allocations: 0.537 MB / 449.1 MB, free: 6.609 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.1942, allocations: 0.771 MB / 449.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.1942, allocations: 4 kB / 449.9 MB, free: 5.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001419/0.1957, allocations: 0.7396 MB / 450.6 MB, free: 4.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.1957, allocations: 15.98 kB / 450.6 MB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.1957, allocations: 12.09 kB / 450.7 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.695e-05/0.1958, allocations: 20 kB / 450.7 MB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.1963, allocations: 119.7 kB / 450.8 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.114e-05/0.1963, allocations: 23.88 kB / 450.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.1966, allocations: 67.33 kB / 450.9 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.217e-05/0.1967, allocations: 44 kB / 450.9 MB, free: 4.625 MB / 382.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 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003118/0.197, allocations: 241.5 kB / 451.2 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.1971, allocations: 11.75 kB / 451.2 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.064e-05/0.1971, allocations: 9.812 kB / 451.2 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1971, allocations: 0 / 451.2 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1971, allocations: 7.938 kB / 451.2 MB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.1972, allocations: 0 / 451.2 MB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.1974, allocations: 201.8 kB / 451.4 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1974, allocations: 0 / 451.4 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-06/0.1974, allocations: 3.938 kB / 451.4 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1974, allocations: 4 kB / 451.4 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.1974, allocations: 3.984 kB / 451.4 MB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1974, allocations: 0 / 451.4 MB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1974, allocations: 0 / 451.4 MB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.1987, allocations: 0.6109 MB / 452 MB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.793e-05/0.1988, allocations: 108.8 kB / 452.1 MB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.1988, allocations: 3.984 kB / 452.1 MB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.858e-05/0.1988, allocations: 4 kB / 452.1 MB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.29e-05/0.1989, allocations: 0 / 452.1 MB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.1989, allocations: 0 / 452.1 MB, free: 3.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.854e-05/0.1989, allocations: 75.28 kB / 452.2 MB, free: 3.258 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1989, allocations: 3.938 kB / 452.2 MB, free: 3.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005685/0.1995, allocations: 95.98 kB / 452.3 MB, free: 3.16 MB / 382.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 (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.0006792/0.2002, allocations: 266.8 kB / 452.6 MB, free: 2.902 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006145/0.2008, allocations: 463.7 kB / 453 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2008, allocations: 1.938 kB / 453 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.201, allocations: 160.4 kB / 453.2 MB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.2011, allocations: 7.938 kB / 453.2 MB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006685/0.2018, allocations: 478.8 kB / 453.6 MB, free: 1.797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.2022, allocations: 0.7297 MB / 454.4 MB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.2023, allocations: 43.59 kB / 454.4 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.2023, allocations: 23.44 kB / 454.4 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2023, allocations: 0 / 454.4 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of Templates: time 0.2652/0.4676, allocations: 2.796 MB / 457.2 MB, free: 45.26 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches