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.002083/0.002092, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00329/0.00329, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.358/2.358, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3337/0.3337, allocations: 46.11 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 77.69 kB / 417.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1594, allocations: 62.45 MB / 479.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002172/0.1616, allocations: 0.5903 MB / 480.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1627, allocations: 446.7 kB / 481 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.463e-05/0.1627, allocations: 0 / 481 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1628, allocations: 7.984 kB / 481 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.163, allocations: 11.94 kB / 481 MB, free: 4.703 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.0005628/0.1636, allocations: 143.4 kB / 481.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.1637, allocations: 83.84 kB / 481.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.226e-05/0.1638, allocations: 0 / 481.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.623e-05/0.1639, allocations: 43.89 kB / 481.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.437e-05/0.164, allocations: 27.86 kB / 481.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.164, allocations: 0 / 481.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.1642, allocations: 91.91 kB / 481.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.784e-05/0.1643, allocations: 23.95 kB / 481.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.1643, allocations: 27.91 kB / 481.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.1645, allocations: 83.8 kB / 481.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1645, allocations: 4 kB / 481.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1645, allocations: 0 / 481.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1646, allocations: 0 / 481.5 MB, free: 4.188 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.000643/0.1652, allocations: 413.2 kB / 481.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.1653, allocations: 8.031 kB / 481.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.1653, allocations: 4.938 kB / 481.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.1656, allocations: 188.2 kB / 482.1 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1656, allocations: 4.375 kB / 482.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.1656, allocations: 384 / 482.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002298/0.1658, allocations: 98.19 kB / 482.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.1658, allocations: 192 / 482.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.1659, allocations: 3.938 kB / 482.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1659, allocations: 4 kB / 482.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.59e-05/0.166, allocations: 27.97 kB / 482.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.1662, allocations: 173.8 kB / 482.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.1663, allocations: 42.5 kB / 482.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.2e-05/0.1664, allocations: 28.91 kB / 482.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.1664, allocations: 0 / 482.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003111/0.1667, allocations: 131.4 kB / 482.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.1668, allocations: 0 / 482.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003323/0.1671, allocations: 125.6 kB / 482.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.1672, allocations: 59.34 kB / 482.8 MB, free: 2.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1673, allocations: 97.86 kB / 482.9 MB, free: 2.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.1673, allocations: 33.69 kB / 482.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/0.1674, allocations: 84.14 kB / 483 MB, free: 2.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.1674, allocations: 27.66 kB / 483 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.1675, allocations: 33.7 kB / 483.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1676, allocations: 314.8 kB / 483.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.527e-05/0.1677, allocations: 23.98 kB / 483.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.45e-05/0.1678, allocations: 74.86 kB / 483.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.168, allocations: 144.4 kB / 483.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.168, allocations: 0 / 483.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002491/0.1683, allocations: 163.1 kB / 483.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.287e-05/0.1683, allocations: 37.62 kB / 483.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1683, allocations: 4 kB / 483.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1683, allocations: 0 / 483.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.1685, allocations: 16.22 kB / 483.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.1685, allocations: 8.219 kB / 483.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.853e-05/0.1685, allocations: 15.89 kB / 483.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.1686, allocations: 8 kB / 483.8 MB, free: 1.539 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.0001607/0.1687, allocations: 125.7 kB / 484 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.1688, allocations: 7.938 kB / 484 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.896e-05/0.1688, allocations: 11.95 kB / 484 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1688, allocations: 0 / 484 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1688, allocations: 4 kB / 484 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1688, allocations: 0 / 484 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.169, allocations: 185.7 kB / 484.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1691, allocations: 4 kB / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.968e-05/0.1691, allocations: 7.938 kB / 484.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.1691, allocations: 7.922 kB / 484.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.1691, allocations: 0 / 484.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1691, allocations: 0 / 484.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1691, allocations: 0 / 484.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.1694, allocations: 133.2 kB / 484.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.299e-05/0.1694, allocations: 88.94 kB / 484.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.1695, allocations: 4 kB / 484.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.1697, allocations: 15.97 kB / 484.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.331e-05/0.1697, allocations: 7.938 kB / 484.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.1697, allocations: 11.98 kB / 484.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.003e-05/0.1698, allocations: 79.28 kB / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1698, allocations: 0 / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.1701, allocations: 44 kB / 484.6 MB, free: 0.7188 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.000418/0.1706, allocations: 177.1 kB / 484.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.1708, allocations: 131.5 kB / 484.9 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1708, allocations: 0 / 484.9 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.402e-05/0.1709, allocations: 27.98 kB / 484.9 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001796/0.1711, allocations: 11.98 kB / 484.9 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004243/0.1715, allocations: 176.5 kB / 485.1 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.1719, allocations: 0.6854 MB / 485.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.1719, allocations: 19.61 kB / 485.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1719, allocations: 3.938 kB / 485.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of Templates: time 0.004768/0.1767, allocations: 1.792 MB / 487.6 MB, free: 13.64 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