Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009291/0.0009291, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009273/0.0009273, allocations: 164 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.041/1.041, allocations: 177 MB / 205.2 MB, free: 5.062 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2663/0.2663, allocations: 34.86 MB / 296.6 MB, free: 484 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 325.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.647e-05, allocations: 9.406 kB / 325.9 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001443/0.001469, allocations: 0.5457 MB / 326.5 MB, free: 6.648 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007855/0.002255, allocations: 443.2 kB / 326.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.118e-05/0.002296, allocations: 0 / 326.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.504e-05/0.002391, allocations: 0 / 326.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.002523, allocations: 11.88 kB / 326.9 MB, free: 6.203 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0004949/0.003017, allocations: 179.4 kB / 327.1 MB, free: 6.027 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.003139, allocations: 83.8 kB / 327.2 MB, free: 5.945 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.299e-05/0.003172, allocations: 0.625 kB / 327.2 MB, free: 5.945 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.858e-05/0.003241, allocations: 51.89 kB / 327.2 MB, free: 5.895 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.957e-05/0.003291, allocations: 15.95 kB / 327.2 MB, free: 5.879 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.00331, allocations: 4 kB / 327.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001781/0.003488, allocations: 127.7 kB / 327.4 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.003536, allocations: 23.91 kB / 327.4 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.989e-05/0.003566, allocations: 19.97 kB / 327.4 MB, free: 5.707 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.003758, allocations: 171.5 kB / 327.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.00376, allocations: 0 / 327.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003761, allocations: 0 / 327.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.003764, allocations: 0 / 327.6 MB, free: 5.539 MB / 298.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.0004174/0.004182, allocations: 298.7 kB / 327.9 MB, free: 5.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.00422, allocations: 8.031 kB / 327.9 MB, free: 5.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.037e-05/0.004261, allocations: 8.922 kB / 327.9 MB, free: 5.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.0044, allocations: 125.7 kB / 328 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.707e-06/0.004408, allocations: 4.375 kB / 328 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.004432, allocations: 8.375 kB / 328 MB, free: 5.039 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.004545, allocations: 82.84 kB / 328.1 MB, free: 4.949 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.004553, allocations: 8.172 kB / 328.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.004566, allocations: 4.359 kB / 328.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.00457, allocations: 384 / 328.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.082e-05/0.004601, allocations: 19.92 kB / 328.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.598e-05/0.004697, allocations: 63.88 kB / 328.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.791e-05/0.004755, allocations: 30.56 kB / 328.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.004777, allocations: 12.92 kB / 328.2 MB, free: 4.785 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.00479, allocations: 4 kB / 328.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001429/0.004933, allocations: 114.2 kB / 328.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.004934, allocations: 4 kB / 328.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001537/0.005088, allocations: 73.59 kB / 328.4 MB, free: 4.574 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.005132, allocations: 55.41 kB / 328.5 MB, free: 4.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.039e-05/0.005193, allocations: 106.7 kB / 328.6 MB, free: 4.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.005213, allocations: 29.7 kB / 328.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.742e-05/0.005241, allocations: 84.14 kB / 328.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.00527, allocations: 31.72 kB / 328.7 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.005303, allocations: 29.69 kB / 328.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.223e-05/0.005385, allocations: 326.8 kB / 329.1 MB, free: 3.875 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.021e-05/0.005416, allocations: 33.7 kB / 329.1 MB, free: 3.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.172e-05/0.005467, allocations: 96.48 kB / 329.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.481e-05/0.005562, allocations: 119.3 kB / 329.3 MB, free: 3.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.005566, allocations: 7.938 kB / 329.3 MB, free: 3.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001116/0.005677, allocations: 144.9 kB / 329.5 MB, free: 3.395 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.005706, allocations: 37.7 kB / 329.5 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.005712, allocations: 0 / 329.5 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.005724, allocations: 4 kB / 329.5 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.199e-05/0.005816, allocations: 23.92 kB / 329.5 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.005821, allocations: 4 kB / 329.5 MB, free: 3.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.759e-05/0.005849, allocations: 11.89 kB / 329.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.005859, allocations: 12.22 kB / 329.5 MB, free: 3.297 MB / 298.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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.00596, allocations: 132.5 kB / 329.7 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.005975, allocations: 7.984 kB / 329.7 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.317e-05/0.006008, allocations: 8.125 kB / 329.7 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.006011, allocations: 4 kB / 329.7 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.006013, allocations: 0 / 329.7 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.006015, allocations: 0 / 329.7 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.695e-05/0.006092, allocations: 85.81 kB / 329.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.006093, allocations: 0 / 329.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.027e-05/0.006114, allocations: 8 kB / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.006116, allocations: 0 / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.006124, allocations: 7.984 kB / 329.8 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.006125, allocations: 4 kB / 329.8 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.006125, allocations: 0 / 329.8 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.451e-05/0.00622, allocations: 94.64 kB / 329.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-06/0.006229, allocations: 12.69 kB / 329.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.006245, allocations: 3.984 kB / 329.9 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.703e-05/0.006342, allocations: 20.16 kB / 329.9 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.178e-05/0.006363, allocations: 3.984 kB / 329.9 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.006376, allocations: 8 kB / 329.9 MB, free: 2.855 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.356e-05/0.00639, allocations: 8.859 kB / 329.9 MB, free: 2.844 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.00639, allocations: 0 / 329.9 MB, free: 2.844 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001598/0.00655, allocations: 43.92 kB / 330 MB, free: 2.801 MB / 298.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 (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003762/0.006926, allocations: 192.5 kB / 330.2 MB, free: 2.656 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001217/0.007048, allocations: 129.9 kB / 330.3 MB, free: 2.508 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.007051, allocations: 0 / 330.3 MB, free: 2.508 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.76e-05/0.007078, allocations: 36.77 kB / 330.3 MB, free: 2.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.215e-05/0.007151, allocations: 11.92 kB / 330.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002472/0.007398, allocations: 139.1 kB / 330.5 MB, free: 2.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.146e-05/0.007429, allocations: 59.36 kB / 330.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.762e-05/0.007467, allocations: 25.08 kB / 330.6 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.828e-05/0.007505, allocations: 59.38 kB / 330.6 MB, free: 2.129 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.007506, allocations: 0 / 330.6 MB, free: 2.129 MB / 298.7 MB Notification: Performance of Templates: time 0.003556/0.01106, allocations: 2.339 MB / 333 MB, free: 15.82 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0621260688640177]