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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 196.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.5 MB / 245.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007416/0.0007416, allocations: 94.69 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3295/0.3295, allocations: 44.82 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002553/0.0002554, allocations: 11.98 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3198, allocations: 62.96 MB / 0.5184 GB, free: 37.64 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1103/0.4302, allocations: 86.81 MB / 0.6032 GB, free: 2.488 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.4304, allocations: 67.95 kB / 0.6033 GB, free: 2.426 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009754/0.4402, allocations: 3.334 MB / 0.6065 GB, free: 15.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.4402, allocations: 0 / 0.6065 GB, free: 15.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.4403, allocations: 0 / 0.6065 GB, free: 15.09 MB / 426.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.0005352/0.4408, allocations: 393 kB / 0.6069 GB, free: 14.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.4409, allocations: 16.88 kB / 0.6069 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.038e-05/0.4409, allocations: 4.844 kB / 0.6069 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.4412, allocations: 188.3 kB / 0.6071 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.4412, allocations: 384 / 0.6071 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.4413, allocations: 8.359 kB / 0.6071 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.4415, allocations: 86.19 kB / 0.6072 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4415, allocations: 4.188 kB / 0.6072 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.4415, allocations: 7.938 kB / 0.6072 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.4416, allocations: 0 / 0.6072 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.488e-05/0.4416, allocations: 27.97 kB / 0.6072 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002206/0.4419, allocations: 165.6 kB / 0.6074 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.442, allocations: 58.53 kB / 0.6074 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.861e-05/0.442, allocations: 16.86 kB / 0.6075 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.4421, allocations: 0 / 0.6075 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.4423, allocations: 139.5 kB / 0.6076 GB, free: 13.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.4423, allocations: 3.938 kB / 0.6076 GB, free: 13.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003234/0.4426, allocations: 141.4 kB / 0.6077 GB, free: 13.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.4427, allocations: 55.41 kB / 0.6078 GB, free: 13.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.433e-05/0.4428, allocations: 97.84 kB / 0.6079 GB, free: 13.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.4428, allocations: 29.7 kB / 0.6079 GB, free: 13.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.4429, allocations: 84.14 kB / 0.608 GB, free: 13.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.4429, allocations: 27.7 kB / 0.608 GB, free: 13.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.571e-05/0.4429, allocations: 4 kB / 0.608 GB, free: 13.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4431, allocations: 310.8 kB / 0.6083 GB, free: 13.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.771e-05/0.4431, allocations: 23.98 kB / 0.6083 GB, free: 13.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.199e-05/0.4432, allocations: 78.84 kB / 0.6084 GB, free: 12.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002074/0.4434, allocations: 152.4 kB / 0.6085 GB, free: 12.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4435, allocations: 0 / 0.6085 GB, free: 12.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002259/0.4437, allocations: 155.1 kB / 0.6087 GB, free: 12.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.4437, allocations: 37.64 kB / 0.6087 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.4437, allocations: 0 / 0.6087 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.4438, allocations: 4 kB / 0.6087 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.619e-05/0.4439, allocations: 24.14 kB / 0.6088 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.4439, allocations: 8 kB / 0.6088 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.952e-05/0.4439, allocations: 7.938 kB / 0.6088 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.444, allocations: 4 kB / 0.6088 GB, free: 12.48 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) 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 () * Number of clocked 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.0001432/0.4441, allocations: 129.8 kB / 0.6089 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.4441, allocations: 15.78 kB / 0.6089 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.4442, allocations: 7.969 kB / 0.6089 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4442, allocations: 4.188 kB / 0.6089 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4442, allocations: 4 kB / 0.6089 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.4442, allocations: 7.969 kB / 0.6089 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.4444, allocations: 165.6 kB / 0.6091 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4444, allocations: 0 / 0.6091 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.501e-05/0.4444, allocations: 11.98 kB / 0.6091 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.4444, allocations: 3.938 kB / 0.6091 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.4445, allocations: 4 kB / 0.6091 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4445, allocations: 0 / 0.6091 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4445, allocations: 0 / 0.6091 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.4447, allocations: 145.2 kB / 0.6093 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.4447, allocations: 85.03 kB / 0.6093 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.4448, allocations: 4 kB / 0.6093 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.4449, allocations: 23.92 kB / 0.6094 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.445, allocations: 7.984 kB / 0.6094 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.445, allocations: 11.98 kB / 0.6094 GB, free: 11.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.582e-05/0.445, allocations: 79.28 kB / 0.6095 GB, free: 11.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.445, allocations: 0 / 0.6095 GB, free: 11.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000298/0.4453, allocations: 59.98 kB / 0.6095 GB, free: 11.62 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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * 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.0004494/0.4458, allocations: 199.1 kB / 0.6097 GB, free: 11.44 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.446, allocations: 127.3 kB / 0.6098 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.446, allocations: 0 / 0.6098 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.349e-05/0.4461, allocations: 35.92 kB / 0.6099 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000164/0.4463, allocations: 11.98 kB / 0.6099 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.4467, allocations: 151.2 kB / 0.61 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.4469, allocations: 0.6887 MB / 0.6107 GB, free: 10.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.726e-05/0.447, allocations: 16.64 kB / 0.6107 GB, free: 10.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.025e-05/0.447, allocations: 15.44 kB / 0.6107 GB, free: 10.33 MB / 426.7 MB Notification: Performance of SimCode: time 2.3e-07/0.447, allocations: 0 / 0.6107 GB, free: 10.33 MB / 426.7 MB Notification: Performance of Templates: time 0.005589/0.4526, allocations: 2.071 MB / 0.6127 GB, free: 8.266 MB / 426.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/jenkins1/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