Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001064/0.001064, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003562/0.003562, allocations: 158.5 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8979/0.8979, allocations: 177 MB / 204.9 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2447/0.2447, allocations: 34.24 MB / 295.6 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 443.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.986e-05/3.17e-05, allocations: 2.281 kB / 443.4 MB, free: 1.059 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001121/0.001153, allocations: 0.5348 MB / 444 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1888/0.1899, allocations: 0.5904 MB / 444.6 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.128e-05/0.19, allocations: 1.641 kB / 444.6 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.389e-05/0.1901, allocations: 11.8 kB / 444.6 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.416e-06/0.1901, allocations: 0 / 444.6 MB, free: 43.66 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0008132/0.1909, allocations: 205 kB / 444.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.049e-05/0.1909, allocations: 26.8 kB / 444.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.205e-05/0.191, allocations: 2.344 kB / 444.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.774e-05/0.191, allocations: 25.95 kB / 444.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.565e-05/0.1911, allocations: 11.11 kB / 444.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.1911, allocations: 1.625 kB / 444.8 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002649/0.1914, allocations: 203.6 kB / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-05/0.1914, allocations: 62.66 kB / 445.1 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.943e-05/0.1915, allocations: 34.36 kB / 445.1 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.1917, allocations: 222.9 kB / 445.3 MB, free: 43.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1917, allocations: 1.188 kB / 445.3 MB, free: 43.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1917, allocations: 0 / 445.3 MB, free: 43.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1917, allocations: 0 / 445.3 MB, free: 43.62 MB / 410.7 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.0003708/0.1921, allocations: 426.9 kB / 445.8 MB, free: 43.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1921, allocations: 9.375 kB / 445.8 MB, free: 43.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.1922, allocations: 17.53 kB / 445.8 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.725e-05/0.1922, allocations: 127.1 kB / 445.9 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.1922, allocations: 12.44 kB / 445.9 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.1923, allocations: 22.47 kB / 445.9 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.1924, allocations: 129 kB / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.1924, allocations: 192 / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.1924, allocations: 3.906 kB / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.1924, allocations: 384 / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.776e-05/0.1925, allocations: 97.89 kB / 446.2 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.1926, allocations: 156.8 kB / 446.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.392e-05/0.1927, allocations: 109.5 kB / 446.4 MB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.684e-05/0.1927, allocations: 103.9 kB / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.714e-06/0.1927, allocations: 0 / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.193, allocations: 170 kB / 446.7 MB, free: 42.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=54): time 1.403e-06/0.193, allocations: 0 / 446.7 MB, free: 42.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.0004819/0.1934, allocations: 0.6036 MB / 447.3 MB, free: 42.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.1935, allocations: 104.8 kB / 447.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.295e-05/0.1935, allocations: 121.4 kB / 447.5 MB, free: 42.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.1935, allocations: 74.5 kB / 447.6 MB, free: 42.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.406e-05/0.1936, allocations: 88.08 kB / 447.7 MB, free: 42.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.075e-05/0.1936, allocations: 150.3 kB / 447.8 MB, free: 42.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.892e-05/0.1937, allocations: 153.8 kB / 448 MB, free: 42.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.1937, allocations: 351.3 kB / 448.3 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.1939, allocations: 184 kB / 448.5 MB, free: 41.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.1941, allocations: 0.5329 MB / 449 MB, free: 41.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004547/0.1946, allocations: 0.7838 MB / 449.8 MB, free: 40.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1946, allocations: 3.219 kB / 449.8 MB, free: 40.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0005637/0.1952, allocations: 0.7412 MB / 450.6 MB, free: 40.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1952, allocations: 8.562 kB / 450.6 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.1952, allocations: 11.53 kB / 450.6 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.1952, allocations: 19.84 kB / 450.6 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.1954, allocations: 116.5 kB / 450.7 MB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.1954, allocations: 29.17 kB / 450.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.1956, allocations: 67.53 kB / 450.8 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.1956, allocations: 48.95 kB / 450.9 MB, free: 40.39 MB / 410.7 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.0001368/0.1957, allocations: 245.4 kB / 451.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.1957, allocations: 18.58 kB / 451.1 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.593e-05/0.1958, allocations: 8.562 kB / 451.1 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1958, allocations: 0 / 451.1 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1958, allocations: 0 / 451.1 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1958, allocations: 3.938 kB / 451.1 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.633e-05/0.1958, allocations: 125.7 kB / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1958, allocations: 0 / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.108e-06/0.1958, allocations: 0 / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1958, allocations: 0 / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.1959, allocations: 6.344 kB / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.1959, allocations: 2.688 kB / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1959, allocations: 4 kB / 451.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.1962, allocations: 463.3 kB / 451.7 MB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.246e-05/0.1962, allocations: 25.48 kB / 451.7 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.1962, allocations: 0 / 451.7 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.1962, allocations: 0 / 451.7 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.1962, allocations: 0 / 451.7 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.1962, allocations: 6.312 kB / 451.7 MB, free: 39.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.012e-05/0.1963, allocations: 75.28 kB / 451.8 MB, free: 39.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1963, allocations: 0 / 451.8 MB, free: 39.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003205/0.1966, allocations: 103.4 kB / 451.9 MB, free: 39.71 MB / 410.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: 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.0004193/0.197, allocations: 273.5 kB / 452.2 MB, free: 39.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003552/0.1974, allocations: 451.1 kB / 452.6 MB, free: 39.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1974, allocations: 0.875 kB / 452.6 MB, free: 39.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.56e-05/0.1974, allocations: 107.7 kB / 452.7 MB, free: 39.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001074/0.1975, allocations: 6.781 kB / 452.7 MB, free: 39.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003845/0.1979, allocations: 475.8 kB / 453.2 MB, free: 39.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.249e-05/0.198, allocations: 123.8 kB / 453.3 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.198, allocations: 22.25 kB / 453.3 MB, free: 39.06 MB / 410.7 MB Notification: Performance of SimCode: time 4.5e-07/0.198, allocations: 0 / 453.3 MB, free: 39.06 MB / 410.7 MB Notification: Performance of Templates: time 0.003836/0.2018, allocations: 3.858 MB / 457.2 MB, free: 38.72 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.656308404169977]