Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001228/0.001228, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.01/1.01, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2878/0.2878, allocations: 34.86 MB / 296.3 MB, free: 0.5625 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 378.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.764e-05/1.902e-05, allocations: 7.094 kB / 378.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001029/0.001048, allocations: 0.5421 MB / 379.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00068/0.001728, allocations: 446.5 kB / 379.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.001769, allocations: 4 kB / 379.8 MB, free: 1.117 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.084e-05/0.00185, allocations: 0 / 379.8 MB, free: 1.117 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.001979, allocations: 11.92 kB / 379.8 MB, free: 1.105 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0005051/0.002484, allocations: 171.3 kB / 379.9 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.002615, allocations: 87.86 kB / 380 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.508e-05/0.00265, allocations: 7.984 kB / 380 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.643e-05/0.002716, allocations: 39.95 kB / 380.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.959e-05/0.002766, allocations: 23.91 kB / 380.1 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.002786, allocations: 0 / 380.1 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.002981, allocations: 135.7 kB / 380.2 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.381e-05/0.003035, allocations: 19.97 kB / 380.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.00307, allocations: 19.91 kB / 380.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.003272, allocations: 159.5 kB / 380.4 MB, free: 464 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.003274, allocations: 0 / 380.4 MB, free: 464 kB / 346.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.003274, allocations: 0 / 380.4 MB, free: 464 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.003278, allocations: 4 kB / 380.4 MB, free: 460 kB / 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.0004605/0.003738, allocations: 434 kB / 380.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.003781, allocations: 8.031 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.41e-05/0.003835, allocations: 8.938 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.004005, allocations: 128.5 kB / 381 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.00402, allocations: 4.375 kB / 381 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.004046, allocations: 4.375 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.004209, allocations: 90.89 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.004219, allocations: 192 / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.004234, allocations: 4.375 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.004241, allocations: 8.312 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.57e-05/0.004286, allocations: 23.91 kB / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.004421, allocations: 120.6 kB / 381.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.631e-05/0.004487, allocations: 43.05 kB / 381.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.004518, allocations: 23.73 kB / 381.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.004534, allocations: 4 kB / 381.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/0.004674, allocations: 120.9 kB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.004675, allocations: 0 / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.000213/0.004888, allocations: 121.5 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.004922, allocations: 51.41 kB / 381.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.821e-05/0.004991, allocations: 165.9 kB / 381.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.005013, allocations: 29.7 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.497e-05/0.005048, allocations: 126.9 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.005078, allocations: 31.94 kB / 381.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.005116, allocations: 39.36 kB / 382 MB, free: 14.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.005231, allocations: 0.4923 MB / 382.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.005e-05/0.005271, allocations: 37.69 kB / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.895e-05/0.00534, allocations: 119.1 kB / 382.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.005478, allocations: 143.1 kB / 382.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.005482, allocations: 4 kB / 382.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001608/0.005642, allocations: 180.9 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.005671, allocations: 33.7 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.005676, allocations: 0 / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.005692, allocations: 4 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.871e-05/0.005791, allocations: 27.92 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.005798, allocations: 3.938 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.847e-05/0.005826, allocations: 11.89 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.005837, allocations: 12 kB / 383 MB, free: 13.51 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.0001077/0.005945, allocations: 172.6 kB / 383.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.917e-05/0.005964, allocations: 8 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.811e-05/0.005992, allocations: 8.125 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.005993, allocations: 0 / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.005999, allocations: 7.938 kB / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.006003, allocations: 0 / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.915e-05/0.006082, allocations: 124.5 kB / 383.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-07/0.006083, allocations: 4 kB / 383.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.895e-05/0.006102, allocations: 7.984 kB / 383.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.006103, allocations: 0 / 383.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.006111, allocations: 8.25 kB / 383.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.006113, allocations: 4 kB / 383.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.006113, allocations: 0 / 383.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.006243, allocations: 144.3 kB / 383.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-06/0.00625, allocations: 3.953 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.006268, allocations: 4 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-05/0.006362, allocations: 15.92 kB / 383.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.006385, allocations: 7.984 kB / 383.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.006398, allocations: 11.92 kB / 383.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.266e-05/0.00643, allocations: 123.2 kB / 383.7 MB, free: 12.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00643, allocations: 0 / 383.7 MB, free: 12.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001929/0.006623, allocations: 43.94 kB / 383.7 MB, free: 12.76 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.0003016/0.006925, allocations: 188.6 kB / 383.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.007094, allocations: 149.1 kB / 384 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.007096, allocations: 4 kB / 384.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.712e-05/0.007133, allocations: 35.75 kB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.00726, allocations: 19.97 kB / 384.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002953/0.007555, allocations: 142.2 kB / 384.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.732e-05/0.007593, allocations: 63.28 kB / 384.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.448e-05/0.007627, allocations: 12.72 kB / 384.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.363e-05/0.007651, allocations: 16.5 kB / 384.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.007651, allocations: 4.062 kB / 384.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of Templates: time 0.003905/0.01156, allocations: 2.102 MB / 386.4 MB, free: 9.992 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.3855043966323137]