Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [: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.001118/0.001118, allocations: 196.4 kB / 8.535 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 225.5 MB / 234.4 MB, free: 3.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000962/0.000962, allocations: 92.97 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1799/0.1799, allocations: 45.14 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.224e-06/7.254e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1143, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3992/0.5135, allocations: 86.14 MB / 0.5879 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000159/0.5137, allocations: 60.53 kB / 0.588 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.009767/0.5235, allocations: 3.031 MB / 0.5909 GB, free: 14.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.5235, allocations: 0 / 0.5909 GB, free: 14.23 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004313/0.524, allocations: 393.6 kB / 0.5913 GB, free: 13.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.524, allocations: 8.031 kB / 0.5913 GB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.5241, allocations: 7.906 kB / 0.5913 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.5243, allocations: 179.8 kB / 0.5915 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.5244, allocations: 4.625 kB / 0.5915 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.5244, allocations: 7.938 kB / 0.5915 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.981e-05/0.5245, allocations: 22.61 kB / 0.5915 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.5246, allocations: 83.31 kB / 0.5916 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.5247, allocations: 3.906 kB / 0.5916 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.5247, allocations: 7.234 kB / 0.5916 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.5247, allocations: 0 / 0.5916 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001859/0.5249, allocations: 149.6 kB / 0.5917 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.385e-05/0.525, allocations: 49.62 kB / 0.5918 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.735e-05/0.525, allocations: 20.17 kB / 0.5918 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.5251, allocations: 0 / 0.5918 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.5253, allocations: 140.2 kB / 0.5919 GB, free: 13.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.5253, allocations: 3.938 kB / 0.5919 GB, free: 13.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002675/0.5256, allocations: 84.09 kB / 0.592 GB, free: 12.99 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.5256, allocations: 51.41 kB / 0.5921 GB, free: 12.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.5257, allocations: 100.8 kB / 0.5922 GB, free: 12.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.5257, allocations: 37.14 kB / 0.5922 GB, free: 12.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.33e-05/0.5258, allocations: 80.33 kB / 0.5923 GB, free: 12.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.5258, allocations: 19.41 kB / 0.5923 GB, free: 12.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.5258, allocations: 0 / 0.5923 GB, free: 12.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.526, allocations: 322.2 kB / 0.5926 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.564e-05/0.526, allocations: 22.69 kB / 0.5926 GB, free: 12.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.497e-05/0.5261, allocations: 70.23 kB / 0.5927 GB, free: 12.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.973e-05/0.5262, allocations: 30.84 kB / 0.5927 GB, free: 12.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5262, allocations: 4 kB / 0.5927 GB, free: 12.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002141/0.5264, allocations: 119.6 kB / 0.5928 GB, free: 12.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.5265, allocations: 4 kB / 0.5929 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.5265, allocations: 0 / 0.5929 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.5265, allocations: 4 kB / 0.5929 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.803e-05/0.5266, allocations: 19.92 kB / 0.5929 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.5266, allocations: 4 kB / 0.5929 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.5267, allocations: 11.84 kB / 0.5929 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.5267, allocations: 7.375 kB / 0.5929 GB, free: 12.08 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001672/0.5269, allocations: 123.9 kB / 0.593 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.5269, allocations: 11.89 kB / 0.593 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.5269, allocations: 11.81 kB / 0.593 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.527, allocations: 0 / 0.593 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.527, allocations: 0 / 0.593 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.527, allocations: 192 / 0.593 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.5271, allocations: 154.3 kB / 0.5932 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.5271, allocations: 3.938 kB / 0.5932 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.927e-05/0.5272, allocations: 8 kB / 0.5932 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.5272, allocations: 7.984 kB / 0.5932 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.5272, allocations: 7.859 kB / 0.5932 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.5272, allocations: 0 / 0.5932 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5272, allocations: 0 / 0.5932 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001975/0.5274, allocations: 115.1 kB / 0.5933 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.5275, allocations: 85.02 kB / 0.5934 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.5275, allocations: 7.984 kB / 0.5934 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.5277, allocations: 27.55 kB / 0.5934 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.752e-05/0.5277, allocations: 3.984 kB / 0.5934 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.5277, allocations: 4 kB / 0.5934 GB, free: 11.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.356e-05/0.5278, allocations: 82.59 kB / 0.5935 GB, free: 11.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002894/0.5281, allocations: 59.73 kB / 0.5936 GB, free: 11.32 MB / 394.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004103/0.5285, allocations: 187.3 kB / 0.5938 GB, free: 11.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.5287, allocations: 84.62 kB / 0.5938 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5287, allocations: 8.062 kB / 0.5938 GB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.802e-05/0.5288, allocations: 30.86 kB / 0.5939 GB, free: 11.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.5289, allocations: 11.34 kB / 0.5939 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003488/0.5292, allocations: 102.5 kB / 0.594 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003197/0.5296, allocations: 0.7035 MB / 0.5947 GB, free: 10.18 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5296, allocations: 0 / 0.5947 GB, free: 10.18 MB / 394.7 MB Notification: Performance of Templates: time 0.004754/0.5343, allocations: 2.191 MB / 0.5968 GB, free: 7.996 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches