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.001148/0.001148, allocations: 110.5 kB / 17.86 MB, free: 5.504 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.001236/0.001236, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.393/1.393, allocations: 222.9 MB / 242.5 MB, free: 13.71 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.2001/0.2001, allocations: 44.18 MB / 336.8 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 71.52 kB / 408.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.105, allocations: 60.82 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001726/0.1068, allocations: 0.5954 MB / 469.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.1077, allocations: 441.2 kB / 470.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.45e-05/0.1077, allocations: 0 / 470.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.52e-05/0.1078, allocations: 3.938 kB / 470.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.1079, allocations: 15.98 kB / 470.2 MB, free: 13.77 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.0004879/0.1084, allocations: 142.4 kB / 470.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.1086, allocations: 75.91 kB / 470.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.1086, allocations: 8 kB / 470.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.948e-05/0.1087, allocations: 47.83 kB / 470.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.491e-05/0.1087, allocations: 15.92 kB / 470.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.1088, allocations: 4 kB / 470.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.109, allocations: 91.91 kB / 470.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.372e-05/0.109, allocations: 23.95 kB / 470.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.1091, allocations: 27.84 kB / 470.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.1093, allocations: 83.8 kB / 470.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1093, allocations: 7.938 kB / 470.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1093, allocations: 0 / 470.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1093, allocations: 0 / 470.7 MB, free: 13.26 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.0005517/0.1098, allocations: 421.1 kB / 471.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.1099, allocations: 8.031 kB / 471.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.628e-05/0.1099, allocations: 4.938 kB / 471.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.1101, allocations: 176.4 kB / 471.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.1101, allocations: 384 / 471.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.392e-05/0.1102, allocations: 4.375 kB / 471.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.1104, allocations: 94.19 kB / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1104, allocations: 192 / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.1104, allocations: 7.938 kB / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.1104, allocations: 0 / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.965e-05/0.1105, allocations: 31.91 kB / 471.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.1107, allocations: 169.8 kB / 471.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.39e-05/0.1108, allocations: 42.64 kB / 471.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.697e-05/0.1108, allocations: 24.98 kB / 471.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.1109, allocations: 7.984 kB / 471.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.1111, allocations: 127.3 kB / 471.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1111, allocations: 0 / 471.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003028/0.1114, allocations: 129.5 kB / 472 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.1115, allocations: 55.41 kB / 472 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.1116, allocations: 97.86 kB / 472.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.1116, allocations: 33.69 kB / 472.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.301e-05/0.1116, allocations: 88.08 kB / 472.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.1117, allocations: 19.72 kB / 472.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.1117, allocations: 33.7 kB / 472.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1119, allocations: 318.8 kB / 472.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-05/0.1119, allocations: 23.98 kB / 472.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.292e-05/0.112, allocations: 75.14 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.1122, allocations: 144.4 kB / 472.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1122, allocations: 4 kB / 472.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000235/0.1124, allocations: 163 kB / 473 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.1125, allocations: 37.64 kB / 473 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1125, allocations: 0 / 473 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1125, allocations: 8.219 kB / 473 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.1126, allocations: 20.11 kB / 473.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.1126, allocations: 4 kB / 473.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.379e-05/0.1127, allocations: 11.91 kB / 473.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.1127, allocations: 8.062 kB / 473.1 MB, free: 10.61 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,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.0001491/0.1129, allocations: 133.8 kB / 473.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.1129, allocations: 7.938 kB / 473.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.113, allocations: 15.89 kB / 473.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.113, allocations: 4 kB / 473.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.113, allocations: 0 / 473.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.113, allocations: 3.938 kB / 473.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.1131, allocations: 173.5 kB / 473.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1131, allocations: 0 / 473.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.1132, allocations: 7.984 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1132, allocations: 7.938 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.1132, allocations: 0 / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1132, allocations: 0 / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1132, allocations: 0 / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/0.1134, allocations: 137 kB / 473.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-05/0.1135, allocations: 84.95 kB / 473.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.1135, allocations: 7.984 kB / 473.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.1137, allocations: 11.98 kB / 473.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.537e-05/0.1138, allocations: 7.984 kB / 473.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.1138, allocations: 12.06 kB / 473.7 MB, free: 9.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.765e-05/0.1138, allocations: 83.27 kB / 473.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1138, allocations: 0 / 473.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002997/0.1141, allocations: 40 kB / 473.8 MB, free: 9.793 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 (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.0003656/0.1145, allocations: 190.5 kB / 474 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.1147, allocations: 131.2 kB / 474.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1148, allocations: 0 / 474.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.251e-05/0.1148, allocations: 27.98 kB / 474.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.115, allocations: 15.97 kB / 474.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.1154, allocations: 168.4 kB / 474.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1157, allocations: 0.6891 MB / 475 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.1157, allocations: 19.42 kB / 475 MB, free: 8.5 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1157, allocations: 0 / 475 MB, free: 8.5 MB / 350.1 MB Notification: Performance of Templates: time 0.003956/0.1197, allocations: 1.794 MB / 476.8 MB, free: 6.707 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/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) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y