Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.0009701/0.0009701, allocations: 179.2 kB / 16.41 MB, free: 5.727 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.401/1.401, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0008964/0.0008964, allocations: 86.36 kB / 270.9 MB, free: 8.355 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.3408/0.3409, allocations: 43.56 MB / 362.7 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.000363, allocations: 12 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1367, allocations: 58.85 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007407/0.1375, allocations: 272.2 kB / 490.5 MB, free: 10.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008941/0.1384, allocations: 410.6 kB / 490.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.39e-05/0.1385, allocations: 0 / 490.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.403e-05/0.1386, allocations: 0 / 490.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1387, allocations: 3.984 kB / 490.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.1392, allocations: 155.7 kB / 491.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.1393, allocations: 67.8 kB / 491.1 MB, free: 10.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.647e-05/0.1394, allocations: 4 kB / 491.1 MB, free: 10.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.308e-05/0.1395, allocations: 43.89 kB / 491.2 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.573e-05/0.1396, allocations: 11.98 kB / 491.2 MB, free: 10.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.1396, allocations: 4 kB / 491.2 MB, free: 10.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.1398, allocations: 91.84 kB / 491.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.042e-05/0.1398, allocations: 23.95 kB / 491.3 MB, free: 10.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.2e-05/0.1399, allocations: 33.58 kB / 491.3 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.1401, allocations: 83.86 kB / 491.4 MB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1401, allocations: 4 kB / 491.4 MB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1401, allocations: 4 kB / 491.4 MB, free: 10.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.1401, allocations: 0 / 491.4 MB, free: 10.02 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.1406, allocations: 380.6 kB / 491.8 MB, free: 9.594 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1407, allocations: 12.02 kB / 491.8 MB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.289e-05/0.1407, allocations: 7.906 kB / 491.8 MB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.141, allocations: 179 kB / 492 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.141, allocations: 4 kB / 492 MB, free: 9.355 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.141, allocations: 4 kB / 492 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002073/0.1412, allocations: 93.61 kB / 492.1 MB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1412, allocations: 4 kB / 492.1 MB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.1413, allocations: 0 / 492.1 MB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1413, allocations: 0 / 492.1 MB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.819e-05/0.1413, allocations: 27.92 kB / 492.1 MB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.1415, allocations: 173.8 kB / 492.3 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.395e-05/0.1416, allocations: 50.55 kB / 492.3 MB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.1417, allocations: 20.86 kB / 492.4 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.1417, allocations: 4 kB / 492.4 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.142, allocations: 135.2 kB / 492.5 MB, free: 8.773 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.142, allocations: 0 / 492.5 MB, free: 8.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002824/0.1423, allocations: 117.5 kB / 492.6 MB, free: 8.652 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.1424, allocations: 55.41 kB / 492.7 MB, free: 8.586 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.707e-05/0.1425, allocations: 105.8 kB / 492.8 MB, free: 8.473 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.1425, allocations: 29.7 kB / 492.8 MB, free: 8.438 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.753e-05/0.1425, allocations: 84.33 kB / 492.9 MB, free: 8.348 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.1426, allocations: 27.84 kB / 492.9 MB, free: 8.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.1426, allocations: 0 / 492.9 MB, free: 8.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1427, allocations: 322.8 kB / 493.2 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.43e-05/0.1427, allocations: 23.97 kB / 493.2 MB, free: 7.973 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.839e-05/0.1428, allocations: 78.94 kB / 493.3 MB, free: 7.875 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.241e-05/0.1429, allocations: 61.62 kB / 493.4 MB, free: 7.809 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1429, allocations: 0 / 493.4 MB, free: 7.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002063/0.1431, allocations: 171 kB / 493.6 MB, free: 7.629 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.1432, allocations: 29.7 kB / 493.6 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1432, allocations: 7.984 kB / 493.6 MB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1432, allocations: 4 kB / 493.6 MB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.1433, allocations: 12 kB / 493.6 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1433, allocations: 4 kB / 493.6 MB, free: 7.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.153e-05/0.1434, allocations: 16 kB / 493.6 MB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.1434, allocations: 12.2 kB / 493.6 MB, free: 7.539 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,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000159/0.1436, allocations: 137.7 kB / 493.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.1436, allocations: 8.094 kB / 493.8 MB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.1437, allocations: 11.95 kB / 493.8 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1437, allocations: 3.984 kB / 493.8 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1437, allocations: 0 / 493.8 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.1437, allocations: 0 / 493.8 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.1438, allocations: 177.6 kB / 494 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1439, allocations: 4 kB / 494 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.393e-05/0.1439, allocations: 4 kB / 494 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1439, allocations: 0 / 494 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1439, allocations: 0 / 494 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1439, allocations: 7.938 kB / 494 MB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1439, allocations: 0 / 494 MB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.1441, allocations: 129 kB / 494.1 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.739e-05/0.1442, allocations: 81.11 kB / 494.2 MB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.1442, allocations: 11.98 kB / 494.2 MB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.1444, allocations: 23.97 kB / 494.2 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.722e-05/0.1445, allocations: 4 kB / 494.2 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.1445, allocations: 11.98 kB / 494.2 MB, free: 6.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.984e-05/0.1445, allocations: 79.22 kB / 494.3 MB, free: 6.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.014e-06/0.1445, allocations: 0 / 494.3 MB, free: 6.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.1448, allocations: 43.94 kB / 494.4 MB, free: 6.719 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003884/0.1452, allocations: 181.3 kB / 494.5 MB, free: 6.547 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002032/0.1454, allocations: 127.6 kB / 494.7 MB, free: 6.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1454, allocations: 4.125 kB / 494.7 MB, free: 6.406 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.695e-05/0.1455, allocations: 31.92 kB / 494.7 MB, free: 6.375 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001665/0.1457, allocations: 15.94 kB / 494.7 MB, free: 6.359 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003724/0.1461, allocations: 164.5 kB / 494.9 MB, free: 6.168 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.1463, allocations: 0.6887 MB / 495.6 MB, free: 5.453 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.71e-05/0.1464, allocations: 19.42 kB / 495.6 MB, free: 5.438 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1464, allocations: 4 kB / 495.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of Templates: time 0.003546/0.1499, allocations: 1.782 MB / 497.4 MB, free: 3.652 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_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,id,lowBound,n,nrSigma,samples,time,y