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.001421/0.001421, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001514/0.001514, allocations: 202.1 kB / 23.73 MB, free: 4.379 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.529/1.529, allocations: 230.6 MB / 257.5 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] 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.2399/0.2399, allocations: 46.95 MB / 360.9 MB, free: 4.117 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+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.1.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.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 63.89 kB / 0.4966 GB, free: 7.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3855, allocations: 66.03 MB / 0.5611 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001893/0.3874, allocations: 0.5305 MB / 0.5616 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.3884, allocations: 438.5 kB / 0.562 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.33e-05/0.3884, allocations: 0 / 0.562 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.361e-05/0.3885, allocations: 0 / 0.562 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.3886, allocations: 19.91 kB / 0.562 GB, free: 3.18 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.0006896/0.3893, allocations: 175.3 kB / 0.5622 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.3895, allocations: 75.86 kB / 0.5623 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.162e-05/0.3896, allocations: 11.97 kB / 0.5623 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.577e-05/0.3896, allocations: 35.92 kB / 0.5623 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.998e-05/0.3897, allocations: 19.91 kB / 0.5623 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.3897, allocations: 4 kB / 0.5623 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.39, allocations: 135.8 kB / 0.5625 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.821e-05/0.3901, allocations: 27.91 kB / 0.5625 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.084e-05/0.3902, allocations: 23.91 kB / 0.5625 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.3904, allocations: 130.1 kB / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3905, allocations: 4 kB / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3905, allocations: 0 / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.3905, allocations: 0 / 0.5626 GB, free: 2.559 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.0007181/0.3912, allocations: 331.8 kB / 0.563 GB, free: 2.195 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.3912, allocations: 8.031 kB / 0.563 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.559e-05/0.3913, allocations: 8.891 kB / 0.563 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.3915, allocations: 122.5 kB / 0.5631 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.3915, allocations: 8.375 kB / 0.5631 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.3916, allocations: 4.375 kB / 0.5631 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.3918, allocations: 94.12 kB / 0.5632 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3918, allocations: 4.172 kB / 0.5632 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.3918, allocations: 7.938 kB / 0.5632 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3918, allocations: 0 / 0.5632 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.868e-05/0.3919, allocations: 23.97 kB / 0.5632 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000185/0.3921, allocations: 117.2 kB / 0.5633 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.3922, allocations: 38.56 kB / 0.5634 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.99e-05/0.3922, allocations: 21.06 kB / 0.5634 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.3923, allocations: 0 / 0.5634 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003074/0.3926, allocations: 143.2 kB / 0.5635 GB, free: 1.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.3926, allocations: 0 / 0.5635 GB, free: 1.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003506/0.3929, allocations: 129.5 kB / 0.5637 GB, free: 1.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.393, allocations: 55.41 kB / 0.5637 GB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.181e-05/0.3931, allocations: 97.84 kB / 0.5638 GB, free: 1.219 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.3931, allocations: 33.7 kB / 0.5638 GB, free: 1.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.021e-05/0.3931, allocations: 80.14 kB / 0.5639 GB, free: 1.098 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.3932, allocations: 27.84 kB / 0.5639 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/0.3932, allocations: 37.7 kB / 0.564 GB, free: 1.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3934, allocations: 310.8 kB / 0.5643 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.255e-05/0.3934, allocations: 53.69 kB / 0.5643 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.3936, allocations: 104.5 kB / 0.5644 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.3938, allocations: 148.4 kB / 0.5646 GB, free: 356 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3938, allocations: 4 kB / 0.5646 GB, free: 352 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002554/0.394, allocations: 180.9 kB / 0.5647 GB, free: 152 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/0.3941, allocations: 29.7 kB / 0.5648 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3941, allocations: 7.938 kB / 0.5648 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3941, allocations: 4 kB / 0.5648 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3942, allocations: 28.14 kB / 0.5648 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.3942, allocations: 4 kB / 0.5648 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.364e-05/0.3943, allocations: 11.83 kB / 0.5648 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.3943, allocations: 8 kB / 0.5648 GB, free: 52 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.0001875/0.3945, allocations: 129.8 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.3945, allocations: 7.953 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.147e-05/0.3946, allocations: 12 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3946, allocations: 0 / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3946, allocations: 4 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3946, allocations: 8.266 kB / 0.565 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.3947, allocations: 109.3 kB / 0.5651 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3947, allocations: 0 / 0.5651 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.047e-05/0.3947, allocations: 11.92 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3947, allocations: 0 / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.3948, allocations: 0 / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.3948, allocations: 3.938 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3948, allocations: 0 / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.395, allocations: 137 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.055e-05/0.395, allocations: 3.953 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.395, allocations: 11.98 kB / 0.5652 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3953, allocations: 20.09 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.3953, allocations: 15.92 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.3953, allocations: 7.984 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.897e-05/0.3954, allocations: 79.28 kB / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3954, allocations: 0 / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.3957, allocations: 39.94 kB / 0.5654 GB, free: 15.4 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.0004999/0.3962, allocations: 195.8 kB / 0.5656 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002537/0.3964, allocations: 152.9 kB / 0.5657 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3964, allocations: 0 / 0.5657 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.555e-05/0.3965, allocations: 27.92 kB / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.3967, allocations: 8 kB / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.3971, allocations: 145.1 kB / 0.5659 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.297e-05/0.3971, allocations: 71.34 kB / 0.566 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.093e-05/0.3972, allocations: 16.64 kB / 0.566 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.3972, allocations: 11.44 kB / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3972, allocations: 0 / 0.566 GB, free: 14.73 MB / 414.1 MB Notification: Performance of Templates: time 0.005811/0.403, allocations: 2.106 MB / 0.5681 GB, free: 12.66 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.368765542283654]