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.001341/0.001341, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 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.00141/0.00141, allocations: 214 kB / 25.13 MB, free: 3.582 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.472/1.472, allocations: 230.2 MB / 258.5 MB, free: 8.215 MB / 206.1 MB " [Timeout remaining time 178] 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.2295/0.2295, allocations: 46.93 MB / 361.8 MB, free: 4.367 MB / 286.1 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.1.|cnt.2.|cnt.3.|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.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 83.86 kB / 0.4975 GB, free: 7.574 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3357, allocations: 66.04 MB / 0.562 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001694/0.3374, allocations: 0.5344 MB / 0.5625 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009553/0.3384, allocations: 446.6 kB / 0.5629 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.909e-05/0.3384, allocations: 0 / 0.5629 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.633e-05/0.3385, allocations: 3.938 kB / 0.5629 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.3386, allocations: 15.92 kB / 0.563 GB, free: 3.512 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.0005998/0.3392, allocations: 174.7 kB / 0.5631 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.3394, allocations: 83.8 kB / 0.5632 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.444e-05/0.3394, allocations: 3.984 kB / 0.5632 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.586e-05/0.3395, allocations: 39.97 kB / 0.5632 GB, free: 3.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.847e-05/0.3395, allocations: 19.91 kB / 0.5633 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.3396, allocations: 4 kB / 0.5633 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002801/0.3398, allocations: 135.8 kB / 0.5634 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.675e-05/0.3399, allocations: 23.97 kB / 0.5634 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.265e-05/0.34, allocations: 31.83 kB / 0.5635 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.3402, allocations: 130.2 kB / 0.5636 GB, free: 2.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3402, allocations: 0 / 0.5636 GB, free: 2.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3402, allocations: 0 / 0.5636 GB, free: 2.887 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.3402, allocations: 0 / 0.5636 GB, free: 2.887 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.0005964/0.3408, allocations: 331.8 kB / 0.5639 GB, free: 2.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3408, allocations: 8.031 kB / 0.5639 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.792e-05/0.3409, allocations: 16.81 kB / 0.5639 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.3411, allocations: 126.4 kB / 0.564 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3411, allocations: 8.375 kB / 0.564 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.3411, allocations: 8.359 kB / 0.5641 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.3413, allocations: 90.19 kB / 0.5641 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3413, allocations: 192 / 0.5641 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.3414, allocations: 7.922 kB / 0.5641 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3414, allocations: 0 / 0.5641 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.195e-05/0.3415, allocations: 23.98 kB / 0.5642 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001905/0.3416, allocations: 140.7 kB / 0.5643 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.3417, allocations: 46.64 kB / 0.5643 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.549e-05/0.3418, allocations: 16.98 kB / 0.5644 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3418, allocations: 7.984 kB / 0.5644 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.3421, allocations: 127.2 kB / 0.5645 GB, free: 1.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.3421, allocations: 4 kB / 0.5645 GB, free: 1.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003234/0.3424, allocations: 133.5 kB / 0.5646 GB, free: 1.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.3425, allocations: 59.34 kB / 0.5647 GB, free: 1.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.792e-05/0.3425, allocations: 101.8 kB / 0.5648 GB, free: 1.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.3426, allocations: 25.7 kB / 0.5648 GB, free: 1.461 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.3426, allocations: 84.14 kB / 0.5649 GB, free: 1.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.3427, allocations: 27.84 kB / 0.5649 GB, free: 1.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.957e-05/0.3427, allocations: 25.72 kB / 0.5649 GB, free: 1.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3429, allocations: 326.8 kB / 0.5652 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.789e-05/0.3429, allocations: 45.69 kB / 0.5653 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.343, allocations: 102.7 kB / 0.5654 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.3432, allocations: 156.4 kB / 0.5655 GB, free: 0.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3432, allocations: 0 / 0.5655 GB, free: 0.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002559/0.3435, allocations: 184.9 kB / 0.5657 GB, free: 436 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.3435, allocations: 37.64 kB / 0.5657 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3435, allocations: 4 kB / 0.5658 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3436, allocations: 0 / 0.5658 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.3437, allocations: 15.98 kB / 0.5658 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.3437, allocations: 8.219 kB / 0.5658 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.009e-05/0.3437, allocations: 15.83 kB / 0.5658 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.3438, allocations: 8 kB / 0.5658 GB, free: 340 kB / 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.000146/0.3439, allocations: 131.3 kB / 0.5659 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.3439, allocations: 11.89 kB / 0.5659 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.344, allocations: 8.062 kB / 0.5659 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.344, allocations: 4 kB / 0.5659 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.344, allocations: 0 / 0.5659 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.344, allocations: 0 / 0.5659 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.3441, allocations: 144.7 kB / 0.5661 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3441, allocations: 4 kB / 0.5661 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.802e-05/0.3442, allocations: 11.94 kB / 0.5661 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.638e-06/0.3442, allocations: 7.922 kB / 0.5661 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3442, allocations: 0 / 0.5661 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3442, allocations: 0 / 0.5661 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3442, allocations: 0 / 0.5661 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.3444, allocations: 125.1 kB / 0.5662 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.626e-05/0.3445, allocations: 19.83 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.3445, allocations: 4 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.3447, allocations: 24.14 kB / 0.5663 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.845e-05/0.3447, allocations: 4.047 kB / 0.5663 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.3447, allocations: 12 kB / 0.5663 GB, free: 15.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.793e-05/0.3448, allocations: 79.28 kB / 0.5664 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3448, allocations: 0 / 0.5664 GB, free: 15.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002931/0.3451, allocations: 43.92 kB / 0.5664 GB, free: 15.64 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.0004194/0.3455, allocations: 182.3 kB / 0.5666 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002367/0.3457, allocations: 153 kB / 0.5667 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3457, allocations: 0 / 0.5667 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.791e-05/0.3458, allocations: 23.98 kB / 0.5667 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.3459, allocations: 14.77 kB / 0.5668 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.3463, allocations: 144.7 kB / 0.5669 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.3466, allocations: 0.6851 MB / 0.5676 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.942e-05/0.3466, allocations: 16.59 kB / 0.5676 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.3467, allocations: 23.36 kB / 0.5676 GB, free: 14.34 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3467, allocations: 0 / 0.5676 GB, free: 14.34 MB / 414.1 MB Notification: Performance of Templates: time 0.005221/0.3519, allocations: 2.036 MB / 0.5696 GB, free: 12.31 MB / 414.1 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=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.195941152982414]