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.001068/0.001068, allocations: 94.69 kB / 16.99 MB, free: 5.941 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.0009677/0.0009678, allocations: 181.8 kB / 17.87 MB, free: 5.609 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.403/1.403, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2332/0.2332, allocations: 44.21 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004555, allocations: 12 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1516, allocations: 61.92 MB / 471.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007146/0.1524, allocations: 254.8 kB / 471.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008196/0.1532, allocations: 404.8 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.252e-05/0.1532, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.488e-05/0.1533, allocations: 3.938 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.1535, allocations: 3.984 kB / 472.1 MB, free: 13.09 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.000504/0.154, allocations: 146.4 kB / 472.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.1541, allocations: 51.91 kB / 472.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.1542, allocations: 7.984 kB / 472.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.094e-05/0.1542, allocations: 43.89 kB / 472.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.457e-05/0.1543, allocations: 19.92 kB / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.1543, allocations: 0 / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.1545, allocations: 71.92 kB / 472.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.1545, allocations: 15.97 kB / 472.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.128e-05/0.1546, allocations: 33.64 kB / 472.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.1547, allocations: 87.8 kB / 472.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1547, allocations: 0 / 472.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1547, allocations: 0 / 472.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.1547, allocations: 0 / 472.6 MB, free: 12.62 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.000514/0.1553, allocations: 385 kB / 472.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1553, allocations: 11.97 kB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.312e-05/0.1554, allocations: 4 kB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.1556, allocations: 187 kB / 473.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.1556, allocations: 0 / 473.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.1556, allocations: 4 kB / 473.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.1558, allocations: 85.59 kB / 473.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.1558, allocations: 7.938 kB / 473.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.1558, allocations: 7.984 kB / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.1558, allocations: 0 / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.104e-05/0.1559, allocations: 19.98 kB / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002131/0.1561, allocations: 173.9 kB / 473.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.852e-05/0.1562, allocations: 42.56 kB / 473.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.1563, allocations: 4 kB / 473.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/0.1566, allocations: 139.2 kB / 473.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.1566, allocations: 0 / 473.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003732/0.157, allocations: 198.7 kB / 473.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.157, allocations: 55.41 kB / 473.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.263e-05/0.1571, allocations: 97.86 kB / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.1572, allocations: 37.69 kB / 474 MB, free: 10.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.1572, allocations: 84.33 kB / 474.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.642e-05/0.1573, allocations: 23.66 kB / 474.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.88e-06/0.1573, allocations: 0 / 474.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1575, allocations: 322.8 kB / 474.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.514e-05/0.1575, allocations: 19.98 kB / 474.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.238e-05/0.1576, allocations: 82.98 kB / 474.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.926e-05/0.1577, allocations: 57.64 kB / 474.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1577, allocations: 0 / 474.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002362/0.1579, allocations: 171.2 kB / 474.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.158, allocations: 29.7 kB / 474.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.158, allocations: 7.953 kB / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.158, allocations: 4.281 kB / 474.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.1582, allocations: 20.05 kB / 474.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1582, allocations: 0 / 474.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.481e-05/0.1582, allocations: 15.84 kB / 474.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.1583, allocations: 8 kB / 474.8 MB, free: 10.07 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001826/0.1585, allocations: 134.4 kB / 475 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.1585, allocations: 4 kB / 475 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.1585, allocations: 7.969 kB / 475 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1585, allocations: 3.953 kB / 475 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1585, allocations: 0 / 475 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1585, allocations: 0 / 475 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.1587, allocations: 177.5 kB / 475.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.1587, allocations: 3.938 kB / 475.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.1588, allocations: 4 kB / 475.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1588, allocations: 4 kB / 475.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.1588, allocations: 3.984 kB / 475.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.1588, allocations: 7.938 kB / 475.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1588, allocations: 4.141 kB / 475.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.159, allocations: 121.1 kB / 475.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.159, allocations: 85 kB / 475.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.1591, allocations: 8 kB / 475.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.1593, allocations: 27.97 kB / 475.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.955e-05/0.1593, allocations: 7.953 kB / 475.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.053e-05/0.1594, allocations: 11.98 kB / 475.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.271e-05/0.1594, allocations: 79.22 kB / 475.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1594, allocations: 0 / 475.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.1597, allocations: 43.98 kB / 475.6 MB, free: 9.254 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004447/0.1601, allocations: 177.1 kB / 475.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.1603, allocations: 127.3 kB / 475.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1604, allocations: 0 / 475.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.216e-05/0.1604, allocations: 32.36 kB / 475.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.1606, allocations: 11.98 kB / 475.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003846/0.161, allocations: 146.7 kB / 476 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1613, allocations: 0.6887 MB / 476.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.791e-05/0.1613, allocations: 12.66 kB / 476.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.149e-05/0.1613, allocations: 19.44 kB / 476.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1613, allocations: 0 / 476.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Templates: time 0.004498/0.1658, allocations: 1.836 MB / 478.6 MB, free: 6.156 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches