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.001043/0.001043, allocations: 113.9 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 208.1 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.153/1.153, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1739/0.1739, allocations: 46.11 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.497e-05/1.499e-05, allocations: 2.281 kB / 481.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001091/0.001114, allocations: 0.5428 MB / 482.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007099/0.001834, allocations: 438.6 kB / 482.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.49e-05/0.00187, allocations: 0 / 482.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.119e-05/0.001936, allocations: 3.938 kB / 482.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.139e-05/0.002039, allocations: 15.92 kB / 482.9 MB, free: 3.16 MB / 350.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.0004659/0.002511, allocations: 167.2 kB / 483.1 MB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.736e-05/0.002616, allocations: 43.91 kB / 483.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.792e-05/0.002651, allocations: 0 / 483.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.586e-05/0.002701, allocations: 35.89 kB / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.699e-05/0.002754, allocations: 11.92 kB / 483.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.002775, allocations: 4 kB / 483.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.002931, allocations: 99.84 kB / 483.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of combineBinaries: time 6.831e-05/0.003008, allocations: 55.55 kB / 483.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 1.903e-05/0.003032, allocations: 31.55 kB / 483.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.535e-05/0.003052, allocations: 8 kB / 483.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.381e-06/0.003062, allocations: 0 / 483.4 MB, free: 2.715 MB / 350.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