Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001693/0.001693, allocations: 74.8 kB / 21.24 MB, free: 0.5469 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.002342/0.002342, allocations: 157.8 kB / 24.5 MB, free: 3.719 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.551/1.551, allocations: 177.2 MB / 204.9 MB, free: 9.012 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2091/0.2091, allocations: 32.81 MB / 294.1 MB, free: 48 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 67.89 kB / 440.6 MB, free: 9.453 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3391, allocations: 65.44 MB / 0.4941 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001474/0.3406, allocations: 0.537 MB / 0.4947 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007214/0.3413, allocations: 426.1 kB / 0.4951 GB, free: 30.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.031e-05/0.3413, allocations: 3.156 kB / 0.4951 GB, free: 30.81 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.4e-05/0.3414, allocations: 7.938 kB / 0.4951 GB, free: 30.8 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.3415, allocations: 6.75 kB / 0.4951 GB, free: 30.8 MB / 446.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.0005199/0.342, allocations: 177.6 kB / 0.4953 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001397/0.3422, allocations: 85.75 kB / 0.4953 GB, free: 30.7 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.194e-05/0.3422, allocations: 3.984 kB / 0.4953 GB, free: 30.69 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.283e-05/0.3423, allocations: 36.22 kB / 0.4954 GB, free: 30.69 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.525e-05/0.3423, allocations: 21.38 kB / 0.4954 GB, free: 30.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.3423, allocations: 3.281 kB / 0.4954 GB, free: 30.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.3426, allocations: 134.6 kB / 0.4955 GB, free: 30.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.617e-05/0.3426, allocations: 25.06 kB / 0.4956 GB, free: 30.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.541e-05/0.3427, allocations: 20.34 kB / 0.4956 GB, free: 30.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.3429, allocations: 139.4 kB / 0.4957 GB, free: 30.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3429, allocations: 0 / 0.4957 GB, free: 30.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3429, allocations: 0 / 0.4957 GB, free: 30.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.3429, allocations: 0 / 0.4957 GB, free: 30.58 MB / 446.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.0004355/0.3433, allocations: 329 kB / 0.496 GB, free: 30.26 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.3434, allocations: 9.219 kB / 0.496 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.846e-05/0.3434, allocations: 8.078 kB / 0.496 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.3436, allocations: 138.1 kB / 0.4962 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.3436, allocations: 3.625 kB / 0.4962 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.3436, allocations: 384 / 0.4962 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.3438, allocations: 89.02 kB / 0.4963 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.3438, allocations: 192 / 0.4963 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.3438, allocations: 7.453 kB / 0.4963 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3438, allocations: 3.984 kB / 0.4963 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.44e-05/0.3438, allocations: 20.22 kB / 0.4963 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001172/0.344, allocations: 114 kB / 0.4964 GB, free: 29.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.125e-05/0.344, allocations: 40.92 kB / 0.4964 GB, free: 29.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.721e-05/0.3441, allocations: 21.59 kB / 0.4965 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.3441, allocations: 4 kB / 0.4965 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.3443, allocations: 132.2 kB / 0.4966 GB, free: 29.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.3443, allocations: 0 / 0.4966 GB, free: 29.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002563/0.3445, allocations: 133.9 kB / 0.4967 GB, free: 29.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.3446, allocations: 54.66 kB / 0.4968 GB, free: 29.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.744e-05/0.3446, allocations: 102.9 kB / 0.4969 GB, free: 29.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.3446, allocations: 33.64 kB / 0.4969 GB, free: 29.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.652e-05/0.3446, allocations: 87.05 kB / 0.497 GB, free: 29.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.3447, allocations: 30.25 kB / 0.497 GB, free: 29.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.3447, allocations: 33.22 kB / 0.497 GB, free: 29.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.19e-05/0.3448, allocations: 310.8 kB / 0.4973 GB, free: 29.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.938e-05/0.3448, allocations: 55.28 kB / 0.4974 GB, free: 29.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.14e-05/0.3449, allocations: 102 kB / 0.4975 GB, free: 28.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.345, allocations: 154.2 kB / 0.4976 GB, free: 28.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.345, allocations: 0 / 0.4976 GB, free: 28.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000183/0.3452, allocations: 181.5 kB / 0.4978 GB, free: 28.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3452, allocations: 31.67 kB / 0.4978 GB, free: 28.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3452, allocations: 7.312 kB / 0.4978 GB, free: 28.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3452, allocations: 7.281 kB / 0.4978 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.3453, allocations: 19.83 kB / 0.4979 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3453, allocations: 3.188 kB / 0.4979 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.071e-05/0.3454, allocations: 10.77 kB / 0.4979 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.3454, allocations: 5.875 kB / 0.4979 GB, free: 28.65 MB / 446.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.0001003/0.3455, allocations: 127.4 kB / 0.498 GB, free: 28.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.3455, allocations: 10.08 kB / 0.498 GB, free: 28.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.3456, allocations: 15.44 kB / 0.498 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3456, allocations: 4 kB / 0.498 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3456, allocations: 2.906 kB / 0.498 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3456, allocations: 3.938 kB / 0.498 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.958e-05/0.3457, allocations: 110.7 kB / 0.4981 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3457, allocations: 0 / 0.4981 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.378e-05/0.3457, allocations: 5.969 kB / 0.4982 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3457, allocations: 0 / 0.4982 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3457, allocations: 6.375 kB / 0.4982 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3457, allocations: 3.938 kB / 0.4982 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3457, allocations: 3.938 kB / 0.4982 GB, free: 28.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.3459, allocations: 127.4 kB / 0.4983 GB, free: 28.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-06/0.3459, allocations: 11.23 kB / 0.4983 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.3459, allocations: 10.47 kB / 0.4983 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.3461, allocations: 24.17 kB / 0.4983 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-05/0.3461, allocations: 6.438 kB / 0.4983 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.3461, allocations: 7.234 kB / 0.4983 GB, free: 28.26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.058e-05/0.3462, allocations: 82.38 kB / 0.4984 GB, free: 28.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3462, allocations: 3.938 kB / 0.4984 GB, free: 28.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.3465, allocations: 47.33 kB / 0.4985 GB, free: 28.16 MB / 446.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.0003962/0.3469, allocations: 177.6 kB / 0.4986 GB, free: 28.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001936/0.347, allocations: 148.6 kB / 0.4988 GB, free: 27.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.347, allocations: 3.938 kB / 0.4988 GB, free: 27.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.644e-05/0.3471, allocations: 27.97 kB / 0.4988 GB, free: 27.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001649/0.3473, allocations: 24.64 kB / 0.4988 GB, free: 27.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003112/0.3476, allocations: 151.5 kB / 0.499 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.035e-05/0.3476, allocations: 75.06 kB / 0.4991 GB, free: 27.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.809e-05/0.3477, allocations: 10.72 kB / 0.4991 GB, free: 27.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.421e-05/0.3477, allocations: 14.88 kB / 0.4991 GB, free: 27.7 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3477, allocations: 0 / 0.4991 GB, free: 27.7 MB / 446.1 MB Notification: Performance of Templates: time 0.004816/0.3525, allocations: 2.06 MB / 0.5011 GB, free: 27.46 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.287277017952874]