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.001066/0.001066, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001695, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2398/0.2398, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 75.88 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3821, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001692/0.3839, allocations: 0.5454 MB / 0.5315 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009758/0.3849, allocations: 439.3 kB / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.069e-05/0.3849, allocations: 0 / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.602e-05/0.385, allocations: 5.062 kB / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.3852, allocations: 9.375 kB / 0.5319 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.0005925/0.3858, allocations: 170.6 kB / 0.5321 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.3859, allocations: 82 kB / 0.5322 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.386, allocations: 2.219 kB / 0.5322 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.295e-05/0.386, allocations: 40.41 kB / 0.5322 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.01e-05/0.3861, allocations: 21.56 kB / 0.5323 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.149e-05/0.3861, allocations: 2.812 kB / 0.5323 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002021/0.3863, allocations: 101.3 kB / 0.5324 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.958e-05/0.3864, allocations: 19.47 kB / 0.5324 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.67e-05/0.3865, allocations: 27.56 kB / 0.5324 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.3867, allocations: 132.4 kB / 0.5325 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3867, allocations: 0 / 0.5325 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3867, allocations: 1.844 kB / 0.5325 GB, free: 12.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3867, allocations: 0 / 0.5325 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.0005429/0.3873, allocations: 404 kB / 0.5329 GB, free: 12.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.3873, allocations: 13.16 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.3874, allocations: 5.438 kB / 0.5329 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3875, allocations: 176.4 kB / 0.5331 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3876, allocations: 5.656 kB / 0.5331 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.793e-05/0.3876, allocations: 7.25 kB / 0.5331 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.3878, allocations: 98.39 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3878, allocations: 192 / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.3878, allocations: 3.938 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3878, allocations: 1.281 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.657e-05/0.3879, allocations: 24.62 kB / 0.5332 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.3881, allocations: 177 kB / 0.5334 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.351e-05/0.3882, allocations: 48.44 kB / 0.5334 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.501e-05/0.3883, allocations: 19.92 kB / 0.5335 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3883, allocations: 11.86 kB / 0.5335 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.3885, allocations: 120.7 kB / 0.5336 GB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.3885, allocations: 4 kB / 0.5336 GB, free: 11.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002919/0.3888, allocations: 124.7 kB / 0.5337 GB, free: 11.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.3889, allocations: 59.52 kB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.835e-05/0.389, allocations: 97.98 kB / 0.5339 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.389, allocations: 28.45 kB / 0.5339 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.627e-05/0.389, allocations: 84.14 kB / 0.534 GB, free: 11.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.3891, allocations: 31.91 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.3891, allocations: 32.7 kB / 0.534 GB, free: 11.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.859e-05/0.3892, allocations: 320.2 kB / 0.5343 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.975e-05/0.3893, allocations: 25.72 kB / 0.5344 GB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.634e-05/0.3894, allocations: 72.67 kB / 0.5344 GB, free: 10.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.3896, allocations: 152.2 kB / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3896, allocations: 0 / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002173/0.3898, allocations: 154.4 kB / 0.5347 GB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.3898, allocations: 36.52 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.3899, allocations: 1.375 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3899, allocations: 2.75 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.39, allocations: 28.36 kB / 0.5348 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.39, allocations: 2.75 kB / 0.5348 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.127e-05/0.3901, allocations: 8.031 kB / 0.5348 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.3901, allocations: 5.5 kB / 0.5348 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.0001394/0.3902, allocations: 136.1 kB / 0.5349 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.3903, allocations: 6.688 kB / 0.5349 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.3903, allocations: 9.344 kB / 0.5349 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.3903, allocations: 1.375 kB / 0.535 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3903, allocations: 0 / 0.535 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3903, allocations: 5.359 kB / 0.535 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.3905, allocations: 169.8 kB / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3905, allocations: 0 / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.3906, allocations: 13.77 kB / 0.5351 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3906, allocations: 3.938 kB / 0.5351 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3906, allocations: 5.375 kB / 0.5351 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3906, allocations: 5.312 kB / 0.5351 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3906, allocations: 0 / 0.5351 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.3908, allocations: 126.5 kB / 0.5353 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.068e-05/0.3909, allocations: 90.95 kB / 0.5354 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.3909, allocations: 3.219 kB / 0.5354 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.3911, allocations: 24.78 kB / 0.5354 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.3911, allocations: 7.984 kB / 0.5354 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.3912, allocations: 2.438 kB / 0.5354 GB, free: 9.719 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.854e-05/0.3912, allocations: 85.91 kB / 0.5355 GB, free: 9.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3912, allocations: 0 / 0.5355 GB, free: 9.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.3915, allocations: 43.38 kB / 0.5355 GB, free: 9.625 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.0003642/0.3919, allocations: 185.8 kB / 0.5357 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.3921, allocations: 124.8 kB / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.3921, allocations: 1.312 kB / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.313e-05/0.3922, allocations: 33.86 kB / 0.5358 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.0001596/0.3923, allocations: 7.906 kB / 0.5359 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.3927, allocations: 146.4 kB / 0.536 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.3929, allocations: 0.6815 MB / 0.5367 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.717e-05/0.393, allocations: 13.75 kB / 0.5367 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.419e-05/0.393, allocations: 12 kB / 0.5367 GB, free: 8.539 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.393, allocations: 0 / 0.5367 GB, free: 8.539 MB / 398.1 MB Notification: Performance of Templates: time 0.004706/0.3977, allocations: 2.006 MB / 0.5386 GB, free: 7.512 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches