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.001388/0.001388, allocations: 96.98 kB / 16.93 MB, free: 6.188 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.001083/0.001083, allocations: 191.6 kB / 17.86 MB, free: 5.289 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.488/1.488, allocations: 205.1 MB / 223.7 MB, free: 12.28 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.2192/0.2192, allocations: 43.53 MB / 314.6 MB, free: 0.5078 MB / 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.001832/0.001832, allocations: 74.48 kB / 383.4 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1122, allocations: 57.79 MB / 441.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002174/0.1144, allocations: 0.5373 MB / 441.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008909/0.1153, allocations: 451 kB / 442.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.855e-05/0.1154, allocations: 0 / 442.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.91e-05/0.1155, allocations: 7.938 kB / 442.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.1156, allocations: 3.938 kB / 442.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.1163, allocations: 167.5 kB / 442.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1165, allocations: 83.8 kB / 442.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.1165, allocations: 7.984 kB / 442.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.265e-05/0.1166, allocations: 35.97 kB / 442.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002384/0.119, allocations: 368.1 kB / 442.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.314e-05/0.119, allocations: 4 kB / 442.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.913e-05/0.1191, allocations: 23.97 kB / 442.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.006e-05/0.1192, allocations: 15.98 kB / 442.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.59e-05/0.1193, allocations: 23.89 kB / 442.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.1194, allocations: 67.78 kB / 443 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1195, allocations: 4 kB / 443 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1195, allocations: 0 / 443 MB, free: 5.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1195, allocations: 0 / 443 MB, free: 5.184 MB / 318.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.0004599/0.1199, allocations: 393.4 kB / 443.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.12, allocations: 12.03 kB / 443.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.822e-05/0.1201, allocations: 12.83 kB / 443.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1202, allocations: 180.3 kB / 443.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.707e-06/0.1202, allocations: 384 / 443.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.1202, allocations: 8.375 kB / 443.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.1204, allocations: 98.19 kB / 443.7 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1204, allocations: 4.125 kB / 443.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.1205, allocations: 7.922 kB / 443.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.1205, allocations: 0 / 443.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.954e-05/0.1206, allocations: 23.97 kB / 443.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.1207, allocations: 165.7 kB / 443.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.754e-05/0.1208, allocations: 50.5 kB / 443.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.841e-05/0.1208, allocations: 20.91 kB / 443.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.1209, allocations: 8 kB / 443.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.1211, allocations: 127.2 kB / 444.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.1211, allocations: 3.938 kB / 444.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002901/0.1214, allocations: 125.5 kB / 444.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.1214, allocations: 59.41 kB / 444.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.1215, allocations: 105.8 kB / 444.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.1215, allocations: 25.7 kB / 444.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.232e-05/0.1215, allocations: 84.14 kB / 444.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.1216, allocations: 31.84 kB / 444.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.1216, allocations: 25.72 kB / 444.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.184e-05/0.1217, allocations: 318.8 kB / 444.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.317e-05/0.1218, allocations: 23.98 kB / 444.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-05/0.1218, allocations: 78.78 kB / 444.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.122, allocations: 144.4 kB / 445.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.122, allocations: 0 / 445.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001864/0.1222, allocations: 163.2 kB / 445.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.1222, allocations: 45.62 kB / 445.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1222, allocations: 0 / 445.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1222, allocations: 4 kB / 445.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1223, allocations: 16 kB / 445.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1224, allocations: 7.984 kB / 445.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.917e-05/0.1224, allocations: 4 kB / 445.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.1224, allocations: 4 kB / 445.3 MB, free: 2.551 MB / 318.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.000134/0.1226, allocations: 137.9 kB / 445.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.1226, allocations: 11.92 kB / 445.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.459e-05/0.1226, allocations: 3.969 kB / 445.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1227, allocations: 0 / 445.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1227, allocations: 0 / 445.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1227, allocations: 4.062 kB / 445.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/0.1228, allocations: 173.6 kB / 445.6 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1228, allocations: 0 / 445.6 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.359e-05/0.1228, allocations: 4 kB / 445.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1228, allocations: 4.219 kB / 445.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.1229, allocations: 11.98 kB / 445.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.1229, allocations: 3.938 kB / 445.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1229, allocations: 3.938 kB / 445.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.123, allocations: 129 kB / 445.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.018e-05/0.1231, allocations: 88.98 kB / 445.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.1231, allocations: 4 kB / 445.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.1233, allocations: 20.14 kB / 445.9 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-05/0.1233, allocations: 8 kB / 445.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.1234, allocations: 7.984 kB / 445.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.181e-05/0.1234, allocations: 83.22 kB / 446 MB, free: 1.766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1234, allocations: 0 / 446 MB, free: 1.766 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.1236, allocations: 20 kB / 446 MB, free: 1.746 MB / 318.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.0002341/0.1239, allocations: 131.8 kB / 446.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.1241, allocations: 135.2 kB / 446.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.1241, allocations: 4 kB / 446.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.448e-05/0.1242, allocations: 27.98 kB / 446.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001615/0.1243, allocations: 11.59 kB / 446.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.1246, allocations: 162.6 kB / 446.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.1248, allocations: 0.6927 MB / 447.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.1248, allocations: 11.44 kB / 447.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1248, allocations: 0 / 447.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of Templates: time 0.002867/0.1277, allocations: 1.292 MB / 448.5 MB, free: 15.21 MB / 334.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