Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009839/0.0009839, allocations: 111.3 kB / 18.47 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009244/0.0009244, allocations: 193.3 kB / 19.4 MB, free: 3.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2045/0.2045, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.397e-05/3.398e-05, allocations: 2.281 kB / 471.2 MB, free: 1.414 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001387/0.001429, allocations: 0.5397 MB / 471.7 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009414/0.002381, allocations: 438.6 kB / 472.1 MB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.721e-05/0.002432, allocations: 4 kB / 472.1 MB, free: 456 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.002543, allocations: 3.938 kB / 472.1 MB, free: 452 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.002711, allocations: 0 / 472.1 MB, free: 452 kB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0005844/0.003304, allocations: 171.4 kB / 472.3 MB, free: 284 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.00344, allocations: 55.81 kB / 472.4 MB, free: 228 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.003488, allocations: 4 kB / 472.4 MB, free: 224 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.085e-05/0.003545, allocations: 23.92 kB / 472.4 MB, free: 200 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.275e-05/0.003624, allocations: 23.91 kB / 472.4 MB, free: 176 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.003651, allocations: 0 / 472.4 MB, free: 176 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.003838, allocations: 103.8 kB / 472.5 MB, free: 72 kB / 382.1 MB Notification: Performance of combineBinaries: time 9.499e-05/0.003941, allocations: 51.47 kB / 472.6 MB, free: 20 kB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 4.093e-05/0.003988, allocations: 35.62 kB / 472.6 MB, free: 15.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.004015, allocations: 0 / 472.6 MB, free: 15.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 7.223e-06/0.004028, allocations: 4 kB / 472.6 MB, free: 15.98 MB / 398.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for for i in 1:3 loop assert(cnt[i] > lowBound, "Number of generated " + String(i, 0, true) + " is " + String(cnt[i], 0, true) + " but should be " + String(avg, 6, 0, true) + "+/-" + String(sqrt(avg), 6, 0, true), AssertionLevel.error); assert(cnt[i] < highBound, "Number of generated " + String(i, 0, true) + " is " + String(cnt[i], 0, true) + " but should be " + String(avg, 6, 0, true) + "+/-" + String(sqrt(avg), 6, 0, true), AssertionLevel.error); end for