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.001954/0.001954, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 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.002091/0.002091, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 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.581/1.581, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 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.3575/0.3575, allocations: 34.25 MB / 295.3 MB, free: 0.6875 MB / 266.7 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 1.372e-06/1.372e-06, allocations: 0 / 377.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.602e-05/2.739e-05, allocations: 4.703 kB / 377.3 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001625/0.001653, allocations: 0.536 MB / 377.8 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.002678, allocations: 442.5 kB / 378.3 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.869e-05/0.002707, allocations: 0 / 378.3 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.571e-05/0.002803, allocations: 3.938 kB / 378.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.002922, allocations: 11.97 kB / 378.3 MB, free: 1.973 MB / 346.7 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.0006214/0.003544, allocations: 183.3 kB / 378.4 MB, free: 1.793 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.003718, allocations: 79.84 kB / 378.5 MB, free: 1.715 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.003763, allocations: 7.984 kB / 378.5 MB, free: 1.707 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.176e-05/0.003855, allocations: 39.95 kB / 378.6 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.732e-05/0.003912, allocations: 19.92 kB / 378.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.003948, allocations: 4 kB / 378.6 MB, free: 1.645 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002866/0.004234, allocations: 127.7 kB / 378.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.386e-05/0.004298, allocations: 23.95 kB / 378.7 MB, free: 1.496 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.377e-05/0.004352, allocations: 23.97 kB / 378.8 MB, free: 1.473 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.004652, allocations: 155.5 kB / 378.9 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.004654, allocations: 0 / 378.9 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.004655, allocations: 0 / 378.9 MB, free: 1.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.00466, allocations: 0 / 378.9 MB, free: 1.32 MB / 346.7 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.0006668/0.005327, allocations: 437.6 kB / 379.3 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.005363, allocations: 8.031 kB / 379.4 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.914e-05/0.005432, allocations: 12.94 kB / 379.4 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.005646, allocations: 128.5 kB / 379.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.005657, allocations: 384 / 379.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.005693, allocations: 12.31 kB / 379.5 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.005892, allocations: 78.2 kB / 379.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.005902, allocations: 192 / 379.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.005922, allocations: 4.375 kB / 379.6 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.005927, allocations: 384 / 379.6 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.885e-05/0.006006, allocations: 27.91 kB / 379.6 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002147/0.006221, allocations: 116.6 kB / 379.7 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.006328, allocations: 47.05 kB / 379.8 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.08e-05/0.006389, allocations: 31.67 kB / 379.8 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.006408, allocations: 0 / 379.8 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.006668, allocations: 129.1 kB / 379.9 MB, free: 172 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.006669, allocations: 0 / 379.9 MB, free: 172 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003343/0.007003, allocations: 117.5 kB / 380 MB, free: 48 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.007078, allocations: 55.41 kB / 380.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.007215, allocations: 165.9 kB / 380.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.007249, allocations: 33.69 kB / 380.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.391e-05/0.007322, allocations: 130.8 kB / 380.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.007365, allocations: 27.8 kB / 380.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.353e-05/0.007429, allocations: 39.36 kB / 380.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002771/0.007706, allocations: 0.4962 MB / 381 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.402e-05/0.00777, allocations: 37.7 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.0079, allocations: 119.2 kB / 381.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.008109, allocations: 155.1 kB / 381.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.008111, allocations: 4 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002765/0.008388, allocations: 184.8 kB / 381.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.008423, allocations: 29.7 kB / 381.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.008431, allocations: 4 kB / 381.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.008453, allocations: 4 kB / 381.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.008593, allocations: 19.98 kB / 381.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.008608, allocations: 15.94 kB / 381.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.419e-05/0.008662, allocations: 16.11 kB / 381.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.008678, allocations: 8 kB / 381.6 MB, free: 14.35 MB / 362.7 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.0001822/0.00886, allocations: 171.5 kB / 381.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.008893, allocations: 8.047 kB / 381.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.911e-05/0.008932, allocations: 16.12 kB / 381.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.008934, allocations: 0 / 381.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.00894, allocations: 3.938 kB / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.008943, allocations: 0 / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.009102, allocations: 128.6 kB / 381.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.009103, allocations: 4 kB / 381.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.091e-05/0.009144, allocations: 11.92 kB / 381.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.009148, allocations: 4 kB / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.009158, allocations: 0 / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.009159, allocations: 0 / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.00916, allocations: 0 / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.009411, allocations: 140.3 kB / 382 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.988e-05/0.00943, allocations: 11.83 kB / 382.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.009454, allocations: 4 kB / 382.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.009634, allocations: 15.98 kB / 382.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.135e-05/0.009665, allocations: 7.984 kB / 382.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.009683, allocations: 7.938 kB / 382.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.901e-05/0.009762, allocations: 131.1 kB / 382.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009762, allocations: 0 / 382.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002899/0.01005, allocations: 43.94 kB / 382.3 MB, free: 13.59 MB / 362.7 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.0006016/0.01065, allocations: 185.2 kB / 382.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002745/0.01093, allocations: 152.6 kB / 382.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.01093, allocations: 0 / 382.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.911e-05/0.01101, allocations: 31.67 kB / 382.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001808/0.01119, allocations: 19.97 kB / 382.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004318/0.01162, allocations: 150.1 kB / 382.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.355e-05/0.0117, allocations: 67.28 kB / 382.9 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.509e-05/0.01175, allocations: 21.09 kB / 382.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.83e-05/0.01178, allocations: 16.5 kB / 382.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01178, allocations: 0 / 382.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of Templates: time 0.006244/0.01802, allocations: 2.102 MB / 385 MB, free: 10.82 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] 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.062480494962074]