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.001461/0.001461, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.001047/0.001047, allocations: 170.5 kB / 24.91 MB, free: 9.211 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.105/1.105, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.2607/0.2607, allocations: 32.8 MB / 294.6 MB, free: 1.27 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.173e-06/1.173e-06, allocations: 0 / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.881e-05, allocations: 2.969 kB / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001035/0.001054, allocations: 0.5458 MB / 323.8 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007109/0.001765, allocations: 442.2 kB / 324.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.001801, allocations: 0 / 324.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.588e-05/0.001877, allocations: 0 / 324.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.001989, allocations: 15.91 kB / 324.2 MB, free: 8.73 MB / 298.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.0004974/0.002486, allocations: 167.4 kB / 324.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.002614, allocations: 83.84 kB / 324.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.484e-05/0.002648, allocations: 3.984 kB / 324.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.807e-05/0.002716, allocations: 55.89 kB / 324.5 MB, free: 8.426 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.892e-05/0.002765, allocations: 15.98 kB / 324.5 MB, free: 8.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.002783, allocations: 0 / 324.5 MB, free: 8.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.002978, allocations: 131.7 kB / 324.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.094e-05/0.003029, allocations: 27.89 kB / 324.7 MB, free: 8.254 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.003063, allocations: 20.59 kB / 324.7 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.003254, allocations: 159.5 kB / 324.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.003255, allocations: 0 / 324.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003256, allocations: 0 / 324.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.003259, allocations: 0 / 324.9 MB, free: 8.078 MB / 298.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.000409/0.003668, allocations: 314.4 kB / 325.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.0037, allocations: 8.031 kB / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.003736, allocations: 4.938 kB / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.003861, allocations: 117.8 kB / 325.3 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.003871, allocations: 4.375 kB / 325.3 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.003889, allocations: 8.375 kB / 325.3 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.003995, allocations: 78.89 kB / 325.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.004001, allocations: 192 / 325.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.004015, allocations: 4.375 kB / 325.4 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.00402, allocations: 4.312 kB / 325.4 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.06e-05/0.004051, allocations: 23.91 kB / 325.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.726e-05/0.004148, allocations: 71.88 kB / 325.5 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.999e-05/0.004198, allocations: 34.62 kB / 325.5 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.988e-05/0.004218, allocations: 12.86 kB / 325.5 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.004229, allocations: 0 / 325.5 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001294/0.004358, allocations: 114.1 kB / 325.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 7.92e-07/0.004359, allocations: 0 / 325.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001326/0.004492, allocations: 69.61 kB / 325.7 MB, free: 7.113 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.004532, allocations: 63.41 kB / 325.8 MB, free: 7.039 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.755e-05/0.00459, allocations: 110.8 kB / 325.9 MB, free: 6.918 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.004612, allocations: 29.7 kB / 325.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.362e-05/0.004635, allocations: 84.08 kB / 326 MB, free: 6.797 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.004663, allocations: 31.77 kB / 326 MB, free: 6.766 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.004695, allocations: 29.69 kB / 326.1 MB, free: 6.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.049e-05/0.004776, allocations: 322.8 kB / 326.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.753e-05/0.004803, allocations: 41.69 kB / 326.4 MB, free: 6.359 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.101e-05/0.004854, allocations: 99.02 kB / 326.5 MB, free: 6.234 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.089e-05/0.004945, allocations: 119.3 kB / 326.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.004948, allocations: 0 / 326.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001135/0.005061, allocations: 144.9 kB / 326.8 MB, free: 5.926 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.005087, allocations: 37.92 kB / 326.8 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.005093, allocations: 3.984 kB / 326.8 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.005106, allocations: 4 kB / 326.8 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.815e-05/0.005194, allocations: 23.94 kB / 326.8 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.005198, allocations: 3.984 kB / 326.8 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.05e-05/0.005229, allocations: 15.89 kB / 326.9 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.005238, allocations: 4 kB / 326.9 MB, free: 5.828 MB / 298.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.0001106/0.005348, allocations: 132.5 kB / 327 MB, free: 5.688 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.005363, allocations: 11.98 kB / 327 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.005392, allocations: 16.06 kB / 327 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.005395, allocations: 0 / 327 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.005396, allocations: 0 / 327 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.005399, allocations: 0 / 327 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.349e-05/0.005473, allocations: 77.83 kB / 327.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.005475, allocations: 4.062 kB / 327.1 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-05/0.005493, allocations: 4 kB / 327.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.005497, allocations: 7.984 kB / 327.1 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-06/0.005501, allocations: 0 / 327.1 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.005502, allocations: 0 / 327.1 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.005503, allocations: 4 kB / 327.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.06e-05/0.005593, allocations: 98.62 kB / 327.2 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.599e-06/0.005603, allocations: 11.94 kB / 327.2 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.005618, allocations: 4 kB / 327.2 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-05/0.005696, allocations: 11.98 kB / 327.2 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.94e-05/0.005716, allocations: 7.984 kB / 327.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.005725, allocations: 4 kB / 327.2 MB, free: 5.391 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.363e-05/0.005738, allocations: 12.84 kB / 327.3 MB, free: 5.375 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005738, allocations: 0 / 327.3 MB, free: 5.375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001745/0.005913, allocations: 39.94 kB / 327.3 MB, free: 5.336 MB / 298.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.0003959/0.006309, allocations: 191.8 kB / 327.5 MB, free: 5.188 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001554/0.006464, allocations: 138.4 kB / 327.6 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.006467, allocations: 4.438 kB / 327.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.726e-05/0.006495, allocations: 28.78 kB / 327.7 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.45e-05/0.006569, allocations: 19.92 kB / 327.7 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002592/0.006828, allocations: 143.5 kB / 327.8 MB, free: 4.809 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.395e-05/0.006862, allocations: 59.34 kB / 327.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.637e-05/0.006899, allocations: 12.72 kB / 327.9 MB, free: 4.715 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.082e-05/0.00694, allocations: 59.38 kB / 327.9 MB, free: 4.656 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.00694, allocations: 0 / 327.9 MB, free: 4.656 MB / 298.7 MB Notification: Performance of Templates: time 0.003938/0.01088, allocations: 2.349 MB / 330.3 MB, free: 2.344 MB / 298.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.103047812823206]