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.001434/0.001434, allocations: 175.8 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 241 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007624/0.0007624, allocations: 102 kB / 292.2 MB, free: 10.71 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.3223/0.3223, allocations: 44.21 MB / 387.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003046, allocations: 12 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3248, allocations: 61.89 MB / 0.5096 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1149/0.4398, allocations: 85.91 MB / 0.5935 GB, free: 9.234 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001759/0.44, allocations: 55.98 kB / 0.5935 GB, free: 9.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01027/0.4503, allocations: 3.341 MB / 0.5968 GB, free: 5.836 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4503, allocations: 0 / 0.5968 GB, free: 5.836 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.4503, allocations: 4 kB / 0.5968 GB, free: 5.832 MB / 410.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.0004289/0.4508, allocations: 396.8 kB / 0.5972 GB, free: 5.391 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.4508, allocations: 8.031 kB / 0.5972 GB, free: 5.383 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.4509, allocations: 7.906 kB / 0.5972 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.4511, allocations: 183 kB / 0.5973 GB, free: 5.156 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.4512, allocations: 7.984 kB / 0.5973 GB, free: 5.148 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.4512, allocations: 7.953 kB / 0.5974 GB, free: 5.141 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.4514, allocations: 85.62 kB / 0.5974 GB, free: 5.051 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.4514, allocations: 4 kB / 0.5974 GB, free: 5.047 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.4514, allocations: 4 kB / 0.5974 GB, free: 5.043 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.4514, allocations: 0 / 0.5974 GB, free: 5.043 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.228e-05/0.4515, allocations: 27.95 kB / 0.5975 GB, free: 5.016 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001933/0.4517, allocations: 173.5 kB / 0.5976 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.4518, allocations: 58.48 kB / 0.5977 GB, free: 4.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.4519, allocations: 4 kB / 0.5977 GB, free: 4.727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.4521, allocations: 139.4 kB / 0.5978 GB, free: 4.578 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.4521, allocations: 0 / 0.5978 GB, free: 4.578 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002903/0.4524, allocations: 125.5 kB / 0.5979 GB, free: 4.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.4525, allocations: 59.41 kB / 0.598 GB, free: 4.379 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.313e-05/0.4525, allocations: 96.98 kB / 0.5981 GB, free: 4.277 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.4526, allocations: 29.7 kB / 0.5981 GB, free: 4.242 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.269e-05/0.4526, allocations: 80.33 kB / 0.5982 GB, free: 4.156 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.4527, allocations: 27.7 kB / 0.5982 GB, free: 4.129 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.4527, allocations: 4 kB / 0.5982 GB, free: 4.125 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4528, allocations: 310.8 kB / 0.5985 GB, free: 3.812 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.507e-05/0.4529, allocations: 23.98 kB / 0.5986 GB, free: 3.789 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.118e-05/0.453, allocations: 78.84 kB / 0.5986 GB, free: 3.688 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.871e-05/0.453, allocations: 61.62 kB / 0.5987 GB, free: 3.621 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4531, allocations: 0 / 0.5987 GB, free: 3.621 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002239/0.4533, allocations: 159.1 kB / 0.5988 GB, free: 3.453 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.4533, allocations: 37.64 kB / 0.5989 GB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.4533, allocations: 3.953 kB / 0.5989 GB, free: 3.406 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.4534, allocations: 4 kB / 0.5989 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.742e-05/0.4535, allocations: 19.92 kB / 0.5989 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.4535, allocations: 4 kB / 0.5989 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.975e-05/0.4535, allocations: 8 kB / 0.5989 GB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.4536, allocations: 4.219 kB / 0.5989 GB, free: 3.367 MB / 410.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.0001493/0.4537, allocations: 138.2 kB / 0.599 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.101e-05/0.4537, allocations: 7.906 kB / 0.5991 GB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.4538, allocations: 7.953 kB / 0.5991 GB, free: 3.207 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.4538, allocations: 8.328 kB / 0.5991 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.4538, allocations: 0 / 0.5991 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.4538, allocations: 0 / 0.5991 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.454, allocations: 173.6 kB / 0.5992 GB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.454, allocations: 7.938 kB / 0.5992 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.685e-05/0.454, allocations: 8 kB / 0.5993 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.454, allocations: 0 / 0.5993 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.454, allocations: 3.984 kB / 0.5993 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.454, allocations: 3.938 kB / 0.5993 GB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4541, allocations: 3.953 kB / 0.5993 GB, free: 2.953 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.4543, allocations: 136.9 kB / 0.5994 GB, free: 2.801 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.4543, allocations: 81.11 kB / 0.5995 GB, free: 2.703 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.4543, allocations: 8 kB / 0.5995 GB, free: 2.695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.4545, allocations: 28.03 kB / 0.5995 GB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.4546, allocations: 7.953 kB / 0.5995 GB, free: 2.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.4546, allocations: 11.98 kB / 0.5995 GB, free: 2.648 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.227e-05/0.4546, allocations: 75.28 kB / 0.5996 GB, free: 2.574 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.823e-06/0.4546, allocations: 0 / 0.5996 GB, free: 2.574 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003187/0.4549, allocations: 63.86 kB / 0.5997 GB, free: 2.512 MB / 410.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.000447/0.4554, allocations: 204.5 kB / 0.5999 GB, free: 2.328 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001904/0.4556, allocations: 127.6 kB / 0.6 GB, free: 2.191 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4556, allocations: 4.125 kB / 0.6 GB, free: 2.188 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.903e-05/0.4557, allocations: 31.98 kB / 0.6 GB, free: 2.156 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000105/0.4558, allocations: 6.656 kB / 0.6 GB, free: 2.152 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.4562, allocations: 142.7 kB / 0.6002 GB, free: 1.984 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.4565, allocations: 0.6887 MB / 0.6008 GB, free: 1.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.075e-05/0.4565, allocations: 16.66 kB / 0.6008 GB, free: 1.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.441e-05/0.4566, allocations: 19.42 kB / 0.6009 GB, free: 1.23 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4566, allocations: 0 / 0.6009 GB, free: 1.23 MB / 410.7 MB Notification: Performance of Templates: time 0.004559/0.4611, allocations: 2.049 MB / 0.6029 GB, free: 15.18 MB / 426.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