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.0009529/0.000953, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 83.91 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1751/0.1751, allocations: 45.15 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.432e-05/2.435e-05, allocations: 4 kB / 460.4 MB, free: 70.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08534/0.08538, allocations: 63.25 MB / 0.5114 GB, free: 6.777 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3175/0.4029, allocations: 86.87 MB / 0.5962 GB, free: 7.043 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001417/0.4031, allocations: 59.66 kB / 0.5963 GB, free: 7.012 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009219/0.4123, allocations: 3.325 MB / 0.5995 GB, free: 4.184 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4123, allocations: 0 / 0.5995 GB, free: 4.184 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.4123, allocations: 3.938 kB / 0.5995 GB, free: 4.18 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.0003293/0.4127, allocations: 389.5 kB / 0.5999 GB, free: 3.754 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.4127, allocations: 12.03 kB / 0.5999 GB, free: 3.742 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.4128, allocations: 7.906 kB / 0.5999 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.4129, allocations: 189.8 kB / 0.6001 GB, free: 3.512 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.413, allocations: 3.938 kB / 0.6001 GB, free: 3.508 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.413, allocations: 4 kB / 0.6001 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.4132, allocations: 90.52 kB / 0.6002 GB, free: 3.422 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.4132, allocations: 0 / 0.6002 GB, free: 3.422 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.4132, allocations: 2.938 kB / 0.6002 GB, free: 3.422 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4132, allocations: 3.984 kB / 0.6002 GB, free: 3.418 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.575e-05/0.4133, allocations: 23.42 kB / 0.6002 GB, free: 3.398 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.4134, allocations: 175.5 kB / 0.6004 GB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.6e-05/0.4135, allocations: 53.19 kB / 0.6004 GB, free: 3.133 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.749e-05/0.4136, allocations: 24.72 kB / 0.6004 GB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.4136, allocations: 0 / 0.6004 GB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.4138, allocations: 129.7 kB / 0.6006 GB, free: 2.988 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 2.956e-06/0.4138, allocations: 0 / 0.6006 GB, free: 2.988 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002094/0.414, allocations: 107.5 kB / 0.6007 GB, free: 2.891 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.4141, allocations: 63.38 kB / 0.6007 GB, free: 2.816 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.96e-05/0.4141, allocations: 92.5 kB / 0.6008 GB, free: 2.723 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.4142, allocations: 29.7 kB / 0.6009 GB, free: 2.688 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.4142, allocations: 88.27 kB / 0.6009 GB, free: 2.598 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.4142, allocations: 23.58 kB / 0.601 GB, free: 2.578 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/0.4143, allocations: 0 / 0.601 GB, free: 2.578 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.4144, allocations: 322.5 kB / 0.6013 GB, free: 2.258 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.079e-05/0.4144, allocations: 22.8 kB / 0.6013 GB, free: 2.242 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.794e-05/0.4145, allocations: 74.56 kB / 0.6014 GB, free: 2.152 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.061e-05/0.4146, allocations: 60.81 kB / 0.6014 GB, free: 2.094 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4146, allocations: 0 / 0.6014 GB, free: 2.094 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001927/0.4148, allocations: 163.6 kB / 0.6016 GB, free: 1.941 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.4148, allocations: 33.69 kB / 0.6016 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4148, allocations: 4 kB / 0.6016 GB, free: 1.898 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.4148, allocations: 4 kB / 0.6016 GB, free: 1.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.108e-05/0.4149, allocations: 12 kB / 0.6016 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.4149, allocations: 11.92 kB / 0.6016 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.286e-05/0.415, allocations: 7.219 kB / 0.6016 GB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.497e-06/0.415, allocations: 11.94 kB / 0.6017 GB, free: 1.855 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.0001015/0.4151, allocations: 121.8 kB / 0.6018 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.4151, allocations: 7.906 kB / 0.6018 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.086e-05/0.4152, allocations: 15.39 kB / 0.6018 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.4152, allocations: 0 / 0.6018 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.4152, allocations: 0 / 0.6018 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4152, allocations: 64 / 0.6018 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.4153, allocations: 184.7 kB / 0.602 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.4153, allocations: 3.938 kB / 0.602 GB, free: 1.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.171e-05/0.4154, allocations: 8 kB / 0.602 GB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.4154, allocations: 0 / 0.602 GB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.4154, allocations: 7.359 kB / 0.602 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4154, allocations: 4 kB / 0.602 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4154, allocations: 0 / 0.602 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.4156, allocations: 133.5 kB / 0.6021 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.177e-05/0.4156, allocations: 81.06 kB / 0.6022 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.4156, allocations: 4 kB / 0.6022 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.4158, allocations: 31.41 kB / 0.6022 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.187e-05/0.4158, allocations: 0 / 0.6022 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.4158, allocations: 7.984 kB / 0.6022 GB, free: 1.195 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.946e-05/0.4159, allocations: 85.84 kB / 0.6023 GB, free: 1.113 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4159, allocations: 0 / 0.6023 GB, free: 1.113 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000249/0.4161, allocations: 55.86 kB / 0.6024 GB, free: 1.062 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.0003359/0.4165, allocations: 200.6 kB / 0.6026 GB, free: 0.8867 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001586/0.4167, allocations: 125 kB / 0.6027 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4167, allocations: 0 / 0.6027 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.081e-05/0.4167, allocations: 35.8 kB / 0.6027 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.796e-05/0.4168, allocations: 9.125 kB / 0.6027 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002583/0.4171, allocations: 99.78 kB / 0.6028 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.4173, allocations: 0.6887 MB / 0.6035 GB, free: 15.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.178e-05/0.4174, allocations: 12.66 kB / 0.6035 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.175e-05/0.4174, allocations: 15.31 kB / 0.6035 GB, free: 15.88 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4174, allocations: 3.938 kB / 0.6035 GB, free: 15.87 MB / 410.7 MB Notification: Performance of Templates: time 0.004206/0.4216, allocations: 2.069 MB / 0.6055 GB, free: 13.81 MB / 410.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