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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [: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 trunk/package.mo): time 0.001133/0.001133, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 225.5 MB / 234.4 MB, free: 14.94 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001014/0.001014, allocations: 99.28 kB / 286.4 MB, free: 12.62 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3538/0.3538, allocations: 45.15 MB / 383.3 MB, free: 40.85 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.31e-06/5.33e-06, allocations: 0 / 452.6 MB, free: 5.492 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3031, allocations: 63.24 MB / 0.5038 GB, free: 35.59 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.4035, allocations: 86.8 MB / 0.5885 GB, free: 7.578 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.4037, allocations: 59.97 kB / 0.5886 GB, free: 7.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.0129/0.4166, allocations: 5.5 MB / 0.594 GB, free: 2.016 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.4167, allocations: 4 kB / 0.594 GB, free: 2.012 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.0004742/0.4172, allocations: 466.9 kB / 0.5944 GB, free: 1.512 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.4172, allocations: 8.031 kB / 0.5944 GB, free: 1.504 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.4172, allocations: 15.81 kB / 0.5944 GB, free: 1.488 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.4174, allocations: 174.9 kB / 0.5946 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.4174, allocations: 0 / 0.5946 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.4174, allocations: 12 kB / 0.5946 GB, free: 1.266 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001281/0.4175, allocations: 104.2 kB / 0.5947 GB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.4177, allocations: 136.3 kB / 0.5948 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.4177, allocations: 0 / 0.5948 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.4177, allocations: 0 / 0.5948 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.4177, allocations: 0 / 0.5948 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.4179, allocations: 162.4 kB / 0.595 GB, free: 0.832 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.418, allocations: 167 kB / 0.5952 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.4182, allocations: 153.7 kB / 0.5953 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-06/0.4182, allocations: 0 / 0.5953 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001466/0.4183, allocations: 173.8 kB / 0.5955 GB, free: 332 kB / 410.7 MB Notification: Performance of pre-optimization done (n=54): time 1.283e-06/0.4183, allocations: 0 / 0.5955 GB, free: 332 kB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.0005206/0.4189, allocations: 0.5325 MB / 0.596 GB, free: 15.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.4189, allocations: 99.8 kB / 0.5961 GB, free: 15.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.807e-05/0.419, allocations: 116.8 kB / 0.5962 GB, free: 15.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.318e-05/0.4191, allocations: 53.69 kB / 0.5962 GB, free: 15.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.4191, allocations: 89.42 kB / 0.5963 GB, free: 15.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4192, allocations: 134.5 kB / 0.5965 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.4192, allocations: 0 / 0.5965 GB, free: 15.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4194, allocations: 342.8 kB / 0.5968 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.4196, allocations: 169.9 kB / 0.5969 GB, free: 14.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.42, allocations: 0.5078 MB / 0.5974 GB, free: 14.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.4204, allocations: 260.1 kB / 0.5977 GB, free: 13.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.4204, allocations: 8 kB / 0.5977 GB, free: 13.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008654/0.4213, allocations: 0.638 MB / 0.5983 GB, free: 13.19 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.4213, allocations: 8 kB / 0.5983 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4213, allocations: 12 kB / 0.5983 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/0.4213, allocations: 19.98 kB / 0.5984 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/0.4217, allocations: 119.7 kB / 0.5985 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.4217, allocations: 27.86 kB / 0.5985 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.4219, allocations: 47.38 kB / 0.5985 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.003e-05/0.4219, allocations: 44.38 kB / 0.5986 GB, free: 12.91 MB / 426.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.0001659/0.4221, allocations: 194 kB / 0.5988 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.4221, allocations: 11.81 kB / 0.5988 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.209e-05/0.4222, allocations: 9.594 kB / 0.5988 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.4222, allocations: 0 / 0.5988 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.4222, allocations: 3.938 kB / 0.5988 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.4222, allocations: 0 / 0.5988 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.4223, allocations: 158.2 kB / 0.5989 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.4223, allocations: 0 / 0.5989 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-06/0.4223, allocations: 7.984 kB / 0.599 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4223, allocations: 0 / 0.599 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.4223, allocations: 0 / 0.599 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4223, allocations: 0 / 0.599 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4223, allocations: 4 kB / 0.599 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004538/0.4228, allocations: 0.5679 MB / 0.5995 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.501e-05/0.4229, allocations: 92.86 kB / 0.5996 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.4229, allocations: 7.984 kB / 0.5996 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.278e-05/0.4229, allocations: 0 / 0.5996 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.73e-05/0.4229, allocations: 0 / 0.5996 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.4229, allocations: 0 / 0.5996 GB, free: 11.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.326e-05/0.4229, allocations: 79.31 kB / 0.5997 GB, free: 11.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004452/0.4234, allocations: 99.92 kB / 0.5998 GB, free: 11.61 MB / 426.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.000464/0.4239, allocations: 268.8 kB / 0.6 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004922/0.4244, allocations: 440.6 kB / 0.6005 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.4244, allocations: 0 / 0.6005 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.4245, allocations: 161.6 kB / 0.6006 GB, free: 10.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.844e-05/0.4246, allocations: 6.719 kB / 0.6006 GB, free: 10.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00042/0.425, allocations: 346 kB / 0.6009 GB, free: 10.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/0.4254, allocations: 0.7611 MB / 0.6017 GB, free: 9.633 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4254, allocations: 0 / 0.6017 GB, free: 9.633 MB / 426.7 MB Notification: Performance of Templates: time 0.007152/0.4325, allocations: 3.875 MB / 0.6055 GB, free: 5.75 MB / 426.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches