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.0008447/0.0008447, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0008897/0.0008897, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.034/1.034, allocations: 177 MB / 204.8 MB, free: 5.59 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.2578/0.2578, allocations: 34.86 MB / 296.3 MB, free: 0.5234 MB / 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.513e-06/1.513e-06, allocations: 0 / 378.8 MB, free: 2.078 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.938e-05/2.089e-05, allocations: 3.859 kB / 378.8 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001033/0.001054, allocations: 0.5397 MB / 379.3 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006779/0.001732, allocations: 454.5 kB / 379.8 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.279e-05/0.001775, allocations: 0 / 379.8 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.065e-05/0.001865, allocations: 0 / 379.8 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.002005, allocations: 7.938 kB / 379.8 MB, free: 1.078 MB / 346.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.0005163/0.002521, allocations: 179.3 kB / 379.9 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.002658, allocations: 83.84 kB / 380 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.25e-05/0.002691, allocations: 0 / 380 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.322e-05/0.002764, allocations: 51.94 kB / 380.1 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.226e-05/0.002816, allocations: 19.92 kB / 380.1 MB, free: 0.75 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.002837, allocations: 4 kB / 380.1 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.003035, allocations: 127.7 kB / 380.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.53e-05/0.003081, allocations: 19.97 kB / 380.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.832e-05/0.003119, allocations: 27.89 kB / 380.3 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.003323, allocations: 155.5 kB / 380.4 MB, free: 432 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003325, allocations: 4 kB / 380.4 MB, free: 428 kB / 346.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.003326, allocations: 0 / 380.4 MB, free: 428 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.00333, allocations: 0 / 380.4 MB, free: 428 kB / 346.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.0004757/0.003806, allocations: 430.1 kB / 380.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.003841, allocations: 12.03 kB / 380.8 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.003896, allocations: 12.92 kB / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.004037, allocations: 128.5 kB / 381 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.004047, allocations: 4.375 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.004063, allocations: 4.375 kB / 381 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.004202, allocations: 86.91 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.00421, allocations: 4.188 kB / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.004224, allocations: 384 / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.004232, allocations: 384 / 381.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.028e-05/0.004272, allocations: 27.86 kB / 381.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.004402, allocations: 120.6 kB / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.335e-05/0.004466, allocations: 51.05 kB / 381.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.134e-05/0.004497, allocations: 19.67 kB / 381.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.004509, allocations: 0 / 381.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/0.004652, allocations: 125 kB / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.004653, allocations: 0 / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002303/0.004883, allocations: 117.6 kB / 381.5 MB, free: 15.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.004923, allocations: 59.41 kB / 381.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.936e-05/0.004992, allocations: 157.9 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.005013, allocations: 41.69 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.561e-05/0.005048, allocations: 126.9 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.005077, allocations: 23.8 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.896e-05/0.005116, allocations: 39.36 kB / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.005223, allocations: 0.4884 MB / 382.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.976e-05/0.005263, allocations: 41.7 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.015e-05/0.005333, allocations: 121.5 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.005448, allocations: 147.1 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.005451, allocations: 0 / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001459/0.005597, allocations: 172.8 kB / 382.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.005625, allocations: 37.69 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.00563, allocations: 224 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.005644, allocations: 8 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.417e-05/0.005738, allocations: 23.92 kB / 383 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.005747, allocations: 7.938 kB / 383 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.149e-05/0.005778, allocations: 15.89 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.005787, allocations: 4 kB / 383 MB, free: 13.48 MB / 362.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.0001354/0.005922, allocations: 172.5 kB / 383.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.005943, allocations: 7.984 kB / 383.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.005974, allocations: 12.12 kB / 383.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.005977, allocations: 4 kB / 383.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.00598, allocations: 3.938 kB / 383.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.005983, allocations: 0 / 383.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.564e-05/0.006069, allocations: 128.5 kB / 383.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.00607, allocations: 0 / 383.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.848e-05/0.006088, allocations: 7.984 kB / 383.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.00609, allocations: 4 kB / 383.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.006097, allocations: 64 / 383.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.006099, allocations: 4 kB / 383.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.0061, allocations: 0 / 383.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.00623, allocations: 140.5 kB / 383.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.829e-06/0.00624, allocations: 15.94 kB / 383.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.006257, allocations: 4 kB / 383.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.839e-05/0.006345, allocations: 15.92 kB / 383.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.354e-05/0.006369, allocations: 7.984 kB / 383.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.006382, allocations: 11.94 kB / 383.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.233e-05/0.006414, allocations: 123.2 kB / 383.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006414, allocations: 0 / 383.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.006614, allocations: 39.94 kB / 383.7 MB, free: 12.73 MB / 362.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.0003632/0.006977, allocations: 189.1 kB / 383.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001871/0.007164, allocations: 144.7 kB / 384 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.007166, allocations: 0 / 384 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.205e-05/0.007208, allocations: 35.77 kB / 384.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.007343, allocations: 24.56 kB / 384.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003211/0.007664, allocations: 146.2 kB / 384.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.484e-05/0.007699, allocations: 59.3 kB / 384.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.998e-05/0.007739, allocations: 16.7 kB / 384.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.261e-05/0.007762, allocations: 12.5 kB / 384.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.007762, allocations: 0 / 384.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of Templates: time 0.004411/0.01217, allocations: 2.341 MB / 386.7 MB, free: 9.73 MB / 362.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.1562212449498475]