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.0009347/0.0009347, 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.001016/0.001016, allocations: 168.7 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 1.003/1.003, allocations: 177.1 MB / 206 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] 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.1456/0.1456, allocations: 34.25 MB / 296.8 MB, free: 13.93 MB / 282.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.[0-9,]+.|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.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.804e-05/3.019e-05, allocations: 5.969 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001847/0.001877, allocations: 0.5321 MB / 379.8 MB, free: 22.89 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.000892/0.002769, allocations: 442.4 kB / 380.3 MB, free: 22.46 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.828e-05/0.002817, allocations: 0 / 380.3 MB, free: 22.46 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.002931, allocations: 3.938 kB / 380.3 MB, free: 22.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.003092, allocations: 4 kB / 380.3 MB, free: 22.45 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.0006784/0.00377, allocations: 175.4 kB / 380.4 MB, free: 22.28 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.003944, allocations: 83.8 kB / 380.5 MB, free: 22.2 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.003983, allocations: 11.92 kB / 380.5 MB, free: 22.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.122e-05/0.004064, allocations: 43.97 kB / 380.6 MB, free: 22.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.017e-05/0.004134, allocations: 19.95 kB / 380.6 MB, free: 22.12 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.004162, allocations: 4 kB / 380.6 MB, free: 22.12 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.004422, allocations: 131.7 kB / 380.7 MB, free: 21.99 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.841e-05/0.00448, allocations: 23.91 kB / 380.7 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.004519, allocations: 15.98 kB / 380.8 MB, free: 21.95 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002689/0.004788, allocations: 159.6 kB / 380.9 MB, free: 21.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.004791, allocations: 0 / 380.9 MB, free: 21.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.004792, allocations: 0 / 380.9 MB, free: 21.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.004798, allocations: 4 kB / 380.9 MB, free: 21.79 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.0005233/0.005321, allocations: 434 kB / 381.3 MB, free: 21.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.005362, allocations: 8.031 kB / 381.3 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/0.005426, allocations: 4.938 kB / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.005574, allocations: 128.5 kB / 381.5 MB, free: 21.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.005588, allocations: 4.375 kB / 381.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.005612, allocations: 8.359 kB / 381.5 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.005764, allocations: 86.89 kB / 381.6 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.005774, allocations: 4.188 kB / 381.6 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.005792, allocations: 384 / 381.6 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.005798, allocations: 4.375 kB / 381.6 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.086e-05/0.005839, allocations: 15.92 kB / 381.6 MB, free: 21.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.00597, allocations: 109.2 kB / 381.7 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.905e-05/0.006039, allocations: 42.98 kB / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.924e-05/0.006068, allocations: 19.75 kB / 381.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.006082, allocations: 3.984 kB / 381.8 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.00627, allocations: 117 kB / 381.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.734e-06/0.006271, allocations: 0 / 381.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002466/0.006518, allocations: 109.6 kB / 382 MB, free: 20.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.006555, allocations: 59.34 kB / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.784e-05/0.006623, allocations: 161.9 kB / 382.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.006647, allocations: 29.7 kB / 382.2 MB, free: 20.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.006677, allocations: 130.8 kB / 382.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.006713, allocations: 31.83 kB / 382.4 MB, free: 20.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.006758, allocations: 31.36 kB / 382.4 MB, free: 20.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.00682, allocations: 0.4884 MB / 382.9 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.915e-05/0.006859, allocations: 41.62 kB / 383 MB, free: 19.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.616e-05/0.006925, allocations: 115.2 kB / 383.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.007047, allocations: 143 kB / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.007049, allocations: 0 / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001898/0.007239, allocations: 173 kB / 383.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.007269, allocations: 33.7 kB / 383.4 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.007276, allocations: 0 / 383.4 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.007289, allocations: 4 kB / 383.4 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.007412, allocations: 27.92 kB / 383.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.007416, allocations: 4 kB / 383.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.246e-05/0.007468, allocations: 11.88 kB / 383.5 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.00748, allocations: 4 kB / 383.5 MB, free: 18.93 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 0.000129/0.007609, allocations: 180.6 kB / 383.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.007641, allocations: 4 kB / 383.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.224e-05/0.007683, allocations: 12.12 kB / 383.7 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.007686, allocations: 3.938 kB / 383.7 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.007688, allocations: 0 / 383.7 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.007694, allocations: 7.922 kB / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.007795, allocations: 109.3 kB / 383.8 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.007797, allocations: 0 / 383.8 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.089e-05/0.007838, allocations: 7.984 kB / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.007841, allocations: 0 / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.00785, allocations: 4 kB / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.007853, allocations: 4 kB / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.007855, allocations: 0 / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.00803, allocations: 132.2 kB / 383.9 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.215e-05/0.008042, allocations: 11.89 kB / 383.9 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.008064, allocations: 8 kB / 383.9 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.008198, allocations: 7.984 kB / 383.9 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.008222, allocations: 11.97 kB / 384 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.008238, allocations: 7.984 kB / 384 MB, free: 18.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.066e-05/0.008258, allocations: 123.2 kB / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008258, allocations: 0 / 384.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003111/0.008569, allocations: 43.94 kB / 384.1 MB, free: 18.2 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.0004149/0.008984, allocations: 190.8 kB / 384.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.009148, allocations: 145 kB / 384.5 MB, free: 17.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.009152, allocations: 8.062 kB / 384.5 MB, free: 17.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.845e-05/0.00919, allocations: 31.64 kB / 384.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.009362, allocations: 15.98 kB / 384.5 MB, free: 17.81 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.009691, allocations: 140.1 kB / 384.6 MB, free: 17.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.85e-05/0.00972, allocations: 67.2 kB / 384.7 MB, free: 17.56 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.011e-05/0.00977, allocations: 12.72 kB / 384.7 MB, free: 17.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.009811, allocations: 74.2 kB / 384.8 MB, free: 17.47 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.009812, allocations: 4 kB / 384.8 MB, free: 17.47 MB / 314.7 MB Notification: Performance of Templates: time 0.005262/0.01507, allocations: 2.392 MB / 387.2 MB, free: 15.11 MB / 314.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","",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.2452904749661684]