Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008066/0.0008067, allocations: 94.95 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008768/0.0008773, allocations: 175.2 kB / 18.25 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2176/0.2176, allocations: 44.26 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004636/0.0004636, allocations: 8 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1529, allocations: 61.93 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008193/0.1537, allocations: 266.7 kB / 472.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1548, allocations: 432.6 kB / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.997e-05/0.1549, allocations: 3.938 kB / 472.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.832e-05/0.155, allocations: 0 / 472.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.1551, allocations: 8 kB / 472.9 MB, free: 12.66 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0007019/0.1559, allocations: 155.3 kB / 473.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.156, allocations: 75.84 kB / 473.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.339e-05/0.1561, allocations: 4 kB / 473.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.804e-05/0.1562, allocations: 39.91 kB / 473.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.156e-05/0.1563, allocations: 15.97 kB / 473.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.1564, allocations: 7.938 kB / 473.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.1566, allocations: 91.91 kB / 473.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.694e-05/0.1567, allocations: 23.91 kB / 473.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.199e-05/0.1568, allocations: 53.59 kB / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.1571, allocations: 123.8 kB / 473.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.1571, allocations: 4 kB / 473.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1571, allocations: 3.938 kB / 473.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1571, allocations: 0 / 473.5 MB, free: 12.07 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.000671/0.1578, allocations: 377.2 kB / 473.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1578, allocations: 12.03 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.934e-05/0.1579, allocations: 0.9375 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.1582, allocations: 180.4 kB / 474.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.1582, allocations: 4.375 kB / 474.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/0.1582, allocations: 8.312 kB / 474.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.1584, allocations: 98.06 kB / 474.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.1585, allocations: 4.188 kB / 474.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.1585, allocations: 3.938 kB / 474.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1585, allocations: 0 / 474.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.266e-05/0.1586, allocations: 23.97 kB / 474.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002329/0.1588, allocations: 173.8 kB / 474.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001052/0.159, allocations: 50.56 kB / 474.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.134e-05/0.159, allocations: 24.91 kB / 474.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.159, allocations: 4 kB / 474.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002705/0.1593, allocations: 135.4 kB / 474.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.964e-06/0.1593, allocations: 0 / 474.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003349/0.1597, allocations: 125.5 kB / 474.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.1597, allocations: 55.41 kB / 474.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.1598, allocations: 97.86 kB / 474.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1599, allocations: 37.69 kB / 474.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.929e-05/0.1599, allocations: 80.14 kB / 475 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.16, allocations: 19.72 kB / 475 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.16, allocations: 21.7 kB / 475 MB, free: 10.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1602, allocations: 318.8 kB / 475.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.292e-05/0.1602, allocations: 19.98 kB / 475.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.226e-05/0.1603, allocations: 86.02 kB / 475.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.1605, allocations: 148.4 kB / 475.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1606, allocations: 3.938 kB / 475.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002583/0.1608, allocations: 155.1 kB / 475.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.1609, allocations: 41.86 kB / 475.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1609, allocations: 4 kB / 475.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1609, allocations: 0 / 475.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.161, allocations: 19.92 kB / 475.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.161, allocations: 4 kB / 475.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.292e-05/0.1611, allocations: 7.906 kB / 475.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.1611, allocations: 8.281 kB / 475.8 MB, free: 9.473 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.0001742/0.1613, allocations: 129.7 kB / 476 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.1613, allocations: 11.94 kB / 476 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.1614, allocations: 15.91 kB / 476 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1614, allocations: 192 / 476 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1614, allocations: 0 / 476 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1614, allocations: 3.984 kB / 476 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.1616, allocations: 173.5 kB / 476.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1616, allocations: 0 / 476.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/0.1616, allocations: 11.98 kB / 476.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1616, allocations: 3.938 kB / 476.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.1617, allocations: 4 kB / 476.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1617, allocations: 4 kB / 476.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.1617, allocations: 0 / 476.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.162, allocations: 133 kB / 476.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.162, allocations: 85.02 kB / 476.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.162, allocations: 8 kB / 476.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.1623, allocations: 31.97 kB / 476.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.1623, allocations: 3.984 kB / 476.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.1623, allocations: 4 kB / 476.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.1624, allocations: 79.28 kB / 476.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1624, allocations: 0 / 476.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.1627, allocations: 47.98 kB / 476.6 MB, free: 8.641 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.0004133/0.1631, allocations: 190.8 kB / 476.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002261/0.1634, allocations: 127.3 kB / 476.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1634, allocations: 0 / 476.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.934e-05/0.1635, allocations: 27.92 kB / 476.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.1636, allocations: 8 kB / 476.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004179/0.1641, allocations: 155 kB / 477.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1644, allocations: 0.6848 MB / 477.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.236e-05/0.1645, allocations: 12.66 kB / 477.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.1645, allocations: 11.44 kB / 477.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1645, allocations: 0 / 477.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of Templates: time 0.005412/0.1699, allocations: 1.903 MB / 479.7 MB, free: 5.477 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches