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.00182/0.00182, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002262/0.002262, allocations: 219.7 kB / 23.73 MB, free: 4.16 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.536/1.536, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 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.2346/0.2346, allocations: 44.94 MB / 358.8 MB, free: 6.047 MB / 286.1 MB " [Timeout remaining time 179] 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 67.91 kB / 0.4935 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3793, allocations: 65.47 MB / 0.5575 GB, free: 7.449 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001713/0.381, allocations: 0.5187 MB / 0.558 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009825/0.382, allocations: 430.7 kB / 0.5584 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.495e-05/0.382, allocations: 0 / 0.5584 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.931e-05/0.3821, allocations: 3.938 kB / 0.5584 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.3822, allocations: 11.97 kB / 0.5584 GB, free: 6.492 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.0006089/0.3828, allocations: 175 kB / 0.5586 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.383, allocations: 87.78 kB / 0.5586 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.807e-05/0.383, allocations: 0 / 0.5586 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.03e-05/0.3831, allocations: 35.97 kB / 0.5587 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.26e-05/0.3832, allocations: 27.91 kB / 0.5587 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.3832, allocations: 4 kB / 0.5587 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.3835, allocations: 127.8 kB / 0.5588 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.547e-05/0.3835, allocations: 23.95 kB / 0.5588 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.68e-05/0.3836, allocations: 23.91 kB / 0.5589 GB, free: 6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.3838, allocations: 134 kB / 0.559 GB, free: 5.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3838, allocations: 0 / 0.559 GB, free: 5.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3838, allocations: 0 / 0.559 GB, free: 5.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3838, allocations: 3.938 kB / 0.559 GB, free: 5.871 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.0005588/0.3844, allocations: 327.8 kB / 0.5593 GB, free: 5.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.3844, allocations: 16.03 kB / 0.5593 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.506e-05/0.3845, allocations: 8.891 kB / 0.5593 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.3847, allocations: 130.4 kB / 0.5595 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.3847, allocations: 4.312 kB / 0.5595 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.3847, allocations: 4.375 kB / 0.5595 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.3849, allocations: 98.17 kB / 0.5596 GB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3849, allocations: 192 / 0.5596 GB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.3849, allocations: 7.938 kB / 0.5596 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.3849, allocations: 0 / 0.5596 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.804e-05/0.385, allocations: 23.98 kB / 0.5596 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001635/0.3852, allocations: 105.3 kB / 0.5597 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.3853, allocations: 54.56 kB / 0.5597 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.798e-05/0.3854, allocations: 20.84 kB / 0.5598 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.3854, allocations: 4.062 kB / 0.5598 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.3857, allocations: 123.3 kB / 0.5599 GB, free: 4.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.3857, allocations: 0 / 0.5599 GB, free: 4.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003321/0.386, allocations: 133.5 kB / 0.56 GB, free: 4.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.386, allocations: 59.41 kB / 0.5601 GB, free: 4.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.997e-05/0.3861, allocations: 101.8 kB / 0.5602 GB, free: 4.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.3862, allocations: 25.7 kB / 0.5602 GB, free: 4.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.142e-05/0.3862, allocations: 84.14 kB / 0.5603 GB, free: 4.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.769e-05/0.3863, allocations: 31.78 kB / 0.5603 GB, free: 4.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.507e-05/0.3863, allocations: 25.72 kB / 0.5603 GB, free: 4.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.3865, allocations: 322.8 kB / 0.5606 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.59e-05/0.3865, allocations: 49.62 kB / 0.5607 GB, free: 3.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.3867, allocations: 100.5 kB / 0.5608 GB, free: 3.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.3869, allocations: 152.4 kB / 0.5609 GB, free: 3.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3869, allocations: 4 kB / 0.5609 GB, free: 3.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002581/0.3872, allocations: 177.1 kB / 0.5611 GB, free: 3.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.3872, allocations: 38.02 kB / 0.5611 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.3872, allocations: 3.938 kB / 0.5611 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3872, allocations: 4 kB / 0.5611 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.3873, allocations: 23.86 kB / 0.5612 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.3874, allocations: 8.062 kB / 0.5612 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.535e-05/0.3874, allocations: 11.89 kB / 0.5612 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.3874, allocations: 8 kB / 0.5612 GB, free: 3.359 MB / 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.0001646/0.3876, allocations: 128.4 kB / 0.5613 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.3876, allocations: 11.95 kB / 0.5613 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.186e-05/0.3877, allocations: 16 kB / 0.5613 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3877, allocations: 0 / 0.5613 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3877, allocations: 0 / 0.5613 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3877, allocations: 64 / 0.5613 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.3878, allocations: 121.3 kB / 0.5615 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3878, allocations: 0 / 0.5615 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.611e-05/0.3879, allocations: 7.984 kB / 0.5615 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3879, allocations: 0 / 0.5615 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.3879, allocations: 4 kB / 0.5615 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.3879, allocations: 3.938 kB / 0.5615 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3879, allocations: 4 kB / 0.5615 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002461/0.3881, allocations: 133 kB / 0.5616 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.127e-05/0.3881, allocations: 7.953 kB / 0.5616 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.3882, allocations: 3.984 kB / 0.5616 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.3884, allocations: 28.09 kB / 0.5616 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.3884, allocations: 3.984 kB / 0.5616 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3884, allocations: 4 kB / 0.5616 GB, free: 2.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.169e-05/0.3885, allocations: 87.27 kB / 0.5617 GB, free: 2.746 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3885, allocations: 0 / 0.5617 GB, free: 2.746 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.3888, allocations: 43.94 kB / 0.5618 GB, free: 2.703 MB / 398.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.0004686/0.3892, allocations: 181 kB / 0.5619 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002679/0.3895, allocations: 145.4 kB / 0.5621 GB, free: 2.383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3895, allocations: 4.062 kB / 0.5621 GB, free: 2.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.457e-05/0.3896, allocations: 31.92 kB / 0.5621 GB, free: 2.348 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.3897, allocations: 15.97 kB / 0.5621 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.3902, allocations: 144.6 kB / 0.5623 GB, free: 2.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.287e-05/0.3903, allocations: 67.34 kB / 0.5623 GB, free: 2.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.085e-05/0.3903, allocations: 16.64 kB / 0.5624 GB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.3903, allocations: 11.44 kB / 0.5624 GB, free: 2.047 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3903, allocations: 4 kB / 0.5624 GB, free: 2.043 MB / 398.1 MB Notification: Performance of Templates: time 0.006238/0.3966, allocations: 2.093 MB / 0.5644 GB, free: 15.98 MB / 414.1 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: 5.493828909471631]