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.002565/0.002565, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.003105/0.003105, allocations: 160.8 kB / 24.27 MB, free: 156 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.623/1.623, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 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.3711/0.3711, allocations: 34.26 MB / 295.2 MB, free: 0.6484 MB / 266.7 MB " [Timeout remaining time 179] 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 1.363e-06/1.363e-06, allocations: 0 / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.739e-05/2.875e-05, allocations: 2.312 kB / 377.2 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001621/0.001649, allocations: 0.5346 MB / 377.7 MB, free: 2.363 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000996/0.002645, allocations: 442.5 kB / 378.2 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.894e-05/0.002674, allocations: 0 / 378.2 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.896e-05/0.002763, allocations: 3.938 kB / 378.2 MB, free: 1.926 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.002881, allocations: 11.97 kB / 378.2 MB, free: 1.914 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.0006032/0.003484, allocations: 175.3 kB / 378.4 MB, free: 1.742 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001812/0.003665, allocations: 83.84 kB / 378.4 MB, free: 1.66 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.759e-05/0.003702, allocations: 7.984 kB / 378.5 MB, free: 1.652 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.037e-05/0.003793, allocations: 47.95 kB / 378.5 MB, free: 1.605 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.85e-05/0.003851, allocations: 15.92 kB / 378.5 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.363e-05/0.003885, allocations: 4 kB / 378.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002907/0.004176, allocations: 127.7 kB / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.778e-05/0.004243, allocations: 23.95 kB / 378.7 MB, free: 1.438 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.236e-05/0.004296, allocations: 19.97 kB / 378.7 MB, free: 1.418 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.004596, allocations: 151.5 kB / 378.8 MB, free: 1.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.0046, allocations: 4 kB / 378.8 MB, free: 1.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004601, allocations: 4 kB / 378.8 MB, free: 1.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.004605, allocations: 0 / 378.8 MB, free: 1.262 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.0006331/0.005238, allocations: 437.6 kB / 379.3 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.005272, allocations: 12.03 kB / 379.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.834e-05/0.00534, allocations: 8.938 kB / 379.3 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.005554, allocations: 124.5 kB / 379.4 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.005571, allocations: 8.375 kB / 379.4 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.005594, allocations: 8.312 kB / 379.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.005791, allocations: 78.2 kB / 379.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.005799, allocations: 192 / 379.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.005816, allocations: 384 / 379.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.005819, allocations: 384 / 379.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.513e-05/0.005895, allocations: 27.91 kB / 379.5 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.006086, allocations: 124.6 kB / 379.7 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.006193, allocations: 47.05 kB / 379.7 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.31e-05/0.006246, allocations: 27.67 kB / 379.7 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.006263, allocations: 0 / 379.7 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.006508, allocations: 121.1 kB / 379.8 MB, free: 120 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.00651, allocations: 0 / 379.8 MB, free: 120 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003451/0.006855, allocations: 125.8 kB / 380 MB, free: 15.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.00691, allocations: 59.41 kB / 380 MB, free: 15.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.007035, allocations: 157.9 kB / 380.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.007074, allocations: 37.62 kB / 380.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.007149, allocations: 130.9 kB / 380.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.299e-05/0.007192, allocations: 27.8 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-05/0.007254, allocations: 35.36 kB / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002761/0.00753, allocations: 0.4923 MB / 380.9 MB, free: 15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.523e-05/0.007595, allocations: 37.7 kB / 380.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.00773, allocations: 119.2 kB / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.007942, allocations: 159.1 kB / 381.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.007947, allocations: 4 kB / 381.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002751/0.008222, allocations: 180.8 kB / 381.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.008261, allocations: 37.92 kB / 381.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.008266, allocations: 0 / 381.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.008284, allocations: 4 kB / 381.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.008408, allocations: 19.98 kB / 381.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.008418, allocations: 11.88 kB / 381.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.752e-05/0.008476, allocations: 15.89 kB / 381.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.008491, allocations: 4 kB / 381.5 MB, free: 14.3 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.0001771/0.008668, allocations: 168.6 kB / 381.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.008705, allocations: 20.17 kB / 381.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.267e-05/0.008738, allocations: 8.109 kB / 381.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.00874, allocations: 0 / 381.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.008746, allocations: 3.938 kB / 381.7 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.008749, allocations: 0 / 381.7 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001554/0.008905, allocations: 132.6 kB / 381.8 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.008908, allocations: 4 kB / 381.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.343e-05/0.008952, allocations: 11.92 kB / 381.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.008954, allocations: 0 / 381.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.008963, allocations: 0 / 381.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.008965, allocations: 0 / 381.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.008966, allocations: 4 kB / 381.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.009234, allocations: 148.2 kB / 382 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.009248, allocations: 11.89 kB / 382 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.009266, allocations: 0 / 382 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.009439, allocations: 11.98 kB / 382 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.091e-05/0.00947, allocations: 7.984 kB / 382 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.009488, allocations: 7.938 kB / 382 MB, free: 13.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.887e-05/0.009567, allocations: 131.1 kB / 382.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.009567, allocations: 0 / 382.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002792/0.009846, allocations: 39.94 kB / 382.2 MB, free: 13.54 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.0005738/0.01042, allocations: 197.3 kB / 382.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.01067, allocations: 152.6 kB / 382.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01068, allocations: 448 / 382.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.079e-05/0.01075, allocations: 31.67 kB / 382.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.01092, allocations: 23.97 kB / 382.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003904/0.01131, allocations: 150.2 kB / 382.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.922e-05/0.01139, allocations: 71.28 kB / 382.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.266e-05/0.01144, allocations: 16.66 kB / 382.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.72e-05/0.01147, allocations: 12.5 kB / 382.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01147, allocations: 0 / 382.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of Templates: time 0.006017/0.01748, allocations: 2.105 MB / 384.9 MB, free: 10.75 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.14951848401688]