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.00182/0.00182, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.002281/0.002281, allocations: 160.6 kB / 23.95 MB, free: 4.152 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.602/1.602, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.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.2214/0.2214, allocations: 34.25 MB / 294.8 MB, free: 14.53 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 1.944e-06/1.944e-06, allocations: 0 / 442.7 MB, free: 5.293 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.762e-05/2.957e-05, allocations: 2.281 kB / 442.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001694/0.001724, allocations: 0.536 MB / 443.2 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.002741, allocations: 422.4 kB / 443.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.022e-05/0.002782, allocations: 3.938 kB / 443.6 MB, free: 4.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 8.993e-05/0.002872, allocations: 8 kB / 443.6 MB, free: 4.328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.003012, allocations: 15.8 kB / 443.6 MB, free: 4.312 MB / 366.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.0007016/0.003713, allocations: 171.3 kB / 443.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.003914, allocations: 79.86 kB / 443.9 MB, free: 4.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.707e-05/0.003971, allocations: 3.984 kB / 443.9 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.004083, allocations: 51.89 kB / 443.9 MB, free: 4.016 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.185e-05/0.004155, allocations: 19.97 kB / 444 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.004187, allocations: 0 / 444 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003143/0.004502, allocations: 131.7 kB / 444.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.672e-05/0.004578, allocations: 19.95 kB / 444.1 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.362e-05/0.004632, allocations: 23.91 kB / 444.1 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.004962, allocations: 159.6 kB / 444.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.004965, allocations: 0 / 444.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004966, allocations: 0 / 444.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.00497, allocations: 0 / 444.3 MB, free: 3.668 MB / 366.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.0006568/0.005627, allocations: 331.8 kB / 444.6 MB, free: 3.305 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.005667, allocations: 12.03 kB / 444.6 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.223e-05/0.00573, allocations: 4.938 kB / 444.6 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002214/0.005951, allocations: 133.7 kB / 444.8 MB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.005966, allocations: 4.312 kB / 444.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.005982, allocations: 4.375 kB / 444.8 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.006239, allocations: 94.17 kB / 444.9 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.006252, allocations: 4.172 kB / 444.9 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.533e-05/0.006278, allocations: 4.375 kB / 444.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.006283, allocations: 384 / 444.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.115e-05/0.006374, allocations: 23.92 kB / 444.9 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002084/0.006583, allocations: 113.2 kB / 445 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.006706, allocations: 42.64 kB / 445 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.907e-05/0.006765, allocations: 28.92 kB / 445.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.006786, allocations: 4 kB / 445.1 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003339/0.00712, allocations: 127.3 kB / 445.2 MB, free: 2.633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.007121, allocations: 0 / 445.2 MB, free: 2.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003601/0.007481, allocations: 129.5 kB / 445.3 MB, free: 2.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.007541, allocations: 55.41 kB / 445.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.007651, allocations: 109.8 kB / 445.5 MB, free: 2.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.007686, allocations: 29.7 kB / 445.5 MB, free: 2.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.05e-05/0.007737, allocations: 80.14 kB / 445.6 MB, free: 2.199 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.846e-05/0.007775, allocations: 23.86 kB / 445.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.576e-05/0.007831, allocations: 33.7 kB / 445.6 MB, free: 2.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.008013, allocations: 314.8 kB / 446 MB, free: 1.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.758e-05/0.008091, allocations: 61.56 kB / 446 MB, free: 1.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.008218, allocations: 103.1 kB / 446.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.008452, allocations: 152.4 kB / 446.3 MB, free: 1.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.008454, allocations: 0 / 446.3 MB, free: 1.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002905/0.008745, allocations: 184.9 kB / 446.4 MB, free: 1.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/0.008791, allocations: 37.92 kB / 446.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.008796, allocations: 4 kB / 446.5 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.008814, allocations: 4 kB / 446.5 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.00893, allocations: 19.92 kB / 446.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.551e-05/0.008976, allocations: 7.938 kB / 446.5 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.206e-05/0.009028, allocations: 7.953 kB / 446.5 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.009044, allocations: 8 kB / 446.5 MB, free: 1.152 MB / 366.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.0001539/0.009198, allocations: 121.8 kB / 446.6 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.009228, allocations: 7.984 kB / 446.7 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.009264, allocations: 12.12 kB / 446.7 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.009269, allocations: 4 kB / 446.7 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.009275, allocations: 3.938 kB / 446.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.009278, allocations: 288 / 446.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.009421, allocations: 117.2 kB / 446.8 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.009422, allocations: 0 / 446.8 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.392e-05/0.009456, allocations: 7.938 kB / 446.8 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.00946, allocations: 3.984 kB / 446.8 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.009471, allocations: 7.938 kB / 446.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.009473, allocations: 0 / 446.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.009474, allocations: 0 / 446.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.009708, allocations: 141 kB / 446.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.202e-05/0.00972, allocations: 7.953 kB / 447 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.009737, allocations: 64 / 447 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.009955, allocations: 28.14 kB / 447 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.592e-05/0.009981, allocations: 7.984 kB / 447 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.009999, allocations: 7.938 kB / 447 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.261e-05/0.01006, allocations: 79.28 kB / 447.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01006, allocations: 0 / 447.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000289/0.01035, allocations: 43.92 kB / 447.1 MB, free: 0.5 MB / 366.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.0004795/0.01083, allocations: 193.2 kB / 447.3 MB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002563/0.01109, allocations: 145 kB / 447.4 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.01109, allocations: 0 / 447.4 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.229e-05/0.01115, allocations: 28.36 kB / 447.5 MB, free: 140 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.01132, allocations: 19.97 kB / 447.5 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1853/0.1966, allocations: 136.1 kB / 447.6 MB, free: 18.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.526e-05/0.1967, allocations: 69 kB / 447.7 MB, free: 18.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.571e-05/0.1968, allocations: 14.34 kB / 447.7 MB, free: 18.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.1968, allocations: 14.27 kB / 447.7 MB, free: 18.76 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1968, allocations: 3.969 kB / 447.7 MB, free: 18.76 MB / 366.1 MB Notification: Performance of Templates: time 0.005561/0.2024, allocations: 2.087 MB / 449.8 MB, free: 18.62 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/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.279776256531477]