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.001831/0.001831, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.625/1.625, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008845/0.0008851, allocations: 94.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2143/0.2143, allocations: 43.55 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.000344, allocations: 8 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.136, allocations: 58.87 MB / 490.2 MB, free: 8.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5781, allocations: 84.8 MB / 0.5616 GB, free: 15.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.5784, allocations: 60.53 kB / 0.5616 GB, free: 14.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01067/0.5891, allocations: 3.327 MB / 0.5649 GB, free: 12.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5892, allocations: 0 / 0.5649 GB, free: 12.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.5892, allocations: 4 kB / 0.5649 GB, free: 12.14 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.0005637/0.5898, allocations: 391.7 kB / 0.5653 GB, free: 11.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.5898, allocations: 8.031 kB / 0.5653 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.627e-05/0.5899, allocations: 11.89 kB / 0.5653 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.5902, allocations: 186.9 kB / 0.5655 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.5902, allocations: 8 kB / 0.5655 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.891e-05/0.5903, allocations: 7.312 kB / 0.5655 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.5905, allocations: 83.5 kB / 0.5655 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.5905, allocations: 0 / 0.5655 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.5905, allocations: 7.375 kB / 0.5656 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.5905, allocations: 0 / 0.5656 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.591e-05/0.5906, allocations: 23.22 kB / 0.5656 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002283/0.5909, allocations: 167.9 kB / 0.5657 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.591, allocations: 64.36 kB / 0.5658 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.591, allocations: 0 / 0.5658 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002554/0.5913, allocations: 132 kB / 0.5659 GB, free: 10.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.5913, allocations: 0 / 0.5659 GB, free: 10.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003276/0.5916, allocations: 127.7 kB / 0.566 GB, free: 10.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.5917, allocations: 70.88 kB / 0.5661 GB, free: 10.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.198e-05/0.5918, allocations: 89 kB / 0.5662 GB, free: 10.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.5918, allocations: 33.45 kB / 0.5662 GB, free: 10.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.5919, allocations: 80.33 kB / 0.5663 GB, free: 10.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.5919, allocations: 23.39 kB / 0.5663 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-06/0.592, allocations: 3.688 kB / 0.5663 GB, free: 10.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5921, allocations: 322.3 kB / 0.5666 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.66e-05/0.5922, allocations: 23.55 kB / 0.5667 GB, free: 10.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.742e-05/0.5922, allocations: 66.11 kB / 0.5667 GB, free: 10.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.5924, allocations: 72.33 kB / 0.5668 GB, free: 10.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5924, allocations: 0 / 0.5668 GB, free: 10.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002247/0.5926, allocations: 159.3 kB / 0.5669 GB, free: 9.914 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.018e-05/0.5927, allocations: 33.69 kB / 0.567 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5927, allocations: 4 kB / 0.567 GB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.5927, allocations: 0 / 0.567 GB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.5928, allocations: 20.16 kB / 0.567 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.5928, allocations: 4 kB / 0.567 GB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.5929, allocations: 19.14 kB / 0.567 GB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.5929, allocations: 4 kB / 0.567 GB, free: 9.828 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.0001879/0.5931, allocations: 140.4 kB / 0.5672 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.157e-05/0.5931, allocations: 7.984 kB / 0.5672 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.405e-05/0.5932, allocations: 7.094 kB / 0.5672 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.5932, allocations: 0 / 0.5672 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.5932, allocations: 4 kB / 0.5672 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.5932, allocations: 0 / 0.5672 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.5934, allocations: 176.7 kB / 0.5674 GB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5934, allocations: 3.953 kB / 0.5674 GB, free: 9.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.458e-05/0.5935, allocations: 4 kB / 0.5674 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5935, allocations: 0 / 0.5674 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.5935, allocations: 7.984 kB / 0.5674 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.5935, allocations: 1.25 kB / 0.5674 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5935, allocations: 0 / 0.5674 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.5938, allocations: 145.9 kB / 0.5675 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.5938, allocations: 81.25 kB / 0.5676 GB, free: 9.191 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.5938, allocations: 7.984 kB / 0.5676 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.594, allocations: 19.92 kB / 0.5676 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/0.5941, allocations: 11.97 kB / 0.5676 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.5941, allocations: 11.56 kB / 0.5676 GB, free: 9.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.953e-05/0.5941, allocations: 87.22 kB / 0.5677 GB, free: 9.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5941, allocations: 0 / 0.5677 GB, free: 9.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000303/0.5944, allocations: 58.05 kB / 0.5678 GB, free: 9.012 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 (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.0004582/0.5949, allocations: 196.9 kB / 0.568 GB, free: 8.836 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002077/0.5951, allocations: 133.4 kB / 0.5681 GB, free: 8.707 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5951, allocations: 0 / 0.5681 GB, free: 8.707 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.207e-05/0.5952, allocations: 30.73 kB / 0.5681 GB, free: 8.684 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.5953, allocations: 7.438 kB / 0.5681 GB, free: 8.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003845/0.5957, allocations: 146.5 kB / 0.5683 GB, free: 8.516 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.596, allocations: 0.6888 MB / 0.5689 GB, free: 7.801 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.357e-05/0.5961, allocations: 12.66 kB / 0.5689 GB, free: 7.785 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.012e-05/0.5961, allocations: 15.42 kB / 0.569 GB, free: 7.77 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.5961, allocations: 0 / 0.569 GB, free: 7.77 MB / 378.7 MB Notification: Performance of Templates: time 0.004749/0.6009, allocations: 2.066 MB / 0.571 GB, free: 5.715 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/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