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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 115.2 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001504/0.001504, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002966/0.002967, allocations: 75.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3864, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002006/0.3885, allocations: 0.5341 MB / 0.5322 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.3895, allocations: 444.4 kB / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.564e-05/0.3896, allocations: 0 / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.569e-05/0.3897, allocations: 7.875 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.3899, allocations: 1.438 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0006237/0.3905, allocations: 175.2 kB / 0.5328 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.3907, allocations: 77.89 kB / 0.5329 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.435e-05/0.3907, allocations: 2.031 kB / 0.5329 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.931e-05/0.3908, allocations: 44.92 kB / 0.5329 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.955e-05/0.3909, allocations: 21.38 kB / 0.5329 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.3909, allocations: 3.375 kB / 0.5329 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00022/0.3911, allocations: 100.7 kB / 0.533 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.3912, allocations: 20.38 kB / 0.533 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.852e-05/0.3912, allocations: 23.38 kB / 0.5331 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.3915, allocations: 131.3 kB / 0.5332 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3915, allocations: 5.5 kB / 0.5332 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3915, allocations: 0 / 0.5332 GB, free: 12.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.3915, allocations: 0 / 0.5332 GB, free: 12.52 MB / 398.1 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.000621/0.3922, allocations: 410.1 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3922, allocations: 9 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.3923, allocations: 4.562 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.3925, allocations: 175.5 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.3925, allocations: 6.141 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.3925, allocations: 3.938 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.3927, allocations: 96.67 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3927, allocations: 192 / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.3928, allocations: 13.3 kB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.3928, allocations: 1.375 kB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.624e-05/0.3928, allocations: 24.34 kB / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.393, allocations: 173.6 kB / 0.5341 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.448e-05/0.3931, allocations: 39.06 kB / 0.5341 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.931e-05/0.3932, allocations: 23.91 kB / 0.5341 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.3932, allocations: 9.312 kB / 0.5341 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002548/0.3935, allocations: 128.7 kB / 0.5343 GB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3935, allocations: 0 / 0.5343 GB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000295/0.3938, allocations: 132.7 kB / 0.5344 GB, free: 11.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3939, allocations: 58.16 kB / 0.5344 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.559e-05/0.3939, allocations: 97.97 kB / 0.5345 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.394, allocations: 32.45 kB / 0.5346 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.636e-05/0.394, allocations: 81.52 kB / 0.5346 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.3941, allocations: 27.77 kB / 0.5347 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.3941, allocations: 27.34 kB / 0.5347 GB, free: 11.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3943, allocations: 321.6 kB / 0.535 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.858e-05/0.3943, allocations: 24.36 kB / 0.535 GB, free: 10.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.272e-05/0.3944, allocations: 82.03 kB / 0.5351 GB, free: 10.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.3946, allocations: 142.8 kB / 0.5352 GB, free: 10.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3946, allocations: 1.375 kB / 0.5352 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002206/0.3949, allocations: 154.6 kB / 0.5354 GB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.3949, allocations: 43.12 kB / 0.5354 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3949, allocations: 2.75 kB / 0.5354 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.3949, allocations: 2.75 kB / 0.5354 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.395, allocations: 16.31 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.3951, allocations: 6.578 kB / 0.5355 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.866e-05/0.3951, allocations: 11.91 kB / 0.5355 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.3952, allocations: 5.312 kB / 0.5355 GB, free: 10.31 MB / 398.1 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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001689/0.3953, allocations: 131.4 kB / 0.5356 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.278e-05/0.3954, allocations: 10.86 kB / 0.5356 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.3954, allocations: 5.375 kB / 0.5356 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3954, allocations: 1.625 kB / 0.5356 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3954, allocations: 3.938 kB / 0.5356 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3954, allocations: 64 / 0.5356 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.3956, allocations: 183.5 kB / 0.5358 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3956, allocations: 0 / 0.5358 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.782e-05/0.3957, allocations: 4.625 kB / 0.5358 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.3957, allocations: 4.969 kB / 0.5358 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.3957, allocations: 8.797 kB / 0.5358 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3957, allocations: 1.125 kB / 0.5358 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3957, allocations: 0 / 0.5358 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002245/0.396, allocations: 131 kB / 0.5359 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.359e-05/0.396, allocations: 95.14 kB / 0.536 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.396, allocations: 2.562 kB / 0.536 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.3963, allocations: 17.5 kB / 0.536 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.3963, allocations: 6.594 kB / 0.536 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.3963, allocations: 11.83 kB / 0.5361 GB, free: 9.711 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.818e-05/0.3964, allocations: 82.11 kB / 0.5361 GB, free: 9.633 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3964, allocations: 0 / 0.5361 GB, free: 9.633 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.3967, allocations: 43.55 kB / 0.5362 GB, free: 9.621 MB / 398.1 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 (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004673/0.3972, allocations: 175.3 kB / 0.5363 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002352/0.3974, allocations: 132.7 kB / 0.5365 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3974, allocations: 0 / 0.5365 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.977e-05/0.3975, allocations: 30.83 kB / 0.5365 GB, free: 9.391 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.3977, allocations: 9.75 kB / 0.5365 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003924/0.3981, allocations: 160.7 kB / 0.5367 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3984, allocations: 0.6896 MB / 0.5373 GB, free: 8.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.3984, allocations: 13.06 kB / 0.5374 GB, free: 8.52 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3984, allocations: 0 / 0.5374 GB, free: 8.52 MB / 398.1 MB Notification: Performance of Templates: time 0.004764/0.4032, allocations: 1.812 MB / 0.5391 GB, free: 7.594 MB / 398.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y