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.001274/0.001274, allocations: 111.8 kB / 19.13 MB, free: 3.922 MB / 14.72 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.001383/0.001383, allocations: 212.9 kB / 22.08 MB, free: 0.9727 MB / 14.72 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.479/1.479, allocations: 227.4 MB / 252.3 MB, free: 72 kB / 190.1 MB " [Timeout remaining time 178] 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.2265/0.2265, allocations: 46.17 MB / 351.8 MB, free: 14.29 MB / 286.1 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.1.|cnt.2.|cnt.3.|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.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 82.38 kB / 490.9 MB, free: 28.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1228, allocations: 62.44 MB / 0.5403 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001904/0.1247, allocations: 0.5375 MB / 0.5409 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009908/0.1258, allocations: 443 kB / 0.5413 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.708e-05/0.1258, allocations: 0 / 0.5413 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.087e-05/0.1259, allocations: 7.938 kB / 0.5413 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.1261, allocations: 3.938 kB / 0.5413 GB, free: 3.262 MB / 398.1 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.0006913/0.1268, allocations: 162.3 kB / 0.5415 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002017/0.127, allocations: 91.83 kB / 0.5415 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.742e-05/0.127, allocations: 4 kB / 0.5415 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.255e-05/0.1271, allocations: 47.89 kB / 0.5416 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.175e-05/0.1272, allocations: 11.92 kB / 0.5416 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.1272, allocations: 4 kB / 0.5416 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.1274, allocations: 99.84 kB / 0.5417 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.971e-05/0.1275, allocations: 19.95 kB / 0.5417 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.493e-05/0.1276, allocations: 27.91 kB / 0.5417 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.1278, allocations: 127.6 kB / 0.5419 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1278, allocations: 0 / 0.5419 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1278, allocations: 0 / 0.5419 GB, free: 2.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.1279, allocations: 4 kB / 0.5419 GB, free: 2.676 MB / 398.1 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.0006434/0.1285, allocations: 412.9 kB / 0.5423 GB, free: 2.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1285, allocations: 15.97 kB / 0.5423 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.919e-05/0.1286, allocations: 4.891 kB / 0.5423 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.1288, allocations: 180.4 kB / 0.5425 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1289, allocations: 384 / 0.5425 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.1289, allocations: 4.375 kB / 0.5425 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.1291, allocations: 86.19 kB / 0.5425 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1291, allocations: 8.188 kB / 0.5426 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.1292, allocations: 7.938 kB / 0.5426 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.1292, allocations: 0 / 0.5426 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.392e-05/0.1292, allocations: 23.97 kB / 0.5426 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002181/0.1295, allocations: 169.6 kB / 0.5427 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.452e-05/0.1296, allocations: 42.56 kB / 0.5428 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.744e-05/0.1296, allocations: 24.91 kB / 0.5428 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.1296, allocations: 0 / 0.5428 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.1299, allocations: 139.2 kB / 0.5429 GB, free: 1.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 3.817e-06/0.13, allocations: 3.984 kB / 0.5429 GB, free: 1.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003208/0.1303, allocations: 129.5 kB / 0.5431 GB, free: 1.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.1304, allocations: 55.39 kB / 0.5431 GB, free: 1.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.137e-05/0.1304, allocations: 97.86 kB / 0.5432 GB, free: 1.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.1305, allocations: 37.69 kB / 0.5433 GB, free: 1.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.1305, allocations: 80.14 kB / 0.5433 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.1306, allocations: 31.88 kB / 0.5434 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.864e-05/0.1306, allocations: 33.7 kB / 0.5434 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1308, allocations: 318.8 kB / 0.5437 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.499e-05/0.1309, allocations: 23.98 kB / 0.5437 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.891e-05/0.131, allocations: 74.86 kB / 0.5438 GB, free: 472 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.1312, allocations: 148.4 kB / 0.5439 GB, free: 292 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1312, allocations: 0 / 0.5439 GB, free: 292 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002475/0.1315, allocations: 163.2 kB / 0.5441 GB, free: 116 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.1315, allocations: 37.64 kB / 0.5441 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1315, allocations: 224 / 0.5441 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.1316, allocations: 8 kB / 0.5441 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.1317, allocations: 15.98 kB / 0.5441 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1317, allocations: 7.938 kB / 0.5442 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.259e-05/0.1318, allocations: 7.953 kB / 0.5442 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.1318, allocations: 8 kB / 0.5442 GB, free: 24 kB / 398.1 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.0001714/0.132, allocations: 127.5 kB / 0.5443 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.132, allocations: 15.89 kB / 0.5443 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.132, allocations: 11.95 kB / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.132, allocations: 0 / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1321, allocations: 3.938 kB / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1321, allocations: 4 kB / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1322, allocations: 165.7 kB / 0.5445 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.1322, allocations: 0 / 0.5445 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.1323, allocations: 11.92 kB / 0.5445 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1323, allocations: 3.938 kB / 0.5445 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.1323, allocations: 4 kB / 0.5445 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1323, allocations: 288 / 0.5445 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1323, allocations: 4 kB / 0.5445 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002236/0.1326, allocations: 129 kB / 0.5446 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.117e-05/0.1326, allocations: 93 kB / 0.5447 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.1327, allocations: 3.984 kB / 0.5447 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.1329, allocations: 15.98 kB / 0.5447 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.1329, allocations: 3.984 kB / 0.5447 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.1329, allocations: 8 kB / 0.5447 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.871e-05/0.133, allocations: 87.27 kB / 0.5448 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.133, allocations: 0 / 0.5448 GB, free: 15.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1333, allocations: 39.94 kB / 0.5449 GB, free: 15.21 MB / 414.1 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.000443/0.1337, allocations: 182.7 kB / 0.545 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002524/0.134, allocations: 135.2 kB / 0.5452 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.134, allocations: 0 / 0.5452 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.269e-05/0.1341, allocations: 27.97 kB / 0.5452 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001642/0.1343, allocations: 20.55 kB / 0.5452 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.1347, allocations: 170.5 kB / 0.5454 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.135, allocations: 0.6811 MB / 0.546 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.083e-05/0.1351, allocations: 19.42 kB / 0.5461 GB, free: 13.93 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1351, allocations: 0 / 0.5461 GB, free: 13.93 MB / 414.1 MB Notification: Performance of Templates: time 0.004258/0.1393, allocations: 1.795 MB / 0.5478 GB, free: 12.14 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y [Calling sys.exit(0), Time elapsed: 8.364757950999774]