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.001265/0.001265, allocations: 109.1 kB / 21.84 MB, free: 88 kB / 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.001534/0.001534, allocations: 221.1 kB / 25.13 MB, free: 3.609 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.449/1.449, allocations: 230.4 MB / 258.7 MB, free: 8.051 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.233/0.233, allocations: 46.94 MB / 362 MB, free: 4.238 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.002372/0.002372, allocations: 83.86 kB / 0.4978 GB, free: 7.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3553, allocations: 66.08 MB / 0.5623 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001678/0.357, allocations: 0.5382 MB / 0.5629 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009211/0.3579, allocations: 442.6 kB / 0.5633 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.51e-05/0.358, allocations: 3.938 kB / 0.5633 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.179e-05/0.358, allocations: 0 / 0.5633 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.3582, allocations: 15.91 kB / 0.5633 GB, free: 3.301 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.0006346/0.3588, allocations: 175.5 kB / 0.5635 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.359, allocations: 83.89 kB / 0.5635 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.695e-05/0.359, allocations: 4 kB / 0.5635 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.987e-05/0.3591, allocations: 43.84 kB / 0.5636 GB, free: 3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.863e-05/0.3591, allocations: 23.91 kB / 0.5636 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.3592, allocations: 4 kB / 0.5636 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002736/0.3594, allocations: 131.8 kB / 0.5637 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.3595, allocations: 19.97 kB / 0.5638 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.766e-05/0.3596, allocations: 27.89 kB / 0.5638 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.3598, allocations: 138.1 kB / 0.5639 GB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.3598, allocations: 3.938 kB / 0.5639 GB, free: 2.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3598, allocations: 0 / 0.5639 GB, free: 2.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.3598, allocations: 0 / 0.5639 GB, free: 2.664 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.0005876/0.3604, allocations: 331.8 kB / 0.5642 GB, free: 2.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3604, allocations: 12.03 kB / 0.5643 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.3605, allocations: 8.891 kB / 0.5643 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.3607, allocations: 122.5 kB / 0.5644 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.3607, allocations: 384 / 0.5644 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.3607, allocations: 12.36 kB / 0.5644 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.3609, allocations: 86.2 kB / 0.5645 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3609, allocations: 192 / 0.5645 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.3609, allocations: 7.938 kB / 0.5645 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3609, allocations: 0 / 0.5645 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.236e-05/0.361, allocations: 31.91 kB / 0.5645 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001939/0.3612, allocations: 140.7 kB / 0.5646 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.124e-05/0.3613, allocations: 34.56 kB / 0.5647 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.802e-05/0.3614, allocations: 24.91 kB / 0.5647 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.3614, allocations: 0 / 0.5647 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.3616, allocations: 135.2 kB / 0.5648 GB, free: 1.602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.3616, allocations: 0 / 0.5648 GB, free: 1.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000312/0.3619, allocations: 137.5 kB / 0.565 GB, free: 1.461 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.362, allocations: 55.41 kB / 0.565 GB, free: 1.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.95e-05/0.3621, allocations: 101.8 kB / 0.5651 GB, free: 1.285 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.3621, allocations: 29.7 kB / 0.5651 GB, free: 1.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.3621, allocations: 80.14 kB / 0.5652 GB, free: 1.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.375e-05/0.3622, allocations: 31.94 kB / 0.5652 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.812e-05/0.3622, allocations: 33.7 kB / 0.5653 GB, free: 1.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3624, allocations: 314.8 kB / 0.5656 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.017e-05/0.3624, allocations: 53.69 kB / 0.5656 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.3625, allocations: 103.6 kB / 0.5657 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.3627, allocations: 148.4 kB / 0.5659 GB, free: 428 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3627, allocations: 4.281 kB / 0.5659 GB, free: 424 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000245/0.363, allocations: 184.9 kB / 0.566 GB, free: 220 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.363, allocations: 43.98 kB / 0.5661 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.363, allocations: 3.938 kB / 0.5661 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.363, allocations: 8.219 kB / 0.5661 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.3631, allocations: 19.92 kB / 0.5661 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.3631, allocations: 4 kB / 0.5661 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.233e-05/0.3632, allocations: 11.89 kB / 0.5661 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.3632, allocations: 8 kB / 0.5661 GB, free: 116 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.0001601/0.3634, allocations: 121.8 kB / 0.5663 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.3634, allocations: 11.89 kB / 0.5663 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/0.3634, allocations: 12.06 kB / 0.5663 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3634, allocations: 8.125 kB / 0.5663 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3634, allocations: 0 / 0.5663 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3634, allocations: 7.922 kB / 0.5663 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.3636, allocations: 136.7 kB / 0.5664 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3636, allocations: 0 / 0.5664 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/0.3636, allocations: 8 kB / 0.5664 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3636, allocations: 3.938 kB / 0.5664 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3636, allocations: 7.984 kB / 0.5664 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3636, allocations: 0 / 0.5664 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3636, allocations: 0 / 0.5664 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.3638, allocations: 133 kB / 0.5666 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.159e-05/0.3639, allocations: 11.89 kB / 0.5666 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.3639, allocations: 4 kB / 0.5666 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.3641, allocations: 19.97 kB / 0.5666 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.555e-05/0.3641, allocations: 3.984 kB / 0.5666 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.3641, allocations: 8 kB / 0.5666 GB, free: 15.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.167e-05/0.3641, allocations: 83.28 kB / 0.5667 GB, free: 15.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3641, allocations: 0 / 0.5667 GB, free: 15.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.3644, allocations: 43.92 kB / 0.5667 GB, free: 15.43 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.0004009/0.3648, allocations: 173.7 kB / 0.5669 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.3651, allocations: 156.9 kB / 0.5671 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3651, allocations: 3.938 kB / 0.5671 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.199e-05/0.3651, allocations: 27.97 kB / 0.5671 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.3653, allocations: 11.94 kB / 0.5671 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003566/0.3656, allocations: 148.6 kB / 0.5672 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.366, allocations: 0.6846 MB / 0.5679 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.711e-05/0.366, allocations: 17.09 kB / 0.5679 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.366, allocations: 11.44 kB / 0.5679 GB, free: 14.14 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.366, allocations: 0 / 0.5679 GB, free: 14.14 MB / 414.1 MB Notification: Performance of Templates: time 0.005072/0.3711, allocations: 2.043 MB / 0.5699 GB, free: 12.1 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 -s gbode -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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.009221396874636]