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.0007602/0.0007602, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001024/0.001784, allocations: 449.7 kB / 10.37 MB, free: 328 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.000694/0.000694, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008586/0.001553, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.943/0.943, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0904/1.033, allocations: 53.65 MB / 243.3 MB, free: 15.59 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.2677/0.2677, allocations: 34.24 MB / 278.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02275/0.2904, allocations: 13.1 MB / 291.3 MB, free: 7.363 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.442e-06/1.442e-06, allocations: 0 / 292.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.389e-05, allocations: 3.078 kB / 292.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001204/0.001228, allocations: 0.5843 MB / 293.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005265/0.001754, allocations: 455 kB / 293.6 MB, free: 5.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.924e-05/0.001794, allocations: 7.938 kB / 293.7 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.668e-05/0.00182, allocations: 0 / 293.7 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.354e-05/0.001864, allocations: 3.984 kB / 293.7 MB, free: 5.258 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.0004449/0.002309, allocations: 172.2 kB / 293.8 MB, free: 5.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.002452, allocations: 75.86 kB / 293.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.491e-05/0.002487, allocations: 15.92 kB / 293.9 MB, free: 5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.895e-05/0.002586, allocations: 44.47 kB / 294 MB, free: 4.957 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.046e-05/0.002647, allocations: 15.97 kB / 294 MB, free: 4.941 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.666e-05/0.002673, allocations: 7.938 kB / 294 MB, free: 4.934 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.002895, allocations: 131.7 kB / 294.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.511e-05/0.00294, allocations: 8 kB / 294.1 MB, free: 4.797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.002966, allocations: 8 kB / 294.1 MB, free: 4.789 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.003155, allocations: 131.6 kB / 294.3 MB, free: 4.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.2e-05/0.003167, allocations: 0 / 294.3 MB, free: 4.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.003167, allocations: 0 / 294.3 MB, free: 4.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.003182, allocations: 4 kB / 294.3 MB, free: 4.656 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.000466/0.003648, allocations: 322.1 kB / 294.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.00368, allocations: 8.031 kB / 294.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.959e-05/0.00372, allocations: 8.875 kB / 294.6 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.003853, allocations: 125.8 kB / 294.7 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.003863, allocations: 4.375 kB / 294.7 MB, free: 4.141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.003878, allocations: 4.375 kB / 294.7 MB, free: 4.137 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.003987, allocations: 82.89 kB / 294.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.003994, allocations: 192 / 294.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.004006, allocations: 384 / 294.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.004011, allocations: 384 / 294.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.22e-05/0.004043, allocations: 19.92 kB / 294.8 MB, free: 4.027 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.643e-05/0.004139, allocations: 75.75 kB / 294.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.146e-05/0.004191, allocations: 30.56 kB / 294.9 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.029e-05/0.004211, allocations: 12.86 kB / 294.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.004222, allocations: 0 / 294.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.004357, allocations: 114.3 kB / 295.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.004358, allocations: 0 / 295.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001369/0.004495, allocations: 77.66 kB / 295.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.004535, allocations: 59.34 kB / 295.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.2e-05/0.004596, allocations: 110.6 kB / 295.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.004617, allocations: 33.7 kB / 295.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.325e-05/0.00464, allocations: 80.14 kB / 295.4 MB, free: 3.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.004666, allocations: 27.77 kB / 295.4 MB, free: 3.336 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.0047, allocations: 33.69 kB / 295.5 MB, free: 3.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.031e-05/0.004771, allocations: 318.8 kB / 295.8 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.814e-05/0.004799, allocations: 37.69 kB / 295.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.615e-05/0.004845, allocations: 90.52 kB / 295.9 MB, free: 2.816 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.393e-05/0.004939, allocations: 131.2 kB / 296 MB, free: 2.656 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.004941, allocations: 0 / 296 MB, free: 2.656 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001141/0.005055, allocations: 149.1 kB / 296.2 MB, free: 2.492 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.005089, allocations: 39.72 kB / 296.2 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.005095, allocations: 4 kB / 296.2 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.005103, allocations: 0 / 296.2 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-05/0.005199, allocations: 27.92 kB / 296.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.005202, allocations: 4 kB / 296.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.105e-05/0.005233, allocations: 19.83 kB / 296.3 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.005241, allocations: 4 kB / 296.3 MB, free: 2.391 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.882e-05/0.00534, allocations: 128.8 kB / 296.4 MB, free: 2.254 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.005356, allocations: 15.97 kB / 296.4 MB, free: 2.238 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.005388, allocations: 16.09 kB / 296.4 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.00539, allocations: 0 / 296.4 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.005391, allocations: 0 / 296.4 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.005394, allocations: 0 / 296.4 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.332e-05/0.005467, allocations: 81.83 kB / 296.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.005469, allocations: 0 / 296.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.209e-05/0.005491, allocations: 11.98 kB / 296.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-06/0.005496, allocations: 3.953 kB / 296.5 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.005498, allocations: 0 / 296.5 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.005505, allocations: 11.98 kB / 296.5 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.005506, allocations: 0 / 296.5 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.005507, allocations: 0 / 296.5 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.005707, allocations: 102.6 kB / 296.6 MB, free: 1.977 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.005727, allocations: 4 kB / 296.6 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.595e-05/0.005813, allocations: 16.03 kB / 296.7 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.127e-05/0.005834, allocations: 4 kB / 296.7 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.005847, allocations: 11.92 kB / 296.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.343e-05/0.00586, allocations: 8.859 kB / 296.7 MB, free: 1.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00586, allocations: 0 / 296.7 MB, free: 1.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001792/0.006039, allocations: 43.92 kB / 296.7 MB, free: 1.887 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.0003944/0.006434, allocations: 198.7 kB / 296.9 MB, free: 1.738 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.006604, allocations: 138.2 kB / 297.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.006616, allocations: 8.062 kB / 297.1 MB, free: 1.574 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.774e-05/0.006644, allocations: 24.83 kB / 297.1 MB, free: 1.547 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.594e-05/0.006739, allocations: 27.91 kB / 297.1 MB, free: 1.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002918/0.007031, allocations: 142.7 kB / 297.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.414e-05/0.007065, allocations: 59.36 kB / 297.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.735e-05/0.007103, allocations: 16.7 kB / 297.3 MB, free: 1.254 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.915e-05/0.007142, allocations: 55.38 kB / 297.4 MB, free: 1.199 MB / 282.7 MB Notification: Performance of SimCode: time 8.72e-07/0.007143, allocations: 0 / 297.4 MB, free: 1.199 MB / 282.7 MB Notification: Performance of Templates: time 0.004142/0.01129, allocations: 2.383 MB / 299.8 MB, free: 14.84 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7775405067950487]