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.0009902/0.0009902, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.001087/0.001087, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.055/1.055, allocations: 177.1 MB / 205 MB, free: 5.562 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.3162/0.3162, allocations: 32.8 MB / 294.3 MB, free: 1.27 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.333e-06/1.333e-06, allocations: 0 / 376 MB, free: 4.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.067e-05, allocations: 5.406 kB / 376 MB, free: 4.648 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001095/0.001116, allocations: 0.5552 MB / 376.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007004/0.001816, allocations: 442.5 kB / 377 MB, free: 3.656 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.889e-05/0.001855, allocations: 3.938 kB / 377 MB, free: 3.652 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.781e-05/0.001953, allocations: 3.938 kB / 377 MB, free: 3.648 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001426/0.002095, allocations: 8 kB / 377 MB, free: 3.641 MB / 346.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.0005516/0.002647, allocations: 179.3 kB / 377.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.002799, allocations: 79.86 kB / 377.3 MB, free: 3.387 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.427e-05/0.002833, allocations: 0 / 377.3 MB, free: 3.387 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.818e-05/0.002912, allocations: 51.89 kB / 377.3 MB, free: 3.336 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.22e-05/0.002964, allocations: 15.97 kB / 377.3 MB, free: 3.32 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.002985, allocations: 4 kB / 377.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.003174, allocations: 127.7 kB / 377.5 MB, free: 3.191 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.669e-05/0.00322, allocations: 27.91 kB / 377.5 MB, free: 3.164 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.003259, allocations: 23.95 kB / 377.5 MB, free: 3.141 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.003465, allocations: 159.5 kB / 377.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003467, allocations: 0 / 377.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.003468, allocations: 0 / 377.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.003472, allocations: 0 / 377.7 MB, free: 2.984 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.0004852/0.003957, allocations: 434.1 kB / 378.1 MB, free: 2.516 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.003993, allocations: 8.031 kB / 378.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.82e-05/0.004051, allocations: 8.938 kB / 378.1 MB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.004217, allocations: 128.5 kB / 378.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.004231, allocations: 8.359 kB / 378.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.00425, allocations: 8.375 kB / 378.3 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.004408, allocations: 90.84 kB / 378.3 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.004416, allocations: 192 / 378.3 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.004435, allocations: 8.359 kB / 378.3 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.004444, allocations: 384 / 378.3 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.738e-05/0.004491, allocations: 19.92 kB / 378.4 MB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.004626, allocations: 120.6 kB / 378.5 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.624e-05/0.004692, allocations: 47.05 kB / 378.5 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.982e-05/0.004722, allocations: 19.67 kB / 378.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.004735, allocations: 4 kB / 378.6 MB, free: 1.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.004886, allocations: 121 kB / 378.7 MB, free: 1.836 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.004888, allocations: 0 / 378.7 MB, free: 1.836 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002613/0.005149, allocations: 109.5 kB / 378.8 MB, free: 1.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.005202, allocations: 59.39 kB / 378.8 MB, free: 1.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.538e-05/0.005298, allocations: 161.9 kB / 379 MB, free: 1.477 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.005318, allocations: 29.7 kB / 379 MB, free: 1.441 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/0.005368, allocations: 126.9 kB / 379.1 MB, free: 1.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.637e-05/0.005404, allocations: 39.72 kB / 379.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.005449, allocations: 43.3 kB / 379.2 MB, free: 1.223 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.005594, allocations: 496.1 kB / 379.7 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.858e-05/0.005652, allocations: 41.69 kB / 379.8 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.121e-05/0.005733, allocations: 115.2 kB / 379.9 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.005885, allocations: 151.1 kB / 380 MB, free: 348 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.005888, allocations: 0 / 380 MB, free: 348 kB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001779/0.006066, allocations: 172.8 kB / 380.2 MB, free: 156 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.006101, allocations: 37.7 kB / 380.2 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.00611, allocations: 3.984 kB / 380.2 MB, free: 108 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.006129, allocations: 4 kB / 380.2 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.006245, allocations: 20 kB / 380.2 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.006254, allocations: 12.14 kB / 380.3 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.224e-05/0.006287, allocations: 11.89 kB / 380.3 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.006298, allocations: 8 kB / 380.3 MB, free: 52 kB / 346.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.0001542/0.006453, allocations: 168.6 kB / 380.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.12e-05/0.006474, allocations: 8 kB / 380.5 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/0.006509, allocations: 12.11 kB / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.006512, allocations: 0 / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.006519, allocations: 3.938 kB / 380.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.006523, allocations: 7.938 kB / 380.5 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/0.006635, allocations: 132.7 kB / 380.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.006636, allocations: 0 / 380.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-05/0.006662, allocations: 11.94 kB / 380.6 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.006664, allocations: 0 / 380.6 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.006675, allocations: 7.984 kB / 380.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.006675, allocations: 0 / 380.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.006678, allocations: 0 / 380.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.006844, allocations: 128.4 kB / 380.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.789e-06/0.006854, allocations: 7.953 kB / 380.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.006879, allocations: 7.984 kB / 380.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.006979, allocations: 16.11 kB / 380.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.007016, allocations: 15.97 kB / 380.8 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.007031, allocations: 7.938 kB / 380.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.725e-05/0.007078, allocations: 119.2 kB / 380.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007078, allocations: 0 / 380.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002194/0.007297, allocations: 47.92 kB / 381 MB, free: 15.3 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.0003682/0.007666, allocations: 194.5 kB / 381.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000202/0.007868, allocations: 148.6 kB / 381.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.007872, allocations: 7.938 kB / 381.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.007909, allocations: 27.67 kB / 381.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.008058, allocations: 19.97 kB / 381.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000355/0.008413, allocations: 146.2 kB / 381.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.332e-05/0.008456, allocations: 59.73 kB / 381.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.242e-05/0.008498, allocations: 20.66 kB / 381.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.008523, allocations: 20.48 kB / 381.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.008524, allocations: 0 / 381.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of Templates: time 0.004317/0.01284, allocations: 2.328 MB / 383.9 MB, free: 12.3 MB / 362.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 -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.4620665665715933]