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.001796/0.001796, allocations: 122.7 kB / 18.46 MB, free: 4.59 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.00224/0.00224, allocations: 207.3 kB / 21.4 MB, free: 1.645 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.527/1.527, allocations: 227.4 MB / 251.6 MB, free: 56 kB / 190.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.2516/0.2516, allocations: 46.17 MB / 351.1 MB, free: 14.26 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.002389/0.002389, allocations: 82.17 kB / 490.2 MB, free: 28.1 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1474, allocations: 62.45 MB / 0.5397 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001816/0.1492, allocations: 0.5242 MB / 0.5402 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009736/0.1502, allocations: 443 kB / 0.5406 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.563e-05/0.1503, allocations: 0 / 0.5406 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.055e-05/0.1504, allocations: 3.938 kB / 0.5406 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1505, allocations: 7.969 kB / 0.5406 GB, free: 3.246 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.0006072/0.1511, allocations: 169.6 kB / 0.5408 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.1514, allocations: 87.86 kB / 0.5409 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.1514, allocations: 3.984 kB / 0.5409 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.702e-05/0.1515, allocations: 43.91 kB / 0.5409 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.782e-05/0.1516, allocations: 23.89 kB / 0.5409 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.1516, allocations: 4 kB / 0.5409 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.1518, allocations: 95.84 kB / 0.541 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.813e-05/0.1519, allocations: 19.97 kB / 0.5411 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.878e-05/0.152, allocations: 23.91 kB / 0.5411 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.1522, allocations: 135.5 kB / 0.5412 GB, free: 2.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1522, allocations: 0 / 0.5412 GB, free: 2.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1522, allocations: 4 kB / 0.5412 GB, free: 2.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1522, allocations: 0 / 0.5412 GB, free: 2.648 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.0006453/0.1529, allocations: 400.9 kB / 0.5416 GB, free: 2.203 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.1529, allocations: 19.95 kB / 0.5416 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.277e-05/0.153, allocations: 4.891 kB / 0.5416 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/0.1532, allocations: 180.3 kB / 0.5418 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.1532, allocations: 8.375 kB / 0.5418 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1533, allocations: 4.375 kB / 0.5418 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.1535, allocations: 90.19 kB / 0.5419 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1535, allocations: 3.938 kB / 0.5419 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.1535, allocations: 4 kB / 0.5419 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1535, allocations: 0 / 0.5419 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.912e-05/0.1536, allocations: 19.98 kB / 0.5419 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002178/0.1538, allocations: 169.7 kB / 0.5421 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.595e-05/0.1539, allocations: 50.48 kB / 0.5421 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.661e-05/0.154, allocations: 20.92 kB / 0.5421 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.154, allocations: 4 kB / 0.5422 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.1543, allocations: 135.2 kB / 0.5423 GB, free: 1.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.1543, allocations: 0 / 0.5423 GB, free: 1.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003101/0.1546, allocations: 121.8 kB / 0.5424 GB, free: 1.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.1547, allocations: 59.53 kB / 0.5425 GB, free: 1.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.411e-05/0.1548, allocations: 101.9 kB / 0.5426 GB, free: 1.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1549, allocations: 37.64 kB / 0.5426 GB, free: 1.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.266e-05/0.1549, allocations: 80.14 kB / 0.5427 GB, free: 0.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.155, allocations: 31.72 kB / 0.5427 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.155, allocations: 37.64 kB / 0.5427 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1552, allocations: 314.8 kB / 0.543 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.292e-05/0.1552, allocations: 23.98 kB / 0.5431 GB, free: 0.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.1554, allocations: 76.25 kB / 0.5431 GB, free: 456 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.1556, allocations: 148.4 kB / 0.5433 GB, free: 276 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1556, allocations: 0 / 0.5433 GB, free: 276 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000325/0.1559, allocations: 163.1 kB / 0.5434 GB, free: 100 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.156, allocations: 37.92 kB / 0.5435 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.156, allocations: 0 / 0.5435 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.156, allocations: 7.938 kB / 0.5435 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1561, allocations: 15.98 kB / 0.5435 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.1561, allocations: 4 kB / 0.5435 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.454e-05/0.1562, allocations: 3.953 kB / 0.5435 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.1562, allocations: 12 kB / 0.5435 GB, free: 12 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.000169/0.1564, allocations: 129.7 kB / 0.5436 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.1564, allocations: 15.89 kB / 0.5436 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.1565, allocations: 7.969 kB / 0.5436 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1565, allocations: 0 / 0.5436 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1565, allocations: 0 / 0.5436 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.1565, allocations: 4.172 kB / 0.5437 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.1567, allocations: 169.6 kB / 0.5438 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1567, allocations: 0 / 0.5438 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.1567, allocations: 23.97 kB / 0.5438 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1567, allocations: 0 / 0.5438 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1568, allocations: 0 / 0.5438 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1568, allocations: 8 kB / 0.5438 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1568, allocations: 0 / 0.5438 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.157, allocations: 129 kB / 0.544 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.1571, allocations: 89 kB / 0.5441 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.1571, allocations: 0 / 0.5441 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.1573, allocations: 23.97 kB / 0.5441 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.414e-05/0.1573, allocations: 3.984 kB / 0.5441 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.1574, allocations: 11.94 kB / 0.5441 GB, free: 15.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.871e-05/0.1575, allocations: 83.28 kB / 0.5442 GB, free: 15.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1575, allocations: 0 / 0.5442 GB, free: 15.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002805/0.1578, allocations: 43.92 kB / 0.5442 GB, free: 15.19 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.0004418/0.1582, allocations: 186 kB / 0.5444 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002225/0.1584, allocations: 123.3 kB / 0.5445 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1585, allocations: 0 / 0.5445 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.946e-05/0.1585, allocations: 35.86 kB / 0.5445 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.0001493/0.1587, allocations: 4 kB / 0.5445 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003677/0.1591, allocations: 148.7 kB / 0.5447 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.1594, allocations: 0.6889 MB / 0.5454 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.943e-05/0.1595, allocations: 12.66 kB / 0.5454 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.58e-05/0.1595, allocations: 15.44 kB / 0.5454 GB, free: 13.93 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1595, allocations: 0 / 0.5454 GB, free: 13.93 MB / 414.1 MB Notification: Performance of Templates: time 0.005896/0.1654, allocations: 1.988 MB / 0.5473 GB, free: 11.94 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.0.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.225972187705338]