Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00158/0.002737, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009878/0.0009878, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001697/0.002685, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9195/0.9195, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1743/1.094, allocations: 52.49 MB / 238.5 MB, free: 7.609 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1392/0.1392, allocations: 32.8 MB / 272 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02068/0.1599, allocations: 12.54 MB / 284.5 MB, free: 9.699 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 285.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.999e-05/2.162e-05, allocations: 6.25 kB / 285.8 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001209/0.00123, allocations: 0.6052 MB / 286.5 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005287/0.001759, allocations: 442.2 kB / 286.9 MB, free: 7.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.612e-05/0.001795, allocations: 7.938 kB / 286.9 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.029e-05/0.001825, allocations: 0 / 286.9 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.001e-05/0.001875, allocations: 15.91 kB / 286.9 MB, free: 7.34 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0004755/0.002351, allocations: 171.2 kB / 287.1 MB, free: 7.172 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.002485, allocations: 83.86 kB / 287.2 MB, free: 7.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.969e-05/0.002515, allocations: 4 kB / 287.2 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.416e-05/0.002599, allocations: 47.95 kB / 287.2 MB, free: 7.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.002653, allocations: 11.92 kB / 287.2 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.002674, allocations: 8 kB / 287.2 MB, free: 7.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.002884, allocations: 135.7 kB / 287.4 MB, free: 6.887 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.00293, allocations: 8 kB / 287.4 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.45e-05/0.002955, allocations: 11.94 kB / 287.4 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.003136, allocations: 131.5 kB / 287.5 MB, free: 6.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.003145, allocations: 0 / 287.5 MB, free: 6.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.003146, allocations: 0 / 287.5 MB, free: 6.738 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.003156, allocations: 0 / 287.5 MB, free: 6.738 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.0004448/0.0036, allocations: 316.9 kB / 287.8 MB, free: 6.395 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.003633, allocations: 12.03 kB / 287.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.003674, allocations: 8.938 kB / 287.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.003812, allocations: 117.8 kB / 288 MB, free: 6.234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.003823, allocations: 12.31 kB / 288 MB, free: 6.223 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.003841, allocations: 8.312 kB / 288 MB, free: 6.215 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.003955, allocations: 82.89 kB / 288.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.003962, allocations: 192 / 288.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.003974, allocations: 384 / 288.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.003979, allocations: 384 / 288.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.686e-05/0.004006, allocations: 15.92 kB / 288.1 MB, free: 6.109 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.553e-05/0.004091, allocations: 67.88 kB / 288.1 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.555e-05/0.004137, allocations: 34.62 kB / 288.2 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.644e-05/0.004153, allocations: 16.8 kB / 288.2 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.004165, allocations: 4 kB / 288.2 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.004292, allocations: 110.2 kB / 288.3 MB, free: 5.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.004293, allocations: 0 / 288.3 MB, free: 5.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001223/0.004415, allocations: 77.67 kB / 288.4 MB, free: 5.758 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.004455, allocations: 59.41 kB / 288.4 MB, free: 5.688 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.189e-05/0.004506, allocations: 106.7 kB / 288.5 MB, free: 5.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.004522, allocations: 29.7 kB / 288.6 MB, free: 5.535 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.454e-05/0.004546, allocations: 84.14 kB / 288.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.004574, allocations: 31.77 kB / 288.7 MB, free: 5.418 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.004606, allocations: 29.69 kB / 288.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.989e-05/0.004676, allocations: 330.7 kB / 289 MB, free: 5.051 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.742e-05/0.004703, allocations: 37.69 kB / 289.1 MB, free: 5.008 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.46e-05/0.004748, allocations: 96.5 kB / 289.2 MB, free: 4.883 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.863e-05/0.004837, allocations: 127.3 kB / 289.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.004839, allocations: 0 / 289.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000104/0.004943, allocations: 144.9 kB / 289.4 MB, free: 4.566 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.004976, allocations: 37.69 kB / 289.5 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.00498, allocations: 0 / 289.5 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.004993, allocations: 8.219 kB / 289.5 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.225e-05/0.005085, allocations: 23.98 kB / 289.5 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.00509, allocations: 4 kB / 289.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.967e-05/0.00512, allocations: 15.89 kB / 289.5 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-06/0.005128, allocations: 7.938 kB / 289.5 MB, free: 4.465 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.0001045/0.005233, allocations: 135.4 kB / 289.7 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/0.005247, allocations: 4 kB / 289.7 MB, free: 4.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.005276, allocations: 8.125 kB / 289.7 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.00528, allocations: 11.98 kB / 289.7 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.005282, allocations: 0 / 289.7 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.005285, allocations: 0 / 289.7 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.529e-05/0.00536, allocations: 73.84 kB / 289.7 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.005361, allocations: 0 / 289.7 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.918e-05/0.00539, allocations: 12.11 kB / 289.8 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.917e-06/0.005399, allocations: 11.89 kB / 289.8 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.005402, allocations: 3.984 kB / 289.8 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-06/0.005407, allocations: 0 / 289.8 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.005411, allocations: 12.05 kB / 289.8 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.005411, allocations: 0 / 289.8 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.151e-05/0.005503, allocations: 98.69 kB / 289.9 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.005519, allocations: 4 kB / 289.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.107e-05/0.0056, allocations: 15.97 kB / 289.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.005619, allocations: 4 kB / 289.9 MB, free: 4.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.00563, allocations: 7.984 kB / 289.9 MB, free: 4.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.195e-05/0.005642, allocations: 12.8 kB / 289.9 MB, free: 4.012 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005642, allocations: 0 / 289.9 MB, free: 4.012 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001837/0.005826, allocations: 43.92 kB / 290 MB, free: 3.969 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.0003541/0.00618, allocations: 192.2 kB / 290.2 MB, free: 3.816 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.006318, allocations: 145.8 kB / 290.3 MB, free: 3.652 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.006326, allocations: 4 kB / 290.3 MB, free: 3.648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.791e-05/0.006354, allocations: 25.5 kB / 290.3 MB, free: 3.621 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.187e-05/0.006436, allocations: 31.84 kB / 290.4 MB, free: 3.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002365/0.006672, allocations: 142.2 kB / 290.5 MB, free: 3.422 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.973e-05/0.006702, allocations: 67.28 kB / 290.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.444e-05/0.006737, allocations: 12.72 kB / 290.6 MB, free: 3.316 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.552e-05/0.006772, allocations: 55.38 kB / 290.6 MB, free: 3.262 MB / 282.7 MB Notification: Performance of SimCode: time 8.72e-07/0.006773, allocations: 0 / 290.6 MB, free: 3.262 MB / 282.7 MB Notification: Performance of Templates: time 0.003437/0.01021, allocations: 2.384 MB / 293 MB, free: 0.9062 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8760020276531577]