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.001318/0.001318, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 247.4 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2359/0.2359, allocations: 46.1 MB / 344.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 80.14 kB / 418.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1382, allocations: 62.44 MB / 480.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001863/0.1401, allocations: 0.5309 MB / 481.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008884/0.141, allocations: 445.2 kB / 481.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.446e-05/0.1411, allocations: 0 / 481.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.874e-05/0.1412, allocations: 3.938 kB / 481.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.1413, allocations: 7.984 kB / 481.7 MB, free: 4.316 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.00062/0.142, allocations: 163.5 kB / 481.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001515/0.1421, allocations: 79.86 kB / 481.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.616e-05/0.1422, allocations: 11.98 kB / 481.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.672e-05/0.1423, allocations: 39.91 kB / 482 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.691e-05/0.1423, allocations: 19.91 kB / 482 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.1424, allocations: 4 kB / 482 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.1426, allocations: 95.84 kB / 482.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.1426, allocations: 19.97 kB / 482.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.137e-05/0.1427, allocations: 27.89 kB / 482.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.1429, allocations: 131.7 kB / 482.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1429, allocations: 0 / 482.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.143, allocations: 0 / 482.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.143, allocations: 4 kB / 482.3 MB, free: 3.73 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.0005484/0.1435, allocations: 397.1 kB / 482.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.1436, allocations: 12.03 kB / 482.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.084e-05/0.1436, allocations: 12.92 kB / 482.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.1438, allocations: 180.3 kB / 482.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1438, allocations: 8.312 kB / 482.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.1439, allocations: 4.375 kB / 482.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.1441, allocations: 90.19 kB / 482.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1441, allocations: 192 / 482.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.1441, allocations: 11.94 kB / 483 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1441, allocations: 0 / 483 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.739e-05/0.1442, allocations: 19.98 kB / 483 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.1444, allocations: 173.8 kB / 483.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.998e-05/0.1445, allocations: 58.47 kB / 483.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.43e-05/0.1446, allocations: 20.86 kB / 483.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.1446, allocations: 4 kB / 483.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.1449, allocations: 131.3 kB / 483.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.883e-06/0.1449, allocations: 0 / 483.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003806/0.1453, allocations: 121.5 kB / 483.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.1453, allocations: 59.41 kB / 483.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.059e-05/0.1454, allocations: 101.8 kB / 483.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.1454, allocations: 29.7 kB / 483.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.1455, allocations: 80.14 kB / 483.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.1455, allocations: 35.78 kB / 483.8 MB, free: 2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.345e-05/0.1456, allocations: 29.7 kB / 483.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1457, allocations: 318.8 kB / 484.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.803e-05/0.1457, allocations: 23.92 kB / 484.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.148e-05/0.1458, allocations: 78.84 kB / 484.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.146, allocations: 144.4 kB / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.146, allocations: 0 / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002277/0.1463, allocations: 159.1 kB / 484.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.1463, allocations: 40.14 kB / 484.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1463, allocations: 224 / 484.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1464, allocations: 8 kB / 484.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1465, allocations: 19.92 kB / 484.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1465, allocations: 4 kB / 484.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.162e-05/0.1465, allocations: 11.91 kB / 484.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.1466, allocations: 4 kB / 484.6 MB, free: 1.09 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.0001341/0.1467, allocations: 129.7 kB / 484.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.1467, allocations: 7.938 kB / 484.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.378e-05/0.1468, allocations: 11.97 kB / 484.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1468, allocations: 0 / 484.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.1468, allocations: 8.062 kB / 484.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1468, allocations: 0 / 484.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.147, allocations: 173.5 kB / 484.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.147, allocations: 4.219 kB / 484.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/0.147, allocations: 4 kB / 484.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.147, allocations: 3.938 kB / 484.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.147, allocations: 11.92 kB / 484.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.147, allocations: 0 / 484.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.147, allocations: 4 kB / 484.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.1473, allocations: 125 kB / 485.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.1474, allocations: 88.95 kB / 485.2 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.1474, allocations: 8 kB / 485.2 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.1476, allocations: 15.97 kB / 485.2 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.1476, allocations: 7.984 kB / 485.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.1477, allocations: 8 kB / 485.2 MB, free: 404 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.759e-05/0.1477, allocations: 79.47 kB / 485.3 MB, free: 324 kB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1477, allocations: 0 / 485.3 MB, free: 324 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.148, allocations: 43.98 kB / 485.3 MB, free: 280 kB / 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.0003707/0.1484, allocations: 176.9 kB / 485.5 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002314/0.1486, allocations: 143.4 kB / 485.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1486, allocations: 0 / 485.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.345e-05/0.1487, allocations: 35.91 kB / 485.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.1489, allocations: 8 kB / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003624/0.1492, allocations: 167 kB / 485.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.1495, allocations: 0.6846 MB / 486.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.972e-05/0.1495, allocations: 11.44 kB / 486.5 MB, free: 15 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1495, allocations: 3.938 kB / 486.5 MB, free: 15 MB / 366.1 MB Notification: Performance of Templates: time 0.003717/0.1533, allocations: 1.807 MB / 488.3 MB, free: 13.19 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