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.001142/0.001142, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001863/0.003005, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001137/0.001137, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001418/0.002555, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.02/1.02, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09874/1.118, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.2945/0.2945, allocations: 34.86 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02536/0.3199, allocations: 13.23 MB / 292.6 MB, free: 6.465 MB / 282.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.092e-06/1.092e-06, allocations: 0 / 293.9 MB, free: 5.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.925e-05/2.034e-05, allocations: 4.422 kB / 293.9 MB, free: 5.172 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001036/0.001056, allocations: 0.5805 MB / 294.5 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005204/0.001576, allocations: 447.1 kB / 294.9 MB, free: 4.156 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.704e-05/0.001613, allocations: 0 / 294.9 MB, free: 4.156 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.502e-05/0.001639, allocations: 3.938 kB / 294.9 MB, free: 4.152 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.707e-05/0.001686, allocations: 3.984 kB / 294.9 MB, free: 4.148 MB / 282.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.0004545/0.00214, allocations: 180.1 kB / 295.1 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001348/0.002275, allocations: 83.86 kB / 295.2 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.242e-05/0.002307, allocations: 0 / 295.2 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.367e-05/0.002391, allocations: 47.89 kB / 295.2 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.376e-05/0.002445, allocations: 23.97 kB / 295.2 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.002463, allocations: 0 / 295.2 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00027/0.002733, allocations: 131.7 kB / 295.4 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.306e-05/0.002776, allocations: 8 kB / 295.4 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.002806, allocations: 11.94 kB / 295.4 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.003017, allocations: 131.6 kB / 295.5 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.003027, allocations: 0 / 295.5 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003028, allocations: 0 / 295.5 MB, free: 3.543 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.00304, allocations: 0 / 295.5 MB, free: 3.543 MB / 282.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.0004844/0.003524, allocations: 322.1 kB / 295.8 MB, free: 3.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.003556, allocations: 12.92 kB / 295.8 MB, free: 3.184 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.003597, allocations: 8.922 kB / 295.8 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.00373, allocations: 121.7 kB / 296 MB, free: 3.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.003738, allocations: 4.375 kB / 296 MB, free: 3.027 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.003757, allocations: 8.375 kB / 296 MB, free: 3.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.00387, allocations: 78.89 kB / 296 MB, free: 2.934 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.003876, allocations: 192 / 296 MB, free: 2.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.003891, allocations: 4.375 kB / 296.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.003895, allocations: 384 / 296.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.327e-05/0.003928, allocations: 19.91 kB / 296.1 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.531e-05/0.004023, allocations: 67.86 kB / 296.1 MB, free: 2.828 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.69e-05/0.00408, allocations: 46.48 kB / 296.2 MB, free: 2.773 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.413e-05/0.004104, allocations: 12.86 kB / 296.2 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.004115, allocations: 0 / 296.2 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/0.004273, allocations: 122.2 kB / 296.3 MB, free: 2.625 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 9.12e-07/0.004274, allocations: 0 / 296.3 MB, free: 2.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001356/0.004409, allocations: 66.61 kB / 296.4 MB, free: 2.555 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.004453, allocations: 63.33 kB / 296.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.236e-05/0.004505, allocations: 102.7 kB / 296.5 MB, free: 2.367 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.004526, allocations: 33.7 kB / 296.6 MB, free: 2.328 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.595e-05/0.004552, allocations: 80.14 kB / 296.7 MB, free: 2.246 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.004583, allocations: 35.7 kB / 296.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.116e-05/0.004624, allocations: 29.69 kB / 296.7 MB, free: 2.176 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.285e-05/0.004707, allocations: 322.8 kB / 297 MB, free: 1.852 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.13e-05/0.004738, allocations: 37.69 kB / 297.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.523e-05/0.004793, allocations: 92.55 kB / 297.2 MB, free: 1.688 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.0049, allocations: 123.2 kB / 297.3 MB, free: 1.535 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.004902, allocations: 0 / 297.3 MB, free: 1.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001375/0.00504, allocations: 156.9 kB / 297.4 MB, free: 1.363 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.005073, allocations: 29.92 kB / 297.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.005079, allocations: 8 kB / 297.5 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/0.005088, allocations: 0 / 297.5 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.005207, allocations: 27.98 kB / 297.5 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/0.005211, allocations: 3.938 kB / 297.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.042e-05/0.005251, allocations: 11.89 kB / 297.5 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.005261, allocations: 8 kB / 297.5 MB, free: 1.27 MB / 282.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.000112/0.005373, allocations: 131.1 kB / 297.7 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.005391, allocations: 4 kB / 297.7 MB, free: 1.129 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/0.005424, allocations: 20.11 kB / 297.7 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.005426, allocations: 0 / 297.7 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.005428, allocations: 0 / 297.7 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.005431, allocations: 3.938 kB / 297.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.233e-05/0.005513, allocations: 73.78 kB / 297.7 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.005516, allocations: 3.984 kB / 297.8 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.733e-05/0.005543, allocations: 8 kB / 297.8 MB, free: 1.004 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.516e-06/0.005551, allocations: 7.938 kB / 297.8 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.005554, allocations: 4 kB / 297.8 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.005562, allocations: 7.984 kB / 297.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.005565, allocations: 4.062 kB / 297.8 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.005566, allocations: 4 kB / 297.8 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.00567, allocations: 95.2 kB / 297.9 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.00569, allocations: 7.984 kB / 297.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.231e-05/0.005782, allocations: 11.98 kB / 297.9 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.763e-05/0.0058, allocations: 4 kB / 297.9 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.005814, allocations: 7.984 kB / 297.9 MB, free: 0.832 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.111e-05/0.005825, allocations: 9.047 kB / 297.9 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005825, allocations: 0 / 297.9 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.006053, allocations: 47.92 kB / 298 MB, free: 0.7734 MB / 282.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.0003791/0.006432, allocations: 195.4 kB / 298.2 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.006569, allocations: 141.8 kB / 298.3 MB, free: 484 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.006577, allocations: 4.438 kB / 298.3 MB, free: 480 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.617e-05/0.006603, allocations: 20.84 kB / 298.3 MB, free: 456 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.842e-05/0.006692, allocations: 31.91 kB / 298.4 MB, free: 424 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002501/0.006942, allocations: 143.1 kB / 298.5 MB, free: 252 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.267e-05/0.006975, allocations: 63.34 kB / 298.6 MB, free: 168 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.418e-05/0.007019, allocations: 20.59 kB / 298.6 MB, free: 144 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.879e-05/0.007058, allocations: 55.38 kB / 298.6 MB, free: 88 kB / 282.7 MB Notification: Performance of SimCode: time 8.02e-07/0.007058, allocations: 0 / 298.6 MB, free: 88 kB / 282.7 MB Notification: Performance of Templates: time 0.004344/0.0114, allocations: 2.379 MB / 301 MB, free: 13.73 MB / 298.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 -ignoreHideResult -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.013948510400951]