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.001428/0.001428, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001702/0.001702, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.037/1.037, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2651/0.2651, allocations: 32.8 MB / 294.6 MB, free: 1.211 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.984e-06/1.984e-06, allocations: 0 / 376 MB, free: 4.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.16e-05/3.358e-05, allocations: 2.312 kB / 376 MB, free: 4.977 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001867/0.001901, allocations: 0.5552 MB / 376.6 MB, free: 4.418 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.002825, allocations: 438.5 kB / 377 MB, free: 3.988 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.4e-05/0.002879, allocations: 0 / 377 MB, free: 3.988 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.057e-05/0.00297, allocations: 7.938 kB / 377 MB, free: 3.98 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.00311, allocations: 7.969 kB / 377 MB, free: 3.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.0006561/0.003766, allocations: 175.3 kB / 377.2 MB, free: 3.801 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.003935, allocations: 87.83 kB / 377.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.127e-05/0.003976, allocations: 0 / 377.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.992e-05/0.004066, allocations: 51.89 kB / 377.3 MB, free: 3.664 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.826e-05/0.004125, allocations: 11.98 kB / 377.3 MB, free: 3.652 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.004151, allocations: 4 kB / 377.3 MB, free: 3.648 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002688/0.004419, allocations: 135.7 kB / 377.5 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.004491, allocations: 23.91 kB / 377.5 MB, free: 3.492 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.872e-05/0.00454, allocations: 19.97 kB / 377.5 MB, free: 3.473 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.004831, allocations: 155.5 kB / 377.6 MB, free: 3.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.004835, allocations: 4 kB / 377.6 MB, free: 3.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.004836, allocations: 0 / 377.6 MB, free: 3.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.004842, allocations: 0 / 377.6 MB, free: 3.316 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.0006236/0.005465, allocations: 438 kB / 378.1 MB, free: 2.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.00551, allocations: 8.031 kB / 378.1 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.4e-05/0.005584, allocations: 4.938 kB / 378.1 MB, free: 2.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.005766, allocations: 128.5 kB / 378.2 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.005781, allocations: 4.375 kB / 378.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.005806, allocations: 8.375 kB / 378.2 MB, free: 2.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.005999, allocations: 86.91 kB / 378.3 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.006007, allocations: 4.188 kB / 378.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.00603, allocations: 4.359 kB / 378.3 MB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.006039, allocations: 384 / 378.3 MB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.654e-05/0.006096, allocations: 27.91 kB / 378.3 MB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000182/0.006278, allocations: 116.6 kB / 378.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.33e-05/0.006371, allocations: 50.98 kB / 378.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.962e-05/0.006411, allocations: 15.69 kB / 378.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.006426, allocations: 0 / 378.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.006652, allocations: 133.1 kB / 378.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.006653, allocations: 0 / 378.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003/0.006953, allocations: 105.6 kB / 378.8 MB, free: 2.055 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.007006, allocations: 59.34 kB / 378.8 MB, free: 1.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.007113, allocations: 165.8 kB / 379 MB, free: 1.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.007141, allocations: 33.7 kB / 379 MB, free: 1.766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/0.007499, allocations: 126.9 kB / 379.1 MB, free: 1.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.007543, allocations: 27.78 kB / 379.2 MB, free: 1.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.007597, allocations: 39.38 kB / 379.2 MB, free: 1.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.007735, allocations: 496.1 kB / 379.7 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.439e-05/0.007799, allocations: 49.69 kB / 379.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.285e-05/0.007892, allocations: 111.2 kB / 379.8 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.008056, allocations: 147.1 kB / 380 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.008059, allocations: 0 / 380 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002444/0.008304, allocations: 180.8 kB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.008339, allocations: 33.7 kB / 380.2 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.008346, allocations: 0 / 380.2 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.008364, allocations: 4 kB / 380.2 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.008493, allocations: 31.98 kB / 380.2 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.008503, allocations: 7.938 kB / 380.2 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.644e-05/0.008539, allocations: 7.953 kB / 380.2 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.00855, allocations: 4.219 kB / 380.3 MB, free: 400 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.0001358/0.008686, allocations: 187.8 kB / 380.4 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/0.008706, allocations: 4 kB / 380.4 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.008743, allocations: 12.12 kB / 380.5 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.008745, allocations: 3.938 kB / 380.5 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.00875, allocations: 3.938 kB / 380.5 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.008755, allocations: 3.984 kB / 380.5 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.008856, allocations: 124.6 kB / 380.6 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.008858, allocations: 3.984 kB / 380.6 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.397e-05/0.008882, allocations: 8 kB / 380.6 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/0.008889, allocations: 4 kB / 380.6 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.008897, allocations: 0 / 380.6 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.008899, allocations: 0 / 380.6 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.0089, allocations: 0 / 380.6 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.009081, allocations: 140.3 kB / 380.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.121e-05/0.009093, allocations: 7.953 kB / 380.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.009117, allocations: 4 kB / 380.7 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.009234, allocations: 11.97 kB / 380.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.009266, allocations: 8 kB / 380.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.009282, allocations: 15.92 kB / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.029e-05/0.009322, allocations: 123.4 kB / 380.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009322, allocations: 0 / 380.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000221/0.009543, allocations: 43.92 kB / 380.9 MB, free: 15.63 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.0004135/0.009957, allocations: 197.3 kB / 381.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.01013, allocations: 144.6 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.01014, allocations: 4 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.731e-05/0.01017, allocations: 31.67 kB / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.0103, allocations: 11.98 kB / 381.3 MB, free: 15.24 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003207/0.01062, allocations: 146.1 kB / 381.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.541e-05/0.01066, allocations: 63.28 kB / 381.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.203e-05/0.0107, allocations: 17.16 kB / 381.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.01072, allocations: 16.5 kB / 381.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01072, allocations: 4 kB / 381.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of Templates: time 0.004143/0.01487, allocations: 2.1 MB / 383.7 MB, free: 12.87 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.2600302749779075]