Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2251/0.2251, allocations: 46.96 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003326/0.003326, allocations: 63.91 kB / 0.4973 GB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3033, allocations: 66.04 MB / 0.5618 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001729/0.3051, allocations: 0.5304 MB / 0.5623 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.3061, allocations: 430.7 kB / 0.5627 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.581e-05/0.3061, allocations: 3.938 kB / 0.5627 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.303e-05/0.3062, allocations: 0 / 0.5627 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.3063, allocations: 11.91 kB / 0.5628 GB, free: 3.164 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0006429/0.307, allocations: 175.1 kB / 0.5629 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.3071, allocations: 83.91 kB / 0.563 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.3072, allocations: 0 / 0.563 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.748e-05/0.3072, allocations: 47.83 kB / 0.5631 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.836e-05/0.3073, allocations: 23.92 kB / 0.5631 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.3073, allocations: 4 kB / 0.5631 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002705/0.3076, allocations: 127.8 kB / 0.5632 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.579e-05/0.3077, allocations: 27.89 kB / 0.5632 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.3077, allocations: 19.91 kB / 0.5632 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.3079, allocations: 138 kB / 0.5634 GB, free: 2.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3079, allocations: 3.938 kB / 0.5634 GB, free: 2.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3079, allocations: 0 / 0.5634 GB, free: 2.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.3079, allocations: 0 / 0.5634 GB, free: 2.535 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.0005811/0.3085, allocations: 331.8 kB / 0.5637 GB, free: 2.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.3086, allocations: 16.03 kB / 0.5637 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.3086, allocations: 4.891 kB / 0.5637 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.3088, allocations: 126.5 kB / 0.5638 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.3088, allocations: 384 / 0.5638 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.3088, allocations: 8.312 kB / 0.5638 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.309, allocations: 90.19 kB / 0.5639 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3091, allocations: 192 / 0.5639 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.3091, allocations: 7.938 kB / 0.5639 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3091, allocations: 0 / 0.5639 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.659e-05/0.3092, allocations: 23.92 kB / 0.564 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.3093, allocations: 113.3 kB / 0.5641 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.3094, allocations: 46.56 kB / 0.5641 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.673e-05/0.3095, allocations: 20.91 kB / 0.5641 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.3095, allocations: 4 kB / 0.5641 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.3097, allocations: 127.2 kB / 0.5643 GB, free: 1.512 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 3.386e-06/0.3098, allocations: 3.984 kB / 0.5643 GB, free: 1.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003098/0.3101, allocations: 129.5 kB / 0.5644 GB, free: 1.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3101, allocations: 59.41 kB / 0.5644 GB, free: 1.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.357e-05/0.3102, allocations: 101.8 kB / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.3102, allocations: 33.7 kB / 0.5646 GB, free: 1.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.347e-05/0.3103, allocations: 80.14 kB / 0.5646 GB, free: 1.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.3103, allocations: 23.84 kB / 0.5647 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.3103, allocations: 29.72 kB / 0.5647 GB, free: 1.016 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3105, allocations: 322.8 kB / 0.565 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.797e-05/0.3106, allocations: 45.97 kB / 0.5651 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3107, allocations: 107.8 kB / 0.5652 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.3109, allocations: 156.3 kB / 0.5653 GB, free: 332 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.3109, allocations: 3.938 kB / 0.5653 GB, free: 328 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002879/0.3112, allocations: 185.1 kB / 0.5655 GB, free: 124 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.3112, allocations: 37.7 kB / 0.5655 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3112, allocations: 3.938 kB / 0.5655 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.3112, allocations: 4 kB / 0.5655 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.3114, allocations: 19.92 kB / 0.5655 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.3114, allocations: 4 kB / 0.5656 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.546e-05/0.3114, allocations: 15.89 kB / 0.5656 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.3114, allocations: 8.062 kB / 0.5656 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.0001578/0.3116, allocations: 121.8 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.3116, allocations: 11.95 kB / 0.5657 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/0.3117, allocations: 15.94 kB / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3117, allocations: 4 kB / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3117, allocations: 0 / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3117, allocations: 0 / 0.5657 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.3118, allocations: 109.3 kB / 0.5658 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3118, allocations: 0 / 0.5658 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.946e-05/0.3119, allocations: 7.984 kB / 0.5658 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3119, allocations: 0 / 0.5658 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3119, allocations: 8 kB / 0.5658 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3119, allocations: 7.938 kB / 0.5658 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3119, allocations: 3.938 kB / 0.5659 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.3121, allocations: 129 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.037e-05/0.3121, allocations: 7.953 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.3121, allocations: 7.984 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.3124, allocations: 19.92 kB / 0.566 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.3124, allocations: 3.984 kB / 0.566 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.3124, allocations: 8 kB / 0.566 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.381e-05/0.3125, allocations: 83.27 kB / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3125, allocations: 0 / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.3127, allocations: 43.94 kB / 0.5661 GB, free: 15.38 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.0004177/0.3132, allocations: 184.5 kB / 0.5663 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002513/0.3134, allocations: 153.3 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3134, allocations: 4.125 kB / 0.5665 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.235e-05/0.3135, allocations: 23.98 kB / 0.5665 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.3136, allocations: 15.97 kB / 0.5665 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003629/0.314, allocations: 148.6 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.758e-05/0.3141, allocations: 63.34 kB / 0.5667 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.033e-05/0.3141, allocations: 16.64 kB / 0.5667 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/0.3141, allocations: 19.44 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3141, allocations: 3.938 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of Templates: time 0.005309/0.3194, allocations: 2.094 MB / 0.5688 GB, free: 12.64 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 4.957322960006422]