Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 180.3 kB / 16.08 MB, free: 5.531 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.6 MB / 222.4 MB, free: 13.66 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007741/0.0007741, allocations: 86.27 kB / 270.8 MB, free: 13.18 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2061/0.2061, allocations: 43.69 MB / 362.8 MB, free: 11.03 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.000318, allocations: 8 kB / 432.3 MB, free: 19.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.116, allocations: 58.86 MB / 491.2 MB, free: 8.105 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006849/0.1168, allocations: 268.6 kB / 491.4 MB, free: 7.84 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1178, allocations: 0.8047 MB / 492.2 MB, free: 6.941 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.727e-05/0.1178, allocations: 4 kB / 492.2 MB, free: 6.938 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 6.586e-05/0.1179, allocations: 3.938 kB / 492.2 MB, free: 6.934 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.118, allocations: 3.984 kB / 492.3 MB, free: 6.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005049/0.1185, allocations: 147.7 kB / 492.4 MB, free: 6.785 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.1187, allocations: 83.84 kB / 492.5 MB, free: 6.703 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.1187, allocations: 0 / 492.5 MB, free: 6.703 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.296e-05/0.1188, allocations: 39.95 kB / 492.5 MB, free: 6.664 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.397e-05/0.1189, allocations: 19.92 kB / 492.5 MB, free: 6.645 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.1189, allocations: 8 kB / 492.5 MB, free: 6.637 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.1191, allocations: 87.84 kB / 492.6 MB, free: 6.551 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.42e-05/0.1192, allocations: 27.89 kB / 492.7 MB, free: 6.523 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.837e-05/0.1192, allocations: 57.55 kB / 492.7 MB, free: 6.461 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002132/0.1195, allocations: 123.8 kB / 492.8 MB, free: 6.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1195, allocations: 0 / 492.8 MB, free: 6.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1195, allocations: 0 / 492.8 MB, free: 6.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.758e-06/0.1195, allocations: 0 / 492.8 MB, free: 6.34 MB / 330.7 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.0004901/0.12, allocations: 377.2 kB / 493.2 MB, free: 5.914 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.12, allocations: 12.03 kB / 493.2 MB, free: 5.902 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.1201, allocations: 8.844 kB / 493.2 MB, free: 5.895 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.1203, allocations: 180.6 kB / 493.4 MB, free: 5.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1203, allocations: 384 / 493.4 MB, free: 5.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.1203, allocations: 8.312 kB / 493.4 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.1205, allocations: 90.19 kB / 493.5 MB, free: 5.578 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1205, allocations: 192 / 493.5 MB, free: 5.578 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.1205, allocations: 7.938 kB / 493.5 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1205, allocations: 0 / 493.5 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.09e-05/0.1206, allocations: 27.97 kB / 493.5 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.1208, allocations: 165.6 kB / 493.7 MB, free: 5.332 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.268e-05/0.1209, allocations: 46.56 kB / 493.7 MB, free: 5.277 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.362e-05/0.1209, allocations: 24.84 kB / 493.8 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.1209, allocations: 4 kB / 493.8 MB, free: 5.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/0.1212, allocations: 131.2 kB / 493.9 MB, free: 5.105 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.1212, allocations: 0 / 493.9 MB, free: 5.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.000285/0.1215, allocations: 129.7 kB / 494 MB, free: 4.973 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.1215, allocations: 55.41 kB / 494.1 MB, free: 4.906 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.821e-05/0.1216, allocations: 93.86 kB / 494.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.1217, allocations: 37.69 kB / 494.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.867e-05/0.1217, allocations: 80.14 kB / 494.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.1217, allocations: 23.72 kB / 494.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.1217, allocations: 4 kB / 494.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1219, allocations: 322.8 kB / 494.6 MB, free: 4.328 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.226e-05/0.1219, allocations: 23.92 kB / 494.6 MB, free: 4.305 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.875e-05/0.122, allocations: 71.12 kB / 494.7 MB, free: 4.211 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.1222, allocations: 144.4 kB / 494.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1222, allocations: 4 kB / 494.9 MB, free: 4.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002162/0.1224, allocations: 159.1 kB / 495 MB, free: 3.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.1225, allocations: 37.62 kB / 495.1 MB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1225, allocations: 4 kB / 495.1 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1225, allocations: 4 kB / 495.1 MB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.462e-05/0.1226, allocations: 24 kB / 495.1 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1226, allocations: 8.047 kB / 495.1 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.89e-05/0.1227, allocations: 16.06 kB / 495.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.1227, allocations: 8 kB / 495.1 MB, free: 3.762 MB / 330.7 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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.0001403/0.1228, allocations: 133.7 kB / 495.2 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.1229, allocations: 11.92 kB / 495.3 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.227e-05/0.1229, allocations: 8.156 kB / 495.3 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1229, allocations: 3.984 kB / 495.3 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1229, allocations: 0 / 495.3 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1229, allocations: 4 kB / 495.3 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.1231, allocations: 173.6 kB / 495.4 MB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1231, allocations: 0 / 495.4 MB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.921e-05/0.1231, allocations: 4 kB / 495.4 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.1231, allocations: 3.938 kB / 495.5 MB, free: 3.363 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.1232, allocations: 7.984 kB / 495.5 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1232, allocations: 0 / 495.5 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1232, allocations: 4 kB / 495.5 MB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.1234, allocations: 128.9 kB / 495.6 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.1234, allocations: 85.05 kB / 495.7 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1235, allocations: 4 kB / 495.7 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.1237, allocations: 27.97 kB / 495.7 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.1237, allocations: 3.938 kB / 495.7 MB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.1237, allocations: 7.984 kB / 495.7 MB, free: 3.062 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.585e-05/0.1238, allocations: 79.28 kB / 495.8 MB, free: 2.984 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1238, allocations: 4 kB / 495.8 MB, free: 2.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002586/0.124, allocations: 47.98 kB / 495.8 MB, free: 2.934 MB / 330.7 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.0003615/0.1244, allocations: 208.2 kB / 496 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.1246, allocations: 131.3 kB / 496.2 MB, free: 2.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1246, allocations: 0 / 496.2 MB, free: 2.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.805e-05/0.1247, allocations: 31.92 kB / 496.2 MB, free: 2.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.1249, allocations: 8 kB / 496.2 MB, free: 2.562 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003427/0.1252, allocations: 146.6 kB / 496.4 MB, free: 2.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.1255, allocations: 0.6813 MB / 497 MB, free: 1.688 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.736e-05/0.1256, allocations: 20.64 kB / 497.1 MB, free: 1.664 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.1256, allocations: 11.44 kB / 497.1 MB, free: 1.652 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1256, allocations: 0 / 497.1 MB, free: 1.652 MB / 330.7 MB Notification: Performance of Templates: time 0.004198/0.1298, allocations: 1.898 MB / 499 MB, free: 15.76 MB / 346.7 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/jenkins/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) Reference file matches