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.0009008/0.000901, allocations: 176.4 kB / 16.76 MB, free: 5.051 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.404/1.404, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.00073/0.00073, allocations: 89.02 kB / 271.3 MB, free: 8.266 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.3471/0.3471, allocations: 43.56 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004031, allocations: 8 kB / 432.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1344, allocations: 58.85 MB / 491.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3661/0.5005, allocations: 84.83 MB / 0.5628 GB, free: 1.184 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.5008, allocations: 63.97 kB / 0.5629 GB, free: 1.121 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009879/0.5107, allocations: 3.329 MB / 0.5661 GB, free: 13.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5108, allocations: 0 / 0.5661 GB, free: 13.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.5108, allocations: 4 kB / 0.5661 GB, free: 13.81 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.0004379/0.5112, allocations: 392.8 kB / 0.5665 GB, free: 13.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.5113, allocations: 8.031 kB / 0.5665 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.5113, allocations: 12.78 kB / 0.5665 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.5116, allocations: 192.2 kB / 0.5667 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.5116, allocations: 4.359 kB / 0.5667 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.5116, allocations: 4.375 kB / 0.5667 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.5118, allocations: 90.17 kB / 0.5668 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.5118, allocations: 4.188 kB / 0.5668 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.5119, allocations: 7.938 kB / 0.5668 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.5119, allocations: 4 kB / 0.5668 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.573e-05/0.512, allocations: 27.95 kB / 0.5668 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.5121, allocations: 165.6 kB / 0.567 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.5122, allocations: 50.55 kB / 0.567 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.611e-05/0.5123, allocations: 24.84 kB / 0.567 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.5123, allocations: 0 / 0.567 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.5126, allocations: 131.3 kB / 0.5672 GB, free: 12.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.5126, allocations: 0 / 0.5672 GB, free: 12.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002993/0.5129, allocations: 133.4 kB / 0.5673 GB, free: 12.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.513, allocations: 55.41 kB / 0.5674 GB, free: 12.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.698e-05/0.5131, allocations: 101.8 kB / 0.5675 GB, free: 12.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.5131, allocations: 33.7 kB / 0.5675 GB, free: 12.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.79e-05/0.5131, allocations: 80.14 kB / 0.5676 GB, free: 12.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.5132, allocations: 31.86 kB / 0.5676 GB, free: 12.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.5132, allocations: 4 kB / 0.5676 GB, free: 12.08 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.5133, allocations: 318.8 kB / 0.5679 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.5134, allocations: 19.98 kB / 0.5679 GB, free: 11.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.292e-05/0.5135, allocations: 75.69 kB / 0.568 GB, free: 11.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.5137, allocations: 148.4 kB / 0.5681 GB, free: 11.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5137, allocations: 0 / 0.5681 GB, free: 11.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002308/0.5139, allocations: 160.6 kB / 0.5683 GB, free: 11.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.514, allocations: 34.23 kB / 0.5683 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.514, allocations: 8 kB / 0.5683 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.514, allocations: 0 / 0.5683 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.5141, allocations: 27.92 kB / 0.5684 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.5141, allocations: 3.938 kB / 0.5684 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.104e-05/0.5142, allocations: 4 kB / 0.5684 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.5142, allocations: 8 kB / 0.5684 GB, free: 11.21 MB / 394.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.000145/0.5144, allocations: 129.8 kB / 0.5685 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.5144, allocations: 19.78 kB / 0.5685 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.5144, allocations: 7.969 kB / 0.5685 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.5144, allocations: 0 / 0.5685 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.5145, allocations: 3.938 kB / 0.5685 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.5145, allocations: 4.172 kB / 0.5685 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.5146, allocations: 167 kB / 0.5687 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5146, allocations: 7.969 kB / 0.5687 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.679e-05/0.5147, allocations: 8 kB / 0.5687 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.5147, allocations: 3.938 kB / 0.5687 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.5147, allocations: 4 kB / 0.5687 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.5147, allocations: 4 kB / 0.5687 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5147, allocations: 0 / 0.5687 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.5149, allocations: 140.9 kB / 0.5688 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.604e-05/0.515, allocations: 81.05 kB / 0.5689 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.515, allocations: 4 kB / 0.5689 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.5151, allocations: 26.84 kB / 0.569 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.5152, allocations: 8 kB / 0.569 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.5152, allocations: 7.984 kB / 0.569 GB, free: 10.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.5152, allocations: 79.28 kB / 0.569 GB, free: 10.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5153, allocations: 0 / 0.569 GB, free: 10.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003041/0.5156, allocations: 59.92 kB / 0.5691 GB, free: 10.37 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) * Number of clocked states: 0 () * 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.000438/0.516, allocations: 199.2 kB / 0.5693 GB, free: 10.19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.5162, allocations: 119.3 kB / 0.5694 GB, free: 10.06 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5162, allocations: 0 / 0.5694 GB, free: 10.06 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.305e-05/0.5163, allocations: 39.91 kB / 0.5694 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.5165, allocations: 11.98 kB / 0.5695 GB, free: 10.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003764/0.5169, allocations: 158.7 kB / 0.5696 GB, free: 9.832 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.5172, allocations: 0.6811 MB / 0.5703 GB, free: 9.125 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.63e-05/0.5172, allocations: 20.62 kB / 0.5703 GB, free: 9.102 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.652e-05/0.5173, allocations: 15.62 kB / 0.5703 GB, free: 9.086 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5173, allocations: 0 / 0.5703 GB, free: 9.086 MB / 394.7 MB Notification: Performance of Templates: time 0.004897/0.5222, allocations: 2.079 MB / 0.5723 GB, free: 7.02 MB / 394.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/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) Reference file matches