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.0008848/0.0008849, allocations: 179.2 kB / 18.09 MB, free: 3.75 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.321/1.321, allocations: 223.3 MB / 242.1 MB, free: 11.69 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.0007566/0.0007567, allocations: 100.4 kB / 293.3 MB, free: 10.78 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.343/0.343, allocations: 44.14 MB / 388.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003627, allocations: 16 kB / 461.1 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3057, allocations: 61.88 MB / 0.5107 GB, free: 38.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.416, allocations: 85.9 MB / 0.5946 GB, free: 9.172 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.4162, allocations: 63.95 kB / 0.5947 GB, free: 9.113 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009762/0.426, allocations: 3.334 MB / 0.5979 GB, free: 5.773 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.426, allocations: 4 kB / 0.5979 GB, free: 5.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.426, allocations: 0 / 0.5979 GB, free: 5.77 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.0004107/0.4265, allocations: 395.8 kB / 0.5983 GB, free: 5.328 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4265, allocations: 12.03 kB / 0.5983 GB, free: 5.316 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.4266, allocations: 8.844 kB / 0.5983 GB, free: 5.309 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.4268, allocations: 180.3 kB / 0.5985 GB, free: 5.094 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.4268, allocations: 8.375 kB / 0.5985 GB, free: 5.086 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.4268, allocations: 384 / 0.5985 GB, free: 5.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.427, allocations: 106.1 kB / 0.5986 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.427, allocations: 192 / 0.5986 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.427, allocations: 3.938 kB / 0.5986 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.427, allocations: 3.984 kB / 0.5986 GB, free: 4.969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.512e-05/0.4271, allocations: 27.91 kB / 0.5987 GB, free: 4.941 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.4273, allocations: 169.6 kB / 0.5988 GB, free: 4.727 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.4274, allocations: 58.33 kB / 0.5989 GB, free: 4.664 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.351e-05/0.4275, allocations: 20.84 kB / 0.5989 GB, free: 4.641 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.4275, allocations: 4 kB / 0.5989 GB, free: 4.637 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.4277, allocations: 131.2 kB / 0.599 GB, free: 4.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.803e-06/0.4277, allocations: 0 / 0.599 GB, free: 4.496 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.000279/0.428, allocations: 129.4 kB / 0.5991 GB, free: 4.363 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.428, allocations: 67.34 kB / 0.5992 GB, free: 4.285 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.304e-05/0.4281, allocations: 97.84 kB / 0.5993 GB, free: 4.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.4281, allocations: 29.7 kB / 0.5993 GB, free: 4.145 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.46e-05/0.4282, allocations: 80.14 kB / 0.5994 GB, free: 4.062 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/0.4282, allocations: 31.92 kB / 0.5994 GB, free: 4.031 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.4282, allocations: 4 kB / 0.5994 GB, free: 4.027 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.4283, allocations: 310.8 kB / 0.5997 GB, free: 3.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.061e-05/0.4284, allocations: 31.91 kB / 0.5998 GB, free: 3.684 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.4285, allocations: 76.97 kB / 0.5998 GB, free: 3.586 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.4286, allocations: 144.4 kB / 0.6 GB, free: 3.414 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4287, allocations: 0 / 0.6 GB, free: 3.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002106/0.4289, allocations: 155.3 kB / 0.6001 GB, free: 3.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.4289, allocations: 41.67 kB / 0.6002 GB, free: 3.203 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.4289, allocations: 0 / 0.6002 GB, free: 3.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.4289, allocations: 4 kB / 0.6002 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.943e-05/0.429, allocations: 19.92 kB / 0.6002 GB, free: 3.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.4291, allocations: 4 kB / 0.6002 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.999e-05/0.4291, allocations: 11.94 kB / 0.6002 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.4291, allocations: 4 kB / 0.6002 GB, free: 3.16 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.0001333/0.4293, allocations: 137.7 kB / 0.6003 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.4293, allocations: 12.22 kB / 0.6003 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.4293, allocations: 11.95 kB / 0.6004 GB, free: 2.992 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.4293, allocations: 4 kB / 0.6004 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4293, allocations: 0 / 0.6004 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4294, allocations: 3.938 kB / 0.6004 GB, free: 2.984 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.4295, allocations: 165.6 kB / 0.6005 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4295, allocations: 0 / 0.6005 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.506e-05/0.4296, allocations: 8.062 kB / 0.6005 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.4296, allocations: 7.938 kB / 0.6005 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.4296, allocations: 11.98 kB / 0.6006 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4296, allocations: 0 / 0.6006 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4296, allocations: 0 / 0.6006 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.4298, allocations: 132.9 kB / 0.6007 GB, free: 2.598 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-05/0.4298, allocations: 85.05 kB / 0.6008 GB, free: 2.496 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.4299, allocations: 4 kB / 0.6008 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.43, allocations: 27.97 kB / 0.6008 GB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.4301, allocations: 4 kB / 0.6008 GB, free: 2.461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.4301, allocations: 19.86 kB / 0.6008 GB, free: 2.441 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.833e-05/0.4301, allocations: 75.28 kB / 0.6009 GB, free: 2.367 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4301, allocations: 0 / 0.6009 GB, free: 2.367 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000288/0.4304, allocations: 59.98 kB / 0.6009 GB, free: 2.309 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.0003987/0.4308, allocations: 200.8 kB / 0.6011 GB, free: 2.125 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.431, allocations: 127.2 kB / 0.6013 GB, free: 1.988 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.431, allocations: 0 / 0.6013 GB, free: 1.988 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.799e-05/0.4311, allocations: 31.98 kB / 0.6013 GB, free: 1.957 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.4312, allocations: 12.42 kB / 0.6013 GB, free: 1.945 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/0.4316, allocations: 162.4 kB / 0.6015 GB, free: 1.758 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.4318, allocations: 0.6887 MB / 0.6021 GB, free: 1.043 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.85e-05/0.4319, allocations: 12.66 kB / 0.6021 GB, free: 1.027 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.4319, allocations: 11.44 kB / 0.6021 GB, free: 1.016 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4319, allocations: 4 kB / 0.6022 GB, free: 1.012 MB / 410.7 MB Notification: Performance of Templates: time 0.004378/0.4363, allocations: 2.083 MB / 0.6042 GB, free: 14.93 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/jenkins1/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