Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00197/0.00197, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.002245/0.002245, allocations: 208.1 kB / 23.74 MB, free: 4.691 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.593/1.593, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2507/0.2507, allocations: 46.95 MB / 360.9 MB, free: 4.27 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003172/0.003172, allocations: 63.91 kB / 0.4966 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4122/0.4154, allocations: 66.04 MB / 0.5611 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001768/0.4172, allocations: 0.5371 MB / 0.5617 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009926/0.4182, allocations: 446.6 kB / 0.5621 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.72e-05/0.4182, allocations: 0 / 0.5621 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.362e-05/0.4183, allocations: 11.92 kB / 0.5621 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.4184, allocations: 0 / 0.5621 GB, free: 3.434 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.0006449/0.419, allocations: 179.3 kB / 0.5623 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.4192, allocations: 95.77 kB / 0.5624 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.4193, allocations: 0 / 0.5624 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.518e-05/0.4193, allocations: 35.97 kB / 0.5624 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.782e-05/0.4194, allocations: 23.91 kB / 0.5624 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.4194, allocations: 0 / 0.5624 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000299/0.4197, allocations: 143.7 kB / 0.5626 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.674e-05/0.4198, allocations: 15.98 kB / 0.5626 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.648e-05/0.4198, allocations: 31.83 kB / 0.5626 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.4201, allocations: 134.1 kB / 0.5627 GB, free: 2.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.4201, allocations: 0 / 0.5627 GB, free: 2.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4201, allocations: 0 / 0.5627 GB, free: 2.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.4201, allocations: 0 / 0.5627 GB, free: 2.797 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.0005961/0.4207, allocations: 327.8 kB / 0.563 GB, free: 2.438 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.4207, allocations: 8.031 kB / 0.563 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.4208, allocations: 8.891 kB / 0.5631 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.421, allocations: 134.3 kB / 0.5632 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.421, allocations: 8.375 kB / 0.5632 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/0.421, allocations: 4.359 kB / 0.5632 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.4212, allocations: 98.17 kB / 0.5633 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.4212, allocations: 192 / 0.5633 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.4213, allocations: 7.938 kB / 0.5633 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.4213, allocations: 0 / 0.5633 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.822e-05/0.4213, allocations: 23.97 kB / 0.5633 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002021/0.4215, allocations: 136.7 kB / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.873e-05/0.4216, allocations: 46.5 kB / 0.5635 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.666e-05/0.4217, allocations: 20.91 kB / 0.5635 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.4217, allocations: 4 kB / 0.5635 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.422, allocations: 131.3 kB / 0.5636 GB, free: 1.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.422, allocations: 0 / 0.5636 GB, free: 1.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003273/0.4223, allocations: 129.5 kB / 0.5638 GB, free: 1.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.4224, allocations: 55.41 kB / 0.5638 GB, free: 1.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.684e-05/0.4225, allocations: 101.8 kB / 0.5639 GB, free: 1.414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.152e-05/0.4225, allocations: 29.7 kB / 0.5639 GB, free: 1.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.4226, allocations: 84.08 kB / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.4226, allocations: 28 kB / 0.564 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-05/0.4227, allocations: 33.7 kB / 0.5641 GB, free: 1.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.4228, allocations: 322.8 kB / 0.5644 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.139e-05/0.4229, allocations: 19.98 kB / 0.5644 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.202e-05/0.423, allocations: 74.84 kB / 0.5645 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.4232, allocations: 144.4 kB / 0.5646 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4232, allocations: 0 / 0.5646 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002407/0.4235, allocations: 159.2 kB / 0.5648 GB, free: 456 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.4235, allocations: 45.56 kB / 0.5648 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4235, allocations: 0 / 0.5648 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.4235, allocations: 4 kB / 0.5648 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.4236, allocations: 12 kB / 0.5648 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4236, allocations: 8.266 kB / 0.5648 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.377e-05/0.4237, allocations: 15.89 kB / 0.5649 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.4237, allocations: 8.219 kB / 0.5649 GB, free: 356 kB / 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.000152/0.4239, allocations: 129.7 kB / 0.565 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.4239, allocations: 19.88 kB / 0.565 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.4239, allocations: 4.062 kB / 0.565 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.4239, allocations: 0 / 0.565 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.424, allocations: 4 kB / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.424, allocations: 0 / 0.565 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.4241, allocations: 144.8 kB / 0.5651 GB, free: 16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4241, allocations: 4 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.595e-05/0.4242, allocations: 4 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.538e-05/0.4242, allocations: 3.938 kB / 0.5652 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.4242, allocations: 4 kB / 0.5652 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4242, allocations: 0 / 0.5652 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.4242, allocations: 7.922 kB / 0.5652 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002113/0.4244, allocations: 125.1 kB / 0.5653 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.318e-05/0.4244, allocations: 11.88 kB / 0.5653 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.4244, allocations: 8 kB / 0.5653 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.4246, allocations: 20.14 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.383e-05/0.4247, allocations: 4 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.4247, allocations: 11.98 kB / 0.5653 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.647e-05/0.4247, allocations: 75.28 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4247, allocations: 0 / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.425, allocations: 47.86 kB / 0.5655 GB, free: 15.66 MB / 414.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.0004288/0.4255, allocations: 184.5 kB / 0.5656 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002209/0.4257, allocations: 127.3 kB / 0.5658 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4257, allocations: 0 / 0.5658 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.067e-05/0.4257, allocations: 32.36 kB / 0.5658 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.4259, allocations: 8 kB / 0.5658 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000382/0.4263, allocations: 140.7 kB / 0.5659 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.4267, allocations: 0.6812 MB / 0.5666 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.491e-05/0.4267, allocations: 16.64 kB / 0.5666 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/0.4268, allocations: 15.44 kB / 0.5666 GB, free: 14.41 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4268, allocations: 8 kB / 0.5666 GB, free: 14.4 MB / 414.1 MB Notification: Performance of Templates: time 0.005896/0.4327, allocations: 2.039 MB / 0.5686 GB, free: 12.37 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.783378374995664]