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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 108 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3299/0.3299, allocations: 44.13 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 55.92 kB / 457.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3358, allocations: 60.8 MB / 0.5064 GB, free: 38.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001988/0.3378, allocations: 0.6015 MB / 0.507 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009029/0.3388, allocations: 449.9 kB / 0.5074 GB, free: 37.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.507e-05/0.3388, allocations: 0 / 0.5074 GB, free: 37.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.346e-05/0.3389, allocations: 0 / 0.5074 GB, free: 37.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.339, allocations: 11.12 kB / 0.5074 GB, free: 37.61 MB / 378.7 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.0004382/0.3395, allocations: 147.2 kB / 0.5076 GB, free: 37.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.3396, allocations: 74.41 kB / 0.5076 GB, free: 37.53 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.941e-05/0.3397, allocations: 6.297 kB / 0.5076 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.39e-05/0.3397, allocations: 38.61 kB / 0.5077 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.552e-05/0.3398, allocations: 18.22 kB / 0.5077 GB, free: 37.51 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.3398, allocations: 2.188 kB / 0.5077 GB, free: 37.51 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.34, allocations: 99.08 kB / 0.5078 GB, free: 37.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.939e-05/0.34, allocations: 26.31 kB / 0.5078 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.509e-05/0.3401, allocations: 24.14 kB / 0.5078 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.3403, allocations: 124 kB / 0.5079 GB, free: 37.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3403, allocations: 4 kB / 0.508 GB, free: 37.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3403, allocations: 0 / 0.508 GB, free: 37.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.3403, allocations: 1.062 kB / 0.508 GB, free: 37.41 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.0004925/0.3408, allocations: 408.9 kB / 0.5083 GB, free: 37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3409, allocations: 9.562 kB / 0.5084 GB, free: 37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.3409, allocations: 8.625 kB / 0.5084 GB, free: 37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.3411, allocations: 183.1 kB / 0.5085 GB, free: 36.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.3411, allocations: 8.938 kB / 0.5085 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.3412, allocations: 3.219 kB / 0.5085 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.3413, allocations: 90.98 kB / 0.5086 GB, free: 36.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3414, allocations: 192 / 0.5086 GB, free: 36.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.3414, allocations: 6.969 kB / 0.5086 GB, free: 36.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3414, allocations: 7.875 kB / 0.5086 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.097e-05/0.3415, allocations: 22.33 kB / 0.5087 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001413/0.3416, allocations: 170.1 kB / 0.5088 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.471e-05/0.3417, allocations: 46.94 kB / 0.5089 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.01e-05/0.3417, allocations: 23.2 kB / 0.5089 GB, free: 36.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.3417, allocations: 4 kB / 0.5089 GB, free: 36.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.342, allocations: 133.2 kB / 0.509 GB, free: 36.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.342, allocations: 0 / 0.509 GB, free: 36.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002392/0.3422, allocations: 129 kB / 0.5092 GB, free: 36.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.117e-05/0.3422, allocations: 58.28 kB / 0.5092 GB, free: 36.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.891e-05/0.3423, allocations: 103.2 kB / 0.5093 GB, free: 36.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.3423, allocations: 32.61 kB / 0.5093 GB, free: 36.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.498e-05/0.3423, allocations: 80.14 kB / 0.5094 GB, free: 36.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.3424, allocations: 22.05 kB / 0.5094 GB, free: 36.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.3424, allocations: 35.59 kB / 0.5095 GB, free: 36.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.216e-05/0.3425, allocations: 317.5 kB / 0.5098 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.19e-05/0.3425, allocations: 23.98 kB / 0.5098 GB, free: 35.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.679e-05/0.3426, allocations: 76.25 kB / 0.5099 GB, free: 35.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.3427, allocations: 147.6 kB / 0.51 GB, free: 35.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3427, allocations: 0 / 0.51 GB, free: 35.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001771/0.3429, allocations: 164.4 kB / 0.5102 GB, free: 35.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.343, allocations: 44.98 kB / 0.5102 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.343, allocations: 6.781 kB / 0.5102 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.343, allocations: 2.969 kB / 0.5102 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-05/0.3431, allocations: 16.44 kB / 0.5102 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.3431, allocations: 6.875 kB / 0.5102 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.635e-05/0.3432, allocations: 6.5 kB / 0.5102 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.3432, allocations: 9.062 kB / 0.5103 GB, free: 35.34 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,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 9.695e-05/0.3433, allocations: 126.4 kB / 0.5104 GB, free: 35.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.3433, allocations: 9.344 kB / 0.5104 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.775e-05/0.3434, allocations: 7.969 kB / 0.5104 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.3434, allocations: 288 / 0.5104 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3434, allocations: 2.938 kB / 0.5104 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3434, allocations: 3.422 kB / 0.5104 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.814e-05/0.3435, allocations: 171.5 kB / 0.5106 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3435, allocations: 0 / 0.5106 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.188e-05/0.3435, allocations: 9.469 kB / 0.5106 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3435, allocations: 3.938 kB / 0.5106 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.3435, allocations: 13.75 kB / 0.5106 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3435, allocations: 0 / 0.5106 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3436, allocations: 0 / 0.5106 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.3439, allocations: 0.6951 MB / 0.5113 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.977e-05/0.3439, allocations: 91.86 kB / 0.5114 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.3439, allocations: 6.172 kB / 0.5114 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.3441, allocations: 23.3 kB / 0.5114 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.3441, allocations: 6.969 kB / 0.5114 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.3442, allocations: 9.344 kB / 0.5114 GB, free: 34.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.731e-05/0.3442, allocations: 75.28 kB / 0.5115 GB, free: 34.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3442, allocations: 0 / 0.5115 GB, free: 34.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003542/0.3445, allocations: 48.67 kB / 0.5115 GB, free: 34.12 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.0003/0.3448, allocations: 183.7 kB / 0.5117 GB, free: 33.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000156/0.345, allocations: 123.8 kB / 0.5118 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.345, allocations: 0 / 0.5118 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.998e-05/0.3451, allocations: 31.38 kB / 0.5118 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.3452, allocations: 10.61 kB / 0.5118 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003364/0.3456, allocations: 278.1 kB / 0.5121 GB, free: 33.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.73e-05/0.3457, allocations: 0.6869 MB / 0.5128 GB, free: 32.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.575e-05/0.3457, allocations: 12.52 kB / 0.5128 GB, free: 32.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.94e-05/0.3458, allocations: 19.97 kB / 0.5128 GB, free: 32.94 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3458, allocations: 0 / 0.5128 GB, free: 32.94 MB / 378.7 MB Notification: Performance of Templates: time 0.003757/0.3495, allocations: 1.971 MB / 0.5147 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@2/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