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.001009/0.001009, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.001107/0.001107, allocations: 169.9 kB / 24.91 MB, free: 9.191 MB / 18.57 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.102/1.102, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.2516/0.2516, allocations: 34.26 MB / 296.1 MB, free: 0.668 MB / 266.7 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.[0-9,]+.|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.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.425e-06/2.425e-06, allocations: 4 kB / 325.3 MB, free: 7.633 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.693e-05/1.936e-05, allocations: 3.891 kB / 325.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001154/0.001173, allocations: 0.5858 MB / 325.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006889/0.001862, allocations: 447 kB / 326.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.687e-05/0.001899, allocations: 3.938 kB / 326.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.118e-05/0.00198, allocations: 3.984 kB / 326.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.002091, allocations: 3.938 kB / 326.3 MB, free: 6.594 MB / 298.7 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.0004407/0.002532, allocations: 167.4 kB / 326.5 MB, free: 6.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.002661, allocations: 87.78 kB / 326.6 MB, free: 6.344 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.619e-05/0.002697, allocations: 4.625 kB / 326.6 MB, free: 6.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.087e-05/0.002768, allocations: 51.89 kB / 326.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.709e-05/0.002815, allocations: 19.97 kB / 326.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.00284, allocations: 4 kB / 326.7 MB, free: 6.266 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.003048, allocations: 135.7 kB / 326.8 MB, free: 6.133 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.188e-05/0.00309, allocations: 19.92 kB / 326.8 MB, free: 6.113 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.003118, allocations: 19.97 kB / 326.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.003307, allocations: 159.5 kB / 327 MB, free: 5.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.382e-06/0.003309, allocations: 0 / 327 MB, free: 5.938 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.003309, allocations: 0 / 327 MB, free: 5.938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.815e-06/0.003312, allocations: 4 kB / 327 MB, free: 5.934 MB / 298.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.0003574/0.003669, allocations: 306.6 kB / 327.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.003701, allocations: 12.03 kB / 327.3 MB, free: 5.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.003737, allocations: 8.922 kB / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.003862, allocations: 117.8 kB / 327.4 MB, free: 5.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.324e-06/0.003869, allocations: 4.359 kB / 327.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.003884, allocations: 8.375 kB / 327.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.003998, allocations: 78.84 kB / 327.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.004004, allocations: 192 / 327.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.004017, allocations: 4.375 kB / 327.5 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.004021, allocations: 384 / 327.5 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.823e-05/0.004049, allocations: 19.91 kB / 327.5 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.317e-05/0.004143, allocations: 71.86 kB / 327.6 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.679e-05/0.004189, allocations: 30.58 kB / 327.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.941e-05/0.004209, allocations: 12.84 kB / 327.6 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.004221, allocations: 4 kB / 327.6 MB, free: 5.176 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001267/0.004348, allocations: 110.2 kB / 327.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 8.52e-07/0.004349, allocations: 0 / 327.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001344/0.004483, allocations: 81.59 kB / 327.8 MB, free: 4.969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.004537, allocations: 55.41 kB / 327.9 MB, free: 4.902 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.654e-05/0.004584, allocations: 98.72 kB / 328 MB, free: 4.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.004601, allocations: 33.69 kB / 328 MB, free: 4.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.401e-05/0.004625, allocations: 84.12 kB / 328.1 MB, free: 4.668 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.004652, allocations: 31.72 kB / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.309e-05/0.004685, allocations: 33.7 kB / 328.2 MB, free: 4.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.403e-05/0.004769, allocations: 322.8 kB / 328.5 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.791e-05/0.004797, allocations: 33.7 kB / 328.5 MB, free: 4.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.086e-05/0.004848, allocations: 96.48 kB / 328.6 MB, free: 4.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.005003, allocations: 131.2 kB / 328.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.005005, allocations: 0 / 328.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001105/0.005116, allocations: 144.9 kB / 328.9 MB, free: 3.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.005143, allocations: 36.42 kB / 328.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.00515, allocations: 4 kB / 328.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.005162, allocations: 4 kB / 328.9 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.581e-05/0.005248, allocations: 23.92 kB / 328.9 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.005254, allocations: 4.062 kB / 328.9 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.096e-05/0.005285, allocations: 20.08 kB / 329 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-06/0.005295, allocations: 4 kB / 329 MB, free: 3.691 MB / 298.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 9.816e-05/0.005393, allocations: 132.5 kB / 329.1 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.005408, allocations: 19.97 kB / 329.1 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.005436, allocations: 4.125 kB / 329.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.005438, allocations: 4 kB / 329.1 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.00544, allocations: 3.938 kB / 329.1 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.005443, allocations: 0 / 329.1 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.463e-05/0.005518, allocations: 81.81 kB / 329.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.005519, allocations: 0 / 329.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.92e-05/0.005538, allocations: 4 kB / 329.2 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.005541, allocations: 4 kB / 329.2 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.005548, allocations: 3.984 kB / 329.2 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.005549, allocations: 0 / 329.2 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.00555, allocations: 4 kB / 329.2 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.928e-05/0.00565, allocations: 98.64 kB / 329.3 MB, free: 3.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.839e-06/0.005659, allocations: 8.453 kB / 329.3 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.00568, allocations: 3.984 kB / 329.3 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-05/0.005763, allocations: 11.98 kB / 329.3 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.986e-05/0.005782, allocations: 7.984 kB / 329.4 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.005792, allocations: 4 kB / 329.4 MB, free: 3.254 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.136e-05/0.005803, allocations: 12.84 kB / 329.4 MB, free: 3.238 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005803, allocations: 0 / 329.4 MB, free: 3.238 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001595/0.005963, allocations: 43.92 kB / 329.4 MB, free: 3.195 MB / 298.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.0003365/0.006299, allocations: 200.5 kB / 329.6 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001213/0.006421, allocations: 133.8 kB / 329.7 MB, free: 2.887 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.006423, allocations: 4.438 kB / 329.7 MB, free: 2.883 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.468e-05/0.006448, allocations: 28.78 kB / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.095e-05/0.006529, allocations: 23.91 kB / 329.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002405/0.006769, allocations: 138.8 kB / 329.9 MB, free: 2.664 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.01e-05/0.006799, allocations: 59.34 kB / 330 MB, free: 2.586 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.159e-05/0.006831, allocations: 12.72 kB / 330 MB, free: 2.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.889e-05/0.00687, allocations: 59.38 kB / 330.1 MB, free: 2.512 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.00687, allocations: 0 / 330.1 MB, free: 2.512 MB / 298.7 MB Notification: Performance of Templates: time 0.0035/0.01037, allocations: 2.345 MB / 332.4 MB, free: 200 kB / 298.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.0130985910072923]