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.001353/0.001353, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001469/0.001469, allocations: 205.2 kB / 24.47 MB, free: 3.977 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.463/1.463, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.2399/0.2399, allocations: 46.95 MB / 361.6 MB, free: 4.043 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.002013/0.002013, allocations: 67.89 kB / 0.4973 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3469, allocations: 66.03 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001749/0.3486, allocations: 0.5304 MB / 0.5623 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.3496, allocations: 434.7 kB / 0.5627 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.3496, allocations: 0 / 0.5627 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.93e-05/0.3497, allocations: 3.938 kB / 0.5627 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.3498, allocations: 4 kB / 0.5628 GB, free: 3.199 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.000571/0.3503, allocations: 183 kB / 0.5629 GB, free: 3.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.3505, allocations: 83.8 kB / 0.563 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.305e-05/0.3505, allocations: 0 / 0.563 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.926e-05/0.3506, allocations: 47.95 kB / 0.5631 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.467e-05/0.3506, allocations: 19.92 kB / 0.5631 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.3507, allocations: 4 kB / 0.5631 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002576/0.3509, allocations: 135.7 kB / 0.5632 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.206e-05/0.351, allocations: 27.89 kB / 0.5632 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.301e-05/0.351, allocations: 19.97 kB / 0.5632 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.3512, allocations: 134 kB / 0.5634 GB, free: 2.566 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3512, allocations: 0 / 0.5634 GB, free: 2.566 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3512, allocations: 0 / 0.5634 GB, free: 2.566 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3512, allocations: 0 / 0.5634 GB, free: 2.566 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.0005967/0.3518, allocations: 331.8 kB / 0.5637 GB, free: 2.203 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.3519, allocations: 12.03 kB / 0.5637 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.997e-05/0.3519, allocations: 12.88 kB / 0.5637 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.3521, allocations: 126.5 kB / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.3521, allocations: 384 / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.3521, allocations: 4.375 kB / 0.5638 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.3524, allocations: 94.12 kB / 0.5639 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3524, allocations: 192 / 0.5639 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.3524, allocations: 7.938 kB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3524, allocations: 4 kB / 0.5639 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.89e-05/0.3525, allocations: 19.98 kB / 0.564 GB, free: 1.898 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000173/0.3526, allocations: 109.3 kB / 0.5641 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.166e-05/0.3527, allocations: 38.56 kB / 0.5641 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/0.3528, allocations: 24.91 kB / 0.5641 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.3528, allocations: 3.938 kB / 0.5641 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.3531, allocations: 123.3 kB / 0.5642 GB, free: 1.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.3531, allocations: 0 / 0.5642 GB, free: 1.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002994/0.3534, allocations: 145.9 kB / 0.5644 GB, free: 1.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.3534, allocations: 55.41 kB / 0.5644 GB, free: 1.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.292e-05/0.3535, allocations: 97.86 kB / 0.5645 GB, free: 1.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.3535, allocations: 33.62 kB / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.3536, allocations: 88.14 kB / 0.5647 GB, free: 1.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.505e-05/0.3536, allocations: 23.8 kB / 0.5647 GB, free: 1.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.002e-05/0.3537, allocations: 29.7 kB / 0.5647 GB, free: 1.043 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3538, allocations: 318.8 kB / 0.565 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.642e-05/0.3539, allocations: 49.69 kB / 0.5651 GB, free: 0.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.354, allocations: 103.6 kB / 0.5652 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/0.3542, allocations: 156.4 kB / 0.5653 GB, free: 364 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.3542, allocations: 4 kB / 0.5653 GB, free: 360 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000249/0.3545, allocations: 181.1 kB / 0.5655 GB, free: 160 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.3545, allocations: 37.69 kB / 0.5655 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3545, allocations: 7.938 kB / 0.5655 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3545, allocations: 0 / 0.5655 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3546, allocations: 15.94 kB / 0.5655 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.3546, allocations: 7.984 kB / 0.5655 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.155e-05/0.3547, allocations: 11.89 kB / 0.5656 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3547, allocations: 8 kB / 0.5656 GB, free: 64 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.0001652/0.3549, allocations: 121.8 kB / 0.5657 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.042e-05/0.3549, allocations: 15.94 kB / 0.5657 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.3549, allocations: 16 kB / 0.5657 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3549, allocations: 0 / 0.5657 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3549, allocations: 0 / 0.5657 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3549, allocations: 3.938 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.3551, allocations: 113.3 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3551, allocations: 0 / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.614e-05/0.3551, allocations: 4.188 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.348e-05/0.3551, allocations: 4 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3551, allocations: 3.984 kB / 0.5658 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3551, allocations: 7.938 kB / 0.5658 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3551, allocations: 3.984 kB / 0.5658 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002228/0.3554, allocations: 133 kB / 0.566 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.079e-05/0.3554, allocations: 7.953 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.3554, allocations: 4 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.3556, allocations: 23.91 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.253e-05/0.3556, allocations: 3.984 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.3556, allocations: 7.938 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.355e-05/0.3557, allocations: 83.28 kB / 0.5661 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3557, allocations: 0 / 0.5661 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.356, allocations: 47.92 kB / 0.5661 GB, free: 15.41 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.000415/0.3564, allocations: 182 kB / 0.5663 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.3566, allocations: 149.4 kB / 0.5665 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3566, allocations: 8 kB / 0.5665 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.702e-05/0.3567, allocations: 35.86 kB / 0.5665 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.000148/0.3568, allocations: 8 kB / 0.5665 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.3572, allocations: 148.6 kB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.847e-05/0.3572, allocations: 67.34 kB / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.707e-05/0.3573, allocations: 12.66 kB / 0.5667 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.3573, allocations: 15.44 kB / 0.5667 GB, free: 14.74 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3573, allocations: 0 / 0.5667 GB, free: 14.74 MB / 414.1 MB Notification: Performance of Templates: time 0.005125/0.3624, allocations: 2.103 MB / 0.5688 GB, free: 12.67 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 -s cvode -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.08198172399716]