Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001832/0.001832, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002287/0.002287, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.485/1.485, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2568/0.2568, allocations: 46.96 MB / 361.6 MB, free: 4.062 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 63.91 kB / 0.4973 GB, free: 7.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3162, allocations: 66.03 MB / 0.5618 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001793/0.318, allocations: 0.5304 MB / 0.5623 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.3191, allocations: 426.7 kB / 0.5627 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.551e-05/0.3191, allocations: 3.938 kB / 0.5627 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.117e-05/0.3192, allocations: 0 / 0.5627 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.3193, allocations: 7.938 kB / 0.5628 GB, free: 3.219 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.0006565/0.32, allocations: 187 kB / 0.5629 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.3202, allocations: 79.84 kB / 0.563 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.276e-05/0.3202, allocations: 4 kB / 0.563 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.999e-05/0.3203, allocations: 35.97 kB / 0.563 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.364e-05/0.3204, allocations: 31.83 kB / 0.5631 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.3204, allocations: 0 / 0.5631 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002948/0.3207, allocations: 131.8 kB / 0.5632 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.3208, allocations: 23.97 kB / 0.5632 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.455e-05/0.3208, allocations: 31.83 kB / 0.5633 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.3211, allocations: 138 kB / 0.5634 GB, free: 2.578 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3211, allocations: 3.938 kB / 0.5634 GB, free: 2.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3211, allocations: 0 / 0.5634 GB, free: 2.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3211, allocations: 0 / 0.5634 GB, free: 2.574 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.0006102/0.3217, allocations: 323.8 kB / 0.5637 GB, free: 2.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3217, allocations: 11.97 kB / 0.5637 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.3218, allocations: 12.88 kB / 0.5637 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.322, allocations: 126.5 kB / 0.5638 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.322, allocations: 384 / 0.5638 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.322, allocations: 12.38 kB / 0.5639 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.3222, allocations: 86.2 kB / 0.5639 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.3222, allocations: 192 / 0.5639 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.3223, allocations: 7.922 kB / 0.5639 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3223, allocations: 0 / 0.5639 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.719e-05/0.3223, allocations: 23.92 kB / 0.564 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001861/0.3225, allocations: 113.3 kB / 0.5641 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.937e-05/0.3226, allocations: 38.56 kB / 0.5641 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.967e-05/0.3227, allocations: 20.91 kB / 0.5641 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.3227, allocations: 0 / 0.5641 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.323, allocations: 135.4 kB / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.323, allocations: 0 / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003298/0.3233, allocations: 129.5 kB / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3234, allocations: 63.39 kB / 0.5644 GB, free: 1.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.349e-05/0.3235, allocations: 93.86 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.3235, allocations: 37.69 kB / 0.5646 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.18e-05/0.3235, allocations: 80.14 kB / 0.5646 GB, free: 1.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.3236, allocations: 27.8 kB / 0.5647 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.083e-05/0.3236, allocations: 33.7 kB / 0.5647 GB, free: 1.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3238, allocations: 318.8 kB / 0.565 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.926e-05/0.3239, allocations: 49.69 kB / 0.5651 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.324, allocations: 103.5 kB / 0.5652 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.3242, allocations: 152.4 kB / 0.5653 GB, free: 384 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3242, allocations: 0 / 0.5653 GB, free: 384 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002529/0.3245, allocations: 188.8 kB / 0.5655 GB, free: 176 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.254e-05/0.3245, allocations: 40.34 kB / 0.5655 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3245, allocations: 3.938 kB / 0.5655 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3245, allocations: 4 kB / 0.5655 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.3247, allocations: 16.16 kB / 0.5655 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.3247, allocations: 11.98 kB / 0.5656 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.772e-05/0.3247, allocations: 15.89 kB / 0.5656 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.3247, allocations: 4 kB / 0.5656 GB, free: 76 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.0001723/0.3249, allocations: 121.8 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.3249, allocations: 7.953 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.325, allocations: 12.17 kB / 0.5657 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.325, allocations: 3.984 kB / 0.5657 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.325, allocations: 4 kB / 0.5657 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.325, allocations: 7.938 kB / 0.5657 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.3251, allocations: 121.2 kB / 0.5658 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3251, allocations: 0 / 0.5658 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-05/0.3252, allocations: 4 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3252, allocations: 0 / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3252, allocations: 3.984 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.3252, allocations: 7.938 kB / 0.5659 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3252, allocations: 0 / 0.5659 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.3254, allocations: 133 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/0.3255, allocations: 3.953 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.3255, allocations: 8 kB / 0.566 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.3257, allocations: 19.97 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.3257, allocations: 11.98 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.3258, allocations: 8 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.328e-05/0.3258, allocations: 79.28 kB / 0.5661 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3258, allocations: 0 / 0.5661 GB, free: 15.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.3261, allocations: 43.92 kB / 0.5661 GB, free: 15.42 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.0004545/0.3266, allocations: 183.8 kB / 0.5663 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.3268, allocations: 156.9 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3268, allocations: 0 / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.232e-05/0.3269, allocations: 27.92 kB / 0.5665 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.3271, allocations: 8 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004323/0.3275, allocations: 170.8 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.291e-05/0.3276, allocations: 71.28 kB / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.712e-05/0.3276, allocations: 19.44 kB / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3276, allocations: 0 / 0.5668 GB, free: 14.75 MB / 414.1 MB Notification: Performance of Templates: time 0.004254/0.3319, allocations: 1.814 MB / 0.5685 GB, free: 12.93 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.469037736998871]