Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 170 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.5 MB / 230.7 MB, free: 7.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008534/0.0008534, allocations: 97.78 kB / 281.6 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1697/0.1697, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.578e-05, allocations: 4 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 61.91 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3955/0.5006, allocations: 85.16 MB / 0.5778 GB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001817/0.5008, allocations: 67.78 kB / 0.5779 GB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01023/0.5111, allocations: 3.318 MB / 0.5811 GB, free: 7.992 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5111, allocations: 0 / 0.5811 GB, free: 7.992 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.5111, allocations: 0 / 0.5811 GB, free: 7.992 MB / 394.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.0003897/0.5115, allocations: 396 kB / 0.5815 GB, free: 7.555 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.5116, allocations: 15.92 kB / 0.5815 GB, free: 7.539 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.773e-05/0.5116, allocations: 11.89 kB / 0.5815 GB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.5119, allocations: 183 kB / 0.5817 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.5119, allocations: 0 / 0.5817 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.5119, allocations: 7.953 kB / 0.5817 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.467e-05/0.512, allocations: 19.98 kB / 0.5817 GB, free: 7.281 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.5122, allocations: 85.62 kB / 0.5818 GB, free: 7.191 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.5122, allocations: 4 kB / 0.5818 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.5122, allocations: 0 / 0.5818 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.5122, allocations: 0 / 0.5818 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.5124, allocations: 150.2 kB / 0.582 GB, free: 7.004 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.726e-05/0.5125, allocations: 46.52 kB / 0.582 GB, free: 6.949 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.812e-05/0.5125, allocations: 24.84 kB / 0.582 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.5125, allocations: 0 / 0.582 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/0.5127, allocations: 128 kB / 0.5822 GB, free: 6.785 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.5127, allocations: 0 / 0.5822 GB, free: 6.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002616/0.513, allocations: 105.5 kB / 0.5823 GB, free: 6.676 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.5131, allocations: 55.41 kB / 0.5823 GB, free: 6.609 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.784e-05/0.5131, allocations: 96.98 kB / 0.5824 GB, free: 6.508 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.5132, allocations: 29.7 kB / 0.5824 GB, free: 6.473 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.369e-05/0.5132, allocations: 88.27 kB / 0.5825 GB, free: 6.379 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.5132, allocations: 27.64 kB / 0.5825 GB, free: 6.352 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-06/0.5132, allocations: 0 / 0.5825 GB, free: 6.352 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.925e-05/0.5134, allocations: 314.8 kB / 0.5828 GB, free: 6.035 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.704e-05/0.5134, allocations: 19.98 kB / 0.5829 GB, free: 6.016 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.481e-05/0.5135, allocations: 70.86 kB / 0.5829 GB, free: 5.922 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.597e-05/0.5136, allocations: 27.98 kB / 0.583 GB, free: 5.895 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5136, allocations: 4 kB / 0.583 GB, free: 5.891 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001922/0.5138, allocations: 117.9 kB / 0.5831 GB, free: 5.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.5138, allocations: 33.7 kB / 0.5831 GB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5138, allocations: 7.938 kB / 0.5831 GB, free: 5.723 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.5138, allocations: 7.953 kB / 0.5831 GB, free: 5.715 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.704e-05/0.514, allocations: 16.61 kB / 0.5831 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.514, allocations: 0 / 0.5831 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.607e-05/0.514, allocations: 4 kB / 0.5831 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.514, allocations: 16.14 kB / 0.5832 GB, free: 5.68 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) 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 () * 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.0001282/0.5142, allocations: 123.3 kB / 0.5833 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.5142, allocations: 11.91 kB / 0.5833 GB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.5142, allocations: 8.391 kB / 0.5833 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.5143, allocations: 7.984 kB / 0.5833 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.5143, allocations: 3.953 kB / 0.5833 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5143, allocations: 0 / 0.5833 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.5144, allocations: 150.4 kB / 0.5835 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.5144, allocations: 4 kB / 0.5835 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.543e-05/0.5145, allocations: 7.984 kB / 0.5835 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5145, allocations: 0 / 0.5835 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.5145, allocations: 4 kB / 0.5835 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.5145, allocations: 0 / 0.5835 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5145, allocations: 0 / 0.5835 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.5147, allocations: 141 kB / 0.5836 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.5147, allocations: 77.2 kB / 0.5837 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.5148, allocations: 11.94 kB / 0.5837 GB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.5149, allocations: 19.97 kB / 0.5837 GB, free: 5.043 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.597e-05/0.515, allocations: 7.938 kB / 0.5837 GB, free: 5.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.515, allocations: 11.98 kB / 0.5837 GB, free: 5.023 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.842e-05/0.515, allocations: 79.28 kB / 0.5838 GB, free: 4.945 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5151, allocations: 0 / 0.5838 GB, free: 4.945 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004487/0.5155, allocations: 55.92 kB / 0.5839 GB, free: 4.891 MB / 394.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003917/0.5159, allocations: 202.7 kB / 0.584 GB, free: 4.699 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.5161, allocations: 115.6 kB / 0.5842 GB, free: 4.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5161, allocations: 4.062 kB / 0.5842 GB, free: 4.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.497e-05/0.5162, allocations: 28 kB / 0.5842 GB, free: 4.543 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001102/0.5163, allocations: 4 kB / 0.5842 GB, free: 4.539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003113/0.5166, allocations: 99.69 kB / 0.5843 GB, free: 4.418 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.5169, allocations: 0.6884 MB / 0.585 GB, free: 3.703 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.025e-05/0.5169, allocations: 16.66 kB / 0.585 GB, free: 3.688 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.517, allocations: 15.42 kB / 0.585 GB, free: 3.672 MB / 394.7 MB Notification: Performance of SimCode: time 3e-07/0.517, allocations: 0 / 0.585 GB, free: 3.672 MB / 394.7 MB Notification: Performance of Templates: time 0.004299/0.5213, allocations: 2.044 MB / 0.587 GB, free: 1.633 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches