Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.006915/0.006915, allocations: 109.5 kB / 21.98 MB, free: 5.184 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.001476/0.001476, allocations: 220.3 kB / 25.29 MB, free: 3.203 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.44/1.44, allocations: 230.5 MB / 258.9 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2293/0.2293, allocations: 46.93 MB / 362.3 MB, free: 4.18 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-beta.om/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_4.1.0-beta.om_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-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 79.86 kB / 0.4982 GB, free: 7.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3305, allocations: 66.08 MB / 0.5627 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001715/0.3322, allocations: 0.5381 MB / 0.5633 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009293/0.3332, allocations: 454.6 kB / 0.5637 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.901e-05/0.3332, allocations: 0 / 0.5637 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.166e-05/0.3333, allocations: 3.938 kB / 0.5637 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.3334, allocations: 4 kB / 0.5637 GB, free: 3.238 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.0006101/0.334, allocations: 179.5 kB / 0.5639 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.3341, allocations: 79.8 kB / 0.5639 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.332e-05/0.3342, allocations: 4 kB / 0.564 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.463e-05/0.3342, allocations: 39.95 kB / 0.564 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.634e-05/0.3343, allocations: 27.91 kB / 0.564 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.3343, allocations: 0 / 0.564 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/0.3346, allocations: 139.8 kB / 0.5641 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.3347, allocations: 19.95 kB / 0.5642 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.574e-05/0.3347, allocations: 27.84 kB / 0.5642 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.3349, allocations: 130.1 kB / 0.5643 GB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3349, allocations: 7.938 kB / 0.5643 GB, free: 2.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3349, allocations: 0 / 0.5643 GB, free: 2.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3349, allocations: 0 / 0.5643 GB, free: 2.602 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.0005504/0.3355, allocations: 335.8 kB / 0.5646 GB, free: 2.234 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.3355, allocations: 8.031 kB / 0.5647 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.3356, allocations: 12.89 kB / 0.5647 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.3358, allocations: 126.4 kB / 0.5648 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.3358, allocations: 4.375 kB / 0.5648 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.3358, allocations: 384 / 0.5648 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.336, allocations: 90.19 kB / 0.5649 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.336, allocations: 192 / 0.5649 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.336, allocations: 11.94 kB / 0.5649 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.336, allocations: 0 / 0.5649 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.427e-05/0.3361, allocations: 23.98 kB / 0.5649 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001836/0.3363, allocations: 136.7 kB / 0.565 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.3364, allocations: 46.48 kB / 0.5651 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.774e-05/0.3364, allocations: 16.92 kB / 0.5651 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.3364, allocations: 0 / 0.5651 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3367, allocations: 139.5 kB / 0.5652 GB, free: 1.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.3367, allocations: 0 / 0.5652 GB, free: 1.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003041/0.337, allocations: 125.5 kB / 0.5654 GB, free: 1.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.337, allocations: 55.41 kB / 0.5654 GB, free: 1.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.279e-05/0.3371, allocations: 105.8 kB / 0.5655 GB, free: 1.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.3371, allocations: 29.7 kB / 0.5655 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.3372, allocations: 88.08 kB / 0.5656 GB, free: 1.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.3372, allocations: 23.84 kB / 0.5656 GB, free: 1.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.3373, allocations: 33.7 kB / 0.5657 GB, free: 1.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3374, allocations: 314.8 kB / 0.566 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.734e-05/0.3375, allocations: 23.98 kB / 0.566 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-05/0.3376, allocations: 78.5 kB / 0.5661 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.3378, allocations: 156.4 kB / 0.5662 GB, free: 428 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3378, allocations: 288 / 0.5662 GB, free: 428 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002707/0.338, allocations: 155.2 kB / 0.5664 GB, free: 260 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.3381, allocations: 43.77 kB / 0.5664 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3381, allocations: 3.938 kB / 0.5664 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3381, allocations: 4 kB / 0.5664 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.958e-05/0.3382, allocations: 16.2 kB / 0.5664 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.3382, allocations: 8 kB / 0.5664 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.065e-05/0.3382, allocations: 11.89 kB / 0.5665 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.3383, allocations: 11.94 kB / 0.5665 GB, free: 156 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.0001466/0.3384, allocations: 125.8 kB / 0.5666 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.3384, allocations: 11.89 kB / 0.5666 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.3385, allocations: 8.328 kB / 0.5666 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3385, allocations: 3.984 kB / 0.5666 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3385, allocations: 8 kB / 0.5666 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3385, allocations: 0 / 0.5666 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.3386, allocations: 140.6 kB / 0.5668 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3386, allocations: 0 / 0.5668 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.3387, allocations: 8 kB / 0.5668 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3387, allocations: 3.938 kB / 0.5668 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3387, allocations: 7.984 kB / 0.5668 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.3387, allocations: 0 / 0.5668 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3387, allocations: 3.938 kB / 0.5668 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.3389, allocations: 125.2 kB / 0.5669 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.464e-05/0.3389, allocations: 11.89 kB / 0.5669 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.3389, allocations: 4 kB / 0.5669 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.3391, allocations: 19.97 kB / 0.5669 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.3392, allocations: 8.047 kB / 0.5669 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.3392, allocations: 8 kB / 0.5669 GB, free: 15.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.158e-05/0.3392, allocations: 79.28 kB / 0.567 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3392, allocations: 0 / 0.567 GB, free: 15.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.3395, allocations: 51.86 kB / 0.5671 GB, free: 15.46 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.0003986/0.3399, allocations: 182.1 kB / 0.5672 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002207/0.3401, allocations: 127.5 kB / 0.5674 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3401, allocations: 0 / 0.5674 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.813e-05/0.3402, allocations: 27.92 kB / 0.5674 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.3403, allocations: 14.28 kB / 0.5674 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003536/0.3407, allocations: 174.4 kB / 0.5676 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.341, allocations: 0.6807 MB / 0.5682 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.485e-05/0.341, allocations: 11.44 kB / 0.5682 GB, free: 14.2 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.341, allocations: 4 kB / 0.5683 GB, free: 14.19 MB / 414.1 MB Notification: Performance of Templates: time 0.003872/0.3449, allocations: 1.802 MB / 0.57 GB, free: 12.39 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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.319747806992382]