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.001532/0.001538, allocations: 111.7 kB / 18.45 MB, free: 4.617 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.001843/0.001843, allocations: 186.1 kB / 19.39 MB, free: 3.691 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.416/1.416, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2081/0.2081, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3445, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0016/0.3461, allocations: 0.5461 MB / 0.5201 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.347, allocations: 451.8 kB / 0.5205 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.433e-05/0.347, allocations: 0 / 0.5205 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.724e-05/0.3471, allocations: 4.688 kB / 0.5205 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.3473, allocations: 8.75 kB / 0.5205 GB, free: 2.969 MB / 382.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.0005741/0.3478, allocations: 171.3 kB / 0.5207 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000163/0.348, allocations: 79.41 kB / 0.5208 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.801e-05/0.348, allocations: 3.438 kB / 0.5208 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.679e-05/0.3481, allocations: 42.73 kB / 0.5208 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.273e-05/0.3482, allocations: 19.17 kB / 0.5208 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.3482, allocations: 3.812 kB / 0.5208 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.3484, allocations: 102.1 kB / 0.5209 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.559e-05/0.3485, allocations: 16.34 kB / 0.521 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.438e-05/0.3485, allocations: 29.16 kB / 0.521 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.3488, allocations: 128.8 kB / 0.5211 GB, free: 2.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3488, allocations: 0 / 0.5211 GB, free: 2.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3488, allocations: 1.219 kB / 0.5211 GB, free: 2.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3488, allocations: 0 / 0.5211 GB, free: 2.758 MB / 382.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.0005434/0.3494, allocations: 407.2 kB / 0.5215 GB, free: 2.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3494, allocations: 9.312 kB / 0.5215 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.457e-05/0.3495, allocations: 4.781 kB / 0.5215 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.3496, allocations: 189 kB / 0.5217 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-06/0.3496, allocations: 6.688 kB / 0.5217 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.3497, allocations: 3.438 kB / 0.5217 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.3499, allocations: 95.83 kB / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3499, allocations: 192 / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.3499, allocations: 9.672 kB / 0.5218 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3499, allocations: 0.9688 kB / 0.5218 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.456e-05/0.35, allocations: 22.7 kB / 0.5218 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.3502, allocations: 166.8 kB / 0.522 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.949e-05/0.3503, allocations: 43.39 kB / 0.522 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.847e-05/0.3503, allocations: 26.94 kB / 0.5221 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3504, allocations: 4.906 kB / 0.5221 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.3506, allocations: 130.6 kB / 0.5222 GB, free: 1.758 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.394e-06/0.3507, allocations: 4 kB / 0.5222 GB, free: 1.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003014/0.351, allocations: 130 kB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.351, allocations: 56.02 kB / 0.5224 GB, free: 1.629 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.589e-05/0.3511, allocations: 95.59 kB / 0.5225 GB, free: 1.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.3511, allocations: 33.66 kB / 0.5225 GB, free: 1.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.035e-05/0.3511, allocations: 81.3 kB / 0.5226 GB, free: 1.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.3512, allocations: 31.42 kB / 0.5226 GB, free: 1.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.3512, allocations: 30.05 kB / 0.5226 GB, free: 1.367 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.593e-05/0.3513, allocations: 323.4 kB / 0.5229 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.226e-05/0.3513, allocations: 26.31 kB / 0.523 GB, free: 1.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.781e-05/0.3514, allocations: 74.88 kB / 0.523 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.3516, allocations: 142.9 kB / 0.5232 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3516, allocations: 4 kB / 0.5232 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002112/0.3518, allocations: 162.5 kB / 0.5233 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.3519, allocations: 37.84 kB / 0.5234 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3519, allocations: 2.094 kB / 0.5234 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3519, allocations: 2.469 kB / 0.5234 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.352, allocations: 19.89 kB / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.352, allocations: 3.516 kB / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.025e-05/0.3521, allocations: 15.05 kB / 0.5234 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.3521, allocations: 5.797 kB / 0.5234 GB, free: 0.6836 MB / 382.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.0001155/0.3522, allocations: 137 kB / 0.5235 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.3523, allocations: 11.31 kB / 0.5235 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/0.3523, allocations: 6.266 kB / 0.5236 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3523, allocations: 1.406 kB / 0.5236 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.3523, allocations: 0 / 0.5236 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.205e-05/0.3523, allocations: 84.39 kB / 0.5236 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.3524, allocations: 12 kB / 0.5236 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.3526, allocations: 20.09 kB / 0.5237 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.3526, allocations: 5.016 kB / 0.5237 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001955/0.3528, allocations: 182 kB / 0.5238 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000225/0.3531, allocations: 275.3 kB / 0.5241 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.009e-05/0.3531, allocations: 27.34 kB / 0.5241 GB, free: 68 kB / 382.1 MB Notification: Performance of sorting global known variables: time 5.759e-05/0.3532, allocations: 83.91 kB / 0.5242 GB, free: 15.99 MB / 398.1 MB Notification: Performance of Backend: time 2.81e-07/0.3532, allocations: 0 / 0.5242 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007932/0.354, allocations: 258.2 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004759/0.3545, allocations: 0.562 MB / 0.525 GB, free: 15.23 MB / 398.1 MB Notification: Performance of Templates: time 0.0058/0.3603, allocations: 2.092 MB / 0.5271 GB, free: 14.62 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/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