Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.591/1.591, allocations: 230.6 MB / 254.1 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2458/0.2458, allocations: 46.92 MB / 357.1 MB, free: 10.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 63.91 kB / 0.4914 GB, free: 7.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1597, allocations: 65.99 MB / 0.5558 GB, free: 5.379 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001829/0.1615, allocations: 0.5281 MB / 0.5564 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009711/0.1625, allocations: 444.9 kB / 0.5568 GB, free: 4.414 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-05/0.1625, allocations: 7.938 kB / 0.5568 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 7.674e-05/0.1626, allocations: 0 / 0.5568 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.1627, allocations: 11.92 kB / 0.5568 GB, free: 4.395 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0006309/0.1634, allocations: 166.7 kB / 0.557 GB, free: 4.234 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.1635, allocations: 87.84 kB / 0.5571 GB, free: 4.148 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.103e-05/0.1636, allocations: 4 kB / 0.5571 GB, free: 4.145 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.48e-05/0.1637, allocations: 39.91 kB / 0.5571 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.794e-05/0.1637, allocations: 23.89 kB / 0.5571 GB, free: 4.082 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.1638, allocations: 4 kB / 0.5571 GB, free: 4.078 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002312/0.164, allocations: 99.89 kB / 0.5572 GB, free: 3.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.186e-05/0.164, allocations: 23.95 kB / 0.5572 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.154e-05/0.1641, allocations: 27.84 kB / 0.5573 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.1643, allocations: 123.6 kB / 0.5574 GB, free: 3.809 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1644, allocations: 4 kB / 0.5574 GB, free: 3.805 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1644, allocations: 0 / 0.5574 GB, free: 3.805 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1644, allocations: 7.938 kB / 0.5574 GB, free: 3.797 MB / 414.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.0007043/0.1651, allocations: 412.8 kB / 0.5578 GB, free: 3.336 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.1651, allocations: 12.03 kB / 0.5578 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.012e-05/0.1652, allocations: 8.891 kB / 0.5578 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.1654, allocations: 176.4 kB / 0.558 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.1654, allocations: 384 / 0.558 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.1654, allocations: 4.375 kB / 0.558 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.1656, allocations: 98.19 kB / 0.5581 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1656, allocations: 4.188 kB / 0.5581 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.1656, allocations: 3.938 kB / 0.5581 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1657, allocations: 0 / 0.5581 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.322e-05/0.1657, allocations: 27.91 kB / 0.5581 GB, free: 2.965 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002057/0.1659, allocations: 165.7 kB / 0.5583 GB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.166, allocations: 38.56 kB / 0.5583 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.758e-05/0.1661, allocations: 28.89 kB / 0.5583 GB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.1661, allocations: 0 / 0.5583 GB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.1664, allocations: 135.4 kB / 0.5585 GB, free: 2.531 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.1664, allocations: 3.938 kB / 0.5585 GB, free: 2.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003628/0.1667, allocations: 125.5 kB / 0.5586 GB, free: 2.398 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.1668, allocations: 63.39 kB / 0.5586 GB, free: 2.324 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.969e-05/0.1669, allocations: 97.86 kB / 0.5587 GB, free: 2.219 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.1669, allocations: 33.69 kB / 0.5588 GB, free: 2.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.475e-05/0.1669, allocations: 84.14 kB / 0.5588 GB, free: 2.094 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.549e-05/0.167, allocations: 19.86 kB / 0.5589 GB, free: 2.074 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.469e-05/0.167, allocations: 29.7 kB / 0.5589 GB, free: 2.039 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1672, allocations: 322.8 kB / 0.5592 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.258e-05/0.1672, allocations: 19.98 kB / 0.5592 GB, free: 1.695 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.986e-05/0.1673, allocations: 76.69 kB / 0.5593 GB, free: 1.598 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.1676, allocations: 156.3 kB / 0.5594 GB, free: 1.414 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1676, allocations: 0 / 0.5594 GB, free: 1.414 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003373/0.1679, allocations: 155.2 kB / 0.5596 GB, free: 1.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/0.168, allocations: 37.92 kB / 0.5596 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.168, allocations: 4.219 kB / 0.5596 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.168, allocations: 4 kB / 0.5596 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1681, allocations: 23.86 kB / 0.5597 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.1681, allocations: 4 kB / 0.5597 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.826e-05/0.1682, allocations: 15.89 kB / 0.5597 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1682, allocations: 4.078 kB / 0.5597 GB, free: 1.152 MB / 414.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.0001648/0.1683, allocations: 128 kB / 0.5598 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.1684, allocations: 11.89 kB / 0.5598 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.014e-05/0.1684, allocations: 19.89 kB / 0.5598 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1684, allocations: 4 kB / 0.5598 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1684, allocations: 0 / 0.5598 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1684, allocations: 0 / 0.5598 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.1686, allocations: 173.7 kB / 0.56 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1686, allocations: 0 / 0.56 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.88e-05/0.1686, allocations: 7.984 kB / 0.56 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.1687, allocations: 7.938 kB / 0.56 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.1687, allocations: 0 / 0.56 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1687, allocations: 0 / 0.56 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1687, allocations: 4 kB / 0.56 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.1689, allocations: 129 kB / 0.5601 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.1689, allocations: 85 kB / 0.5602 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.169, allocations: 7.984 kB / 0.5602 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.1692, allocations: 15.98 kB / 0.5602 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-05/0.1692, allocations: 7.984 kB / 0.5603 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.1693, allocations: 4 kB / 0.5603 GB, free: 476 kB / 414.1 MB Notification: Performance of sorting global known variables: time 4.893e-05/0.1693, allocations: 87.27 kB / 0.5603 GB, free: 388 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1693, allocations: 4 kB / 0.5603 GB, free: 384 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.1696, allocations: 35.94 kB / 0.5604 GB, free: 348 kB / 414.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.0004323/0.17, allocations: 187.7 kB / 0.5606 GB, free: 172 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002398/0.1703, allocations: 123.2 kB / 0.5607 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1703, allocations: 0 / 0.5607 GB, free: 36 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.176e-05/0.1703, allocations: 23.98 kB / 0.5607 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.1705, allocations: 15.98 kB / 0.5607 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003847/0.1709, allocations: 144.6 kB / 0.5609 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.1714, allocations: 0.685 MB / 0.5615 GB, free: 15.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.778e-05/0.1714, allocations: 16.66 kB / 0.5615 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.841e-05/0.1714, allocations: 15.42 kB / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1714, allocations: 0 / 0.5616 GB, free: 15.08 MB / 430.1 MB Notification: Performance of Templates: time 0.005654/0.1771, allocations: 2.005 MB / 0.5635 GB, free: 13.08 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.41700242087245]