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.001003/0.001009, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001093/0.001093, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.31/1.31, allocations: 222.9 MB / 242.2 MB, free: 15.2 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.2539/0.2539, allocations: 44.18 MB / 336.6 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 64.98 kB / 408.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.112, allocations: 60.82 MB / 469.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001732/0.1138, allocations: 0.5343 MB / 469.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008587/0.1147, allocations: 453.1 kB / 470.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.129e-05/0.1147, allocations: 0 / 470.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.602e-05/0.1148, allocations: 3.938 kB / 470.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.1149, allocations: 3.984 kB / 470.2 MB, free: 13.36 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.0005817/0.1155, allocations: 174.6 kB / 470.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.1156, allocations: 79.86 kB / 470.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.911e-05/0.1157, allocations: 3.984 kB / 470.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.923e-05/0.1158, allocations: 43.91 kB / 470.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.992e-05/0.1158, allocations: 19.91 kB / 470.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/0.1159, allocations: 4 kB / 470.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.1161, allocations: 95.84 kB / 470.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.1161, allocations: 23.95 kB / 470.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.81e-05/0.1162, allocations: 23.91 kB / 470.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.1164, allocations: 127.7 kB / 470.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.1164, allocations: 7.984 kB / 470.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1164, allocations: 7.938 kB / 470.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1164, allocations: 0 / 470.8 MB, free: 12.76 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.0006824/0.1171, allocations: 397.1 kB / 471.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.1172, allocations: 12.03 kB / 471.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.583e-05/0.1173, allocations: 0.9375 kB / 471.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.1175, allocations: 184.3 kB / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.1175, allocations: 384 / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.1175, allocations: 8.359 kB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.1177, allocations: 94.14 kB / 471.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.1178, allocations: 4.188 kB / 471.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.1178, allocations: 3.938 kB / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1178, allocations: 3.984 kB / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7e-05/0.1179, allocations: 23.97 kB / 471.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001794/0.1181, allocations: 173.8 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.244e-05/0.1182, allocations: 38.56 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.475e-05/0.1182, allocations: 28.91 kB / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.1182, allocations: 7.938 kB / 471.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.1185, allocations: 127.3 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.1185, allocations: 0 / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002925/0.1188, allocations: 129.7 kB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.1188, allocations: 55.41 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.722e-05/0.1189, allocations: 101.8 kB / 472.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.119, allocations: 29.7 kB / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.192e-05/0.119, allocations: 80.14 kB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.558e-05/0.119, allocations: 27.7 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.1191, allocations: 29.72 kB / 472.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1192, allocations: 314.8 kB / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.255e-05/0.1193, allocations: 31.92 kB / 472.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.928e-05/0.1194, allocations: 78.78 kB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.1196, allocations: 140.4 kB / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1196, allocations: 0 / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002221/0.1198, allocations: 159.4 kB / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.1199, allocations: 45.84 kB / 473.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1199, allocations: 0 / 473.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1199, allocations: 7.938 kB / 473.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.12, allocations: 20 kB / 473.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.12, allocations: 12.05 kB / 473.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.264e-05/0.1201, allocations: 7.906 kB / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.1201, allocations: 8 kB / 473.2 MB, free: 10.12 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.0001549/0.1203, allocations: 129.7 kB / 473.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.1203, allocations: 15.92 kB / 473.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.1203, allocations: 3.969 kB / 473.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.1203, allocations: 0 / 473.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1203, allocations: 0 / 473.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1204, allocations: 4 kB / 473.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.1205, allocations: 177.5 kB / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1205, allocations: 0 / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.521e-05/0.1206, allocations: 4 kB / 473.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1206, allocations: 3.938 kB / 473.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.138e-06/0.1206, allocations: 3.938 kB / 473.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1206, allocations: 11.98 kB / 473.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.1206, allocations: 0 / 473.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000194/0.1208, allocations: 125 kB / 473.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.1209, allocations: 92.94 kB / 473.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.1209, allocations: 0 / 473.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.1211, allocations: 19.97 kB / 473.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.038e-05/0.1211, allocations: 192 / 473.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1211, allocations: 15.98 kB / 473.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.39e-05/0.1212, allocations: 83.27 kB / 473.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1212, allocations: 0 / 473.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.1215, allocations: 43.98 kB / 473.9 MB, free: 9.309 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.0003719/0.1219, allocations: 176.4 kB / 474.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.1221, allocations: 135.3 kB / 474.2 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1221, allocations: 0 / 474.2 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.879e-05/0.1222, allocations: 31.92 kB / 474.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001548/0.1223, allocations: 9.719 kB / 474.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.1227, allocations: 137.3 kB / 474.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.123, allocations: 0.6885 MB / 475 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.677e-05/0.123, allocations: 12.66 kB / 475.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.17e-05/0.123, allocations: 11.44 kB / 475.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1231, allocations: 0 / 475.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of Templates: time 0.004741/0.1278, allocations: 1.999 MB / 477.1 MB, free: 6.062 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/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