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.001241/0.001241, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 46.1 MB / 345 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 79.86 kB / 482 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4206, allocations: 62.43 MB / 0.5317 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002009/0.4227, allocations: 0.5293 MB / 0.5322 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.4237, allocations: 439 kB / 0.5326 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.441e-05/0.4238, allocations: 1.781 kB / 0.5326 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.915e-05/0.4239, allocations: 3.938 kB / 0.5326 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.4241, allocations: 9.656 kB / 0.5326 GB, free: 12.83 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.0007453/0.4248, allocations: 168.9 kB / 0.5328 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.425, allocations: 79.45 kB / 0.5328 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.56e-05/0.425, allocations: 2.094 kB / 0.5328 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.473e-05/0.4251, allocations: 44.48 kB / 0.5329 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.978e-05/0.4252, allocations: 22.5 kB / 0.5329 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.4252, allocations: 1.75 kB / 0.5329 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002397/0.4255, allocations: 105.5 kB / 0.533 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.777e-05/0.4256, allocations: 20.22 kB / 0.533 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.98e-05/0.4256, allocations: 22.78 kB / 0.5331 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.426, allocations: 139.9 kB / 0.5332 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.426, allocations: 0 / 0.5332 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.426, allocations: 1.375 kB / 0.5332 GB, free: 12.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.426, allocations: 0 / 0.5332 GB, free: 12.48 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.0007096/0.4267, allocations: 404.5 kB / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.4268, allocations: 13.56 kB / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.4268, allocations: 5.062 kB / 0.5336 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.4271, allocations: 180.6 kB / 0.5338 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.4271, allocations: 5.734 kB / 0.5338 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.4271, allocations: 7.125 kB / 0.5338 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.4274, allocations: 85.83 kB / 0.5339 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.4274, allocations: 192 / 0.5339 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.4275, allocations: 13.3 kB / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.4275, allocations: 0 / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.864e-05/0.4276, allocations: 25.67 kB / 0.5339 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002773/0.4279, allocations: 168.2 kB / 0.5341 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.428, allocations: 44.44 kB / 0.5341 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.695e-05/0.428, allocations: 27.91 kB / 0.5341 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.4281, allocations: 0 / 0.5341 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003378/0.4284, allocations: 136.1 kB / 0.5343 GB, free: 11.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.783e-06/0.4284, allocations: 0 / 0.5343 GB, free: 11.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003631/0.4288, allocations: 122.6 kB / 0.5344 GB, free: 11.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.4289, allocations: 65.98 kB / 0.5344 GB, free: 11.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.516e-05/0.429, allocations: 97.44 kB / 0.5345 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.429, allocations: 32.11 kB / 0.5346 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.4291, allocations: 81.45 kB / 0.5346 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.779e-05/0.4291, allocations: 27.83 kB / 0.5347 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.4292, allocations: 28.34 kB / 0.5347 GB, free: 10.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4293, allocations: 320.2 kB / 0.535 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.762e-05/0.4294, allocations: 25.52 kB / 0.535 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.499e-05/0.4295, allocations: 79.5 kB / 0.5351 GB, free: 10.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.4297, allocations: 151.7 kB / 0.5352 GB, free: 10.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.4297, allocations: 1.156 kB / 0.5352 GB, free: 10.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002687/0.43, allocations: 165.8 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.4301, allocations: 36.05 kB / 0.5354 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.4301, allocations: 2.156 kB / 0.5354 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.4301, allocations: 2.219 kB / 0.5354 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.4302, allocations: 13.62 kB / 0.5355 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.4302, allocations: 10.27 kB / 0.5355 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.056e-05/0.4303, allocations: 11.16 kB / 0.5355 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.4303, allocations: 5.75 kB / 0.5355 GB, free: 10.27 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.0001692/0.4305, allocations: 123.9 kB / 0.5356 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.4306, allocations: 15.44 kB / 0.5356 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/0.4306, allocations: 9.125 kB / 0.5356 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.4306, allocations: 1.219 kB / 0.5356 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4306, allocations: 0 / 0.5356 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4306, allocations: 1.125 kB / 0.5356 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.4308, allocations: 181.9 kB / 0.5358 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4308, allocations: 1.156 kB / 0.5358 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.765e-05/0.4309, allocations: 8.625 kB / 0.5358 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.4309, allocations: 7.938 kB / 0.5358 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.4309, allocations: 5.203 kB / 0.5358 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4309, allocations: 1.25 kB / 0.5358 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4309, allocations: 0 / 0.5358 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.4311, allocations: 127.2 kB / 0.5359 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.4312, allocations: 89.89 kB / 0.536 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.4312, allocations: 11.28 kB / 0.536 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.4314, allocations: 22 kB / 0.5361 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.937e-05/0.4315, allocations: 2.469 kB / 0.5361 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.4315, allocations: 11.89 kB / 0.5361 GB, free: 9.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.977e-05/0.4315, allocations: 77.66 kB / 0.5361 GB, free: 9.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4315, allocations: 0 / 0.5361 GB, free: 9.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000333/0.4319, allocations: 42.89 kB / 0.5362 GB, free: 9.578 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.0004618/0.4324, allocations: 170.8 kB / 0.5363 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002371/0.4326, allocations: 132.5 kB / 0.5365 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.4326, allocations: 1.375 kB / 0.5365 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.739e-05/0.4327, allocations: 35.17 kB / 0.5365 GB, free: 9.348 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/0.4329, allocations: 7.156 kB / 0.5365 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.4333, allocations: 165.9 kB / 0.5367 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.4336, allocations: 0.686 MB / 0.5373 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.939e-05/0.4336, allocations: 12.03 kB / 0.5374 GB, free: 8.477 MB / 398.1 MB Notification: Performance of SimCode: time 2.144e-06/0.4336, allocations: 0 / 0.5374 GB, free: 8.477 MB / 398.1 MB Notification: Performance of Templates: time 0.004844/0.4385, allocations: 1.813 MB / 0.5391 GB, free: 7.551 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