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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009732/0.0009732, allocations: 178.8 kB / 8.519 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0009206/0.0009203, allocations: 85.98 kB / 281.2 MB, free: 5.508 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.1826/0.1826, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.985e-06/8.015e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 61.91 MB / 0.4941 GB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3167/0.4329, allocations: 85.75 MB / 0.5778 GB, free: 11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.4331, allocations: 61.97 kB / 0.5779 GB, free: 10.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0129/0.446, allocations: 5.501 MB / 0.5832 GB, free: 5.531 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.4461, allocations: 4 kB / 0.5833 GB, free: 5.527 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.00047/0.4465, allocations: 470.9 kB / 0.5837 GB, free: 5.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.4466, allocations: 11.97 kB / 0.5837 GB, free: 5.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.4466, allocations: 15.81 kB / 0.5837 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.4467, allocations: 174.9 kB / 0.5839 GB, free: 4.781 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.4468, allocations: 4 kB / 0.5839 GB, free: 4.777 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.4468, allocations: 12 kB / 0.5839 GB, free: 4.766 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001614/0.447, allocations: 104.3 kB / 0.584 GB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.4471, allocations: 140.2 kB / 0.5841 GB, free: 4.516 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4471, allocations: 0 / 0.5841 GB, free: 4.516 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.4471, allocations: 0 / 0.5841 GB, free: 4.516 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4472, allocations: 0 / 0.5841 GB, free: 4.516 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.4473, allocations: 162.4 kB / 0.5843 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.4475, allocations: 163 kB / 0.5845 GB, free: 4.152 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.4476, allocations: 153.7 kB / 0.5846 GB, free: 4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.4476, allocations: 0 / 0.5846 GB, free: 4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001462/0.4478, allocations: 169.9 kB / 0.5848 GB, free: 3.824 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 9.52e-07/0.4478, allocations: 0 / 0.5848 GB, free: 3.824 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0005688/0.4483, allocations: 0.5363 MB / 0.5853 GB, free: 3.281 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.4484, allocations: 103.8 kB / 0.5854 GB, free: 3.164 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.42e-05/0.4485, allocations: 112.8 kB / 0.5855 GB, free: 3.047 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.119e-05/0.4486, allocations: 57.67 kB / 0.5855 GB, free: 2.984 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/0.4486, allocations: 85.45 kB / 0.5856 GB, free: 2.895 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4487, allocations: 126.6 kB / 0.5858 GB, free: 2.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.4487, allocations: 4 kB / 0.5858 GB, free: 2.766 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4489, allocations: 346.8 kB / 0.5861 GB, free: 2.418 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.4491, allocations: 165.9 kB / 0.5862 GB, free: 2.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005102/0.4496, allocations: 0.5155 MB / 0.5867 GB, free: 1.574 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.45, allocations: 252.1 kB / 0.587 GB, free: 1.328 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.45, allocations: 8 kB / 0.587 GB, free: 1.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009949/0.451, allocations: 0.638 MB / 0.5876 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.4511, allocations: 4.75 kB / 0.5876 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.4511, allocations: 12 kB / 0.5876 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.158e-05/0.4511, allocations: 20 kB / 0.5877 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.4515, allocations: 119.7 kB / 0.5878 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.39e-05/0.4515, allocations: 27.86 kB / 0.5878 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.4517, allocations: 47.38 kB / 0.5878 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.892e-05/0.4518, allocations: 44.38 kB / 0.5879 GB, free: 416 kB / 394.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.0001985/0.452, allocations: 184.7 kB / 0.5881 GB, free: 224 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.993e-05/0.452, allocations: 19.66 kB / 0.5881 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.57e-05/0.4521, allocations: 13.53 kB / 0.5881 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.4521, allocations: 0 / 0.5881 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4521, allocations: 0 / 0.5881 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4521, allocations: 0 / 0.5881 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.4522, allocations: 154.3 kB / 0.5882 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4522, allocations: 3.938 kB / 0.5882 GB, free: 0 / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-06/0.4522, allocations: 0 / 0.5882 GB, free: 0 / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4522, allocations: 0 / 0.5882 GB, free: 0 / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.4523, allocations: 7.984 kB / 0.5882 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4523, allocations: 0 / 0.5882 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4523, allocations: 4 kB / 0.5883 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00052/0.4528, allocations: 0.5679 MB / 0.5888 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.4529, allocations: 92.86 kB / 0.5889 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.4529, allocations: 3.984 kB / 0.5889 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.497e-05/0.4529, allocations: 4 kB / 0.5889 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.007e-05/0.4529, allocations: 7.984 kB / 0.5889 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.4529, allocations: 0 / 0.5889 GB, free: 15.28 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.674e-05/0.453, allocations: 75.28 kB / 0.589 GB, free: 15.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005178/0.4535, allocations: 104 kB / 0.5891 GB, free: 15.11 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.0006591/0.4542, allocations: 272.7 kB / 0.5893 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005448/0.4547, allocations: 440.7 kB / 0.5898 GB, free: 14.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4547, allocations: 0 / 0.5898 GB, free: 14.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.4549, allocations: 161.5 kB / 0.5899 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.455, allocations: 3.906 kB / 0.5899 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.4556, allocations: 345 kB / 0.5902 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.4559, allocations: 0.756 MB / 0.591 GB, free: 13.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4559, allocations: 0 / 0.591 GB, free: 13.12 MB / 410.7 MB Notification: Performance of Templates: time 0.00707/0.463, allocations: 3.871 MB / 0.5948 GB, free: 9.246 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