Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001662/0.001662, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 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.001838/0.001838, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 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.48/1.48, allocations: 230.2 MB / 257.8 MB, free: 8.512 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2438/0.2438, allocations: 46.87 MB / 361.1 MB, free: 4.66 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 75.88 kB / 0.4968 GB, free: 7.832 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3846, allocations: 65.99 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001903/0.3865, allocations: 0.5343 MB / 0.5617 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.3875, allocations: 454.6 kB / 0.5622 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.187e-05/0.3875, allocations: 0 / 0.5622 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.748e-05/0.3876, allocations: 7.938 kB / 0.5622 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.3877, allocations: 4 kB / 0.5622 GB, free: 4.047 MB / 398.1 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.0006146/0.3883, allocations: 171.5 kB / 0.5623 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001793/0.3885, allocations: 75.86 kB / 0.5624 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.3885, allocations: 7.984 kB / 0.5624 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.24e-05/0.3886, allocations: 35.97 kB / 0.5624 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.782e-05/0.3887, allocations: 23.91 kB / 0.5625 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.3887, allocations: 0 / 0.5625 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.3889, allocations: 111.8 kB / 0.5626 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.038e-05/0.389, allocations: 23.91 kB / 0.5626 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.679e-05/0.3891, allocations: 23.91 kB / 0.5626 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.3893, allocations: 134.3 kB / 0.5627 GB, free: 3.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3893, allocations: 0 / 0.5627 GB, free: 3.453 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3893, allocations: 0 / 0.5627 GB, free: 3.453 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3893, allocations: 0 / 0.5627 GB, free: 3.453 MB / 398.1 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.0006976/0.39, allocations: 404.9 kB / 0.5631 GB, free: 3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.39, allocations: 8.031 kB / 0.5631 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.302e-05/0.3901, allocations: 12.89 kB / 0.5632 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.3903, allocations: 184.2 kB / 0.5633 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.3904, allocations: 12.36 kB / 0.5633 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.3904, allocations: 384 / 0.5633 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.3906, allocations: 86.2 kB / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3906, allocations: 192 / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.3906, allocations: 11.92 kB / 0.5634 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.3907, allocations: 0 / 0.5634 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.756e-05/0.3907, allocations: 19.98 kB / 0.5635 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002394/0.391, allocations: 173.6 kB / 0.5636 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.3911, allocations: 46.44 kB / 0.5637 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.3911, allocations: 20.91 kB / 0.5637 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.3911, allocations: 0 / 0.5637 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/0.3914, allocations: 139.5 kB / 0.5638 GB, free: 2.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.472e-06/0.3914, allocations: 0 / 0.5638 GB, free: 2.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003663/0.3918, allocations: 129.5 kB / 0.5639 GB, free: 2.051 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.3919, allocations: 55.41 kB / 0.564 GB, free: 1.984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.911e-05/0.392, allocations: 97.84 kB / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.392, allocations: 29.7 kB / 0.5641 GB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.323e-05/0.392, allocations: 80.14 kB / 0.5642 GB, free: 1.762 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.718e-05/0.3921, allocations: 27.78 kB / 0.5642 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.953e-05/0.3921, allocations: 33.72 kB / 0.5642 GB, free: 1.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3923, allocations: 318.8 kB / 0.5646 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.879e-05/0.3923, allocations: 23.98 kB / 0.5646 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.254e-05/0.3924, allocations: 74.84 kB / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.3926, allocations: 144.4 kB / 0.5648 GB, free: 1.082 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3926, allocations: 0 / 0.5648 GB, free: 1.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002441/0.3928, allocations: 167.2 kB / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.3929, allocations: 37.64 kB / 0.565 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3929, allocations: 3.938 kB / 0.565 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3929, allocations: 4 kB / 0.565 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.393, allocations: 15.98 kB / 0.565 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.393, allocations: 4 kB / 0.565 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.011e-05/0.3931, allocations: 20.05 kB / 0.565 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.3931, allocations: 8 kB / 0.565 GB, free: 0.8086 MB / 398.1 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.0001512/0.3933, allocations: 121.8 kB / 0.5651 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.3933, allocations: 16.06 kB / 0.5652 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.3933, allocations: 11.95 kB / 0.5652 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3933, allocations: 0 / 0.5652 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3933, allocations: 4 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3933, allocations: 0 / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.3935, allocations: 177.9 kB / 0.5654 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3935, allocations: 0 / 0.5654 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.532e-05/0.3935, allocations: 4 kB / 0.5654 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3935, allocations: 7.875 kB / 0.5654 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.3936, allocations: 7.984 kB / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3936, allocations: 0 / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3936, allocations: 80 / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002145/0.3938, allocations: 129 kB / 0.5655 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.3938, allocations: 89 kB / 0.5656 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.3939, allocations: 12 kB / 0.5656 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.3941, allocations: 15.97 kB / 0.5656 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.973e-05/0.3941, allocations: 4 kB / 0.5656 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.3941, allocations: 15.92 kB / 0.5656 GB, free: 116 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.81e-05/0.3942, allocations: 75.28 kB / 0.5657 GB, free: 40 kB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3942, allocations: 0 / 0.5657 GB, free: 40 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.3945, allocations: 43.97 kB / 0.5657 GB, free: 15.99 MB / 414.1 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.0004608/0.3949, allocations: 188.7 kB / 0.5659 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.3952, allocations: 123.3 kB / 0.566 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3952, allocations: 448 / 0.566 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.648e-05/0.3952, allocations: 35.92 kB / 0.5661 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.3954, allocations: 4 kB / 0.5661 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004042/0.3958, allocations: 152.7 kB / 0.5662 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.3962, allocations: 0.6846 MB / 0.5669 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.818e-05/0.3962, allocations: 16.66 kB / 0.5669 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.586e-05/0.3962, allocations: 11.44 kB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3962, allocations: 4 kB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of Templates: time 0.005537/0.4018, allocations: 2.022 MB / 0.5689 GB, free: 12.71 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.19235402205959]