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.001017/0.001017, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.0009413/0.0009413, allocations: 161 kB / 24.56 MB, free: 12 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.016/1.016, allocations: 177.1 MB / 205 MB, free: 5.625 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.308/0.308, allocations: 32.81 MB / 294.3 MB, free: 1.215 MB / 266.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 1.453e-06/1.453e-06, allocations: 0 / 376 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.698e-05/2.843e-05, allocations: 2.312 kB / 376 MB, free: 4.652 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001314/0.001343, allocations: 0.5475 MB / 376.6 MB, free: 4.102 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007247/0.002068, allocations: 442.6 kB / 377 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.328e-05/0.002111, allocations: 0 / 377 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.607e-05/0.002197, allocations: 7.875 kB / 377 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.002334, allocations: 3.984 kB / 377 MB, free: 3.656 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.0005761/0.00291, allocations: 183.3 kB / 377.2 MB, free: 3.477 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.003054, allocations: 83.86 kB / 377.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.00309, allocations: 0 / 377.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.489e-05/0.003165, allocations: 51.89 kB / 377.3 MB, free: 3.344 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.489e-05/0.003219, allocations: 15.97 kB / 377.3 MB, free: 3.328 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.003243, allocations: 4 kB / 377.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.003455, allocations: 131.7 kB / 377.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.855e-05/0.003513, allocations: 27.91 kB / 377.5 MB, free: 3.168 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.158e-05/0.003555, allocations: 15.98 kB / 377.5 MB, free: 3.152 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.003796, allocations: 155.5 kB / 377.7 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.003798, allocations: 0 / 377.7 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003799, allocations: 4 kB / 377.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.003804, allocations: 0 / 377.7 MB, free: 2.996 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.0005261/0.00433, allocations: 434.1 kB / 378.1 MB, free: 2.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.004372, allocations: 12.03 kB / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.88e-05/0.004431, allocations: 8.875 kB / 378.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.004597, allocations: 128.5 kB / 378.2 MB, free: 2.355 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.00461, allocations: 8.375 kB / 378.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.00463, allocations: 8.375 kB / 378.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.004789, allocations: 82.91 kB / 378.3 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.004799, allocations: 4.172 kB / 378.3 MB, free: 2.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.004815, allocations: 4.375 kB / 378.3 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.004823, allocations: 4.375 kB / 378.3 MB, free: 2.238 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.542e-05/0.004869, allocations: 19.92 kB / 378.4 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.005019, allocations: 124.6 kB / 378.5 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.913e-05/0.005088, allocations: 50.98 kB / 378.5 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.136e-05/0.00512, allocations: 15.69 kB / 378.5 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.005136, allocations: 0 / 378.5 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.005324, allocations: 121 kB / 378.7 MB, free: 1.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.144e-06/0.005326, allocations: 4 kB / 378.7 MB, free: 1.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002633/0.005589, allocations: 113.5 kB / 378.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.005637, allocations: 55.41 kB / 378.8 MB, free: 1.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.902e-05/0.005726, allocations: 161.9 kB / 379 MB, free: 1.484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.005746, allocations: 29.7 kB / 379 MB, free: 1.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.245e-05/0.005788, allocations: 130.9 kB / 379.1 MB, free: 1.316 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.005825, allocations: 35.86 kB / 379.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.006051, allocations: 39.36 kB / 379.2 MB, free: 1.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.006171, allocations: 496.1 kB / 379.7 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.291e-05/0.006224, allocations: 41.69 kB / 379.7 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.186e-05/0.006295, allocations: 115.2 kB / 379.9 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.006428, allocations: 151.1 kB / 380 MB, free: 360 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.006431, allocations: 0 / 380 MB, free: 360 kB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001906/0.006621, allocations: 180.9 kB / 380.2 MB, free: 160 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.006658, allocations: 32.36 kB / 380.2 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.006665, allocations: 4 kB / 380.2 MB, free: 120 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.006683, allocations: 4 kB / 380.2 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.006796, allocations: 27.92 kB / 380.2 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.006805, allocations: 7.938 kB / 380.3 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.199e-05/0.006837, allocations: 7.953 kB / 380.3 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.006847, allocations: 4 kB / 380.3 MB, free: 68 kB / 346.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.0001526/0.007, allocations: 186.5 kB / 380.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.007021, allocations: 4 kB / 380.5 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.153e-05/0.007062, allocations: 12.19 kB / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.007066, allocations: 7.984 kB / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.007072, allocations: 3.938 kB / 380.5 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.007076, allocations: 0 / 380.5 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.007177, allocations: 128.5 kB / 380.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.007178, allocations: 0 / 380.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.007208, allocations: 4 kB / 380.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.007211, allocations: 0 / 380.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.007223, allocations: 8 kB / 380.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.007224, allocations: 0 / 380.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.007225, allocations: 0 / 380.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.007388, allocations: 140.3 kB / 380.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.011e-05/0.007398, allocations: 7.953 kB / 380.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.007419, allocations: 0 / 380.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.007526, allocations: 15.97 kB / 380.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.164e-05/0.007558, allocations: 3.984 kB / 380.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.007578, allocations: 15.92 kB / 380.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.381e-05/0.007622, allocations: 127.4 kB / 380.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007622, allocations: 4 kB / 380.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.007852, allocations: 43.92 kB / 381 MB, free: 15.3 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.0004142/0.008266, allocations: 181.5 kB / 381.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000228/0.008494, allocations: 156.8 kB / 381.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.008497, allocations: 0 / 381.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.236e-05/0.008539, allocations: 35.61 kB / 381.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.00869, allocations: 19.92 kB / 381.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.009065, allocations: 142.3 kB / 381.5 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.141e-05/0.009107, allocations: 63.28 kB / 381.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.713e-05/0.009154, allocations: 12.72 kB / 381.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.009181, allocations: 16.75 kB / 381.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.009182, allocations: 4 kB / 381.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of Templates: time 0.004409/0.01359, allocations: 2.102 MB / 383.7 MB, free: 12.54 MB / 362.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.4034883538261056]