Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00155/0.00155, allocations: 110.5 kB / 21.17 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.00191, allocations: 219.9 kB / 24.47 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 230.2 MB / 257.8 MB, free: 8.488 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.233/0.233, allocations: 46.9 MB / 361.1 MB, free: 4.672 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 75.88 kB / 0.4968 GB, free: 7.855 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3577, allocations: 65.99 MB / 0.5612 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001765/0.3594, allocations: 0.5343 MB / 0.5617 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009667/0.3604, allocations: 454.5 kB / 0.5622 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.097e-05/0.3604, allocations: 0 / 0.5622 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.426e-05/0.3605, allocations: 4 kB / 0.5622 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.3606, allocations: 11.92 kB / 0.5622 GB, free: 4.047 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0006148/0.3613, allocations: 163.5 kB / 0.5623 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.3614, allocations: 83.8 kB / 0.5624 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.3615, allocations: 3.984 kB / 0.5624 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.999e-05/0.3615, allocations: 35.97 kB / 0.5624 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.896e-05/0.3616, allocations: 27.89 kB / 0.5625 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.3616, allocations: 4 kB / 0.5625 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002136/0.3619, allocations: 99.89 kB / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.494e-05/0.3619, allocations: 19.95 kB / 0.5626 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.289e-05/0.362, allocations: 35.78 kB / 0.5626 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.3622, allocations: 126.4 kB / 0.5627 GB, free: 3.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3622, allocations: 4 kB / 0.5627 GB, free: 3.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3622, allocations: 0 / 0.5627 GB, free: 3.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3622, allocations: 0 / 0.5627 GB, free: 3.457 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.0007075/0.3629, allocations: 412.9 kB / 0.5631 GB, free: 2.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.363, allocations: 12.03 kB / 0.5632 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.061e-05/0.363, allocations: 8.891 kB / 0.5632 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.3633, allocations: 180.3 kB / 0.5633 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.3633, allocations: 384 / 0.5633 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.3633, allocations: 4.375 kB / 0.5633 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.3635, allocations: 98.12 kB / 0.5634 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3635, allocations: 192 / 0.5634 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.3635, allocations: 7.938 kB / 0.5634 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3635, allocations: 0 / 0.5634 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.946e-05/0.3636, allocations: 19.98 kB / 0.5635 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002193/0.3638, allocations: 169.6 kB / 0.5636 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.3639, allocations: 42.56 kB / 0.5637 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.049e-05/0.364, allocations: 24.91 kB / 0.5637 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.364, allocations: 4 kB / 0.5637 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.3643, allocations: 131.4 kB / 0.5638 GB, free: 2.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3643, allocations: 0 / 0.5638 GB, free: 2.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003185/0.3646, allocations: 129.5 kB / 0.5639 GB, free: 2.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.3646, allocations: 67.33 kB / 0.564 GB, free: 1.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.874e-05/0.3647, allocations: 97.86 kB / 0.5641 GB, free: 1.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.3648, allocations: 29.7 kB / 0.5641 GB, free: 1.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.3648, allocations: 88.12 kB / 0.5642 GB, free: 1.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.3649, allocations: 19.86 kB / 0.5642 GB, free: 1.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/0.3649, allocations: 29.7 kB / 0.5643 GB, free: 1.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3651, allocations: 318.8 kB / 0.5646 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.473e-05/0.3651, allocations: 23.97 kB / 0.5646 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.972e-05/0.3652, allocations: 78.8 kB / 0.5647 GB, free: 1.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.3654, allocations: 144.4 kB / 0.5648 GB, free: 1.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3654, allocations: 4 kB / 0.5648 GB, free: 1.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002413/0.3657, allocations: 155.4 kB / 0.5649 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.3657, allocations: 41.64 kB / 0.565 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3657, allocations: 0 / 0.565 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.3657, allocations: 4 kB / 0.565 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3658, allocations: 19.92 kB / 0.565 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3658, allocations: 4 kB / 0.565 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.47e-05/0.3659, allocations: 15.83 kB / 0.565 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.3659, allocations: 8 kB / 0.565 GB, free: 0.8125 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.0001647/0.3661, allocations: 132.8 kB / 0.5652 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.3661, allocations: 11.89 kB / 0.5652 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.3661, allocations: 7.969 kB / 0.5652 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3662, allocations: 7.984 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3662, allocations: 0 / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3662, allocations: 0 / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.3663, allocations: 165.8 kB / 0.5653 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3663, allocations: 0 / 0.5653 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.764e-05/0.3664, allocations: 8.047 kB / 0.5654 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-05/0.3664, allocations: 15.92 kB / 0.5654 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.3664, allocations: 8 kB / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3664, allocations: 288 / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3664, allocations: 0 / 0.5654 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002207/0.3666, allocations: 133 kB / 0.5655 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.954e-05/0.3667, allocations: 85 kB / 0.5656 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.3667, allocations: 7.984 kB / 0.5656 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3669, allocations: 15.98 kB / 0.5656 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/0.367, allocations: 11.98 kB / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.367, allocations: 4 kB / 0.5656 GB, free: 124 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.196e-05/0.367, allocations: 83.27 kB / 0.5657 GB, free: 40 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.367, allocations: 0 / 0.5657 GB, free: 40 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.3673, allocations: 39.94 kB / 0.5657 GB, free: 0 / 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.0004637/0.3678, allocations: 194.3 kB / 0.5659 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.368, allocations: 119.2 kB / 0.566 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.368, allocations: 4 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.182e-05/0.3681, allocations: 27.92 kB / 0.5661 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/0.3682, allocations: 11.98 kB / 0.5661 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.3686, allocations: 145.1 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.3689, allocations: 0.6885 MB / 0.5669 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.367e-05/0.369, allocations: 12.66 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.581e-05/0.369, allocations: 15.42 kB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.369, allocations: 0 / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of Templates: time 0.005554/0.3746, allocations: 2.029 MB / 0.5689 GB, free: 12.71 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.272116917185485]