Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008771/0.000877, allocations: 178 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 225.7 MB / 243.9 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008456/0.0008455, allocations: 93.52 kB / 295 MB, free: 9.504 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.339/0.339, allocations: 44.32 MB / 390.5 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003332, allocations: 8 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3499, allocations: 61.9 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008932/0.3508, allocations: 265.9 kB / 0.513 GB, free: 37.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.3519, allocations: 0.8032 MB / 0.5138 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.984e-05/0.352, allocations: 0 / 0.5138 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.3521, allocations: 4 kB / 0.5138 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.3523, allocations: 6.5 kB / 0.5138 GB, free: 36.93 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0005693/0.3528, allocations: 142.6 kB / 0.5139 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.353, allocations: 88.91 kB / 0.514 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.281e-05/0.353, allocations: 0 / 0.514 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.818e-05/0.3531, allocations: 42.31 kB / 0.514 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.805e-05/0.3532, allocations: 13.3 kB / 0.5141 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.3532, allocations: 6.969 kB / 0.5141 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.3534, allocations: 97.5 kB / 0.5142 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.688e-05/0.3535, allocations: 20.67 kB / 0.5142 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.3536, allocations: 55.45 kB / 0.5142 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.3538, allocations: 123.4 kB / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3538, allocations: 0 / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3538, allocations: 0 / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3538, allocations: 0 / 0.5144 GB, free: 36.7 MB / 378.7 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.0004637/0.3543, allocations: 382.3 kB / 0.5147 GB, free: 36.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3543, allocations: 8.812 kB / 0.5147 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.886e-05/0.3544, allocations: 7.688 kB / 0.5147 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.3546, allocations: 191 kB / 0.5149 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.3546, allocations: 384 / 0.5149 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.3546, allocations: 7.328 kB / 0.5149 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.3548, allocations: 90.16 kB / 0.515 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3548, allocations: 192 / 0.515 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.3548, allocations: 11.88 kB / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3548, allocations: 2.938 kB / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.752e-05/0.3549, allocations: 18.36 kB / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.355, allocations: 165.1 kB / 0.5152 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.858e-05/0.3551, allocations: 53.33 kB / 0.5152 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.91e-05/0.3552, allocations: 20.09 kB / 0.5153 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.3552, allocations: 2.875 kB / 0.5153 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.3554, allocations: 139.1 kB / 0.5154 GB, free: 35.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.3554, allocations: 0 / 0.5154 GB, free: 35.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002478/0.3557, allocations: 119.2 kB / 0.5155 GB, free: 35.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.3557, allocations: 65.69 kB / 0.5156 GB, free: 35.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.635e-05/0.3558, allocations: 95.83 kB / 0.5157 GB, free: 35.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.3558, allocations: 35.92 kB / 0.5157 GB, free: 35.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.556e-05/0.3558, allocations: 80.14 kB / 0.5158 GB, free: 35.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.3559, allocations: 18.56 kB / 0.5158 GB, free: 35.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.3559, allocations: 7.219 kB / 0.5158 GB, free: 35.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.773e-05/0.3559, allocations: 318.1 kB / 0.5161 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.458e-05/0.356, allocations: 27.5 kB / 0.5161 GB, free: 35.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.712e-05/0.356, allocations: 76.28 kB / 0.5162 GB, free: 34.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.3562, allocations: 141.3 kB / 0.5163 GB, free: 34.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3562, allocations: 3.281 kB / 0.5163 GB, free: 34.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000182/0.3564, allocations: 165.6 kB / 0.5165 GB, free: 34.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.3564, allocations: 39.61 kB / 0.5165 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3564, allocations: 2.812 kB / 0.5165 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.3565, allocations: 3.031 kB / 0.5165 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.3566, allocations: 23.92 kB / 0.5166 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.3566, allocations: 3.031 kB / 0.5166 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.458e-05/0.3566, allocations: 3 kB / 0.5166 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.3567, allocations: 13.09 kB / 0.5166 GB, free: 34.66 MB / 378.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.3568, allocations: 124.5 kB / 0.5167 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.3568, allocations: 16.89 kB / 0.5167 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/0.3568, allocations: 3.969 kB / 0.5167 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.3569, allocations: 0 / 0.5167 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3569, allocations: 0 / 0.5167 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.3569, allocations: 2.75 kB / 0.5167 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.285e-05/0.357, allocations: 172.2 kB / 0.5169 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.357, allocations: 4 kB / 0.5169 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.236e-05/0.357, allocations: 6.312 kB / 0.5169 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.357, allocations: 11 kB / 0.5169 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.357, allocations: 0 / 0.5169 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.357, allocations: 0 / 0.5169 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.357, allocations: 0 / 0.5169 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.3572, allocations: 133.2 kB / 0.517 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.829e-05/0.3572, allocations: 88.92 kB / 0.5171 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.3573, allocations: 10.31 kB / 0.5171 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.3575, allocations: 25.73 kB / 0.5172 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.466e-05/0.3575, allocations: 10.03 kB / 0.5172 GB, free: 34.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.3575, allocations: 8.047 kB / 0.5172 GB, free: 34.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.983e-05/0.3575, allocations: 78.5 kB / 0.5173 GB, free: 34.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3575, allocations: 0 / 0.5173 GB, free: 34.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000241/0.3578, allocations: 43.42 kB / 0.5173 GB, free: 34.02 MB / 378.7 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.0003313/0.3581, allocations: 203.1 kB / 0.5175 GB, free: 33.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001656/0.3583, allocations: 126 kB / 0.5176 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3583, allocations: 10.66 kB / 0.5176 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.86e-05/0.3584, allocations: 23.33 kB / 0.5176 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.3585, allocations: 9.688 kB / 0.5176 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.3588, allocations: 148.9 kB / 0.5178 GB, free: 33.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.3589, allocations: 0.6889 MB / 0.5185 GB, free: 32.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.892e-05/0.359, allocations: 16.94 kB / 0.5185 GB, free: 32.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.931e-05/0.359, allocations: 10.44 kB / 0.5185 GB, free: 32.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.359, allocations: 2.531 kB / 0.5185 GB, free: 32.95 MB / 378.7 MB Notification: Performance of Templates: time 0.004311/0.3633, allocations: 1.908 MB / 0.5204 GB, free: 32.76 MB / 378.7 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