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) 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/ModelicaTest trunk/package.mo", uses=false) 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=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001552/0.001552, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002124/0.002124, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.109/2.109, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5158/0.5158, allocations: 46.1 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002977/0.002977, allocations: 77.47 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2317, allocations: 62.44 MB / 479.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.003887/0.2357, allocations: 0.5955 MB / 480.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.2379, allocations: 0.6108 MB / 481.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.688e-05/0.2379, allocations: 3.938 kB / 481.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.2381, allocations: 8 kB / 481.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.015e-05/0.2381, allocations: 0 / 481.2 MB, free: 4.508 MB / 350.1 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.001329/0.2395, allocations: 171.6 kB / 481.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.2396, allocations: 23.98 kB / 481.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.262e-05/0.2397, allocations: 3.938 kB / 481.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.734e-05/0.2398, allocations: 11.98 kB / 481.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.831e-05/0.2398, allocations: 24.47 kB / 481.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.2399, allocations: 4 kB / 481.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005085/0.2404, allocations: 159.8 kB / 481.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.2406, allocations: 60.39 kB / 481.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.2407, allocations: 59.59 kB / 481.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004734/0.2412, allocations: 147.7 kB / 481.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.2412, allocations: 0 / 481.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2412, allocations: 0 / 481.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.2413, allocations: 0 / 481.8 MB, free: 3.852 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.00102/0.2423, allocations: 488.8 kB / 482.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.342e-05/0.2424, allocations: 8.875 kB / 482.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.2425, allocations: 32.62 kB / 482.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.2427, allocations: 176.2 kB / 482.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.2428, allocations: 16.38 kB / 482.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.661e-05/0.2428, allocations: 24.38 kB / 482.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.2432, allocations: 124.4 kB / 482.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2432, allocations: 0 / 482.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.2432, allocations: 0 / 482.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2433, allocations: 0 / 482.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.2434, allocations: 100.3 kB / 482.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003707/0.2438, allocations: 230.2 kB / 483 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.2441, allocations: 171 kB / 483.1 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.2444, allocations: 153.7 kB / 483.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.944e-06/0.2444, allocations: 0 / 483.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005284/0.2449, allocations: 169.9 kB / 483.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.976e-06/0.245, allocations: 0 / 483.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001839/0.2468, allocations: 0.7772 MB / 484.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.247, allocations: 103.8 kB / 484.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.2471, allocations: 121.5 kB / 484.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.2472, allocations: 69.69 kB / 484.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.2473, allocations: 89.45 kB / 484.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.2476, allocations: 134.5 kB / 484.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.2479, allocations: 154.7 kB / 484.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002293/0.2481, allocations: 350.8 kB / 485.2 MB, free: 200 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004666/0.2486, allocations: 185.9 kB / 485.4 MB, free: 12 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.2496, allocations: 0.5409 MB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.2512, allocations: 0.771 MB / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/0.2513, allocations: 4 kB / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00197/0.2532, allocations: 0.7435 MB / 487.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.2533, allocations: 8 kB / 487.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.523e-05/0.2534, allocations: 16.16 kB / 487.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.793e-05/0.2534, allocations: 16 kB / 487.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/0.254, allocations: 123.7 kB / 487.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.554e-05/0.2541, allocations: 23.88 kB / 487.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.2545, allocations: 63.38 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.863e-05/0.2546, allocations: 44 kB / 487.8 MB, free: 13.32 MB / 366.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.0004449/0.2551, allocations: 245.5 kB / 488 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.2551, allocations: 19.62 kB / 488 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.693e-05/0.2552, allocations: 13.86 kB / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.2552, allocations: 0 / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2552, allocations: 0 / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2553, allocations: 0 / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002861/0.2556, allocations: 193.8 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.2556, allocations: 3.938 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.2556, allocations: 7.938 kB / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.2556, allocations: 0 / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.2557, allocations: 0 / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2557, allocations: 0 / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2557, allocations: 0 / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.2572, allocations: 0.6186 MB / 488.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.987e-05/0.2574, allocations: 104.8 kB / 489 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.2574, allocations: 4 kB / 489 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.794e-05/0.2574, allocations: 0 / 489 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.2575, allocations: 3.984 kB / 489 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.2575, allocations: 0 / 489 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.997e-05/0.2576, allocations: 79.22 kB / 489 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2576, allocations: 4 kB / 489.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00103/0.2587, allocations: 95.98 kB / 489.1 MB, free: 11.85 MB / 366.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.001058/0.2597, allocations: 260.6 kB / 489.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.261, allocations: 473.1 kB / 489.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.261, allocations: 3.938 kB / 489.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.2613, allocations: 161 kB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.2616, allocations: 3.938 kB / 490 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.2627, allocations: 0.4967 MB / 490.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/0.2633, allocations: 0.7298 MB / 491.3 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.89e-05/0.2634, allocations: 23.44 kB / 491.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of SimCode: time 2.194e-06/0.2634, allocations: 0 / 491.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of Templates: time 0.01303/0.2765, allocations: 3.788 MB / 495.1 MB, free: 5.898 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches