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.001051/0.001051, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 221.4 MB / 236 MB, free: 2.926 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.0009328/0.0009328, allocations: 95.8 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1915/0.1915, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.879e-05, allocations: 4 kB / 451.8 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 61.9 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.4587, allocations: 86.48 MB / 0.5862 GB, free: 2.855 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.4589, allocations: 59.97 kB / 0.5862 GB, free: 2.797 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01213/0.471, allocations: 5.776 MB / 0.5918 GB, free: 13.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.267e-06/0.4711, allocations: 0 / 0.5918 GB, free: 13.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.4711, allocations: 7.938 kB / 0.5919 GB, free: 13.02 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.000421/0.4715, allocations: 471 kB / 0.5923 GB, free: 12.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4716, allocations: 8.031 kB / 0.5923 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.4716, allocations: 19.81 kB / 0.5923 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.4717, allocations: 178.8 kB / 0.5925 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.4718, allocations: 12 kB / 0.5925 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.4718, allocations: 27.95 kB / 0.5925 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.472, allocations: 132.2 kB / 0.5927 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.472, allocations: 0 / 0.5927 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.472, allocations: 0 / 0.5927 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.472, allocations: 4 kB / 0.5927 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.186e-05/0.4721, allocations: 92.41 kB / 0.5928 GB, free: 12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.4723, allocations: 222.2 kB / 0.593 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.4725, allocations: 166.9 kB / 0.5931 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.4726, allocations: 153.7 kB / 0.5933 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.4726, allocations: 0 / 0.5933 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.4728, allocations: 169.9 kB / 0.5934 GB, free: 11.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=54): time 3.116e-06/0.4728, allocations: 3.984 kB / 0.5934 GB, free: 11.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.0008089/0.4736, allocations: 0.5716 MB / 0.594 GB, free: 10.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.4737, allocations: 111.7 kB / 0.5941 GB, free: 10.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.735e-05/0.4737, allocations: 112.8 kB / 0.5942 GB, free: 10.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.846e-05/0.4738, allocations: 73.67 kB / 0.5943 GB, free: 10.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.055e-05/0.4738, allocations: 89.45 kB / 0.5944 GB, free: 10.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.4739, allocations: 130.5 kB / 0.5945 GB, free: 10.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.474, allocations: 16 kB / 0.5945 GB, free: 10.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4741, allocations: 354.8 kB / 0.5948 GB, free: 9.742 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.4743, allocations: 173.9 kB / 0.595 GB, free: 9.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.4748, allocations: 0.518 MB / 0.5955 GB, free: 8.887 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.4751, allocations: 271.6 kB / 0.5958 GB, free: 8.621 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.4751, allocations: 4 kB / 0.5958 GB, free: 8.617 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009025/0.476, allocations: 0.7239 MB / 0.5965 GB, free: 7.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.4761, allocations: 13.59 kB / 0.5965 GB, free: 7.875 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.4761, allocations: 19.95 kB / 0.5965 GB, free: 7.855 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.4761, allocations: 20 kB / 0.5965 GB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.4765, allocations: 111.7 kB / 0.5966 GB, free: 7.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-05/0.4765, allocations: 23.92 kB / 0.5967 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.4767, allocations: 71.38 kB / 0.5967 GB, free: 7.633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.4767, allocations: 36 kB / 0.5968 GB, free: 7.598 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.0001607/0.4769, allocations: 216.6 kB / 0.597 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.4769, allocations: 11.81 kB / 0.597 GB, free: 7.367 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2e-05/0.4769, allocations: 5.656 kB / 0.597 GB, free: 7.355 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.4769, allocations: 3.953 kB / 0.597 GB, free: 7.352 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4769, allocations: 0 / 0.597 GB, free: 7.352 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.477, allocations: 7.984 kB / 0.597 GB, free: 7.344 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.4771, allocations: 197.8 kB / 0.5972 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4771, allocations: 0 / 0.5972 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.297e-06/0.4771, allocations: 0 / 0.5972 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.4771, allocations: 0 / 0.5972 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.4771, allocations: 0 / 0.5972 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4771, allocations: 7.938 kB / 0.5972 GB, free: 7.094 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4771, allocations: 3.953 kB / 0.5972 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007442/0.4779, allocations: 0.6148 MB / 0.5978 GB, free: 6.457 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.4779, allocations: 96.89 kB / 0.5979 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.4779, allocations: 0 / 0.5979 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.139e-05/0.478, allocations: 0 / 0.5979 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.338e-05/0.478, allocations: 7.953 kB / 0.5979 GB, free: 6.336 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.478, allocations: 0 / 0.5979 GB, free: 6.336 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.499e-05/0.478, allocations: 75.28 kB / 0.598 GB, free: 6.262 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.478, allocations: 0 / 0.598 GB, free: 6.262 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00045/0.4785, allocations: 115.9 kB / 0.5981 GB, free: 6.148 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.0005057/0.479, allocations: 280.1 kB / 0.5984 GB, free: 5.906 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004994/0.4795, allocations: 457.2 kB / 0.5988 GB, free: 5.461 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4795, allocations: 7.938 kB / 0.5988 GB, free: 5.453 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.4797, allocations: 160.4 kB / 0.599 GB, free: 5.297 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.42e-05/0.4797, allocations: 5.719 kB / 0.599 GB, free: 5.293 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004359/0.4802, allocations: 344.6 kB / 0.5993 GB, free: 4.934 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.4805, allocations: 0.7338 MB / 0.6 GB, free: 4.172 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.478e-05/0.4806, allocations: 47.36 kB / 0.6001 GB, free: 4.125 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.223e-05/0.4806, allocations: 23.44 kB / 0.6001 GB, free: 4.105 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4806, allocations: 0 / 0.6001 GB, free: 4.105 MB / 410.7 MB Notification: Performance of Templates: time 0.005731/0.4864, allocations: 3.101 MB / 0.6031 GB, free: 1 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