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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 110 kB / 21.22 MB, free: 0.5117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 181.2 kB / 24.51 MB, free: 3.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 253.3 MB, free: 13.05 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.2457/0.2457, allocations: 44.92 MB / 353.5 MB, free: 11.84 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.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.001972/0.001972, allocations: 71.88 kB / 497.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4484/0.4503, allocations: 64.29 MB / 0.5488 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001962/0.4523, allocations: 0.5452 MB / 0.5494 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.4534, allocations: 456.3 kB / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.839e-05/0.4534, allocations: 0 / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.023e-05/0.4535, allocations: 5.016 kB / 0.5498 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.4537, allocations: 9.016 kB / 0.5498 GB, free: 12.4 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.0007066/0.4544, allocations: 168.9 kB / 0.55 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.4546, allocations: 87.38 kB / 0.5501 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.891e-05/0.4546, allocations: 5.516 kB / 0.5501 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.223e-05/0.4547, allocations: 44.73 kB / 0.5501 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.136e-05/0.4548, allocations: 25.7 kB / 0.5501 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.4548, allocations: 3.75 kB / 0.5501 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00031/0.4551, allocations: 128.9 kB / 0.5503 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.125e-05/0.4552, allocations: 22.66 kB / 0.5503 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.429e-05/0.4553, allocations: 31.14 kB / 0.5503 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.4555, allocations: 134.6 kB / 0.5504 GB, free: 12.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4555, allocations: 1.5 kB / 0.5504 GB, free: 12.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4555, allocations: 0 / 0.5504 GB, free: 12.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.4555, allocations: 0 / 0.5504 GB, free: 12.02 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.0006991/0.4562, allocations: 336.4 kB / 0.5508 GB, free: 11.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.4563, allocations: 8.594 kB / 0.5508 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.816e-05/0.4564, allocations: 5.25 kB / 0.5508 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.4566, allocations: 127 kB / 0.5509 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.4566, allocations: 5.547 kB / 0.5509 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.4566, allocations: 3.438 kB / 0.5509 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.4569, allocations: 93.27 kB / 0.551 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4569, allocations: 1.5 kB / 0.551 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.4569, allocations: 7.922 kB / 0.551 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4569, allocations: 5.25 kB / 0.551 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.187e-05/0.457, allocations: 20.89 kB / 0.551 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002444/0.4572, allocations: 137.2 kB / 0.5511 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.4573, allocations: 41.33 kB / 0.5512 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.852e-05/0.4574, allocations: 22.38 kB / 0.5512 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.4574, allocations: 5.484 kB / 0.5512 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003037/0.4577, allocations: 135.7 kB / 0.5513 GB, free: 11.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.4577, allocations: 0 / 0.5513 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003475/0.4581, allocations: 125.5 kB / 0.5515 GB, free: 11.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.4581, allocations: 54.88 kB / 0.5515 GB, free: 10.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.4582, allocations: 106.1 kB / 0.5516 GB, free: 10.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.4583, allocations: 35.8 kB / 0.5517 GB, free: 10.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.874e-05/0.4583, allocations: 81.45 kB / 0.5517 GB, free: 10.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.979e-05/0.4584, allocations: 24.12 kB / 0.5518 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.4584, allocations: 27.34 kB / 0.5518 GB, free: 10.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002428/0.4587, allocations: 325.2 kB / 0.5521 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.764e-05/0.4587, allocations: 20.48 kB / 0.5521 GB, free: 10.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.4588, allocations: 84.48 kB / 0.5522 GB, free: 10.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.4591, allocations: 144.3 kB / 0.5523 GB, free: 10.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4591, allocations: 1.156 kB / 0.5523 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002643/0.4593, allocations: 157.1 kB / 0.5525 GB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.4594, allocations: 40.84 kB / 0.5525 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.4594, allocations: 1.312 kB / 0.5525 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.4594, allocations: 7.094 kB / 0.5525 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.4595, allocations: 16.62 kB / 0.5525 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.4595, allocations: 6.984 kB / 0.5525 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.032e-05/0.4596, allocations: 10.95 kB / 0.5526 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.4596, allocations: 9.812 kB / 0.5526 GB, free: 9.996 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.0001823/0.4598, allocations: 134 kB / 0.5527 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.4598, allocations: 10.55 kB / 0.5527 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.116e-05/0.4599, allocations: 14.31 kB / 0.5527 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.4599, allocations: 1.031 kB / 0.5527 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.4599, allocations: 0 / 0.5527 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4599, allocations: 0 / 0.5527 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.4601, allocations: 151.1 kB / 0.5529 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4601, allocations: 0 / 0.5529 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.4601, allocations: 4.469 kB / 0.5529 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.4601, allocations: 5 kB / 0.5529 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.4601, allocations: 1.031 kB / 0.5529 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.4601, allocations: 3.984 kB / 0.5529 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4601, allocations: 1.094 kB / 0.5529 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.4604, allocations: 127 kB / 0.553 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.562e-05/0.4604, allocations: 14 kB / 0.553 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.4604, allocations: 2.562 kB / 0.553 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.4606, allocations: 21.47 kB / 0.553 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.4607, allocations: 2.312 kB / 0.553 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.105e-05/0.4607, allocations: 7.609 kB / 0.553 GB, free: 9.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.316e-05/0.4608, allocations: 89.83 kB / 0.5531 GB, free: 9.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4608, allocations: 1.125 kB / 0.5531 GB, free: 9.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.4611, allocations: 42.45 kB / 0.5532 GB, free: 9.434 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.0004635/0.4616, allocations: 185.9 kB / 0.5533 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002657/0.4618, allocations: 130.1 kB / 0.5535 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4618, allocations: 1.125 kB / 0.5535 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.555e-05/0.4619, allocations: 28.17 kB / 0.5535 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.4621, allocations: 11.45 kB / 0.5535 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004375/0.4625, allocations: 137.8 kB / 0.5536 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.463, allocations: 0.6898 MB / 0.5543 GB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.115e-05/0.463, allocations: 17.53 kB / 0.5543 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.463, allocations: 12.62 kB / 0.5543 GB, free: 8.34 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.463, allocations: 0 / 0.5543 GB, free: 8.34 MB / 398.1 MB Notification: Performance of Templates: time 0.005963/0.469, allocations: 2.038 MB / 0.5563 GB, free: 7.305 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/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.533772743307054]