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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001252/0.001252, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.1 MB / 222.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009199/0.0009198, allocations: 107.9 kB / 269.9 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2984/0.2984, allocations: 43.49 MB / 360.7 MB, free: 51.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 55.92 kB / 429.2 MB, free: 6.371 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1208, allocations: 57.77 MB / 487 MB, free: 12.54 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001652/0.1225, allocations: 0.6047 MB / 487.6 MB, free: 11.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007765/0.1232, allocations: 454.3 kB / 488.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.567e-05/0.1233, allocations: 0 / 488.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.676e-05/0.1234, allocations: 7.875 kB / 488.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.1235, allocations: 11.97 kB / 488.1 MB, free: 11.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004461/0.1239, allocations: 147.6 kB / 488.2 MB, free: 11.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001344/0.1241, allocations: 75.92 kB / 488.3 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.64e-05/0.1241, allocations: 3.938 kB / 488.3 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.759e-05/0.1242, allocations: 43.95 kB / 488.3 MB, free: 11.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.1242, allocations: 19.91 kB / 488.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.1243, allocations: 4 kB / 488.4 MB, free: 11.17 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.1244, allocations: 91.91 kB / 488.5 MB, free: 11.08 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.028e-05/0.1245, allocations: 27.89 kB / 488.5 MB, free: 11.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.284e-05/0.1246, allocations: 27.86 kB / 488.5 MB, free: 11.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.1248, allocations: 123.8 kB / 488.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1248, allocations: 0 / 488.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1248, allocations: 0 / 488.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1248, allocations: 0 / 488.6 MB, free: 10.91 MB / 378.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.0005448/0.1253, allocations: 409.1 kB / 489 MB, free: 10.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.1254, allocations: 8.031 kB / 489 MB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.074e-05/0.1254, allocations: 8.844 kB / 489 MB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.1256, allocations: 184.6 kB / 489.2 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.1257, allocations: 8.375 kB / 489.2 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.1257, allocations: 384 / 489.2 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.1259, allocations: 94.19 kB / 489.3 MB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1259, allocations: 4.125 kB / 489.3 MB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.1259, allocations: 7.938 kB / 489.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1259, allocations: 0 / 489.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.237e-05/0.126, allocations: 19.98 kB / 489.4 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.1262, allocations: 177.6 kB / 489.5 MB, free: 9.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.86e-05/0.1263, allocations: 42.56 kB / 489.6 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.274e-05/0.1263, allocations: 24.91 kB / 489.6 MB, free: 9.777 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.1264, allocations: 7.938 kB / 489.6 MB, free: 9.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002532/0.1266, allocations: 123.3 kB / 489.7 MB, free: 9.637 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.1266, allocations: 8 kB / 489.7 MB, free: 9.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002668/0.1269, allocations: 125.4 kB / 489.9 MB, free: 9.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.1269, allocations: 59.39 kB / 489.9 MB, free: 9.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.216e-05/0.127, allocations: 101.8 kB / 490 MB, free: 9.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.127, allocations: 29.7 kB / 490 MB, free: 9.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.866e-05/0.1271, allocations: 84.28 kB / 490.1 MB, free: 9.199 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.1271, allocations: 23.7 kB / 490.1 MB, free: 9.176 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.1272, allocations: 37.7 kB / 490.2 MB, free: 9.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.1273, allocations: 314.8 kB / 490.5 MB, free: 8.816 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.1273, allocations: 27.97 kB / 490.5 MB, free: 8.789 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.13e-05/0.1274, allocations: 78.8 kB / 490.6 MB, free: 8.688 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.1276, allocations: 140.5 kB / 490.7 MB, free: 8.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1276, allocations: 0 / 490.7 MB, free: 8.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002008/0.1278, allocations: 167.1 kB / 490.9 MB, free: 8.344 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.1278, allocations: 33.64 kB / 490.9 MB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1278, allocations: 4 kB / 490.9 MB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1279, allocations: 4 kB / 490.9 MB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.205e-05/0.128, allocations: 19.92 kB / 491 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.128, allocations: 0 / 491 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.751e-05/0.128, allocations: 15.88 kB / 491 MB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.128, allocations: 8 kB / 491 MB, free: 8.254 MB / 378.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,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.0001226/0.1282, allocations: 134 kB / 491.1 MB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.1282, allocations: 11.84 kB / 491.1 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.1282, allocations: 3.969 kB / 491.1 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1282, allocations: 0 / 491.1 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1282, allocations: 3.984 kB / 491.1 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1283, allocations: 0 / 491.1 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.1284, allocations: 169.7 kB / 491.3 MB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.1284, allocations: 0 / 491.3 MB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.1284, allocations: 12.33 kB / 491.3 MB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.1284, allocations: 7.938 kB / 491.3 MB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.1285, allocations: 0 / 491.3 MB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1285, allocations: 3.938 kB / 491.3 MB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1285, allocations: 4 kB / 491.3 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.1289, allocations: 0.702 MB / 492 MB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.129, allocations: 77.11 kB / 492.1 MB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.129, allocations: 15.94 kB / 492.1 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.1292, allocations: 15.97 kB / 492.1 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.509e-05/0.1293, allocations: 7.938 kB / 492.1 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.1293, allocations: 11.98 kB / 492.2 MB, free: 6.945 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.945e-05/0.1293, allocations: 79.28 kB / 492.2 MB, free: 6.867 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1293, allocations: 0 / 492.2 MB, free: 6.867 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003552/0.1297, allocations: 39.98 kB / 492.3 MB, free: 6.828 MB / 378.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.000338/0.13, allocations: 202 kB / 492.5 MB, free: 6.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001772/0.1302, allocations: 131.2 kB / 492.6 MB, free: 6.496 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1302, allocations: 0 / 492.6 MB, free: 6.496 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.208e-05/0.1303, allocations: 28.42 kB / 492.6 MB, free: 6.469 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.1304, allocations: 12 kB / 492.6 MB, free: 6.457 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003907/0.1308, allocations: 277.4 kB / 492.9 MB, free: 6.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.1311, allocations: 0.6888 MB / 493.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.737e-05/0.1311, allocations: 20.59 kB / 493.6 MB, free: 5.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.125e-05/0.1311, allocations: 15.42 kB / 493.6 MB, free: 5.395 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1311, allocations: 0 / 493.6 MB, free: 5.395 MB / 378.7 MB Notification: Performance of Templates: time 0.003958/0.1351, allocations: 1.959 MB / 495.6 MB, free: 3.441 MB / 378.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@2/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