Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.00155/0.00155, allocations: 119.1 kB / 17.09 MB, free: 5.992 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.001993/0.001992, allocations: 193.2 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.218/0.218, allocations: 43.51 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 61.47 kB / 442.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.107, allocations: 57.78 MB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001917/0.1089, allocations: 0.5484 MB / 0.4891 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009303/0.1099, allocations: 440 kB / 0.4895 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.676e-05/0.11, allocations: 3.938 kB / 0.4895 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.353e-05/0.1101, allocations: 3.938 kB / 0.4895 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.1102, allocations: 15.92 kB / 0.4895 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006437/0.1109, allocations: 171.5 kB / 0.4897 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1111, allocations: 75.92 kB / 0.4897 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.1111, allocations: 4 kB / 0.4898 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.33e-05/0.1112, allocations: 43.89 kB / 0.4898 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002332/0.1135, allocations: 380.1 kB / 0.4902 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.1136, allocations: 4 kB / 0.4902 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.429e-05/0.1137, allocations: 15.98 kB / 0.4902 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.083e-05/0.1137, allocations: 19.97 kB / 0.4902 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.644e-05/0.1138, allocations: 35.83 kB / 0.4902 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.114, allocations: 59.84 kB / 0.4903 GB, free: 10.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.114, allocations: 4 kB / 0.4903 GB, free: 10.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.114, allocations: 0 / 0.4903 GB, free: 10.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.114, allocations: 4 kB / 0.4903 GB, free: 10.04 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.0005899/0.1146, allocations: 393.1 kB / 0.4907 GB, free: 9.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1147, allocations: 12.02 kB / 0.4907 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.267e-05/0.1147, allocations: 8.844 kB / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.1149, allocations: 180.3 kB / 0.4909 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.115, allocations: 4.375 kB / 0.4909 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.115, allocations: 4.375 kB / 0.4909 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.1152, allocations: 94.12 kB / 0.491 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.1152, allocations: 4.188 kB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.1152, allocations: 3.938 kB / 0.491 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1152, allocations: 0 / 0.491 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.536e-05/0.1153, allocations: 23.98 kB / 0.491 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000212/0.1155, allocations: 165.7 kB / 0.4911 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.498e-05/0.1156, allocations: 54.61 kB / 0.4912 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.315e-05/0.1157, allocations: 20.92 kB / 0.4912 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.1157, allocations: 0 / 0.4912 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.1159, allocations: 135.2 kB / 0.4913 GB, free: 8.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.154e-06/0.1159, allocations: 0 / 0.4913 GB, free: 8.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003371/0.1163, allocations: 125.4 kB / 0.4915 GB, free: 8.652 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1163, allocations: 55.69 kB / 0.4915 GB, free: 8.586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.54e-05/0.1164, allocations: 105.8 kB / 0.4916 GB, free: 8.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.1165, allocations: 29.7 kB / 0.4917 GB, free: 8.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.1165, allocations: 88.08 kB / 0.4917 GB, free: 8.348 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.703e-05/0.1165, allocations: 27.64 kB / 0.4918 GB, free: 8.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/0.1166, allocations: 29.7 kB / 0.4918 GB, free: 8.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1167, allocations: 318.8 kB / 0.4921 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.178e-05/0.1168, allocations: 23.92 kB / 0.4921 GB, free: 7.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.952e-05/0.1169, allocations: 90.78 kB / 0.4922 GB, free: 7.828 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.1171, allocations: 140.5 kB / 0.4923 GB, free: 7.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1171, allocations: 4 kB / 0.4923 GB, free: 7.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002298/0.1173, allocations: 155.1 kB / 0.4925 GB, free: 7.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.1174, allocations: 41.64 kB / 0.4925 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1174, allocations: 4.219 kB / 0.4925 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1174, allocations: 4 kB / 0.4925 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.1175, allocations: 19.92 kB / 0.4926 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.1175, allocations: 4 kB / 0.4926 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.074e-05/0.1176, allocations: 4 kB / 0.4926 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1176, allocations: 4 kB / 0.4926 GB, free: 7.406 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.000161/0.1178, allocations: 133.7 kB / 0.4927 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.1178, allocations: 11.84 kB / 0.4927 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.832e-05/0.1179, allocations: 11.97 kB / 0.4927 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1179, allocations: 4 kB / 0.4927 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1179, allocations: 0 / 0.4927 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1179, allocations: 0 / 0.4927 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001554/0.118, allocations: 169.6 kB / 0.4929 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1181, allocations: 0 / 0.4929 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.793e-05/0.1181, allocations: 8.062 kB / 0.4929 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1181, allocations: 8.125 kB / 0.4929 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1181, allocations: 7.984 kB / 0.4929 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1181, allocations: 0 / 0.4929 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1181, allocations: 4 kB / 0.4929 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.1183, allocations: 136.9 kB / 0.493 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.1184, allocations: 81.05 kB / 0.4931 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.1184, allocations: 4 kB / 0.4931 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.1186, allocations: 19.97 kB / 0.4931 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.1187, allocations: 4 kB / 0.4931 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.1187, allocations: 7.984 kB / 0.4932 GB, free: 6.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.268e-05/0.1187, allocations: 83.22 kB / 0.4932 GB, free: 6.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1188, allocations: 0 / 0.4932 GB, free: 6.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.119, allocations: 24 kB / 0.4933 GB, free: 6.598 MB / 382.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.0002542/0.1193, allocations: 119.4 kB / 0.4934 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002383/0.1195, allocations: 135.5 kB / 0.4935 GB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1195, allocations: 8.125 kB / 0.4935 GB, free: 6.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.93e-05/0.1196, allocations: 31.92 kB / 0.4935 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.1197, allocations: 8 kB / 0.4935 GB, free: 6.281 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003697/0.1201, allocations: 174.5 kB / 0.4937 GB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1204, allocations: 0.6807 MB / 0.4944 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.1204, allocations: 15.44 kB / 0.4944 GB, free: 5.355 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1205, allocations: 0 / 0.4944 GB, free: 5.355 MB / 382.1 MB Notification: Performance of Templates: time 0.003365/0.1238, allocations: 1.295 MB / 0.4957 GB, free: 4.062 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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