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.001668/0.001668, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001777/0.001777, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.424/1.424, allocations: 222.9 MB / 242.9 MB, free: 15.23 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.203/0.203, allocations: 44.18 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 68.42 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1199, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002145/0.1221, allocations: 0.5231 MB / 470.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1232, allocations: 453 kB / 470.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.092e-05/0.1232, allocations: 0 / 470.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.649e-05/0.1233, allocations: 3.938 kB / 470.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.1235, allocations: 11.92 kB / 470.9 MB, free: 13.4 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.0006494/0.1241, allocations: 162.8 kB / 471.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.1243, allocations: 83.84 kB / 471.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.1244, allocations: 4 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.469e-05/0.1244, allocations: 47.89 kB / 471.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.772e-05/0.1245, allocations: 15.92 kB / 471.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.1246, allocations: 4 kB / 471.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.1248, allocations: 95.84 kB / 471.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.1249, allocations: 23.95 kB / 471.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.961e-05/0.1249, allocations: 23.91 kB / 471.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.1252, allocations: 131.7 kB / 471.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1252, allocations: 0 / 471.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1252, allocations: 0 / 471.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.1252, allocations: 4 kB / 471.5 MB, free: 12.82 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.0005798/0.1258, allocations: 405.1 kB / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1258, allocations: 8.031 kB / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.1259, allocations: 4.938 kB / 471.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.1261, allocations: 188.2 kB / 472.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1261, allocations: 4.375 kB / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.1262, allocations: 8.359 kB / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.1264, allocations: 86.2 kB / 472.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1264, allocations: 192 / 472.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.1264, allocations: 3.938 kB / 472.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1264, allocations: 4 kB / 472.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.886e-05/0.1265, allocations: 27.97 kB / 472.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001987/0.1267, allocations: 169.8 kB / 472.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.1268, allocations: 50.58 kB / 472.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.798e-05/0.1269, allocations: 20.98 kB / 472.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.1269, allocations: 7.984 kB / 472.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.1272, allocations: 131.3 kB / 472.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.1272, allocations: 0 / 472.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003204/0.1275, allocations: 121.9 kB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1276, allocations: 59.34 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.345e-05/0.1277, allocations: 105.8 kB / 472.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.1277, allocations: 33.7 kB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.1277, allocations: 84.14 kB / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.1278, allocations: 19.72 kB / 473 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.1278, allocations: 29.7 kB / 473 MB, free: 11.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.128, allocations: 322.8 kB / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.678e-05/0.128, allocations: 23.92 kB / 473.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.793e-05/0.1281, allocations: 70.86 kB / 473.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.1283, allocations: 148.4 kB / 473.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.1283, allocations: 4 kB / 473.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002393/0.1286, allocations: 159.1 kB / 473.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.1286, allocations: 41.62 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1286, allocations: 0 / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1287, allocations: 4.219 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.1288, allocations: 16 kB / 473.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.1288, allocations: 7.984 kB / 473.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.436e-05/0.1288, allocations: 11.84 kB / 473.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.1289, allocations: 8 kB / 473.8 MB, free: 10.18 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.0001665/0.129, allocations: 124.5 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.1291, allocations: 7.938 kB / 474 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.1291, allocations: 15.95 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1291, allocations: 4 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.1291, allocations: 4.062 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1292, allocations: 0 / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.1293, allocations: 173.5 kB / 474.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1293, allocations: 0 / 474.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.985e-05/0.1294, allocations: 12.12 kB / 474.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.1294, allocations: 3.938 kB / 474.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.1294, allocations: 7.938 kB / 474.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1294, allocations: 0 / 474.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1294, allocations: 7.969 kB / 474.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002068/0.1296, allocations: 121.1 kB / 474.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.1297, allocations: 92.94 kB / 474.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.1297, allocations: 4 kB / 474.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.1299, allocations: 19.97 kB / 474.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.496e-05/0.13, allocations: 11.88 kB / 474.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.13, allocations: 7.984 kB / 474.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.369e-05/0.13, allocations: 83.28 kB / 474.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.13, allocations: 0 / 474.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002875/0.1303, allocations: 40 kB / 474.6 MB, free: 9.355 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.0003815/0.1307, allocations: 177.9 kB / 474.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002406/0.131, allocations: 135.2 kB / 474.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.131, allocations: 7.938 kB / 474.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.484e-05/0.1311, allocations: 27.98 kB / 474.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.1312, allocations: 11.98 kB / 474.9 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004041/0.1316, allocations: 162.6 kB / 475.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.1319, allocations: 0.6889 MB / 475.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.132, allocations: 15.44 kB / 475.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.132, allocations: 3.938 kB / 475.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of Templates: time 0.004232/0.1362, allocations: 1.79 MB / 477.6 MB, free: 6.285 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