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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 107.2 kB / 20.37 MB, free: 2.105 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002224/0.002224, allocations: 193.4 kB / 23.52 MB, free: 5.418 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 225.6 MB / 252.1 MB, free: 13.4 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2222/0.2222, allocations: 44.91 MB / 352.1 MB, free: 12.3 MB / 286.1 MB [Timeout remaining time 90] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.00196/0.00196, allocations: 67.91 kB / 495.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.317, allocations: 64.25 MB / 0.5468 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001824/0.3188, allocations: 0.5488 MB / 0.5473 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009819/0.3198, allocations: 457 kB / 0.5477 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.22e-05/0.3198, allocations: 0 / 0.5477 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.578e-05/0.3199, allocations: 0 / 0.5477 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.32, allocations: 9.203 kB / 0.5477 GB, free: 12.46 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0006252/0.3207, allocations: 168.2 kB / 0.5479 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.3208, allocations: 82.38 kB / 0.548 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.3209, allocations: 9.109 kB / 0.548 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.05e-05/0.3209, allocations: 40.56 kB / 0.548 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.21e-05/0.321, allocations: 22.28 kB / 0.548 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.321, allocations: 3.094 kB / 0.548 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.3213, allocations: 98.92 kB / 0.5481 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.3213, allocations: 23.27 kB / 0.5482 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.397e-05/0.3214, allocations: 23.91 kB / 0.5482 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.3216, allocations: 137.8 kB / 0.5483 GB, free: 12.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3216, allocations: 0 / 0.5483 GB, free: 12.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3216, allocations: 0.8438 kB / 0.5483 GB, free: 12.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.3216, allocations: 4 kB / 0.5483 GB, free: 12.11 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.0006192/0.3222, allocations: 405.5 kB / 0.5487 GB, free: 11.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3223, allocations: 12.88 kB / 0.5487 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.081e-05/0.3223, allocations: 4.594 kB / 0.5487 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.3225, allocations: 185.1 kB / 0.5489 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-06/0.3226, allocations: 5.531 kB / 0.5489 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.3226, allocations: 6.75 kB / 0.5489 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.3228, allocations: 89.25 kB / 0.549 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.3228, allocations: 9.188 kB / 0.549 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.3228, allocations: 4.969 kB / 0.549 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3228, allocations: 0 / 0.549 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.815e-05/0.3229, allocations: 25.09 kB / 0.549 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002087/0.3231, allocations: 169.2 kB / 0.5492 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.258e-05/0.3232, allocations: 37.75 kB / 0.5492 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.06e-05/0.3232, allocations: 23.44 kB / 0.5493 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.3232, allocations: 7.984 kB / 0.5493 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.3235, allocations: 128.2 kB / 0.5494 GB, free: 11.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.3235, allocations: 1 kB / 0.5494 GB, free: 11.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000312/0.3238, allocations: 128.6 kB / 0.5495 GB, free: 10.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3239, allocations: 59.42 kB / 0.5496 GB, free: 10.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.904e-05/0.324, allocations: 98.3 kB / 0.5497 GB, free: 10.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.324, allocations: 35.06 kB / 0.5497 GB, free: 10.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.437e-05/0.3241, allocations: 81.67 kB / 0.5498 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/0.3241, allocations: 24.27 kB / 0.5498 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-05/0.3241, allocations: 34.92 kB / 0.5498 GB, free: 10.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3243, allocations: 317.7 kB / 0.5501 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.094e-05/0.3243, allocations: 24.45 kB / 0.5502 GB, free: 10.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.3244, allocations: 85.05 kB / 0.5502 GB, free: 10.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.3247, allocations: 139.8 kB / 0.5504 GB, free: 10.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3247, allocations: 0 / 0.5504 GB, free: 10.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002908/0.325, allocations: 162.9 kB / 0.5505 GB, free: 9.949 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.325, allocations: 35.52 kB / 0.5506 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.325, allocations: 5.812 kB / 0.5506 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.325, allocations: 2.438 kB / 0.5506 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3251, allocations: 20.64 kB / 0.5506 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3251, allocations: 2.875 kB / 0.5506 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.303e-05/0.3252, allocations: 16.11 kB / 0.5506 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.3252, allocations: 10.12 kB / 0.5506 GB, free: 9.887 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.000159/0.3254, allocations: 129 kB / 0.5507 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.3254, allocations: 8.25 kB / 0.5507 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.3254, allocations: 15.89 kB / 0.5508 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3254, allocations: 1.375 kB / 0.5508 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3254, allocations: 1.469 kB / 0.5508 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.3254, allocations: 0 / 0.5508 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.3256, allocations: 174.5 kB / 0.5509 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3256, allocations: 0 / 0.5509 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.746e-05/0.3257, allocations: 8.422 kB / 0.5509 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3257, allocations: 5.781 kB / 0.5509 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.3257, allocations: 0 / 0.5509 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3257, allocations: 1.469 kB / 0.5509 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3257, allocations: 4 kB / 0.5509 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.3259, allocations: 131.4 kB / 0.5511 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.3259, allocations: 86.38 kB / 0.5512 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.326, allocations: 7.047 kB / 0.5512 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3262, allocations: 12.67 kB / 0.5512 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.3262, allocations: 7.953 kB / 0.5512 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.3262, allocations: 10.75 kB / 0.5512 GB, free: 9.293 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.469e-05/0.3263, allocations: 82.14 kB / 0.5513 GB, free: 9.215 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3263, allocations: 0 / 0.5513 GB, free: 9.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.3266, allocations: 39.44 kB / 0.5513 GB, free: 9.207 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.0004308/0.327, allocations: 192.4 kB / 0.5515 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.3272, allocations: 125.7 kB / 0.5516 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3272, allocations: 1.188 kB / 0.5516 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.187e-05/0.3273, allocations: 28.48 kB / 0.5516 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.3274, allocations: 23.44 kB / 0.5517 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.3279, allocations: 153.3 kB / 0.5518 GB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.3282, allocations: 0.687 MB / 0.5525 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/0.3283, allocations: 23.8 kB / 0.5525 GB, free: 8.086 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3283, allocations: 0 / 0.5525 GB, free: 8.086 MB / 398.1 MB Notification: Performance of Templates: time 0.004137/0.3324, allocations: 1.797 MB / 0.5543 GB, free: 7.172 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/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] "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y