Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001512/0.001512, allocations: 92.27 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001756/0.001756, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3698/0.3698, allocations: 34.25 MB / 295.2 MB, free: 0.6562 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.033e-05/1.033e-05, allocations: 0 / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.065e-05/4.098e-05, allocations: 3.578 kB / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001681/0.001722, allocations: 0.5406 MB / 377.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.00276, allocations: 430.3 kB / 378.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.15e-05/0.002792, allocations: 0 / 378.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.57e-05/0.002887, allocations: 3.938 kB / 378.2 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.003019, allocations: 7.984 kB / 378.2 MB, free: 1.949 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0006427/0.003662, allocations: 183.2 kB / 378.4 MB, free: 1.77 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.003845, allocations: 83.84 kB / 378.4 MB, free: 1.688 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.003882, allocations: 0 / 378.4 MB, free: 1.688 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.003983, allocations: 47.95 kB / 378.5 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.789e-05/0.004041, allocations: 19.91 kB / 378.5 MB, free: 1.621 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.004067, allocations: 4 kB / 378.5 MB, free: 1.617 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.004338, allocations: 123.8 kB / 378.6 MB, free: 1.496 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.956e-05/0.004398, allocations: 23.95 kB / 378.6 MB, free: 1.473 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.136e-05/0.004449, allocations: 27.91 kB / 378.7 MB, free: 1.445 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.004719, allocations: 147.6 kB / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.004723, allocations: 0 / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.004723, allocations: 0 / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.004728, allocations: 0 / 378.8 MB, free: 1.301 MB / 346.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.0006279/0.005356, allocations: 343.7 kB / 379.2 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.005392, allocations: 8.031 kB / 379.2 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.724e-05/0.005459, allocations: 4.938 kB / 379.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.005649, allocations: 125.7 kB / 379.3 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.00566, allocations: 384 / 379.3 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.005689, allocations: 16.38 kB / 379.3 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.005916, allocations: 94.12 kB / 379.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.005924, allocations: 192 / 379.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.005944, allocations: 384 / 379.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.005952, allocations: 4.375 kB / 379.4 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.519e-05/0.006027, allocations: 23.92 kB / 379.4 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.006212, allocations: 117.2 kB / 379.5 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.509e-05/0.006307, allocations: 38.56 kB / 379.6 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.241e-05/0.00636, allocations: 24.91 kB / 379.6 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.006379, allocations: 0 / 379.6 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.006676, allocations: 139.2 kB / 379.7 MB, free: 264 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.006678, allocations: 0 / 379.7 MB, free: 264 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004523/0.00713, allocations: 125.5 kB / 379.9 MB, free: 132 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.007179, allocations: 55.41 kB / 379.9 MB, free: 64 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.007294, allocations: 105.8 kB / 380 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.00733, allocations: 29.7 kB / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.007379, allocations: 80.14 kB / 380.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.007421, allocations: 31.78 kB / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.007481, allocations: 41.7 kB / 380.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.007647, allocations: 314.8 kB / 380.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.638e-05/0.007723, allocations: 53.62 kB / 380.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.007857, allocations: 107.2 kB / 380.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.008084, allocations: 144.4 kB / 380.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.008087, allocations: 4 kB / 380.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002839/0.00837, allocations: 192.8 kB / 381 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.008412, allocations: 33.7 kB / 381 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.008418, allocations: 0 / 381 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.00844, allocations: 4 kB / 381 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.008548, allocations: 15.98 kB / 381 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.008559, allocations: 7.938 kB / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.864e-05/0.008617, allocations: 20.11 kB / 381.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.00863, allocations: 4 kB / 381.1 MB, free: 14.77 MB / 362.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.000181/0.008811, allocations: 125.8 kB / 381.2 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.008847, allocations: 8 kB / 381.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.008878, allocations: 8.125 kB / 381.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.008879, allocations: 0 / 381.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.008888, allocations: 8 kB / 381.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.008894, allocations: 4.172 kB / 381.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.009037, allocations: 117.3 kB / 381.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.009039, allocations: 0 / 381.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.014e-05/0.009079, allocations: 11.97 kB / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.009083, allocations: 7.938 kB / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.009092, allocations: 0 / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.009094, allocations: 0 / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.009095, allocations: 0 / 381.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.009346, allocations: 133 kB / 381.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.441e-05/0.009361, allocations: 11.89 kB / 381.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.009383, allocations: 7.984 kB / 381.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.009588, allocations: 19.97 kB / 381.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.009624, allocations: 11.88 kB / 381.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.009647, allocations: 15.92 kB / 381.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.226e-05/0.009699, allocations: 79.28 kB / 381.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009699, allocations: 0 / 381.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003058/0.01001, allocations: 43.92 kB / 381.7 MB, free: 14.12 MB / 362.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.0004942/0.0105, allocations: 182.5 kB / 381.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002767/0.01078, allocations: 156.9 kB / 382 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01078, allocations: 0 / 382 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.252e-05/0.01084, allocations: 27.97 kB / 382 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.01102, allocations: 15.98 kB / 382.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.01143, allocations: 148.4 kB / 382.2 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.061e-05/0.01152, allocations: 71.72 kB / 382.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.338e-05/0.01157, allocations: 20.7 kB / 382.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.0116, allocations: 16.44 kB / 382.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of SimCode: time 3.8e-07/0.0116, allocations: 0 / 382.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of Templates: time 0.005814/0.01742, allocations: 2.101 MB / 384.4 MB, free: 11.35 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.088928042910993]