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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 171.2 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 221.5 MB / 230.7 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009393/0.0009393, allocations: 85.86 kB / 281.6 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2245/0.2245, allocations: 44.16 MB / 376.5 MB, free: 3.016 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.034e-05/2.025e-05, allocations: 224 / 444.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1464, allocations: 61.93 MB / 0.4947 GB, free: 1.223 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.5785, allocations: 85.81 MB / 0.5785 GB, free: 10.67 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.5787, allocations: 59.97 kB / 0.5785 GB, free: 10.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01302/0.5918, allocations: 5.808 MB / 0.5842 GB, free: 4.812 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.5918, allocations: 0 / 0.5842 GB, free: 4.812 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.5918, allocations: 4 kB / 0.5842 GB, free: 4.809 MB / 394.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.0005561/0.5924, allocations: 474.9 kB / 0.5847 GB, free: 4.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.5925, allocations: 11.98 kB / 0.5847 GB, free: 4.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.562e-05/0.5925, allocations: 15.81 kB / 0.5847 GB, free: 4.273 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.5927, allocations: 174.9 kB / 0.5849 GB, free: 4.062 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.5927, allocations: 0 / 0.5849 GB, free: 4.062 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.5928, allocations: 27.88 kB / 0.5849 GB, free: 4.035 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001441/0.5929, allocations: 96.41 kB / 0.585 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.5931, allocations: 128.3 kB / 0.5851 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.5931, allocations: 0 / 0.5851 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.5931, allocations: 0 / 0.5851 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.5931, allocations: 0 / 0.5851 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.5933, allocations: 162.4 kB / 0.5853 GB, free: 3.609 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.5935, allocations: 163 kB / 0.5854 GB, free: 3.441 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.5937, allocations: 157.7 kB / 0.5856 GB, free: 3.285 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.16e-05/0.5937, allocations: 0 / 0.5856 GB, free: 3.285 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.5939, allocations: 169.9 kB / 0.5857 GB, free: 3.109 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 1.172e-06/0.5939, allocations: 0 / 0.5857 GB, free: 3.109 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009996/0.5949, allocations: 0.5716 MB / 0.5863 GB, free: 2.527 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.595, allocations: 107.8 kB / 0.5864 GB, free: 2.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.266e-05/0.5951, allocations: 120.8 kB / 0.5865 GB, free: 2.285 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/0.5952, allocations: 49.72 kB / 0.5865 GB, free: 2.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.011e-05/0.5952, allocations: 85.45 kB / 0.5866 GB, free: 2.145 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.5953, allocations: 130.5 kB / 0.5867 GB, free: 2.016 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.5954, allocations: 0 / 0.5867 GB, free: 2.016 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5955, allocations: 347.6 kB / 0.5871 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.5957, allocations: 158.5 kB / 0.5872 GB, free: 1.512 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.5962, allocations: 0.5063 MB / 0.5877 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.5966, allocations: 248.1 kB / 0.588 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.473e-06/0.5966, allocations: 4 kB / 0.588 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008919/0.5975, allocations: 0.63 MB / 0.5886 GB, free: 15.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.5975, allocations: 8 kB / 0.5886 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.5975, allocations: 12 kB / 0.5886 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.37e-05/0.5976, allocations: 23.94 kB / 0.5886 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000382/0.5979, allocations: 115.7 kB / 0.5887 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.281e-05/0.598, allocations: 32.45 kB / 0.5888 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.5982, allocations: 51.38 kB / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.5982, allocations: 36 kB / 0.5888 GB, free: 15.68 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 ($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 () * 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.0002153/0.5984, allocations: 204.6 kB / 0.589 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/0.5985, allocations: 11.8 kB / 0.5891 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.5985, allocations: 5.969 kB / 0.5891 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.5985, allocations: 0 / 0.5891 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.5985, allocations: 7.953 kB / 0.5891 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.5985, allocations: 0 / 0.5891 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.5987, allocations: 154.4 kB / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5987, allocations: 0 / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.329e-06/0.5987, allocations: 0 / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.5987, allocations: 0 / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.5987, allocations: 4 kB / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.5987, allocations: 0 / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5987, allocations: 4 kB / 0.5892 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008403/0.5996, allocations: 0.6148 MB / 0.5898 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.5996, allocations: 96.84 kB / 0.5899 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/0.5997, allocations: 0 / 0.5899 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.172e-05/0.5997, allocations: 0 / 0.5899 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.5997, allocations: 7.938 kB / 0.5899 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.5997, allocations: 8.016 kB / 0.5899 GB, free: 14.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.183e-05/0.5998, allocations: 75.28 kB / 0.59 GB, free: 14.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5998, allocations: 0 / 0.59 GB, free: 14.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005533/0.6003, allocations: 91.94 kB / 0.5901 GB, free: 14.32 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 () * 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.000597/0.6009, allocations: 277.8 kB / 0.5904 GB, free: 14.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005505/0.6015, allocations: 425.7 kB / 0.5908 GB, free: 13.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.6015, allocations: 4.062 kB / 0.5908 GB, free: 13.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.6017, allocations: 156.4 kB / 0.5909 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001067/0.6018, allocations: 11.95 kB / 0.5909 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005059/0.6023, allocations: 339.1 kB / 0.5912 GB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.6026, allocations: 0.7338 MB / 0.592 GB, free: 12.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.6028, allocations: 43.42 kB / 0.592 GB, free: 12.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.337e-05/0.6028, allocations: 23.44 kB / 0.592 GB, free: 12.31 MB / 410.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6028, allocations: 4 kB / 0.592 GB, free: 12.3 MB / 410.7 MB Notification: Performance of Templates: time 0.006222/0.609, allocations: 3.087 MB / 0.595 GB, free: 9.215 MB / 410.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches