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.001203/0.001203, allocations: 104.1 kB / 16.64 MB, free: 6.82 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.001227/0.001227, allocations: 194.5 kB / 17.56 MB, free: 5.945 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.422/1.422, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.2049/0.2049, allocations: 43.51 MB / 314.3 MB, free: 0.7188 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.00161/0.00161, allocations: 65.44 kB / 382.9 MB, free: 56.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1127, allocations: 57.79 MB / 440.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.00178/0.1145, allocations: 0.6011 MB / 441.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007607/0.1153, allocations: 440.9 kB / 441.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.1154, allocations: 0 / 441.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.009e-05/0.1155, allocations: 7.938 kB / 441.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.1156, allocations: 4 kB / 441.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.1162, allocations: 159.3 kB / 441.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.1164, allocations: 87.78 kB / 441.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.1164, allocations: 0 / 441.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.857e-05/0.1165, allocations: 39.95 kB / 442 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.871e-05/0.1165, allocations: 19.92 kB / 442 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.1165, allocations: 0 / 442 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.1167, allocations: 95.91 kB / 442.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.908e-05/0.1168, allocations: 31.89 kB / 442.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.1168, allocations: 27.84 kB / 442.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.1169, allocations: 83.86 kB / 442.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.117, allocations: 0 / 442.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.117, allocations: 3.938 kB / 442.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.117, allocations: 4 kB / 442.2 MB, free: 5.793 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.0004475/0.1174, allocations: 409.3 kB / 442.6 MB, free: 5.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1175, allocations: 8.031 kB / 442.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.602e-05/0.1175, allocations: 8.844 kB / 442.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.1177, allocations: 184.3 kB / 442.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1177, allocations: 384 / 442.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1177, allocations: 8.375 kB / 442.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.1179, allocations: 90.19 kB / 442.9 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1179, allocations: 192 / 442.9 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.1179, allocations: 3.938 kB / 442.9 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1179, allocations: 3.938 kB / 442.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.804e-05/0.118, allocations: 27.97 kB / 443 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.1181, allocations: 161.7 kB / 443.1 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.33e-05/0.1182, allocations: 50.56 kB / 443.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.852e-05/0.1183, allocations: 20.91 kB / 443.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.1183, allocations: 8.141 kB / 443.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.1185, allocations: 135.2 kB / 443.3 MB, free: 4.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.1186, allocations: 0 / 443.3 MB, free: 4.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.000256/0.1188, allocations: 129.4 kB / 443.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.1188, allocations: 59.39 kB / 443.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.841e-05/0.1189, allocations: 97.86 kB / 443.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.1189, allocations: 25.7 kB / 443.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.854e-05/0.119, allocations: 92.12 kB / 443.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.119, allocations: 19.72 kB / 443.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.119, allocations: 33.7 kB / 443.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.366e-05/0.1191, allocations: 318.8 kB / 444.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.01e-05/0.1191, allocations: 23.98 kB / 444.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.25e-05/0.1192, allocations: 66.86 kB / 444.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.1193, allocations: 148.4 kB / 444.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1193, allocations: 4 kB / 444.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000169/0.1195, allocations: 159.4 kB / 444.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.1195, allocations: 37.64 kB / 444.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.1196, allocations: 4.062 kB / 444.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1196, allocations: 7.938 kB / 444.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.1197, allocations: 23.92 kB / 444.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1197, allocations: 4 kB / 444.6 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.612e-05/0.1198, allocations: 11.88 kB / 444.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.1198, allocations: 8.219 kB / 444.6 MB, free: 3.148 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.0001076/0.1199, allocations: 137.6 kB / 444.7 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.1199, allocations: 7.938 kB / 444.7 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.12, allocations: 11.95 kB / 444.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.12, allocations: 4 kB / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.12, allocations: 0 / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.12, allocations: 0 / 444.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.323e-05/0.1201, allocations: 169.6 kB / 444.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1201, allocations: 0 / 444.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.257e-05/0.1201, allocations: 7.984 kB / 444.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1201, allocations: 3.938 kB / 444.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.1202, allocations: 4 kB / 444.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1202, allocations: 0 / 444.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1202, allocations: 0 / 444.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.1204, allocations: 132.9 kB / 445.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.65e-05/0.1204, allocations: 85.05 kB / 445.1 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1204, allocations: 11.98 kB / 445.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.1206, allocations: 11.98 kB / 445.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.368e-05/0.1206, allocations: 11.98 kB / 445.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.1207, allocations: 4 kB / 445.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.213e-05/0.1207, allocations: 79.27 kB / 445.3 MB, free: 2.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1207, allocations: 0 / 445.3 MB, free: 2.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002712/0.121, allocations: 44 kB / 445.3 MB, free: 2.336 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.000346/0.1213, allocations: 197.6 kB / 445.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.1215, allocations: 123.2 kB / 445.6 MB, free: 2.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1215, allocations: 4 kB / 445.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.203e-05/0.1216, allocations: 36.5 kB / 445.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/0.1217, allocations: 11.98 kB / 445.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000307/0.1221, allocations: 178.7 kB / 445.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.32e-05/0.1222, allocations: 0.6846 MB / 446.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.313e-05/0.1222, allocations: 19.42 kB / 446.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1222, allocations: 0 / 446.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of Templates: time 0.003177/0.1254, allocations: 1.796 MB / 448.3 MB, free: 15.24 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","../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