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.001656/0.001656, allocations: 113.3 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00193/0.00193, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2331/0.2331, allocations: 46.12 MB / 344.5 MB, free: 11.72 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 81.27 kB / 417.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1154, allocations: 62.45 MB / 480.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002091/0.1175, allocations: 0.5982 MB / 480.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009332/0.1185, allocations: 434.7 kB / 481.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.108e-05/0.1185, allocations: 0 / 481.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.543e-05/0.1186, allocations: 0 / 481.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.1188, allocations: 7.938 kB / 481.3 MB, free: 4.527 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.0006328/0.1194, allocations: 155.2 kB / 481.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.1196, allocations: 79.86 kB / 481.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.973e-05/0.1196, allocations: 7.984 kB / 481.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.232e-05/0.1197, allocations: 39.91 kB / 481.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.77e-05/0.1198, allocations: 23.84 kB / 481.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.1198, allocations: 4 kB / 481.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002136/0.12, allocations: 95.91 kB / 481.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.734e-05/0.1201, allocations: 27.95 kB / 481.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.987e-05/0.1202, allocations: 27.84 kB / 481.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.1204, allocations: 83.8 kB / 481.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1204, allocations: 0 / 481.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1204, allocations: 0 / 481.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1204, allocations: 0 / 481.8 MB, free: 3.996 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.0006805/0.1211, allocations: 409.1 kB / 482.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.1211, allocations: 12.03 kB / 482.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.152e-05/0.1212, allocations: 4.938 kB / 482.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.1214, allocations: 184.2 kB / 482.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.1215, allocations: 4.375 kB / 482.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.1215, allocations: 4.375 kB / 482.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.1217, allocations: 94.19 kB / 482.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1217, allocations: 192 / 482.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.1218, allocations: 3.938 kB / 482.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.1218, allocations: 0 / 482.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.095e-05/0.1219, allocations: 19.98 kB / 482.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000244/0.1221, allocations: 177.8 kB / 482.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.1222, allocations: 50.5 kB / 482.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.486e-05/0.1223, allocations: 28.91 kB / 482.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.1223, allocations: 4 kB / 482.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.1226, allocations: 127.3 kB / 482.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.1226, allocations: 4 kB / 482.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003426/0.123, allocations: 125.7 kB / 483 MB, free: 2.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.1231, allocations: 59.33 kB / 483.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.84e-05/0.1232, allocations: 97.86 kB / 483.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.1232, allocations: 29.7 kB / 483.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.1233, allocations: 88.12 kB / 483.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.1233, allocations: 23.66 kB / 483.3 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.952e-05/0.1234, allocations: 37.7 kB / 483.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1235, allocations: 314.8 kB / 483.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.126e-05/0.1236, allocations: 31.97 kB / 483.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.1237, allocations: 69.81 kB / 483.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.1239, allocations: 144.4 kB / 483.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1239, allocations: 0 / 483.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002618/0.1242, allocations: 171 kB / 484.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.1243, allocations: 40.3 kB / 484.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1243, allocations: 0 / 484.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1243, allocations: 4 kB / 484.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1244, allocations: 15.98 kB / 484.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.1244, allocations: 7.938 kB / 484.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.519e-05/0.1245, allocations: 7.906 kB / 484.1 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1245, allocations: 8 kB / 484.1 MB, free: 1.348 MB / 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.0001661/0.1247, allocations: 134 kB / 484.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.1247, allocations: 8.125 kB / 484.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.436e-05/0.1248, allocations: 3.969 kB / 484.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1248, allocations: 3.984 kB / 484.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1248, allocations: 3.984 kB / 484.3 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1248, allocations: 4 kB / 484.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001945/0.125, allocations: 177.5 kB / 484.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.125, allocations: 4 kB / 484.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.479e-05/0.1251, allocations: 11.92 kB / 484.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.1251, allocations: 3.938 kB / 484.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1251, allocations: 8.062 kB / 484.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1251, allocations: 0 / 484.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1251, allocations: 0 / 484.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.1254, allocations: 125.1 kB / 484.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.493e-05/0.1254, allocations: 88.95 kB / 484.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.1255, allocations: 3.984 kB / 484.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.1257, allocations: 23.92 kB / 484.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.1257, allocations: 3.984 kB / 484.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.1257, allocations: 8 kB / 484.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.734e-05/0.1258, allocations: 83.27 kB / 484.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1258, allocations: 0 / 484.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.1261, allocations: 40 kB / 484.9 MB, free: 0.5273 MB / 350.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.0004694/0.1266, allocations: 178.5 kB / 485 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002402/0.1269, allocations: 131.2 kB / 485.2 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1269, allocations: 3.938 kB / 485.2 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.861e-05/0.1269, allocations: 28.42 kB / 485.2 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001749/0.1271, allocations: 15.98 kB / 485.2 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004007/0.1275, allocations: 170.5 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.1279, allocations: 0.685 MB / 486.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.1279, allocations: 19.42 kB / 486.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1279, allocations: 0 / 486.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of Templates: time 0.004426/0.1324, allocations: 1.799 MB / 487.9 MB, free: 13.44 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