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.001306/0.001306, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001673/0.00298, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001032/0.001032, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00104/0.002073, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.019/1.019, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09134/1.11, allocations: 53.64 MB / 243.2 MB, free: 15.6 MB / 250.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.2947/0.2947, allocations: 32.8 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0243/0.3189, allocations: 12.53 MB / 289.3 MB, free: 8.68 MB / 282.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 2.405e-06/2.405e-06, allocations: 0 / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.9e-05/3.141e-05, allocations: 5.125 kB / 290.6 MB, free: 7.652 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002312/0.002343, allocations: 0.5952 MB / 291.2 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004151/0.006494, allocations: 445.5 kB / 291.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.214e-05/0.006546, allocations: 0 / 291.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.669e-05/0.006593, allocations: 1.656 kB / 291.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.613e-05/0.006689, allocations: 5.281 kB / 291.6 MB, free: 6.863 MB / 282.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.0007653/0.007454, allocations: 174.5 kB / 291.8 MB, free: 6.746 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.007661, allocations: 84.02 kB / 291.9 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.035e-05/0.007701, allocations: 2.969 kB / 291.9 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.007811, allocations: 46.17 kB / 291.9 MB, free: 6.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.007883, allocations: 23.25 kB / 292 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.007907, allocations: 2.969 kB / 292 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002842/0.008191, allocations: 130.8 kB / 292.1 MB, free: 6.605 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.077e-05/0.008242, allocations: 8.938 kB / 292.1 MB, free: 6.605 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.417e-05/0.008276, allocations: 15.48 kB / 292.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.008512, allocations: 122.4 kB / 292.2 MB, free: 6.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.449e-05/0.008526, allocations: 0 / 292.2 MB, free: 6.543 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.008528, allocations: 7.938 kB / 292.2 MB, free: 6.535 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.008545, allocations: 2.906 kB / 292.3 MB, free: 6.535 MB / 282.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.003565/0.01211, allocations: 323.4 kB / 292.6 MB, free: 6.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.01214, allocations: 8 kB / 292.6 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.01219, allocations: 10.92 kB / 292.6 MB, free: 6.215 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.01232, allocations: 117.9 kB / 292.7 MB, free: 6.082 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.01233, allocations: 2.375 kB / 292.7 MB, free: 6.082 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.01235, allocations: 8.359 kB / 292.7 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.01247, allocations: 77.81 kB / 292.8 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.01248, allocations: 192 / 292.8 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.01249, allocations: 10.77 kB / 292.8 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.0125, allocations: 384 / 292.8 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.575e-05/0.01253, allocations: 23.27 kB / 292.8 MB, free: 5.988 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.01265, allocations: 66.11 kB / 292.9 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.891e-05/0.01271, allocations: 33.14 kB / 292.9 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.365e-05/0.01273, allocations: 17.25 kB / 292.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.01275, allocations: 1.625 kB / 292.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001576/0.0129, allocations: 110.5 kB / 293 MB, free: 5.777 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.0129, allocations: 4 kB / 293 MB, free: 5.773 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001449/0.01305, allocations: 73.67 kB / 293.1 MB, free: 5.695 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.01309, allocations: 59.39 kB / 293.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.243e-05/0.01314, allocations: 98.72 kB / 293.3 MB, free: 5.516 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.01316, allocations: 33.7 kB / 293.3 MB, free: 5.477 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.525e-05/0.01319, allocations: 84.12 kB / 293.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.04e-05/0.01322, allocations: 31.72 kB / 293.4 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/0.01326, allocations: 33.69 kB / 293.5 MB, free: 5.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.9e-05/0.01334, allocations: 322.8 kB / 293.8 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.901e-05/0.01337, allocations: 33.7 kB / 293.8 MB, free: 4.957 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.524e-05/0.01342, allocations: 95.08 kB / 293.9 MB, free: 4.836 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.01353, allocations: 123.2 kB / 294 MB, free: 4.684 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01354, allocations: 0 / 294 MB, free: 4.684 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001517/0.01369, allocations: 152.9 kB / 294.2 MB, free: 4.516 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.01372, allocations: 29.7 kB / 294.2 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.01373, allocations: 8.062 kB / 294.2 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.01374, allocations: 4 kB / 294.2 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.01387, allocations: 31.92 kB / 294.2 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.01387, allocations: 0 / 294.2 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.344e-05/0.01392, allocations: 11.89 kB / 294.2 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.01393, allocations: 4 kB / 294.3 MB, free: 4.422 MB / 282.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.0001276/0.01406, allocations: 144.7 kB / 294.4 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.01408, allocations: 11.98 kB / 294.4 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.65e-05/0.01412, allocations: 8.125 kB / 294.4 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.01412, allocations: 0 / 294.4 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.01412, allocations: 0 / 294.4 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.01413, allocations: 0 / 294.4 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.941e-05/0.01422, allocations: 77.83 kB / 294.5 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.01423, allocations: 7.938 kB / 294.5 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-05/0.01426, allocations: 4 kB / 294.5 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-06/0.01427, allocations: 3.953 kB / 294.5 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.01427, allocations: 11.98 kB / 294.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.01428, allocations: 0 / 294.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.01428, allocations: 0 / 294.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01428, allocations: 0 / 294.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/0.01744, allocations: 102.6 kB / 294.6 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.439e-05/0.01747, allocations: 7.984 kB / 294.6 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.01761, allocations: 16.17 kB / 294.6 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.454e-05/0.01763, allocations: 7.969 kB / 294.6 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.01765, allocations: 4 kB / 294.7 MB, free: 3.973 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.723e-05/0.01766, allocations: 4.859 kB / 294.7 MB, free: 3.965 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01766, allocations: 4 kB / 294.7 MB, free: 3.961 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002575/0.01792, allocations: 43.92 kB / 294.7 MB, free: 3.918 MB / 282.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.0004524/0.01837, allocations: 206.3 kB / 294.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.01854, allocations: 137.9 kB / 295 MB, free: 3.605 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/0.01855, allocations: 4 kB / 295 MB, free: 3.602 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.821e-05/0.01858, allocations: 20.84 kB / 295.1 MB, free: 3.578 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.895e-05/0.01868, allocations: 35.84 kB / 295.1 MB, free: 3.543 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002815/0.01896, allocations: 143.5 kB / 295.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.143e-05/0.01899, allocations: 59.34 kB / 295.3 MB, free: 3.297 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.388e-05/0.01904, allocations: 13.09 kB / 295.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.431e-05/0.01908, allocations: 67.31 kB / 295.4 MB, free: 3.215 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01908, allocations: 4 kB / 295.4 MB, free: 3.211 MB / 282.7 MB Notification: Performance of Templates: time 0.01105/0.03013, allocations: 2.381 MB / 297.8 MB, free: 0.8555 MB / 282.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 -ignoreHideResult -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.0345514491200447]