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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001698/0.001698, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 230.5 MB / 258.1 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2258/0.2258, allocations: 46.92 MB / 361.5 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] 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=6001,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=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 80.19 kB / 0.4974 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2665, allocations: 66.08 MB / 0.562 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001625/0.2681, allocations: 0.5304 MB / 0.5625 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000872/0.269, allocations: 450.6 kB / 0.5629 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.719e-05/0.269, allocations: 7.938 kB / 0.5629 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.356e-05/0.2691, allocations: 0 / 0.5629 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.2692, allocations: 7.938 kB / 0.5629 GB, free: 3.262 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.000566/0.2697, allocations: 178.9 kB / 0.5631 GB, free: 3.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.2699, allocations: 83.84 kB / 0.5632 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.541e-05/0.2699, allocations: 4 kB / 0.5632 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.069e-05/0.27, allocations: 43.89 kB / 0.5632 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.468e-05/0.27, allocations: 15.92 kB / 0.5632 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.2701, allocations: 8 kB / 0.5632 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002564/0.2703, allocations: 139.7 kB / 0.5634 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.86e-05/0.2704, allocations: 23.95 kB / 0.5634 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.2704, allocations: 23.86 kB / 0.5634 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002139/0.2706, allocations: 138 kB / 0.5636 GB, free: 2.625 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2706, allocations: 0 / 0.5636 GB, free: 2.625 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2706, allocations: 0 / 0.5636 GB, free: 2.625 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.2706, allocations: 0 / 0.5636 GB, free: 2.625 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.0004948/0.2711, allocations: 335.8 kB / 0.5639 GB, free: 2.258 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.2712, allocations: 12.03 kB / 0.5639 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.185e-05/0.2712, allocations: 12.89 kB / 0.5639 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.2714, allocations: 122.5 kB / 0.564 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.2714, allocations: 4.359 kB / 0.564 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.2714, allocations: 4.375 kB / 0.564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.2716, allocations: 90.19 kB / 0.5641 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2716, allocations: 192 / 0.5641 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.2716, allocations: 7.938 kB / 0.5641 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2716, allocations: 4 kB / 0.5641 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.62e-05/0.2717, allocations: 23.92 kB / 0.5641 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.2719, allocations: 136.7 kB / 0.5643 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.469e-05/0.272, allocations: 46.55 kB / 0.5643 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.061e-05/0.272, allocations: 16.92 kB / 0.5643 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.272, allocations: 0 / 0.5643 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.2723, allocations: 139.2 kB / 0.5645 GB, free: 1.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.2723, allocations: 0 / 0.5645 GB, free: 1.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002769/0.2725, allocations: 121.5 kB / 0.5646 GB, free: 1.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.2726, allocations: 55.56 kB / 0.5646 GB, free: 1.363 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.173e-05/0.2727, allocations: 109.8 kB / 0.5647 GB, free: 1.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.2727, allocations: 33.7 kB / 0.5648 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.2727, allocations: 80.14 kB / 0.5648 GB, free: 1.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.966e-05/0.2728, allocations: 27.84 kB / 0.5649 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.2728, allocations: 33.7 kB / 0.5649 GB, free: 1.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2729, allocations: 315.1 kB / 0.5652 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.926e-05/0.273, allocations: 23.98 kB / 0.5652 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.107e-05/0.2731, allocations: 70.84 kB / 0.5653 GB, free: 0.625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.2733, allocations: 160.3 kB / 0.5655 GB, free: 448 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2733, allocations: 0 / 0.5655 GB, free: 448 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002201/0.2735, allocations: 155.2 kB / 0.5656 GB, free: 280 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.2735, allocations: 39.98 kB / 0.5656 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2735, allocations: 4 kB / 0.5656 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.2736, allocations: 4 kB / 0.5656 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.78e-05/0.2736, allocations: 19.92 kB / 0.5657 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2737, allocations: 64 / 0.5657 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.094e-05/0.2737, allocations: 20.11 kB / 0.5657 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.2737, allocations: 15.94 kB / 0.5657 GB, free: 172 kB / 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.0001337/0.2739, allocations: 125.5 kB / 0.5658 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.2739, allocations: 11.89 kB / 0.5658 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.311e-05/0.2739, allocations: 12 kB / 0.5658 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2739, allocations: 0 / 0.5658 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.2739, allocations: 0 / 0.5658 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2739, allocations: 4 kB / 0.5658 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.2741, allocations: 140.7 kB / 0.566 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2741, allocations: 0 / 0.566 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.33e-05/0.2741, allocations: 4 kB / 0.566 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2741, allocations: 7.922 kB / 0.566 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.2741, allocations: 8 kB / 0.566 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2741, allocations: 0 / 0.566 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2741, allocations: 0 / 0.566 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.2743, allocations: 133 kB / 0.5661 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.158e-05/0.2743, allocations: 11.89 kB / 0.5661 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.2744, allocations: 4.188 kB / 0.5661 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.2746, allocations: 23.95 kB / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.358e-05/0.2746, allocations: 3.984 kB / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2746, allocations: 4 kB / 0.5662 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.113e-05/0.2746, allocations: 83.28 kB / 0.5663 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2746, allocations: 0 / 0.5663 GB, free: 15.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.2749, allocations: 43.92 kB / 0.5663 GB, free: 15.49 MB / 414.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.0003817/0.2753, allocations: 183.7 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002024/0.2755, allocations: 127.2 kB / 0.5666 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2755, allocations: 4.438 kB / 0.5666 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.173e-05/0.2756, allocations: 23.98 kB / 0.5666 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.2757, allocations: 10.19 kB / 0.5666 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00035/0.2761, allocations: 174.3 kB / 0.5668 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.2763, allocations: 0.6846 MB / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/0.2764, allocations: 11.44 kB / 0.5675 GB, free: 14.22 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2764, allocations: 0 / 0.5675 GB, free: 14.22 MB / 414.1 MB Notification: Performance of Templates: time 0.003676/0.28, allocations: 1.806 MB / 0.5692 GB, free: 12.41 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [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: 7.505364207085222]