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.001466/0.001466, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001143/0.001143, allocations: 161.5 kB / 25.61 MB, free: 8.582 MB / 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 0.9542/0.9542, allocations: 177.2 MB / 206.1 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] 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.1381/0.1381, allocations: 32.8 MB / 295.4 MB, free: 15.39 MB / 282.7 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.[0-9,]+.|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.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.565e-06/2.565e-06, allocations: 0 / 377.3 MB, free: 25.61 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.382e-05, allocations: 2.312 kB / 377.3 MB, free: 25.61 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001135/0.001159, allocations: 0.536 MB / 377.8 MB, free: 25.07 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006236/0.001783, allocations: 438.5 kB / 378.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.883e-05/0.001821, allocations: 0 / 378.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.306e-05/0.001915, allocations: 4 kB / 378.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.002035, allocations: 7.922 kB / 378.2 MB, free: 24.63 MB / 314.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.0004487/0.002483, allocations: 175.4 kB / 378.4 MB, free: 24.46 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.002628, allocations: 87.83 kB / 378.5 MB, free: 24.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.584e-05/0.002663, allocations: 7.938 kB / 378.5 MB, free: 24.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.729e-05/0.002721, allocations: 43.95 kB / 378.6 MB, free: 24.32 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.679e-05/0.002768, allocations: 19.92 kB / 378.6 MB, free: 24.3 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.002788, allocations: 0 / 378.6 MB, free: 24.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.002955, allocations: 139.7 kB / 378.7 MB, free: 24.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.08e-05/0.002996, allocations: 19.97 kB / 378.7 MB, free: 24.14 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.714e-05/0.003023, allocations: 23.91 kB / 378.8 MB, free: 24.12 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.003183, allocations: 143.7 kB / 378.9 MB, free: 23.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.003185, allocations: 3.938 kB / 378.9 MB, free: 23.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.003186, allocations: 4 kB / 378.9 MB, free: 23.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.003189, allocations: 0 / 378.9 MB, free: 23.97 MB / 314.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.0003577/0.003547, allocations: 438 kB / 379.3 MB, free: 23.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.00358, allocations: 11.98 kB / 379.3 MB, free: 23.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.003619, allocations: 8.938 kB / 379.3 MB, free: 23.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.93e-05/0.003719, allocations: 128.6 kB / 379.5 MB, free: 23.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.757e-06/0.003727, allocations: 384 / 379.5 MB, free: 23.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.003741, allocations: 4.375 kB / 379.5 MB, free: 23.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.465e-05/0.003836, allocations: 82.91 kB / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.003844, allocations: 192 / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.003857, allocations: 8.359 kB / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.003862, allocations: 384 / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.64e-05/0.003888, allocations: 19.86 kB / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.313e-05/0.003981, allocations: 113.2 kB / 379.7 MB, free: 23.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.577e-05/0.004027, allocations: 43.05 kB / 379.7 MB, free: 23.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.859e-05/0.004046, allocations: 19.67 kB / 379.8 MB, free: 22.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.004056, allocations: 3.984 kB / 379.8 MB, free: 22.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/0.004172, allocations: 121.1 kB / 379.9 MB, free: 22.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 9.32e-07/0.004173, allocations: 0 / 379.9 MB, free: 22.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001835/0.004357, allocations: 101.5 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.004384, allocations: 55.41 kB / 380 MB, free: 22.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.683e-05/0.004431, allocations: 161.9 kB / 380.2 MB, free: 22.51 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.004445, allocations: 33.7 kB / 380.2 MB, free: 22.47 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.934e-05/0.004464, allocations: 130.8 kB / 380.4 MB, free: 22.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.004488, allocations: 23.84 kB / 380.4 MB, free: 22.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/0.00452, allocations: 39.34 kB / 380.4 MB, free: 22.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.281e-05/0.004562, allocations: 496.1 kB / 380.9 MB, free: 21.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.178e-05/0.004584, allocations: 41.62 kB / 380.9 MB, free: 21.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.522e-05/0.004619, allocations: 119.2 kB / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.604e-05/0.004695, allocations: 139 kB / 381.2 MB, free: 21.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.004698, allocations: 4 kB / 381.2 MB, free: 21.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001129/0.004811, allocations: 172.8 kB / 381.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.00483, allocations: 36.05 kB / 381.4 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.004835, allocations: 4 kB / 381.4 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.717e-06/0.004844, allocations: 0 / 381.4 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.844e-05/0.004922, allocations: 31.86 kB / 381.4 MB, free: 21.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/0.004925, allocations: 4 kB / 381.4 MB, free: 21.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.677e-05/0.004952, allocations: 3.938 kB / 381.4 MB, free: 21.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.004961, allocations: 12 kB / 381.5 MB, free: 21.11 MB / 314.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 8.485e-05/0.005046, allocations: 180 kB / 381.6 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.005063, allocations: 8 kB / 381.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.005092, allocations: 8.125 kB / 381.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.005093, allocations: 0 / 381.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.005095, allocations: 0 / 381.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.0051, allocations: 7.938 kB / 381.7 MB, free: 20.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.058e-05/0.00516, allocations: 105.2 kB / 381.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.005161, allocations: 0 / 381.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.984e-05/0.005181, allocations: 8 kB / 381.8 MB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.005183, allocations: 8.047 kB / 381.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.00519, allocations: 4 kB / 381.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.005191, allocations: 3.984 kB / 381.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.005192, allocations: 0 / 381.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.00533, allocations: 136.2 kB / 381.9 MB, free: 20.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.005349, allocations: 15.81 kB / 381.9 MB, free: 20.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.005374, allocations: 8 kB / 381.9 MB, free: 20.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.182e-05/0.005466, allocations: 11.98 kB / 381.9 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.176e-05/0.005487, allocations: 3.984 kB / 382 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.0055, allocations: 8 kB / 382 MB, free: 20.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.494e-05/0.005525, allocations: 123.2 kB / 382.1 MB, free: 20.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005525, allocations: 4 kB / 382.1 MB, free: 20.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000183/0.005708, allocations: 39.94 kB / 382.1 MB, free: 20.38 MB / 314.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.0002998/0.006007, allocations: 190.8 kB / 382.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.006132, allocations: 144.6 kB / 382.4 MB, free: 20.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.006135, allocations: 0 / 382.4 MB, free: 20.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.601e-05/0.006161, allocations: 35.59 kB / 382.5 MB, free: 20.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001148/0.006275, allocations: 15.97 kB / 382.5 MB, free: 20 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002157/0.006491, allocations: 140.1 kB / 382.6 MB, free: 19.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.719e-05/0.006508, allocations: 59.22 kB / 382.7 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.374e-05/0.006542, allocations: 17.14 kB / 382.7 MB, free: 19.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.006572, allocations: 82.2 kB / 382.8 MB, free: 19.65 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.006572, allocations: 0 / 382.8 MB, free: 19.65 MB / 314.7 MB Notification: Performance of Templates: time 0.003277/0.009849, allocations: 2.39 MB / 385.2 MB, free: 17.3 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.281131680123508]