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.002282/0.002283, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007651/0.0007652, allocations: 93.38 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1739/0.1739, allocations: 45.15 MB / 383.7 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.708e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1002, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3663/0.4665, allocations: 86.22 MB / 0.5886 GB, free: 344 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4667, allocations: 62.47 kB / 0.5886 GB, free: 312 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009344/0.4761, allocations: 3.32 MB / 0.5919 GB, free: 13.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4761, allocations: 0 / 0.5919 GB, free: 13.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.4761, allocations: 0 / 0.5919 GB, free: 13.53 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.0003552/0.4765, allocations: 391.9 kB / 0.5922 GB, free: 13.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.4765, allocations: 8.031 kB / 0.5922 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.867e-05/0.4766, allocations: 15.83 kB / 0.5923 GB, free: 13.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.4768, allocations: 183 kB / 0.5924 GB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.4768, allocations: 8 kB / 0.5924 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.4768, allocations: 0 / 0.5924 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.426e-05/0.4769, allocations: 23.91 kB / 0.5925 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.4771, allocations: 85.33 kB / 0.5925 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.4771, allocations: 0 / 0.5925 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.4771, allocations: 4 kB / 0.5925 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.4771, allocations: 0 / 0.5925 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001425/0.4773, allocations: 153.5 kB / 0.5927 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.343e-05/0.4773, allocations: 50.06 kB / 0.5927 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.472e-05/0.4774, allocations: 20.72 kB / 0.5928 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.4774, allocations: 4 kB / 0.5928 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.4776, allocations: 122.5 kB / 0.5929 GB, free: 12.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 2.494e-06/0.4776, allocations: 0 / 0.5929 GB, free: 12.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002444/0.4779, allocations: 112.9 kB / 0.593 GB, free: 12.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.4779, allocations: 55.41 kB / 0.593 GB, free: 12.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.336e-05/0.4779, allocations: 93.55 kB / 0.5931 GB, free: 12.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.478, allocations: 29.7 kB / 0.5932 GB, free: 12.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.826e-05/0.478, allocations: 80.33 kB / 0.5932 GB, free: 12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.478, allocations: 23.64 kB / 0.5933 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-06/0.4781, allocations: 0 / 0.5933 GB, free: 11.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.4781, allocations: 322.7 kB / 0.5936 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.502e-05/0.4782, allocations: 23.61 kB / 0.5936 GB, free: 11.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.974e-05/0.4783, allocations: 68.03 kB / 0.5936 GB, free: 11.56 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.195e-05/0.4783, allocations: 35.77 kB / 0.5937 GB, free: 11.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4783, allocations: 3.938 kB / 0.5937 GB, free: 11.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001719/0.4785, allocations: 120.9 kB / 0.5938 GB, free: 11.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.4786, allocations: 29.7 kB / 0.5938 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.4786, allocations: 4 kB / 0.5938 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.4786, allocations: 4.219 kB / 0.5938 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.673e-05/0.4787, allocations: 19.8 kB / 0.5939 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.4787, allocations: 7.938 kB / 0.5939 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.425e-05/0.4787, allocations: 7.938 kB / 0.5939 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.4788, allocations: 7.984 kB / 0.5939 GB, free: 11.33 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.0001065/0.4789, allocations: 116.8 kB / 0.594 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.284e-05/0.4789, allocations: 11.86 kB / 0.594 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.4789, allocations: 8.406 kB / 0.594 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.4789, allocations: 3.984 kB / 0.594 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.479, allocations: 0 / 0.594 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.479, allocations: 0 / 0.594 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.4791, allocations: 154.2 kB / 0.5942 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4791, allocations: 0 / 0.5942 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.212e-05/0.4791, allocations: 15.98 kB / 0.5942 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4791, allocations: 0 / 0.5942 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.4792, allocations: 3.953 kB / 0.5942 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4792, allocations: 0 / 0.5942 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4792, allocations: 4 kB / 0.5942 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.4794, allocations: 134.5 kB / 0.5943 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.4794, allocations: 81.11 kB / 0.5944 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.4794, allocations: 3.188 kB / 0.5944 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.4796, allocations: 27.92 kB / 0.5944 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.4796, allocations: 4 kB / 0.5944 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.4796, allocations: 15.17 kB / 0.5944 GB, free: 10.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.927e-05/0.4797, allocations: 79.22 kB / 0.5945 GB, free: 10.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4797, allocations: 0 / 0.5945 GB, free: 10.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002675/0.48, allocations: 55.42 kB / 0.5946 GB, free: 10.58 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.0003764/0.4803, allocations: 187.8 kB / 0.5947 GB, free: 10.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001518/0.4805, allocations: 120.8 kB / 0.5949 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4805, allocations: 0 / 0.5949 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.4806, allocations: 30.19 kB / 0.5949 GB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.934e-05/0.4807, allocations: 3.562 kB / 0.5949 GB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002957/0.481, allocations: 91.34 kB / 0.595 GB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.4812, allocations: 0.6885 MB / 0.5957 GB, free: 9.438 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.544e-05/0.4812, allocations: 12.66 kB / 0.5957 GB, free: 9.426 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.679e-05/0.4813, allocations: 22.3 kB / 0.5957 GB, free: 9.406 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4813, allocations: 0 / 0.5957 GB, free: 9.406 MB / 394.7 MB Notification: Performance of Templates: time 0.004212/0.4855, allocations: 2.05 MB / 0.5977 GB, free: 7.367 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