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.001078/0.001078, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009473/0.0009473, allocations: 161.2 kB / 24.99 MB, free: 8.801 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.078/1.078, allocations: 177 MB / 205.2 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.3043/0.3043, allocations: 34.87 MB / 296.6 MB, free: 0.5781 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.423e-06/1.423e-06, allocations: 0 / 378.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.723e-05/1.866e-05, allocations: 6.25 kB / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001067/0.001085, allocations: 0.545 MB / 379.3 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006746/0.00176, allocations: 450.5 kB / 379.7 MB, free: 1.453 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.988e-05/0.0018, allocations: 4 kB / 379.7 MB, free: 1.449 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.23e-05/0.001882, allocations: 0 / 379.7 MB, free: 1.449 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.002, allocations: 11.92 kB / 379.7 MB, free: 1.438 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.0005026/0.002503, allocations: 175.3 kB / 379.9 MB, free: 1.266 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001395/0.002642, allocations: 79.86 kB / 380 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.855e-05/0.002681, allocations: 3.984 kB / 380 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.552e-05/0.002756, allocations: 47.95 kB / 380 MB, free: 1.137 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.979e-05/0.002816, allocations: 19.92 kB / 380.1 MB, free: 1.117 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.002844, allocations: 3.984 kB / 380.1 MB, free: 1.113 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.003047, allocations: 123.7 kB / 380.2 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.003117, allocations: 31.95 kB / 380.2 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.95e-05/0.003167, allocations: 23.91 kB / 380.2 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.003412, allocations: 151.6 kB / 380.4 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.003416, allocations: 0 / 380.4 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.003417, allocations: 3.938 kB / 380.4 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.003421, allocations: 0 / 380.4 MB, free: 0.7852 MB / 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.0005532/0.003974, allocations: 434.1 kB / 380.8 MB, free: 324 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.004012, allocations: 12.02 kB / 380.8 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.004069, allocations: 4.938 kB / 380.8 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.004217, allocations: 128.5 kB / 381 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.004233, allocations: 4.375 kB / 381 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.004252, allocations: 12.36 kB / 381 MB, free: 136 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.004395, allocations: 86.91 kB / 381.1 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-06/0.004401, allocations: 192 / 381.1 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.004415, allocations: 384 / 381.1 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.004422, allocations: 384 / 381.1 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.317e-05/0.004465, allocations: 35.84 kB / 381.1 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001452/0.00461, allocations: 120.6 kB / 381.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.407e-05/0.004674, allocations: 47.05 kB / 381.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.004714, allocations: 19.67 kB / 381.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.004729, allocations: 0 / 381.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.004918, allocations: 129 kB / 381.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.402e-06/0.004919, allocations: 0 / 381.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002882/0.005208, allocations: 109.5 kB / 381.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.005249, allocations: 55.41 kB / 381.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.63e-05/0.005326, allocations: 157.9 kB / 381.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.005348, allocations: 37.69 kB / 381.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.005385, allocations: 126.9 kB / 381.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.005412, allocations: 27.8 kB / 381.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.005454, allocations: 43.36 kB / 381.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.005577, allocations: 496.1 kB / 382.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.728e-05/0.005624, allocations: 45.69 kB / 382.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.118e-05/0.005695, allocations: 115.3 kB / 382.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.005823, allocations: 151.1 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.005825, allocations: 0 / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001597/0.005984, allocations: 176.8 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.006015, allocations: 33.7 kB / 382.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.00602, allocations: 0 / 382.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.006036, allocations: 4 kB / 382.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.006143, allocations: 27.92 kB / 383 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.00615, allocations: 16.09 kB / 383 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.071e-05/0.006181, allocations: 7.953 kB / 383 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.006191, allocations: 4 kB / 383 MB, free: 13.85 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.0001358/0.006327, allocations: 178.9 kB / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.113e-05/0.006348, allocations: 8 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.025e-05/0.006378, allocations: 8.125 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.006381, allocations: 0 / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.006386, allocations: 3.938 kB / 383.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.00639, allocations: 0 / 383.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.687e-05/0.006487, allocations: 132.5 kB / 383.3 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.006489, allocations: 4.062 kB / 383.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.139e-05/0.00651, allocations: 7.984 kB / 383.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.006512, allocations: 4 kB / 383.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.00652, allocations: 0 / 383.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.006521, allocations: 0 / 383.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.006522, allocations: 0 / 383.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.006656, allocations: 140.3 kB / 383.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.687e-06/0.006664, allocations: 7.953 kB / 383.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.006683, allocations: 7.938 kB / 383.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.502e-05/0.006778, allocations: 16.16 kB / 383.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.721e-05/0.006805, allocations: 7.984 kB / 383.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.006818, allocations: 11.94 kB / 383.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.354e-05/0.006851, allocations: 123.2 kB / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006851, allocations: 0 / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002273/0.007079, allocations: 39.94 kB / 383.7 MB, free: 13.1 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.0003307/0.007409, allocations: 190.8 kB / 383.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001734/0.007583, allocations: 142.7 kB / 384 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.007585, allocations: 0 / 384 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.864e-05/0.007624, allocations: 43.73 kB / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.00774, allocations: 19.97 kB / 384.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002837/0.008024, allocations: 142.2 kB / 384.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.248e-05/0.008056, allocations: 59.73 kB / 384.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.526e-05/0.008092, allocations: 20.7 kB / 384.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.063e-05/0.008112, allocations: 16.5 kB / 384.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of SimCode: time 5.42e-07/0.008113, allocations: 0 / 384.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of Templates: time 0.003657/0.01177, allocations: 2.1 MB / 386.4 MB, free: 10.33 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.4066719689872116]