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.001003/0.001003, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001172/0.001172, allocations: 166 kB / 24.82 MB, free: 9.266 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.03/1.03, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.3104/0.3104, allocations: 32.8 MB / 294.6 MB, free: 1.234 MB / 266.7 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.[0-9,]+.|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.[0-9,]+.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 376.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.185e-05, allocations: 6.25 kB / 376.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001205/0.001227, allocations: 0.5474 MB / 377 MB, free: 3.855 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007396/0.001966, allocations: 442.5 kB / 377.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.588e-05/0.002012, allocations: 0 / 377.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.002113, allocations: 0 / 377.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.002254, allocations: 15.86 kB / 377.5 MB, free: 3.406 MB / 346.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.0006315/0.002885, allocations: 171.4 kB / 377.6 MB, free: 3.238 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.003035, allocations: 79.84 kB / 377.7 MB, free: 3.16 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.003079, allocations: 7.984 kB / 377.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.513e-05/0.003174, allocations: 47.89 kB / 377.8 MB, free: 3.105 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.841e-05/0.003233, allocations: 15.98 kB / 377.8 MB, free: 3.09 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.003257, allocations: 4 kB / 377.8 MB, free: 3.086 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.003465, allocations: 131.7 kB / 377.9 MB, free: 2.957 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.028e-05/0.003516, allocations: 27.95 kB / 377.9 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.767e-05/0.003553, allocations: 23.91 kB / 378 MB, free: 2.906 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.003758, allocations: 155.5 kB / 378.1 MB, free: 2.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-06/0.003759, allocations: 0 / 378.1 MB, free: 2.754 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.00376, allocations: 0 / 378.1 MB, free: 2.754 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.956e-06/0.003763, allocations: 0 / 378.1 MB, free: 2.754 MB / 346.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.0004637/0.004226, allocations: 434.1 kB / 378.5 MB, free: 2.285 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.004272, allocations: 12.03 kB / 378.6 MB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.004318, allocations: 4.938 kB / 378.6 MB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.004463, allocations: 132.5 kB / 378.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.004474, allocations: 8.359 kB / 378.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.597e-05/0.00449, allocations: 8.375 kB / 378.7 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001323/0.004622, allocations: 78.91 kB / 378.8 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.00463, allocations: 192 / 378.8 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.004644, allocations: 4.375 kB / 378.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.004651, allocations: 4.312 kB / 378.8 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.204e-05/0.004683, allocations: 19.91 kB / 378.8 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.004816, allocations: 97.27 kB / 378.9 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.996e-05/0.004876, allocations: 51.11 kB / 379 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.277e-05/0.004899, allocations: 15.67 kB / 379 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.004917, allocations: 4 kB / 379 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.005059, allocations: 113 kB / 379.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.203e-06/0.00506, allocations: 0 / 379.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002042/0.005264, allocations: 109.6 kB / 379.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.005304, allocations: 55.41 kB / 379.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.754e-05/0.005381, allocations: 149.9 kB / 379.4 MB, free: 1.309 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.005403, allocations: 37.69 kB / 379.4 MB, free: 1.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.00545, allocations: 130.8 kB / 379.6 MB, free: 1.133 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.005487, allocations: 27.78 kB / 379.6 MB, free: 1.105 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.269e-05/0.00553, allocations: 47.28 kB / 379.6 MB, free: 1.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.005662, allocations: 0.4923 MB / 380.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.332e-05/0.005696, allocations: 41.69 kB / 380.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.213e-05/0.005758, allocations: 115.1 kB / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.005864, allocations: 139.1 kB / 380.4 MB, free: 176 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.005867, allocations: 0 / 380.4 MB, free: 176 kB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001559/0.006023, allocations: 164.9 kB / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.00605, allocations: 41.64 kB / 380.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.006056, allocations: 0 / 380.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.006071, allocations: 4 kB / 380.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.009e-05/0.006161, allocations: 23.92 kB / 380.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.006166, allocations: 4.219 kB / 380.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.161e-05/0.006198, allocations: 15.89 kB / 380.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.006208, allocations: 8 kB / 380.7 MB, free: 15.89 MB / 362.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 0.0001223/0.00633, allocations: 175.9 kB / 380.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.006348, allocations: 7.984 kB / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.006381, allocations: 8.125 kB / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.006383, allocations: 4 kB / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.006385, allocations: 0 / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.00639, allocations: 3.938 kB / 380.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.488e-05/0.006485, allocations: 117.1 kB / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.006486, allocations: 0 / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.806e-05/0.006505, allocations: 7.938 kB / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.006507, allocations: 0 / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.006514, allocations: 3.984 kB / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.006515, allocations: 4 kB / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.006516, allocations: 64 / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.006643, allocations: 132.3 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.005e-05/0.006654, allocations: 12.12 kB / 381.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.006669, allocations: 4 kB / 381.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.858e-05/0.006758, allocations: 19.97 kB / 381.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.085e-05/0.006779, allocations: 7.984 kB / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.006789, allocations: 4 kB / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.815e-05/0.006827, allocations: 123.2 kB / 381.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006827, allocations: 0 / 381.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.007037, allocations: 43.92 kB / 381.3 MB, free: 15.17 MB / 362.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.000328/0.007365, allocations: 188.6 kB / 381.5 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.007525, allocations: 144.6 kB / 381.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.007527, allocations: 0 / 381.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.233e-05/0.007559, allocations: 31.61 kB / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.007678, allocations: 19.92 kB / 381.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002611/0.007939, allocations: 142.2 kB / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.811e-05/0.007977, allocations: 55.8 kB / 381.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.723e-05/0.008014, allocations: 16.72 kB / 381.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.25e-05/0.008067, allocations: 82.19 kB / 382 MB, free: 14.44 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.008067, allocations: 3.938 kB / 382 MB, free: 14.43 MB / 362.7 MB Notification: Performance of Templates: time 0.00417/0.01224, allocations: 2.362 MB / 384.4 MB, free: 12.1 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2706309221684933]