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.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.00137/0.00137, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001192/0.001192, allocations: 177.1 kB / 24.91 MB, free: 8.766 MB / 18.57 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 1.03/1.03, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.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.2708/0.2708, allocations: 32.81 MB / 294.6 MB, free: 1.176 MB / 266.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.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.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: 3.938 kB / 323.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.017e-05/3.18e-05, allocations: 3.156 kB / 323.3 MB, free: 9.637 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001894/0.001926, allocations: 0.5755 MB / 323.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008365/0.002762, allocations: 442.2 kB / 324.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.02e-05/0.002812, allocations: 0 / 324.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.002931, allocations: 3.938 kB / 324.3 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.003092, allocations: 11.98 kB / 324.3 MB, free: 8.613 MB / 298.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.0006609/0.003753, allocations: 175.2 kB / 324.5 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.003911, allocations: 79.86 kB / 324.6 MB, free: 8.363 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.93e-05/0.00395, allocations: 0.625 kB / 324.6 MB, free: 8.363 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.111e-05/0.004031, allocations: 51.94 kB / 324.6 MB, free: 8.312 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.122e-05/0.004092, allocations: 19.91 kB / 324.6 MB, free: 8.293 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.004115, allocations: 4 kB / 324.6 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002715/0.004386, allocations: 143.7 kB / 324.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.00444, allocations: 23.97 kB / 324.8 MB, free: 8.125 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.011e-05/0.00447, allocations: 11.98 kB / 324.8 MB, free: 8.113 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.004704, allocations: 155.5 kB / 325 MB, free: 7.961 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004707, allocations: 0 / 325 MB, free: 7.961 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.004708, allocations: 0 / 325 MB, free: 7.961 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.004713, allocations: 0 / 325 MB, free: 7.961 MB / 298.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.0004495/0.005162, allocations: 310.4 kB / 325.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.005201, allocations: 8.031 kB / 325.3 MB, free: 7.617 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.726e-05/0.005238, allocations: 4.938 kB / 325.3 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.005387, allocations: 129.7 kB / 325.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.005398, allocations: 8.375 kB / 325.4 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.005412, allocations: 8.375 kB / 325.4 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.005524, allocations: 90.88 kB / 325.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.005531, allocations: 192 / 325.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.005543, allocations: 384 / 325.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.005548, allocations: 384 / 325.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.929e-05/0.005577, allocations: 15.92 kB / 325.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001098/0.005687, allocations: 71.81 kB / 325.6 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.705e-05/0.005744, allocations: 34.5 kB / 325.6 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.109e-05/0.005765, allocations: 12.86 kB / 325.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.005777, allocations: 0 / 325.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001465/0.005924, allocations: 122.2 kB / 325.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.005925, allocations: 0 / 325.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001406/0.006066, allocations: 65.67 kB / 325.8 MB, free: 6.984 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.00611, allocations: 67.33 kB / 325.9 MB, free: 6.906 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.12e-05/0.006171, allocations: 102.7 kB / 326 MB, free: 6.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.006191, allocations: 29.7 kB / 326 MB, free: 6.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.006218, allocations: 80.14 kB / 326.1 MB, free: 6.676 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.006251, allocations: 31.77 kB / 326.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.006288, allocations: 33.7 kB / 326.2 MB, free: 6.605 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.575e-05/0.006374, allocations: 322.8 kB / 326.5 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.385e-05/0.006408, allocations: 37.69 kB / 326.5 MB, free: 6.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.878e-05/0.006467, allocations: 92.55 kB / 326.6 MB, free: 6.117 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.00657, allocations: 127.2 kB / 326.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.006573, allocations: 0 / 326.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001284/0.006701, allocations: 144.9 kB / 326.9 MB, free: 5.801 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.006731, allocations: 37.69 kB / 326.9 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.006737, allocations: 0 / 326.9 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.006751, allocations: 4 kB / 326.9 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.911e-05/0.00684, allocations: 23.98 kB / 326.9 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.006847, allocations: 7.938 kB / 326.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.159e-05/0.006879, allocations: 20.05 kB / 327 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.006889, allocations: 8 kB / 327 MB, free: 5.695 MB / 298.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.0001262/0.007015, allocations: 120.6 kB / 327.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.007036, allocations: 11.98 kB / 327.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.007069, allocations: 8.125 kB / 327.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.007072, allocations: 0 / 327.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.007075, allocations: 3.984 kB / 327.1 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.007078, allocations: 0 / 327.1 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.007184, allocations: 93.83 kB / 327.2 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.007186, allocations: 0 / 327.2 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.643e-05/0.007223, allocations: 7.984 kB / 327.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.007226, allocations: 0 / 327.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.007233, allocations: 0 / 327.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.007236, allocations: 0 / 327.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.007238, allocations: 0 / 327.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.007374, allocations: 102.8 kB / 327.3 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.52e-05/0.007389, allocations: 8.562 kB / 327.3 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.007414, allocations: 11.98 kB / 327.3 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.556e-05/0.00751, allocations: 11.98 kB / 327.3 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.688e-05/0.007537, allocations: 7.984 kB / 327.3 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.007553, allocations: 11.98 kB / 327.4 MB, free: 5.254 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.462e-05/0.007568, allocations: 8.797 kB / 327.4 MB, free: 5.242 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007568, allocations: 0 / 327.4 MB, free: 5.242 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002584/0.007826, allocations: 39.94 kB / 327.4 MB, free: 5.203 MB / 298.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.0005045/0.008331, allocations: 191 kB / 327.6 MB, free: 5.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002123/0.008543, allocations: 133.8 kB / 327.7 MB, free: 4.902 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.00855, allocations: 0 / 327.7 MB, free: 4.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.411e-05/0.008594, allocations: 28.83 kB / 327.7 MB, free: 4.871 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.008724, allocations: 22.31 kB / 327.8 MB, free: 4.852 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003688/0.009093, allocations: 139.9 kB / 327.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.589e-05/0.009139, allocations: 59.36 kB / 328 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.187e-05/0.009191, allocations: 21.09 kB / 328 MB, free: 4.586 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.009245, allocations: 59.36 kB / 328 MB, free: 4.527 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.009246, allocations: 0 / 328 MB, free: 4.527 MB / 298.7 MB Notification: Performance of Templates: time 0.004893/0.01414, allocations: 2.342 MB / 330.4 MB, free: 2.219 MB / 298.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.000754572916776]