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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 97.02 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.001421, allocations: 205.9 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.7 MB / 247.5 MB, free: 11.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1924/0.1924, allocations: 46.19 MB / 345.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002844, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 63.56 MB / 483.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006009/0.1044, allocations: 266.8 kB / 484 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008363/0.1052, allocations: 429.4 kB / 484.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.698e-05/0.1053, allocations: 0 / 484.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.773e-05/0.1054, allocations: 0 / 484.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.1055, allocations: 15.98 kB / 484.4 MB, free: 3.465 MB / 350.1 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.0005162/0.106, allocations: 147.7 kB / 484.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.1062, allocations: 75.84 kB / 484.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.1062, allocations: 4 kB / 484.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.227e-05/0.1063, allocations: 43.89 kB / 484.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.733e-05/0.1063, allocations: 15.92 kB / 484.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.1064, allocations: 4 kB / 484.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.1066, allocations: 95.84 kB / 484.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.859e-05/0.1066, allocations: 23.95 kB / 484.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.1067, allocations: 49.61 kB / 484.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.1068, allocations: 95.73 kB / 485 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1069, allocations: 4 kB / 485 MB, free: 2.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1069, allocations: 0 / 485 MB, free: 2.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.1069, allocations: 0 / 485 MB, free: 2.91 MB / 350.1 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.0004459/0.1073, allocations: 377.2 kB / 485.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.1074, allocations: 8.031 kB / 485.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.334e-05/0.1074, allocations: 4.938 kB / 485.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.1076, allocations: 180.3 kB / 485.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.1076, allocations: 384 / 485.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.1076, allocations: 8.375 kB / 485.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.1078, allocations: 98.12 kB / 485.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.1078, allocations: 192 / 485.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.1078, allocations: 3.938 kB / 485.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1078, allocations: 0 / 485.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.33e-05/0.1079, allocations: 31.97 kB / 485.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.1081, allocations: 169.9 kB / 485.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.355e-05/0.1082, allocations: 46.64 kB / 485.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.615e-05/0.1082, allocations: 24.98 kB / 485.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.1083, allocations: 7.984 kB / 485.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.1085, allocations: 127.2 kB / 486 MB, free: 1.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.1085, allocations: 0 / 486 MB, free: 1.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002706/0.1088, allocations: 129.5 kB / 486.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.1088, allocations: 59.41 kB / 486.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.291e-05/0.1089, allocations: 97.86 kB / 486.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1089, allocations: 33.69 kB / 486.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/0.109, allocations: 84.14 kB / 486.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.211e-05/0.109, allocations: 23.66 kB / 486.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.1091, allocations: 21.7 kB / 486.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.1092, allocations: 310.8 kB / 486.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.799e-05/0.1092, allocations: 27.98 kB / 486.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.49e-05/0.1093, allocations: 78.78 kB / 486.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.1095, allocations: 148.7 kB / 487 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1095, allocations: 0 / 487 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002145/0.1097, allocations: 155.4 kB / 487.2 MB, free: 416 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.1097, allocations: 45.58 kB / 487.2 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1098, allocations: 0 / 487.2 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1098, allocations: 4 kB / 487.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1099, allocations: 23.92 kB / 487.3 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.1099, allocations: 4 kB / 487.3 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.765e-05/0.11, allocations: 3.906 kB / 487.3 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.11, allocations: 8 kB / 487.3 MB, free: 320 kB / 350.1 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.0001378/0.1101, allocations: 137.7 kB / 487.4 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.1101, allocations: 7.938 kB / 487.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.984e-05/0.1102, allocations: 7.969 kB / 487.4 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1102, allocations: 192 / 487.4 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1102, allocations: 0 / 487.4 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1102, allocations: 11.97 kB / 487.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.1104, allocations: 173.5 kB / 487.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1104, allocations: 0 / 487.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.658e-05/0.1104, allocations: 7.984 kB / 487.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1104, allocations: 3.938 kB / 487.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1104, allocations: 4 kB / 487.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1105, allocations: 4.062 kB / 487.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1105, allocations: 4 kB / 487.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.1107, allocations: 129 kB / 487.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.1107, allocations: 88.95 kB / 487.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.1107, allocations: 0 / 487.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.111, allocations: 27.97 kB / 487.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/0.111, allocations: 11.98 kB / 487.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.111, allocations: 4 kB / 487.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.031e-05/0.111, allocations: 75.28 kB / 488 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1111, allocations: 0 / 488 MB, free: 15.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.1113, allocations: 47.98 kB / 488 MB, free: 15.48 MB / 366.1 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.0003598/0.1117, allocations: 187.5 kB / 488.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001813/0.1119, allocations: 127.3 kB / 488.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1119, allocations: 0 / 488.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.462e-05/0.112, allocations: 35.86 kB / 488.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.1122, allocations: 12.42 kB / 488.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003531/0.1125, allocations: 180.5 kB / 488.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.1127, allocations: 0.6815 MB / 489.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/0.1128, allocations: 11.44 kB / 489.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1128, allocations: 4 kB / 489.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of Templates: time 0.003578/0.1164, allocations: 1.798 MB / 491 MB, free: 12.4 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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