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.001783/0.001783, allocations: 84.34 kB / 20.95 MB, free: 3.457 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.001783/0.001783, allocations: 169.3 kB / 24.27 MB, free: 148 kB / 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.513/1.513, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.3395/0.3395, allocations: 32.79 MB / 293.9 MB, free: 1.203 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.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: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 375.3 MB, free: 4.969 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.74e-05/3.93e-05, allocations: 6.25 kB / 375.3 MB, free: 4.961 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001804/0.001843, allocations: 0.5432 MB / 375.8 MB, free: 4.418 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.002868, allocations: 430.3 kB / 376.2 MB, free: 3.996 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.002899, allocations: 0 / 376.2 MB, free: 3.996 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.781e-05/0.002997, allocations: 3.938 kB / 376.2 MB, free: 3.992 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.003142, allocations: 11.94 kB / 376.2 MB, free: 3.98 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.0006616/0.003804, allocations: 175.3 kB / 376.4 MB, free: 3.809 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.004005, allocations: 87.84 kB / 376.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.961e-05/0.004044, allocations: 0 / 376.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.004146, allocations: 55.88 kB / 376.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.774e-05/0.004203, allocations: 11.98 kB / 376.6 MB, free: 3.656 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.812e-05/0.004231, allocations: 4 kB / 376.6 MB, free: 3.652 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002914/0.004523, allocations: 131.7 kB / 376.7 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.00459, allocations: 19.97 kB / 376.7 MB, free: 3.504 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.187e-05/0.004651, allocations: 27.89 kB / 376.7 MB, free: 3.477 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.004961, allocations: 151.6 kB / 376.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.004964, allocations: 0 / 376.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.004965, allocations: 0 / 376.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.00497, allocations: 4 kB / 376.9 MB, free: 3.324 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.0006919/0.005662, allocations: 331.8 kB / 377.2 MB, free: 2.961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.005705, allocations: 8.031 kB / 377.2 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.127e-05/0.005787, allocations: 8.922 kB / 377.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.006015, allocations: 133.6 kB / 377.4 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.006037, allocations: 8.375 kB / 377.4 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/0.006063, allocations: 4.375 kB / 377.4 MB, free: 2.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.00629, allocations: 90.19 kB / 377.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.006299, allocations: 192 / 377.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.006319, allocations: 384 / 377.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.006324, allocations: 4.375 kB / 377.5 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.734e-05/0.006401, allocations: 23.92 kB / 377.5 MB, free: 2.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/0.006605, allocations: 117.3 kB / 377.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.00671, allocations: 38.5 kB / 377.6 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.468e-05/0.006764, allocations: 24.91 kB / 377.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.006784, allocations: 0 / 377.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003129/0.007097, allocations: 131.3 kB / 377.8 MB, free: 2.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.007098, allocations: 0 / 377.8 MB, free: 2.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003558/0.007454, allocations: 129.8 kB / 377.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.007509, allocations: 59.34 kB / 378 MB, free: 2.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.007609, allocations: 101.8 kB / 378.1 MB, free: 1.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.007644, allocations: 33.69 kB / 378.1 MB, free: 1.945 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.007706, allocations: 84.12 kB / 378.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.128e-05/0.007747, allocations: 27.8 kB / 378.2 MB, free: 1.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.262e-05/0.007829, allocations: 41.64 kB / 378.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.008017, allocations: 318.8 kB / 378.6 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.736e-05/0.008094, allocations: 49.69 kB / 378.6 MB, free: 1.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.008215, allocations: 100.5 kB / 378.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.008444, allocations: 144.4 kB / 378.9 MB, free: 1.109 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.008449, allocations: 4 kB / 378.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002916/0.008741, allocations: 188.8 kB / 379 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.048e-05/0.008801, allocations: 43.78 kB / 379.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.008807, allocations: 0 / 379.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.008829, allocations: 4 kB / 379.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.008946, allocations: 15.94 kB / 379.1 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.008958, allocations: 11.92 kB / 379.1 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.633e-05/0.009015, allocations: 11.95 kB / 379.1 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.009028, allocations: 4 kB / 379.1 MB, free: 0.8086 MB / 346.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.0001761/0.009204, allocations: 117.8 kB / 379.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.009247, allocations: 15.92 kB / 379.3 MB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.009276, allocations: 12.12 kB / 379.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.009278, allocations: 0 / 379.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.009289, allocations: 8 kB / 379.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.009292, allocations: 0 / 379.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.00945, allocations: 117.3 kB / 379.4 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.009451, allocations: 192 / 379.4 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-05/0.009488, allocations: 11.94 kB / 379.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.009492, allocations: 3.984 kB / 379.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.009505, allocations: 3.984 kB / 379.4 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.009506, allocations: 0 / 379.4 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.009507, allocations: 4 kB / 379.4 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.009772, allocations: 145 kB / 379.6 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.268e-05/0.009785, allocations: 7.891 kB / 379.6 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.009808, allocations: 4 kB / 379.6 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.01001, allocations: 19.97 kB / 379.6 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.282e-05/0.01005, allocations: 3.984 kB / 379.6 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.01007, allocations: 11.94 kB / 379.6 MB, free: 284 kB / 346.7 MB Notification: Performance of sorting global known variables: time 5.664e-05/0.01012, allocations: 83.27 kB / 379.7 MB, free: 200 kB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01012, allocations: 0 / 379.7 MB, free: 200 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002899/0.01041, allocations: 39.94 kB / 379.7 MB, free: 160 kB / 346.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.0005798/0.01099, allocations: 196.4 kB / 379.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.01125, allocations: 148.9 kB / 380.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01125, allocations: 448 / 380.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.417e-05/0.01132, allocations: 27.98 kB / 380.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.0115, allocations: 19.97 kB / 380.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004399/0.01194, allocations: 156.4 kB / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.733e-05/0.01202, allocations: 67.28 kB / 380.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.752e-05/0.01206, allocations: 16.66 kB / 380.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.0121, allocations: 20.48 kB / 380.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of SimCode: time 4.3e-07/0.0121, allocations: 0 / 380.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of Templates: time 0.006275/0.01837, allocations: 2.098 MB / 382.5 MB, free: 13.39 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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.949007067014463]