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.001707/0.001707, allocations: 110.4 kB / 21.19 MB, free: 0.6641 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.001912/0.001912, allocations: 205.7 kB / 24.49 MB, free: 3.965 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.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.2344/0.2344, allocations: 46.96 MB / 361.6 MB, free: 4.066 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.002062/0.002062, allocations: 63.91 kB / 0.4973 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3323, allocations: 66.04 MB / 0.5618 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001858/0.3342, allocations: 0.5304 MB / 0.5623 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3353, allocations: 430.7 kB / 0.5628 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.3353, allocations: 4 kB / 0.5628 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.702e-05/0.3354, allocations: 3.938 kB / 0.5628 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.3355, allocations: 3.984 kB / 0.5628 GB, free: 3.254 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.0006566/0.3362, allocations: 179.1 kB / 0.5629 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.3364, allocations: 83.84 kB / 0.563 GB, free: 3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.387e-05/0.3364, allocations: 3.984 kB / 0.563 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.97e-05/0.3365, allocations: 39.91 kB / 0.5631 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.826e-05/0.3365, allocations: 19.92 kB / 0.5631 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.3366, allocations: 4 kB / 0.5631 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002774/0.3368, allocations: 147.7 kB / 0.5632 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.971e-05/0.3369, allocations: 19.97 kB / 0.5632 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.31e-05/0.337, allocations: 15.92 kB / 0.5633 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.3372, allocations: 134.1 kB / 0.5634 GB, free: 2.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3372, allocations: 7.922 kB / 0.5634 GB, free: 2.621 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3372, allocations: 0 / 0.5634 GB, free: 2.621 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.3372, allocations: 0 / 0.5634 GB, free: 2.621 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.0006201/0.3378, allocations: 323.8 kB / 0.5637 GB, free: 2.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3379, allocations: 8.031 kB / 0.5637 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.926e-05/0.3379, allocations: 8.891 kB / 0.5637 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.3381, allocations: 134.4 kB / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.3381, allocations: 384 / 0.5638 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.3381, allocations: 12.31 kB / 0.5639 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.3384, allocations: 94.12 kB / 0.5639 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3384, allocations: 192 / 0.5639 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.3384, allocations: 3.938 kB / 0.5639 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.3384, allocations: 3.984 kB / 0.564 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.511e-05/0.3385, allocations: 23.97 kB / 0.564 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.3386, allocations: 109.3 kB / 0.5641 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.3387, allocations: 46.48 kB / 0.5641 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.836e-05/0.3388, allocations: 20.92 kB / 0.5641 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3388, allocations: 3.938 kB / 0.5641 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002856/0.3391, allocations: 131.3 kB / 0.5643 GB, free: 1.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.472e-06/0.3391, allocations: 0 / 0.5643 GB, free: 1.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003297/0.3394, allocations: 125.5 kB / 0.5644 GB, free: 1.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.3395, allocations: 59.41 kB / 0.5644 GB, free: 1.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.824e-05/0.3396, allocations: 97.84 kB / 0.5645 GB, free: 1.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.3396, allocations: 37.7 kB / 0.5646 GB, free: 1.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.3396, allocations: 80.14 kB / 0.5647 GB, free: 1.164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.3397, allocations: 27.98 kB / 0.5647 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-05/0.3397, allocations: 33.7 kB / 0.5647 GB, free: 1.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3399, allocations: 314.8 kB / 0.565 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.971e-05/0.3399, allocations: 49.69 kB / 0.5651 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.3401, allocations: 108.6 kB / 0.5652 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.3403, allocations: 152.3 kB / 0.5653 GB, free: 420 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3403, allocations: 4 kB / 0.5653 GB, free: 416 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002576/0.3405, allocations: 180.9 kB / 0.5655 GB, free: 216 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.3406, allocations: 33.7 kB / 0.5655 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3406, allocations: 8.203 kB / 0.5655 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3406, allocations: 7.938 kB / 0.5655 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.3407, allocations: 19.92 kB / 0.5656 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3407, allocations: 4 kB / 0.5656 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.932e-05/0.3408, allocations: 11.89 kB / 0.5656 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.3408, allocations: 8 kB / 0.5656 GB, free: 116 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.0001672/0.341, allocations: 129.8 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.341, allocations: 7.953 kB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.341, allocations: 12 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.341, allocations: 3.984 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.341, allocations: 0 / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-06/0.3411, allocations: 4 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.3411, allocations: 8.281 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.3413, allocations: 15.97 kB / 0.5657 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.548e-05/0.3413, allocations: 7.984 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002554/0.3416, allocations: 180.8 kB / 0.5659 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002846/0.3419, allocations: 286.6 kB / 0.5662 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.694e-05/0.3419, allocations: 23.97 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.324e-05/0.342, allocations: 95.39 kB / 0.5663 GB, free: 15.32 MB / 414.1 MB Notification: Performance of Backend: time 2.7e-07/0.342, allocations: 0 / 0.5663 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007688/0.3428, allocations: 275.2 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of SimCode: time 0.0004872/0.3432, allocations: 0.5686 MB / 0.5671 GB, free: 14.43 MB / 414.1 MB Notification: Performance of Templates: time 0.005777/0.349, allocations: 2.337 MB / 0.5694 GB, free: 12.13 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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1187457329942845]