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.001106/0.001106, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001168/0.001168, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.354/1.354, allocations: 222.9 MB / 242.6 MB, free: 13.73 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.2042/0.2042, allocations: 44.18 MB / 336.9 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 61.03 kB / 408.5 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001976/0.1062, allocations: 0.5956 MB / 470 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008288/0.107, allocations: 437.1 kB / 470.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.1071, allocations: 4 kB / 470.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.837e-05/0.1072, allocations: 3.984 kB / 470.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.1073, allocations: 7.875 kB / 470.4 MB, free: 13.69 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.0005839/0.1079, allocations: 150.8 kB / 470.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.108, allocations: 79.86 kB / 470.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.976e-05/0.1081, allocations: 11.98 kB / 470.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.082e-05/0.1082, allocations: 39.91 kB / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.586e-05/0.1082, allocations: 19.91 kB / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.1082, allocations: 4 kB / 470.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1084, allocations: 103.8 kB / 470.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.108e-05/0.1085, allocations: 15.97 kB / 470.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.826e-05/0.1086, allocations: 31.89 kB / 470.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.1087, allocations: 87.8 kB / 470.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1087, allocations: 0 / 470.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1087, allocations: 0 / 470.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1087, allocations: 0 / 470.9 MB, free: 13.16 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.0005299/0.1093, allocations: 405.1 kB / 471.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1093, allocations: 12.03 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.1094, allocations: 0.9375 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.1096, allocations: 192.2 kB / 471.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1096, allocations: 4.375 kB / 471.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.1096, allocations: 4.375 kB / 471.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.1098, allocations: 82.2 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.1098, allocations: 4.188 kB / 471.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1099, allocations: 11.92 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.1099, allocations: 0 / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.391e-05/0.1099, allocations: 19.98 kB / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002047/0.1102, allocations: 173.8 kB / 471.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.498e-05/0.1102, allocations: 46.5 kB / 471.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.723e-05/0.1103, allocations: 28.91 kB / 471.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.1103, allocations: 0 / 471.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.1106, allocations: 135.2 kB / 472 MB, free: 11.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.1106, allocations: 0 / 472 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002812/0.1109, allocations: 125.7 kB / 472.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.1109, allocations: 55.39 kB / 472.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.419e-05/0.111, allocations: 105.8 kB / 472.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.1111, allocations: 33.7 kB / 472.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.1111, allocations: 88.14 kB / 472.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.1111, allocations: 23.7 kB / 472.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.1112, allocations: 33.66 kB / 472.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1113, allocations: 318.8 kB / 472.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.902e-05/0.1114, allocations: 23.98 kB / 472.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.491e-05/0.1114, allocations: 74.84 kB / 472.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.1116, allocations: 148.4 kB / 473.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1116, allocations: 0 / 473.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002222/0.1119, allocations: 163.1 kB / 473.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.1119, allocations: 41.64 kB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1119, allocations: 0 / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1119, allocations: 8.219 kB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.1121, allocations: 15.98 kB / 473.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1121, allocations: 4 kB / 473.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.947e-05/0.1121, allocations: 3.906 kB / 473.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.1121, allocations: 12 kB / 473.3 MB, free: 10.51 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.00014/0.1123, allocations: 129.7 kB / 473.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.1123, allocations: 7.938 kB / 473.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.1124, allocations: 11.97 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1124, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1124, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1124, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.1126, allocations: 177.5 kB / 473.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1126, allocations: 192 / 473.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.566e-05/0.1126, allocations: 7.938 kB / 473.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.1126, allocations: 3.938 kB / 473.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.1126, allocations: 11.97 kB / 473.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1126, allocations: 7.938 kB / 473.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1126, allocations: 0 / 473.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.1128, allocations: 125.4 kB / 473.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.1129, allocations: 92.89 kB / 473.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.1129, allocations: 0 / 473.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.1131, allocations: 23.97 kB / 473.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2e-05/0.1132, allocations: 0 / 473.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1132, allocations: 7.984 kB / 473.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.544e-05/0.1132, allocations: 87.22 kB / 474 MB, free: 9.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1132, allocations: 0 / 474 MB, free: 9.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.1135, allocations: 47.98 kB / 474 MB, free: 9.688 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.0003745/0.1139, allocations: 179 kB / 474.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.1142, allocations: 135.2 kB / 474.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1142, allocations: 0 / 474.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.132e-05/0.1142, allocations: 31.98 kB / 474.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001527/0.1144, allocations: 8 kB / 474.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003492/0.1148, allocations: 170.6 kB / 474.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.115, allocations: 0.6889 MB / 475.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.588e-05/0.1151, allocations: 11.44 kB / 475.2 MB, free: 8.414 MB / 350.1 MB Notification: Performance of SimCode: time 1.583e-06/0.1151, allocations: 0 / 475.2 MB, free: 8.414 MB / 350.1 MB Notification: Performance of Templates: time 0.003623/0.1187, allocations: 1.796 MB / 477 MB, free: 6.617 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