Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006698/0.0006698, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001085/0.001755, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0006609/0.0006609, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000922/0.001583, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9272/0.9272, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0886/1.016, allocations: 53.65 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2474/0.2474, allocations: 34.26 MB / 278.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02461/0.272, allocations: 13.1 MB / 291.5 MB, free: 7.332 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 292.8 MB, free: 6.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.641e-05, allocations: 4.969 kB / 292.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001228/0.001244, allocations: 0.5926 MB / 293.4 MB, free: 5.602 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007194/0.001964, allocations: 447 kB / 293.9 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.073e-05/0.001994, allocations: 0 / 293.9 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.92e-05/0.002024, allocations: 7.938 kB / 293.9 MB, free: 5.156 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-05/0.002074, allocations: 4 kB / 293.9 MB, free: 5.152 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0004159/0.00249, allocations: 173.6 kB / 294.1 MB, free: 4.984 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.002647, allocations: 80.36 kB / 294.1 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.749e-05/0.002684, allocations: 11.92 kB / 294.1 MB, free: 4.895 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.002793, allocations: 47.91 kB / 294.2 MB, free: 4.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.904e-05/0.002862, allocations: 19.95 kB / 294.2 MB, free: 4.828 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.717e-05/0.002889, allocations: 4 kB / 294.2 MB, free: 4.824 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002319/0.003121, allocations: 123.8 kB / 294.3 MB, free: 4.703 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.844e-05/0.003169, allocations: 16 kB / 294.3 MB, free: 4.688 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.003197, allocations: 11.94 kB / 294.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.00342, allocations: 135.5 kB / 294.5 MB, free: 4.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.003431, allocations: 0 / 294.5 MB, free: 4.543 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.003432, allocations: 0 / 294.5 MB, free: 4.543 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.003442, allocations: 0 / 294.5 MB, free: 4.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.0004709/0.003912, allocations: 318.1 kB / 294.8 MB, free: 4.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.003943, allocations: 8.031 kB / 294.8 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.003985, allocations: 12.92 kB / 294.8 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.004109, allocations: 121.7 kB / 294.9 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-06/0.004119, allocations: 8.375 kB / 294.9 MB, free: 4.027 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.004136, allocations: 8.359 kB / 295 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.004241, allocations: 82.84 kB / 295 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.004248, allocations: 192 / 295 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.004259, allocations: 384 / 295 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.004264, allocations: 384 / 295 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.678e-05/0.004291, allocations: 19.91 kB / 295.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.896e-05/0.00438, allocations: 71.86 kB / 295.1 MB, free: 3.824 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.586e-05/0.004426, allocations: 26.58 kB / 295.2 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.923e-05/0.004445, allocations: 16.84 kB / 295.2 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.004457, allocations: 8 kB / 295.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001202/0.004577, allocations: 106.3 kB / 295.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 6.62e-07/0.004577, allocations: 0 / 295.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001334/0.004711, allocations: 77.59 kB / 295.4 MB, free: 3.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.004745, allocations: 59.39 kB / 295.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.03e-05/0.004796, allocations: 106.7 kB / 295.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.004815, allocations: 33.7 kB / 295.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.282e-05/0.004838, allocations: 84.12 kB / 295.6 MB, free: 3.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.548e-05/0.004864, allocations: 31.72 kB / 295.7 MB, free: 3.219 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.004895, allocations: 33.69 kB / 295.7 MB, free: 3.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.883e-05/0.004964, allocations: 318.8 kB / 296 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.585e-05/0.004989, allocations: 37.69 kB / 296 MB, free: 2.816 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.2e-05/0.005031, allocations: 92.48 kB / 296.1 MB, free: 2.695 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.151e-05/0.005123, allocations: 127.2 kB / 296.3 MB, free: 2.539 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.005125, allocations: 0 / 296.3 MB, free: 2.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001064/0.005231, allocations: 152.9 kB / 296.4 MB, free: 2.371 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.005263, allocations: 33.7 kB / 296.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.005268, allocations: 4 kB / 296.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.00528, allocations: 0 / 296.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.199e-05/0.005372, allocations: 27.98 kB / 296.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.005375, allocations: 8.219 kB / 296.5 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.809e-05/0.005403, allocations: 11.89 kB / 296.5 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.005413, allocations: 4 kB / 296.5 MB, free: 2.277 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 9.459e-05/0.005508, allocations: 136.5 kB / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.005521, allocations: 7.984 kB / 296.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.811e-05/0.005549, allocations: 12.12 kB / 296.7 MB, free: 2.113 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.00555, allocations: 0 / 296.7 MB, free: 2.113 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.005552, allocations: 0 / 296.7 MB, free: 2.113 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.005555, allocations: 0 / 296.7 MB, free: 2.113 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.132e-05/0.005626, allocations: 85.75 kB / 296.7 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.005627, allocations: 0 / 296.7 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.614e-05/0.005653, allocations: 8 kB / 296.7 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.456e-06/0.005662, allocations: 7.953 kB / 296.8 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.005664, allocations: 3.984 kB / 296.8 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.005669, allocations: 4 kB / 296.8 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.00567, allocations: 3.938 kB / 296.8 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005671, allocations: 0 / 296.8 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.522e-05/0.005756, allocations: 98.69 kB / 296.9 MB, free: 1.867 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.005772, allocations: 7.984 kB / 296.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.448e-05/0.005847, allocations: 11.98 kB / 296.9 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.005866, allocations: 11.98 kB / 296.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.005873, allocations: 0 / 296.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.335e-05/0.005887, allocations: 13.03 kB / 296.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005887, allocations: 0 / 296.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001449/0.006032, allocations: 43.92 kB / 296.9 MB, free: 1.777 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.0003403/0.006372, allocations: 202.3 kB / 297.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.006503, allocations: 141.8 kB / 297.3 MB, free: 1.469 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.00651, allocations: 0 / 297.3 MB, free: 1.469 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.95e-05/0.006539, allocations: 32.77 kB / 297.3 MB, free: 1.434 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.517e-05/0.006624, allocations: 34.75 kB / 297.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000226/0.00685, allocations: 139.5 kB / 297.5 MB, free: 1.238 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.988e-05/0.00688, allocations: 59.34 kB / 297.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.231e-05/0.006912, allocations: 16.72 kB / 297.6 MB, free: 1.141 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.006951, allocations: 71.34 kB / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of SimCode: time 3.71e-07/0.006951, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of Templates: time 0.003516/0.01047, allocations: 2.366 MB / 300 MB, free: 14.72 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7320072622969747]