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.0009002/0.0009001, allocations: 93.38 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 207.8 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2233/0.2233, allocations: 46.18 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 8 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1343, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008025/0.1352, allocations: 266.7 kB / 483.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009356/0.1361, allocations: 437.4 kB / 483.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.174e-05/0.1361, allocations: 0 / 483.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.971e-05/0.1362, allocations: 0 / 483.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.1364, allocations: 4 kB / 483.8 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.0005084/0.1369, allocations: 155.3 kB / 483.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.137, allocations: 87.77 kB / 484 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.709e-05/0.1371, allocations: 4 kB / 484 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.21e-05/0.1371, allocations: 35.91 kB / 484 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.05e-05/0.1372, allocations: 23.91 kB / 484.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.1373, allocations: 4 kB / 484.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.1375, allocations: 91.84 kB / 484.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.308e-05/0.1375, allocations: 19.97 kB / 484.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.189e-05/0.1376, allocations: 57.59 kB / 484.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1378, allocations: 127.7 kB / 484.4 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1379, allocations: 4 kB / 484.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1379, allocations: 0 / 484.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1379, allocations: 0 / 484.4 MB, free: 2.863 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.0005094/0.1384, allocations: 377.2 kB / 484.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1384, allocations: 8.031 kB / 484.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.1385, allocations: 4.938 kB / 484.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.1387, allocations: 184.3 kB / 484.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.1387, allocations: 4.312 kB / 484.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.1387, allocations: 4.375 kB / 484.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.1389, allocations: 94.19 kB / 485 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1389, allocations: 192 / 485 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.1389, allocations: 3.938 kB / 485 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.139, allocations: 0 / 485 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.876e-05/0.139, allocations: 31.97 kB / 485.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002097/0.1392, allocations: 165.9 kB / 485.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.56e-05/0.1394, allocations: 50.5 kB / 485.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.7e-05/0.1394, allocations: 24.91 kB / 485.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.1394, allocations: 8.141 kB / 485.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.1397, allocations: 127.2 kB / 485.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.1397, allocations: 0 / 485.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003015/0.14, allocations: 121.5 kB / 485.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.1401, allocations: 63.39 kB / 485.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.681e-05/0.1402, allocations: 98.14 kB / 485.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.1402, allocations: 33.7 kB / 485.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.835e-05/0.1402, allocations: 84.12 kB / 485.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.1403, allocations: 23.66 kB / 485.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.1403, allocations: 21.7 kB / 485.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1404, allocations: 322.7 kB / 486.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.313e-05/0.1405, allocations: 23.98 kB / 486.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.937e-05/0.1406, allocations: 74.84 kB / 486.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.1408, allocations: 148.4 kB / 486.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1408, allocations: 0 / 486.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002212/0.141, allocations: 163.3 kB / 486.6 MB, free: 360 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.1411, allocations: 41.67 kB / 486.6 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1411, allocations: 0 / 486.6 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1411, allocations: 4 kB / 486.6 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.983e-05/0.1412, allocations: 19.92 kB / 486.6 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.1412, allocations: 4 kB / 486.6 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.642e-05/0.1413, allocations: 3.906 kB / 486.6 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.1413, allocations: 12 kB / 486.7 MB, free: 268 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.0001577/0.1415, allocations: 133.7 kB / 486.8 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.1415, allocations: 8.125 kB / 486.8 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/0.1415, allocations: 7.969 kB / 486.8 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1415, allocations: 3.984 kB / 486.8 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1416, allocations: 0 / 486.8 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1416, allocations: 4 kB / 486.8 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.1417, allocations: 177.5 kB / 487 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1417, allocations: 0 / 487 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.43e-05/0.1418, allocations: 4 kB / 487 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1418, allocations: 7.875 kB / 487 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.1418, allocations: 11.98 kB / 487 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1418, allocations: 0 / 487 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1418, allocations: 0 / 487 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/0.142, allocations: 125 kB / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.142, allocations: 88.95 kB / 487.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.1421, allocations: 0 / 487.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.1423, allocations: 31.97 kB / 487.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.889e-05/0.1423, allocations: 7.984 kB / 487.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.1423, allocations: 4 kB / 487.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.189e-05/0.1424, allocations: 79.28 kB / 487.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1424, allocations: 3.938 kB / 487.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.1426, allocations: 43.98 kB / 487.4 MB, free: 15.44 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.0004145/0.1431, allocations: 191.4 kB / 487.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002042/0.1433, allocations: 123.3 kB / 487.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1433, allocations: 0 / 487.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.515e-05/0.1433, allocations: 35.92 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.1435, allocations: 12.42 kB / 487.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003591/0.1439, allocations: 150.8 kB / 487.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.1442, allocations: 0.6815 MB / 488.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.747e-05/0.1442, allocations: 12.66 kB / 488.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.509e-05/0.1443, allocations: 15.44 kB / 488.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1443, allocations: 4 kB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Templates: time 0.004562/0.1488, allocations: 1.893 MB / 490.5 MB, free: 12.27 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches