Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0008138/0.0008138, allocations: 84.44 kB / 20.69 MB, free: 3.871 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.0008104/0.0008104, allocations: 174.3 kB / 23.97 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8214/0.8214, allocations: 158.6 MB / 185.7 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1319/0.1319, allocations: 32.38 MB / 270.4 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 3.938 kB / 408.1 MB, free: 1.73 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.922e-05/2.063e-05, allocations: 5.938 kB / 408.1 MB, free: 1.727 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0009916/0.001012, allocations: 0.5299 MB / 408.6 MB, free: 1.199 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007241/0.001736, allocations: 444.9 kB / 409.1 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.001781, allocations: 4 kB / 409.1 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.997e-05/0.001881, allocations: 0 / 409.1 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.002041, allocations: 7.922 kB / 409.1 MB, free: 0.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005155/0.002556, allocations: 179.4 kB / 409.3 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.002692, allocations: 83.78 kB / 409.3 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.916e-05/0.002731, allocations: 7.938 kB / 409.3 MB, free: 496 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.945e-05/0.0028, allocations: 43.95 kB / 409.4 MB, free: 452 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.004185, allocations: 473.6 kB / 409.9 MB, free: 20 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.004213, allocations: 0 / 409.9 MB, free: 20 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.352e-05/0.004266, allocations: 19.98 kB / 409.9 MB, free: 0 / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.402e-05/0.00431, allocations: 24.02 kB / 409.9 MB, free: 15.97 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.576e-05/0.004346, allocations: 23.91 kB / 409.9 MB, free: 15.95 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.004511, allocations: 83.73 kB / 410 MB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.004513, allocations: 0 / 410 MB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.004514, allocations: 0 / 410 MB, free: 15.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.004517, allocations: 4 kB / 410 MB, free: 15.86 MB / 394.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.0004251/0.004942, allocations: 320 kB / 410.3 MB, free: 15.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.004976, allocations: 8.031 kB / 410.3 MB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.515e-05/0.005022, allocations: 8.891 kB / 410.3 MB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.005156, allocations: 117.8 kB / 410.4 MB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.005164, allocations: 384 / 410.4 MB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-06/0.005174, allocations: 4.375 kB / 410.5 MB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.00532, allocations: 90.19 kB / 410.5 MB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.005328, allocations: 8.062 kB / 410.5 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.005342, allocations: 4.375 kB / 410.6 MB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.005347, allocations: 8.375 kB / 410.6 MB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.072e-05/0.005398, allocations: 27.91 kB / 410.6 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000121/0.005519, allocations: 101.3 kB / 410.7 MB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.675e-05/0.005586, allocations: 42.56 kB / 410.7 MB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.97e-05/0.005615, allocations: 20.84 kB / 410.7 MB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.00563, allocations: 4.062 kB / 410.8 MB, free: 15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.005779, allocations: 135.4 kB / 410.9 MB, free: 14.86 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 9.02e-07/0.00578, allocations: 0 / 410.9 MB, free: 14.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002285/0.006009, allocations: 129.5 kB / 411 MB, free: 14.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.006041, allocations: 55.41 kB / 411.1 MB, free: 14.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.791e-05/0.006099, allocations: 105.8 kB / 411.2 MB, free: 14.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.006115, allocations: 25.7 kB / 411.2 MB, free: 14.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.968e-05/0.006144, allocations: 88.14 kB / 411.3 MB, free: 14.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.00617, allocations: 23.84 kB / 411.3 MB, free: 14.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.006204, allocations: 29.7 kB / 411.3 MB, free: 14.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.948e-05/0.006283, allocations: 318.8 kB / 411.6 MB, free: 14.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.255e-05/0.006326, allocations: 49.62 kB / 411.7 MB, free: 13.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.526e-05/0.006391, allocations: 104.8 kB / 411.8 MB, free: 13.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.006534, allocations: 156.4 kB / 411.9 MB, free: 13.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.006537, allocations: 0 / 411.9 MB, free: 13.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001473/0.006684, allocations: 196.8 kB / 412.1 MB, free: 13.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.006707, allocations: 29.7 kB / 412.2 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.006715, allocations: 4 kB / 412.2 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.006728, allocations: 0 / 412.2 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.521e-05/0.006823, allocations: 20.11 kB / 412.2 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.006831, allocations: 7.938 kB / 412.2 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.684e-05/0.006858, allocations: 7.953 kB / 412.2 MB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.006867, allocations: 8 kB / 412.2 MB, free: 13.38 MB / 394.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.0001014/0.006969, allocations: 134 kB / 412.3 MB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.006985, allocations: 7.953 kB / 412.4 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.007015, allocations: 12.12 kB / 412.4 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.007017, allocations: 0 / 412.4 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.007023, allocations: 3.938 kB / 412.4 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.007027, allocations: 0 / 412.4 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.48e-05/0.007111, allocations: 113.3 kB / 412.5 MB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.007113, allocations: 0 / 412.5 MB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-05/0.007129, allocations: 7.984 kB / 412.5 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.007131, allocations: 4 kB / 412.5 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.007139, allocations: 0 / 412.5 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.00714, allocations: 7.984 kB / 412.5 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.007141, allocations: 0 / 412.5 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.007272, allocations: 137 kB / 412.6 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-06/0.007282, allocations: 15.89 kB / 412.6 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.007295, allocations: 4 kB / 412.7 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.623e-05/0.007392, allocations: 15.97 kB / 412.7 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.586e-05/0.007417, allocations: 11.98 kB / 412.7 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.007428, allocations: 4 kB / 412.7 MB, free: 12.86 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.83e-05/0.007457, allocations: 83.27 kB / 412.8 MB, free: 12.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007457, allocations: 4 kB / 412.8 MB, free: 12.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001585/0.007615, allocations: 27.94 kB / 412.8 MB, free: 12.74 MB / 394.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.0002018/0.007817, allocations: 123.4 kB / 412.9 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001543/0.007971, allocations: 149 kB / 413.1 MB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.007973, allocations: 0 / 413.1 MB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.269e-05/0.008006, allocations: 23.98 kB / 413.1 MB, free: 12.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001153/0.008121, allocations: 28.25 kB / 413.1 MB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.008405, allocations: 170.3 kB / 413.3 MB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.828e-05/0.008453, allocations: 71.28 kB / 413.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.35e-05/0.008476, allocations: 16.48 kB / 413.4 MB, free: 12.09 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.008477, allocations: 0 / 413.4 MB, free: 12.09 MB / 394.7 MB Notification: Performance of Templates: time 0.002073/0.01055, allocations: 1.307 MB / 414.7 MB, free: 10.78 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y [Calling sys.exit(0), Time elapsed: 4.59298930875957]