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.001365/0.001365, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001498/0.001498, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.514/1.514, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.2403/0.2403, allocations: 46.96 MB / 361.6 MB, free: 4.059 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.00212/0.00212, allocations: 71.88 kB / 0.4973 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3735, allocations: 66.03 MB / 0.5618 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001754/0.3752, allocations: 0.5332 MB / 0.5623 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009532/0.3762, allocations: 434.6 kB / 0.5627 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.402e-05/0.3762, allocations: 0 / 0.5627 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.982e-05/0.3763, allocations: 0 / 0.5627 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.3764, allocations: 11.94 kB / 0.5628 GB, free: 3.234 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.0006293/0.377, allocations: 179.1 kB / 0.5629 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.3772, allocations: 79.91 kB / 0.563 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.3772, allocations: 0 / 0.563 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.953e-05/0.3773, allocations: 47.83 kB / 0.5631 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.18e-05/0.3774, allocations: 19.92 kB / 0.5631 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.3774, allocations: 4 kB / 0.5631 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002723/0.3777, allocations: 127.8 kB / 0.5632 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.778e-05/0.3777, allocations: 23.95 kB / 0.5632 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.78e-05/0.3778, allocations: 23.92 kB / 0.5632 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.378, allocations: 138 kB / 0.5634 GB, free: 2.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.378, allocations: 0 / 0.5634 GB, free: 2.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.378, allocations: 0 / 0.5634 GB, free: 2.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.378, allocations: 3.938 kB / 0.5634 GB, free: 2.609 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.0006425/0.3787, allocations: 327.8 kB / 0.5637 GB, free: 2.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.3787, allocations: 12.03 kB / 0.5637 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.337e-05/0.3788, allocations: 12.88 kB / 0.5637 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.379, allocations: 122.5 kB / 0.5638 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.379, allocations: 384 / 0.5638 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.379, allocations: 12.38 kB / 0.5638 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.3793, allocations: 90.19 kB / 0.5639 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3793, allocations: 192 / 0.5639 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.3793, allocations: 3.938 kB / 0.5639 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3793, allocations: 0 / 0.5639 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.378e-05/0.3794, allocations: 27.92 kB / 0.564 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002113/0.3796, allocations: 113.2 kB / 0.5641 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.3797, allocations: 42.55 kB / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.23e-05/0.3797, allocations: 24.91 kB / 0.5641 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.3798, allocations: 0 / 0.5641 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.3801, allocations: 131.3 kB / 0.5643 GB, free: 1.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.3801, allocations: 0 / 0.5643 GB, free: 1.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000341/0.3804, allocations: 137.5 kB / 0.5644 GB, free: 1.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.3805, allocations: 55.41 kB / 0.5644 GB, free: 1.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.3806, allocations: 93.86 kB / 0.5645 GB, free: 1.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.3806, allocations: 33.69 kB / 0.5646 GB, free: 1.238 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.216e-05/0.3807, allocations: 88.28 kB / 0.5646 GB, free: 1.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.3807, allocations: 23.86 kB / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.3808, allocations: 29.7 kB / 0.5647 GB, free: 1.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3809, allocations: 322.8 kB / 0.565 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.381, allocations: 45.69 kB / 0.565 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.3811, allocations: 100.6 kB / 0.5651 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.3813, allocations: 148.4 kB / 0.5653 GB, free: 420 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3813, allocations: 4 kB / 0.5653 GB, free: 416 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002786/0.3816, allocations: 180.9 kB / 0.5655 GB, free: 216 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/0.3817, allocations: 40.62 kB / 0.5655 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.3817, allocations: 3.938 kB / 0.5655 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3817, allocations: 4 kB / 0.5655 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.3818, allocations: 19.94 kB / 0.5655 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.3818, allocations: 16.2 kB / 0.5655 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.3819, allocations: 19.83 kB / 0.5656 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.3819, allocations: 4 kB / 0.5656 GB, free: 104 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.0001957/0.3821, allocations: 121.8 kB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.3821, allocations: 15.88 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.568e-05/0.3822, allocations: 12 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3822, allocations: 0 / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3822, allocations: 0 / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3822, allocations: 4 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.3823, allocations: 113.3 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3823, allocations: 0 / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.28e-05/0.3824, allocations: 4 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3824, allocations: 0 / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.3824, allocations: 7.984 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3824, allocations: 3.938 kB / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3824, allocations: 0 / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.3826, allocations: 137.1 kB / 0.566 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.124e-05/0.3826, allocations: 7.953 kB / 0.566 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.3826, allocations: 0 / 0.566 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.3828, allocations: 27.91 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.3829, allocations: 7.922 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.3829, allocations: 8 kB / 0.566 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.974e-05/0.3829, allocations: 79.28 kB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3829, allocations: 0 / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.3832, allocations: 43.92 kB / 0.5661 GB, free: 15.46 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.0004722/0.3837, allocations: 193.3 kB / 0.5663 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.3839, allocations: 156.9 kB / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3839, allocations: 0 / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.203e-05/0.384, allocations: 27.98 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/0.3842, allocations: 8 kB / 0.5665 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003961/0.3846, allocations: 174.8 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.009e-05/0.3846, allocations: 71.34 kB / 0.5667 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.19e-05/0.3847, allocations: 11.44 kB / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3847, allocations: 0 / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of Templates: time 0.004069/0.3887, allocations: 1.806 MB / 0.5685 GB, free: 12.97 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.595870684832335]