Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001549/0.001549, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.002149/0.002149, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.452/1.452, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2194/0.2194, allocations: 44.91 MB / 359.6 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 63.91 kB / 0.4943 GB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3369, allocations: 65.46 MB / 0.5582 GB, free: 7.719 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001894/0.3388, allocations: 0.5522 MB / 0.5588 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.3398, allocations: 446.6 kB / 0.5592 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.3399, allocations: 0 / 0.5592 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.901e-05/0.34, allocations: 3.938 kB / 0.5592 GB, free: 6.746 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.3401, allocations: 15.92 kB / 0.5592 GB, free: 6.73 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.0006033/0.3407, allocations: 167.6 kB / 0.5594 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.3408, allocations: 83.84 kB / 0.5595 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.706e-05/0.3409, allocations: 3.984 kB / 0.5595 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.341, allocations: 39.91 kB / 0.5595 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.341, allocations: 19.92 kB / 0.5595 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.341, allocations: 7.938 kB / 0.5595 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002817/0.3413, allocations: 135.8 kB / 0.5597 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.676e-05/0.3414, allocations: 31.91 kB / 0.5597 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.67e-05/0.3414, allocations: 23.86 kB / 0.5597 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.3417, allocations: 130.1 kB / 0.5598 GB, free: 6.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3417, allocations: 0 / 0.5598 GB, free: 6.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3417, allocations: 0 / 0.5598 GB, free: 6.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.3417, allocations: 0 / 0.5598 GB, free: 6.105 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.0005818/0.3423, allocations: 339.7 kB / 0.5602 GB, free: 5.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.3423, allocations: 8.031 kB / 0.5602 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.345e-05/0.3423, allocations: 8.891 kB / 0.5602 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.3425, allocations: 130.5 kB / 0.5603 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3425, allocations: 4.375 kB / 0.5603 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.3425, allocations: 4.375 kB / 0.5603 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.3427, allocations: 86.19 kB / 0.5604 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3428, allocations: 4.188 kB / 0.5604 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.3428, allocations: 3.938 kB / 0.5604 GB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.3428, allocations: 0 / 0.5604 GB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.035e-05/0.3428, allocations: 27.91 kB / 0.5604 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.343, allocations: 136.7 kB / 0.5606 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.176e-05/0.3431, allocations: 46.56 kB / 0.5606 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.194e-05/0.3432, allocations: 24.83 kB / 0.5606 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3432, allocations: 4.062 kB / 0.5606 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.3435, allocations: 127.3 kB / 0.5608 GB, free: 5.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.3435, allocations: 0 / 0.5608 GB, free: 5.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003025/0.3438, allocations: 133.5 kB / 0.5609 GB, free: 4.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.3438, allocations: 55.41 kB / 0.5609 GB, free: 4.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.13e-05/0.3439, allocations: 97.86 kB / 0.561 GB, free: 4.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.344, allocations: 29.69 kB / 0.5611 GB, free: 4.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.988e-05/0.344, allocations: 88.28 kB / 0.5611 GB, free: 4.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.344, allocations: 23.8 kB / 0.5612 GB, free: 4.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.92e-05/0.3441, allocations: 33.7 kB / 0.5612 GB, free: 4.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3442, allocations: 322.8 kB / 0.5615 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.209e-05/0.3443, allocations: 24.27 kB / 0.5615 GB, free: 4.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3444, allocations: 70.86 kB / 0.5616 GB, free: 4.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.3446, allocations: 148.4 kB / 0.5617 GB, free: 3.922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3446, allocations: 7.938 kB / 0.5617 GB, free: 3.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002377/0.3449, allocations: 159.2 kB / 0.5619 GB, free: 3.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.3449, allocations: 37.64 kB / 0.5619 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.3449, allocations: 0 / 0.5619 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3449, allocations: 4 kB / 0.5619 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.345, allocations: 15.98 kB / 0.562 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.721e-05/0.3451, allocations: 7.938 kB / 0.562 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.56e-05/0.3452, allocations: 15.89 kB / 0.562 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.3452, allocations: 8.203 kB / 0.562 GB, free: 3.652 MB / 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.0001406/0.3453, allocations: 129.1 kB / 0.5621 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.3453, allocations: 15.88 kB / 0.5621 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.3454, allocations: 8.047 kB / 0.5621 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3454, allocations: 7.938 kB / 0.5621 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3454, allocations: 0 / 0.5621 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3454, allocations: 0 / 0.5621 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.3455, allocations: 136.7 kB / 0.5623 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3455, allocations: 7.938 kB / 0.5623 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.578e-05/0.3456, allocations: 7.984 kB / 0.5623 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.3456, allocations: 7.938 kB / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.3456, allocations: 0 / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3456, allocations: 0 / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3456, allocations: 0 / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.3458, allocations: 137 kB / 0.5624 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.3458, allocations: 7.891 kB / 0.5624 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.3458, allocations: 11.98 kB / 0.5624 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.346, allocations: 11.98 kB / 0.5624 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.3461, allocations: 11.98 kB / 0.5625 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3461, allocations: 12.05 kB / 0.5625 GB, free: 3.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.225e-05/0.3461, allocations: 75.28 kB / 0.5625 GB, free: 3.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3461, allocations: 4 kB / 0.5625 GB, free: 3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002871/0.3464, allocations: 35.94 kB / 0.5626 GB, free: 2.965 MB / 398.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.0004081/0.3468, allocations: 191.7 kB / 0.5628 GB, free: 2.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.347, allocations: 123.2 kB / 0.5629 GB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.347, allocations: 4 kB / 0.5629 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.971e-05/0.3471, allocations: 24.42 kB / 0.5629 GB, free: 2.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.3473, allocations: 15.98 kB / 0.5629 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003746/0.3476, allocations: 166.4 kB / 0.5631 GB, free: 2.422 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.348, allocations: 0.6812 MB / 0.5637 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.348, allocations: 19.42 kB / 0.5638 GB, free: 1.695 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.348, allocations: 3.938 kB / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of Templates: time 0.004047/0.3521, allocations: 1.802 MB / 0.5655 GB, free: 15.89 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.244905975880101]