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.001294/0.001294, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.003116/0.003116, allocations: 163.4 kB / 25.61 MB, free: 8.582 MB / 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.034/1.034, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] 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.1556/0.1556, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.7 MB " [Timeout remaining time 180] 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.[0-9,]+.|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.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/2.051e-05, allocations: 3.297 kB / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001063/0.001084, allocations: 0.5449 MB / 380.5 MB, free: 22.2 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006281/0.001712, allocations: 438.5 kB / 381 MB, free: 21.77 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.001752, allocations: 0 / 381 MB, free: 21.77 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 8.954e-05/0.001841, allocations: 3.938 kB / 381 MB, free: 21.77 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.001963, allocations: 3.938 kB / 381 MB, free: 21.77 MB / 314.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.0004336/0.002396, allocations: 183.4 kB / 381.2 MB, free: 21.59 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.002523, allocations: 79.84 kB / 381.2 MB, free: 21.51 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.002559, allocations: 7.938 kB / 381.2 MB, free: 21.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.538e-05/0.002624, allocations: 47.94 kB / 381.3 MB, free: 21.45 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.097e-05/0.002675, allocations: 15.92 kB / 381.3 MB, free: 21.44 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.002694, allocations: 4 kB / 381.3 MB, free: 21.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.002862, allocations: 131.7 kB / 381.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.484e-05/0.002907, allocations: 19.97 kB / 381.5 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.748e-05/0.002934, allocations: 27.89 kB / 381.5 MB, free: 21.26 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.003101, allocations: 147.7 kB / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.003103, allocations: 0 / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.003104, allocations: 4 kB / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.003108, allocations: 0 / 381.6 MB, free: 21.11 MB / 314.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.0003673/0.003475, allocations: 434 kB / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.003509, allocations: 12.03 kB / 382.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4e-05/0.003549, allocations: 8.922 kB / 382.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.00366, allocations: 128.5 kB / 382.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.003669, allocations: 384 / 382.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.003685, allocations: 12.38 kB / 382.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.723e-05/0.003782, allocations: 74.91 kB / 382.3 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.003789, allocations: 192 / 382.3 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.003801, allocations: 8.375 kB / 382.3 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.003811, allocations: 8.312 kB / 382.3 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.063e-05/0.003841, allocations: 23.89 kB / 382.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.577e-05/0.003937, allocations: 105.2 kB / 382.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.851e-05/0.003985, allocations: 42.98 kB / 382.5 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.965e-05/0.004005, allocations: 19.67 kB / 382.5 MB, free: 20.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.004017, allocations: 4 kB / 382.5 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.004129, allocations: 113.2 kB / 382.6 MB, free: 20 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 9.91e-07/0.00413, allocations: 0 / 382.6 MB, free: 20 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001702/0.0043, allocations: 101.6 kB / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.00433, allocations: 59.33 kB / 382.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.373e-05/0.004374, allocations: 161.9 kB / 382.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.004388, allocations: 29.7 kB / 383 MB, free: 19.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.169e-05/0.004409, allocations: 130.8 kB / 383.1 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.004435, allocations: 27.83 kB / 383.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.26e-05/0.004468, allocations: 43.34 kB / 383.2 MB, free: 19.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.841e-05/0.004516, allocations: 492.1 kB / 383.6 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.434e-05/0.004541, allocations: 41.62 kB / 383.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.853e-05/0.004579, allocations: 119.2 kB / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.151e-05/0.004661, allocations: 147 kB / 383.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.004663, allocations: 0 / 383.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001193/0.004782, allocations: 168.8 kB / 384.1 MB, free: 18.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.004801, allocations: 29.7 kB / 384.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.004806, allocations: 7.938 kB / 384.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.004817, allocations: 4 kB / 384.1 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.065e-05/0.004898, allocations: 24.05 kB / 384.2 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.004902, allocations: 7.938 kB / 384.2 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.809e-05/0.00493, allocations: 11.94 kB / 384.2 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.004939, allocations: 7.984 kB / 384.2 MB, free: 18.24 MB / 314.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 8.759e-05/0.005027, allocations: 174.3 kB / 384.4 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.005044, allocations: 4 kB / 384.4 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.005076, allocations: 12.11 kB / 384.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.005079, allocations: 4 kB / 384.4 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.005081, allocations: 0 / 384.4 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.005085, allocations: 7.875 kB / 384.4 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.568e-05/0.005151, allocations: 109.2 kB / 384.5 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.005152, allocations: 0 / 384.5 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.67e-05/0.005169, allocations: 4 kB / 384.5 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.00517, allocations: 4 kB / 384.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.005176, allocations: 0 / 384.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.005177, allocations: 0 / 384.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.005178, allocations: 4 kB / 384.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.005286, allocations: 140.2 kB / 384.6 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.095e-06/0.005294, allocations: 15.83 kB / 384.7 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.005308, allocations: 0 / 384.7 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.112e-05/0.00539, allocations: 15.97 kB / 384.7 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.964e-05/0.005409, allocations: 4.188 kB / 384.7 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.00542, allocations: 7.984 kB / 384.7 MB, free: 17.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.914e-05/0.00544, allocations: 127.2 kB / 384.8 MB, free: 17.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.00544, allocations: 4 kB / 384.8 MB, free: 17.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001705/0.00561, allocations: 43.92 kB / 384.9 MB, free: 17.52 MB / 314.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.0003029/0.005913, allocations: 179.9 kB / 385 MB, free: 17.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.006031, allocations: 152.6 kB / 385.2 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.006032, allocations: 0 / 385.2 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.445e-05/0.006057, allocations: 31.66 kB / 385.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001127/0.00617, allocations: 19.92 kB / 385.2 MB, free: 17.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002261/0.006396, allocations: 136.1 kB / 385.4 MB, free: 16.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.343e-05/0.006419, allocations: 67.14 kB / 385.4 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.287e-05/0.006452, allocations: 13.16 kB / 385.4 MB, free: 16.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.006485, allocations: 86.2 kB / 385.5 MB, free: 16.79 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.006486, allocations: 0 / 385.5 MB, free: 16.79 MB / 314.7 MB Notification: Performance of Templates: time 0.003441/0.009927, allocations: 2.389 MB / 387.9 MB, free: 14.44 MB / 314.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] 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","",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.5439630071632564]