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.001765/0.001765, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001591/0.001591, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2515/0.2515, allocations: 46.96 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 179] 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.002026/0.002026, allocations: 68.09 kB / 0.4966 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3539, allocations: 66.04 MB / 0.5611 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001805/0.3557, allocations: 0.5369 MB / 0.5616 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009719/0.3566, allocations: 430.7 kB / 0.562 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.5e-05/0.3567, allocations: 3.938 kB / 0.562 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.778e-05/0.3568, allocations: 0 / 0.562 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.3569, allocations: 7.938 kB / 0.562 GB, free: 3.184 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.0006332/0.3575, allocations: 179.2 kB / 0.5622 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.3577, allocations: 87.91 kB / 0.5623 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.107e-05/0.3577, allocations: 0 / 0.5623 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.336e-05/0.3578, allocations: 43.89 kB / 0.5623 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.3579, allocations: 15.92 kB / 0.5623 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.3579, allocations: 4 kB / 0.5623 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.3582, allocations: 131.8 kB / 0.5625 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.947e-05/0.3582, allocations: 27.89 kB / 0.5625 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.3583, allocations: 19.92 kB / 0.5625 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.3585, allocations: 130 kB / 0.5626 GB, free: 2.566 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3585, allocations: 0 / 0.5626 GB, free: 2.566 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3585, allocations: 7.938 kB / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3585, allocations: 0 / 0.5626 GB, free: 2.559 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.0006222/0.3591, allocations: 339.7 kB / 0.563 GB, free: 2.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3592, allocations: 12.03 kB / 0.563 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.353e-05/0.3592, allocations: 4.891 kB / 0.563 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.3594, allocations: 126.5 kB / 0.5631 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.3595, allocations: 384 / 0.5631 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.3595, allocations: 4.375 kB / 0.5631 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.3597, allocations: 98.19 kB / 0.5632 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3597, allocations: 192 / 0.5632 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.3597, allocations: 3.938 kB / 0.5632 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3597, allocations: 4 kB / 0.5632 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.016e-05/0.3598, allocations: 23.92 kB / 0.5632 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.36, allocations: 109.3 kB / 0.5633 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.591e-05/0.3601, allocations: 42.56 kB / 0.5634 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.849e-05/0.3601, allocations: 24.84 kB / 0.5634 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.3601, allocations: 4 kB / 0.5634 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.3604, allocations: 131.2 kB / 0.5635 GB, free: 1.527 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.3604, allocations: 0 / 0.5635 GB, free: 1.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003132/0.3607, allocations: 133.5 kB / 0.5637 GB, free: 1.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.3608, allocations: 55.41 kB / 0.5637 GB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.834e-05/0.3608, allocations: 101.8 kB / 0.5638 GB, free: 1.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.3609, allocations: 33.7 kB / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.063e-05/0.3609, allocations: 80.14 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.361, allocations: 27.98 kB / 0.5639 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.361, allocations: 29.72 kB / 0.564 GB, free: 1.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3611, allocations: 322.8 kB / 0.5643 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.364e-05/0.3612, allocations: 49.69 kB / 0.5643 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.3613, allocations: 104.5 kB / 0.5644 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.3615, allocations: 140.4 kB / 0.5646 GB, free: 360 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3615, allocations: 0 / 0.5646 GB, free: 360 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002516/0.3618, allocations: 193.1 kB / 0.5647 GB, free: 148 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.3618, allocations: 33.7 kB / 0.5648 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3618, allocations: 3.938 kB / 0.5648 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3618, allocations: 7.938 kB / 0.5648 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.3619, allocations: 19.92 kB / 0.5648 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.362, allocations: 4 kB / 0.5648 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.955e-05/0.362, allocations: 19.83 kB / 0.5648 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.362, allocations: 4 kB / 0.5648 GB, free: 48 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.0001601/0.3622, allocations: 126 kB / 0.5649 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.3622, allocations: 7.953 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.937e-05/0.3623, allocations: 12 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.3623, allocations: 4 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3623, allocations: 3.938 kB / 0.565 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3623, allocations: 0 / 0.565 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.3624, allocations: 113.4 kB / 0.5651 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3624, allocations: 0 / 0.5651 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.078e-05/0.3624, allocations: 11.98 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3624, allocations: 4 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.3625, allocations: 4 kB / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3625, allocations: 3.938 kB / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3625, allocations: 0 / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.3627, allocations: 133 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.103e-05/0.3627, allocations: 7.953 kB / 0.5652 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.3627, allocations: 4 kB / 0.5652 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.3629, allocations: 23.91 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.34e-05/0.3629, allocations: 3.984 kB / 0.5653 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.363, allocations: 12 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.473e-05/0.363, allocations: 83.27 kB / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.363, allocations: 0 / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.3633, allocations: 43.88 kB / 0.5654 GB, free: 15.39 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.0004284/0.3637, allocations: 187.1 kB / 0.5656 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000231/0.364, allocations: 153 kB / 0.5657 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.364, allocations: 0 / 0.5657 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.928e-05/0.364, allocations: 27.98 kB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001565/0.3642, allocations: 7.984 kB / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000377/0.3646, allocations: 144.7 kB / 0.5659 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.534e-05/0.3646, allocations: 67.28 kB / 0.566 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.876e-05/0.3647, allocations: 21.09 kB / 0.566 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.828e-05/0.3647, allocations: 15.42 kB / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3647, allocations: 0 / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of Templates: time 0.005746/0.3705, allocations: 2.08 MB / 0.568 GB, free: 12.68 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.2834481578320265]