Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001406/0.001406, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001478/0.001478, allocations: 207.3 kB / 23.72 MB, free: 4.391 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.512/1.512, allocations: 230.5 MB / 257.4 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.244/0.244, allocations: 46.94 MB / 360.8 MB, free: 3.926 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002439/0.002439, allocations: 83.86 kB / 0.4966 GB, free: 7.031 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3394, allocations: 66.08 MB / 0.5612 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001847/0.3413, allocations: 0.5367 MB / 0.5617 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.3423, allocations: 418.8 kB / 0.5621 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.679e-05/0.3423, allocations: 4 kB / 0.5621 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.035e-05/0.3424, allocations: 3.938 kB / 0.5621 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.3426, allocations: 11.98 kB / 0.5621 GB, free: 3 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.0006632/0.3432, allocations: 171.5 kB / 0.5623 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.3434, allocations: 87.78 kB / 0.5624 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.3435, allocations: 0 / 0.5624 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.899e-05/0.3436, allocations: 39.97 kB / 0.5624 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.488e-05/0.3436, allocations: 19.91 kB / 0.5624 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.3437, allocations: 11.98 kB / 0.5624 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.344, allocations: 127.8 kB / 0.5626 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.141e-05/0.344, allocations: 19.97 kB / 0.5626 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.039e-05/0.3441, allocations: 27.89 kB / 0.5626 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.3443, allocations: 134 kB / 0.5627 GB, free: 2.379 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3443, allocations: 0 / 0.5627 GB, free: 2.379 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3443, allocations: 0 / 0.5627 GB, free: 2.379 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.3443, allocations: 0 / 0.5627 GB, free: 2.379 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.0006218/0.345, allocations: 327.8 kB / 0.563 GB, free: 2.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.345, allocations: 11.97 kB / 0.563 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.823e-05/0.3451, allocations: 12.89 kB / 0.5631 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.3453, allocations: 130.3 kB / 0.5632 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.3453, allocations: 4.375 kB / 0.5632 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.3453, allocations: 8.359 kB / 0.5632 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.3455, allocations: 86.2 kB / 0.5633 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3455, allocations: 192 / 0.5633 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.3455, allocations: 3.938 kB / 0.5633 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3456, allocations: 4 kB / 0.5633 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.889e-05/0.3456, allocations: 23.97 kB / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.3458, allocations: 113.3 kB / 0.5634 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.3459, allocations: 42.48 kB / 0.5635 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.656e-05/0.346, allocations: 24.92 kB / 0.5635 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.346, allocations: 0 / 0.5635 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.3463, allocations: 127.3 kB / 0.5636 GB, free: 1.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3463, allocations: 7.938 kB / 0.5636 GB, free: 1.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003174/0.3466, allocations: 129.7 kB / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.3467, allocations: 59.39 kB / 0.5638 GB, free: 1.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.712e-05/0.3467, allocations: 101.8 kB / 0.5639 GB, free: 1.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.3468, allocations: 29.7 kB / 0.5639 GB, free: 1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.737e-05/0.3468, allocations: 84.14 kB / 0.564 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.659e-05/0.3469, allocations: 27.78 kB / 0.564 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.3469, allocations: 29.7 kB / 0.5641 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3471, allocations: 318.8 kB / 0.5644 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.992e-05/0.3471, allocations: 49.67 kB / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.3472, allocations: 100.6 kB / 0.5645 GB, free: 356 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.3475, allocations: 152.4 kB / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3475, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003486/0.3478, allocations: 184.9 kB / 0.5648 GB, free: 15.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.3479, allocations: 31.95 kB / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3479, allocations: 11.94 kB / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3479, allocations: 288 / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.348, allocations: 24.05 kB / 0.5649 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.348, allocations: 0 / 0.5649 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.636e-05/0.3481, allocations: 19.83 kB / 0.5649 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.3481, allocations: 7.984 kB / 0.5649 GB, free: 15.87 MB / 414.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.0001617/0.3482, allocations: 125.8 kB / 0.565 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.3483, allocations: 7.953 kB / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.3483, allocations: 19.98 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3483, allocations: 0 / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3483, allocations: 0 / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3483, allocations: 0 / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.3485, allocations: 117.3 kB / 0.5652 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3485, allocations: 3.938 kB / 0.5652 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.432e-05/0.3485, allocations: 4 kB / 0.5652 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3485, allocations: 4 kB / 0.5652 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.3485, allocations: 0 / 0.5652 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/0.3485, allocations: 11.86 kB / 0.5652 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3485, allocations: 0 / 0.5652 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.3488, allocations: 129.1 kB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.284e-05/0.3488, allocations: 11.94 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.3488, allocations: 4 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.349, allocations: 19.91 kB / 0.5654 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/0.349, allocations: 4 kB / 0.5654 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.349, allocations: 11.98 kB / 0.5654 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.911e-05/0.3491, allocations: 83.39 kB / 0.5654 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3491, allocations: 0 / 0.5654 GB, free: 15.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002992/0.3494, allocations: 43.92 kB / 0.5655 GB, free: 15.22 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.0004523/0.3498, allocations: 180.9 kB / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.3501, allocations: 153 kB / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3501, allocations: 0 / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.507e-05/0.3501, allocations: 32.36 kB / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001599/0.3503, allocations: 13.56 kB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003742/0.3507, allocations: 148.7 kB / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.381e-05/0.3508, allocations: 75.22 kB / 0.5661 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.782e-05/0.3508, allocations: 12.66 kB / 0.5661 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.3508, allocations: 11.44 kB / 0.5661 GB, free: 14.55 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3508, allocations: 0 / 0.5661 GB, free: 14.55 MB / 414.1 MB Notification: Performance of Templates: time 0.006045/0.3569, allocations: 2.092 MB / 0.5681 GB, free: 12.48 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.401000153273344]