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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 103.6 kB / 21.19 MB, free: 0.5156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 209.2 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2329/0.2329, allocations: 44.94 MB / 359.6 MB, free: 6.09 MB / 286.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,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=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 74.23 kB / 0.4943 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.379, allocations: 65.47 MB / 0.5582 GB, free: 7.504 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001838/0.3808, allocations: 0.533 MB / 0.5587 GB, free: 6.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.3818, allocations: 426.7 kB / 0.5591 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.655e-05/0.3819, allocations: 0 / 0.5591 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.584e-05/0.382, allocations: 3.938 kB / 0.5591 GB, free: 6.551 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.3821, allocations: 7.984 kB / 0.5591 GB, free: 6.543 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0006377/0.3827, allocations: 183.3 kB / 0.5593 GB, free: 6.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.3829, allocations: 83.8 kB / 0.5594 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.3829, allocations: 0 / 0.5594 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.291e-05/0.383, allocations: 39.95 kB / 0.5594 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.676e-05/0.3831, allocations: 23.91 kB / 0.5594 GB, free: 6.223 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.3831, allocations: 4 kB / 0.5594 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.3834, allocations: 127.8 kB / 0.5596 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.875e-05/0.3835, allocations: 27.89 kB / 0.5596 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.207e-05/0.3835, allocations: 23.91 kB / 0.5596 GB, free: 6.043 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002683/0.3838, allocations: 138 kB / 0.5597 GB, free: 5.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3838, allocations: 0 / 0.5597 GB, free: 5.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3838, allocations: 0 / 0.5597 GB, free: 5.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.3838, allocations: 0 / 0.5597 GB, free: 5.914 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.0006146/0.3844, allocations: 331.8 kB / 0.5601 GB, free: 5.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3845, allocations: 12.03 kB / 0.5601 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.3845, allocations: 8.891 kB / 0.5601 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.3847, allocations: 126.5 kB / 0.5602 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3848, allocations: 4.312 kB / 0.5602 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.3848, allocations: 8.375 kB / 0.5602 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.385, allocations: 90.19 kB / 0.5603 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.385, allocations: 4.188 kB / 0.5603 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.385, allocations: 3.938 kB / 0.5603 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.385, allocations: 4 kB / 0.5603 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.342e-05/0.3851, allocations: 19.98 kB / 0.5603 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001977/0.3853, allocations: 109.3 kB / 0.5604 GB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.3854, allocations: 42.5 kB / 0.5605 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.169e-05/0.3855, allocations: 24.91 kB / 0.5605 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.3855, allocations: 0 / 0.5605 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002873/0.3858, allocations: 131.5 kB / 0.5606 GB, free: 4.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3858, allocations: 0 / 0.5606 GB, free: 4.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003335/0.3861, allocations: 137.5 kB / 0.5608 GB, free: 4.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.3862, allocations: 55.41 kB / 0.5608 GB, free: 4.684 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.442e-05/0.3862, allocations: 101.8 kB / 0.5609 GB, free: 4.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.3863, allocations: 25.7 kB / 0.5609 GB, free: 4.543 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.3863, allocations: 84.14 kB / 0.561 GB, free: 4.457 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/0.3864, allocations: 31.78 kB / 0.561 GB, free: 4.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.3864, allocations: 25.72 kB / 0.5611 GB, free: 4.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3866, allocations: 326.8 kB / 0.5614 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.967e-05/0.3867, allocations: 49.69 kB / 0.5614 GB, free: 4.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.3868, allocations: 100.8 kB / 0.5615 GB, free: 3.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.387, allocations: 152.4 kB / 0.5617 GB, free: 3.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.387, allocations: 4 kB / 0.5617 GB, free: 3.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002557/0.3873, allocations: 176.9 kB / 0.5618 GB, free: 3.508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.879e-05/0.3873, allocations: 36.36 kB / 0.5619 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3873, allocations: 7.938 kB / 0.5619 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.3873, allocations: 0 / 0.5619 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3874, allocations: 23.92 kB / 0.5619 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3874, allocations: 4 kB / 0.5619 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.539e-05/0.3875, allocations: 12.11 kB / 0.5619 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.3875, allocations: 8 kB / 0.5619 GB, free: 3.414 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.0001735/0.3877, allocations: 129.8 kB / 0.5621 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.3877, allocations: 8.141 kB / 0.5621 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.3878, allocations: 19.98 kB / 0.5621 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3878, allocations: 0 / 0.5621 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3878, allocations: 4.062 kB / 0.5621 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3878, allocations: 3.938 kB / 0.5621 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.3879, allocations: 113.3 kB / 0.5622 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3879, allocations: 4 kB / 0.5622 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.489e-05/0.388, allocations: 7.984 kB / 0.5622 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.388, allocations: 4 kB / 0.5622 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.388, allocations: 0 / 0.5622 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.388, allocations: 3.938 kB / 0.5622 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.388, allocations: 0 / 0.5622 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.3882, allocations: 133 kB / 0.5623 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.161e-05/0.3882, allocations: 7.953 kB / 0.5624 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.3882, allocations: 7.984 kB / 0.5624 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.3884, allocations: 19.92 kB / 0.5624 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.319e-05/0.3885, allocations: 7.984 kB / 0.5624 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.3885, allocations: 4 kB / 0.5624 GB, free: 2.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.772e-05/0.3885, allocations: 83.27 kB / 0.5625 GB, free: 2.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3885, allocations: 0 / 0.5625 GB, free: 2.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.3888, allocations: 43.94 kB / 0.5625 GB, free: 2.758 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.0004911/0.3893, allocations: 193.6 kB / 0.5627 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.3895, allocations: 145 kB / 0.5628 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3895, allocations: 3.938 kB / 0.5628 GB, free: 2.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.316e-05/0.3896, allocations: 31.92 kB / 0.5629 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000168/0.3898, allocations: 11.98 kB / 0.5629 GB, free: 2.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005005/0.3903, allocations: 166.4 kB / 0.563 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.825e-05/0.3904, allocations: 67.78 kB / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.391e-05/0.3904, allocations: 19.42 kB / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3904, allocations: 0 / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of Templates: time 0.004264/0.3947, allocations: 1.806 MB / 0.5649 GB, free: 280 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 8.600120451766998]