Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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.001912/0.001912, allocations: 99.64 kB / 21.18 MB, free: 0.6445 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.002205/0.002205, allocations: 205.9 kB / 24.48 MB, free: 3.934 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.54/1.54, allocations: 230.5 MB / 258.1 MB, free: 7.742 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.2359/0.2359, allocations: 46.96 MB / 361.6 MB, free: 3.918 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.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002459/0.002459, allocations: 79.88 kB / 0.4974 GB, free: 7.039 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3838, allocations: 66.09 MB / 0.5619 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001837/0.3857, allocations: 0.5226 MB / 0.5624 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.387, allocations: 0.592 MB / 0.563 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.811e-05/0.3871, allocations: 0 / 0.563 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.983e-05/0.3872, allocations: 3.938 kB / 0.563 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.048e-06/0.3872, allocations: 0 / 0.563 GB, free: 2.809 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:842:5-926:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.randomNumbers' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008506/0.388, allocations: 206.9 kB / 0.5632 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.076e-05/0.3881, allocations: 35.83 kB / 0.5632 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.205e-05/0.3881, allocations: 4 kB / 0.5632 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.95e-05/0.3882, allocations: 15.92 kB / 0.5633 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.646e-05/0.3882, allocations: 16.2 kB / 0.5633 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.3882, allocations: 4 kB / 0.5633 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004128/0.3887, allocations: 195.7 kB / 0.5635 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.3888, allocations: 64.09 kB / 0.5635 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.963e-05/0.3888, allocations: 47.72 kB / 0.5636 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003427/0.3892, allocations: 209.6 kB / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3892, allocations: 0 / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3892, allocations: 0 / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.3892, allocations: 0 / 0.5638 GB, free: 2.031 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006578/0.3899, allocations: 430.7 kB / 0.5642 GB, free: 1.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3899, allocations: 8.031 kB / 0.5642 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.39, allocations: 20.84 kB / 0.5642 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.3901, allocations: 130.3 kB / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.3901, allocations: 8.375 kB / 0.5643 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.739e-05/0.3901, allocations: 24.38 kB / 0.5644 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.3904, allocations: 124.9 kB / 0.5645 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.3904, allocations: 192 / 0.5645 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.3904, allocations: 7.938 kB / 0.5645 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.3904, allocations: 0 / 0.5645 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.3905, allocations: 96.34 kB / 0.5646 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000214/0.3907, allocations: 153.9 kB / 0.5647 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.3909, allocations: 115 kB / 0.5648 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.391, allocations: 101.7 kB / 0.5649 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.391, allocations: 0 / 0.5649 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.3913, allocations: 165.9 kB / 0.5651 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of pre-optimization done (n=54): time 1.522e-06/0.3913, allocations: 0 / 0.5651 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.0008997/0.3922, allocations: 0.6062 MB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.369e-05/0.3923, allocations: 103.8 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.895e-05/0.3924, allocations: 117.7 kB / 0.5659 GB, free: 15.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.377e-05/0.3925, allocations: 69.69 kB / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.3925, allocations: 89.45 kB / 0.5661 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.3927, allocations: 151 kB / 0.5662 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.3929, allocations: 158.7 kB / 0.5664 GB, free: 15.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.3931, allocations: 346.8 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/0.3933, allocations: 181.9 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006547/0.394, allocations: 0.5408 MB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.3951, allocations: 0.771 MB / 0.5681 GB, free: 13.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/0.3951, allocations: 4 kB / 0.5681 GB, free: 13.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001188/0.3963, allocations: 0.7476 MB / 0.5689 GB, free: 12.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.3963, allocations: 12 kB / 0.5689 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.3963, allocations: 12 kB / 0.5689 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.63e-05/0.3963, allocations: 23.88 kB / 0.5689 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.3967, allocations: 123.7 kB / 0.569 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.027e-05/0.3968, allocations: 23.88 kB / 0.5691 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.397, allocations: 67.52 kB / 0.5691 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.397, allocations: 40 kB / 0.5692 GB, free: 12 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.0002833/0.3973, allocations: 241.5 kB / 0.5694 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.3973, allocations: 19.83 kB / 0.5694 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.057e-05/0.3974, allocations: 5.812 kB / 0.5694 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3974, allocations: 3.938 kB / 0.5694 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3974, allocations: 0 / 0.5694 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3974, allocations: 8 kB / 0.5694 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.3975, allocations: 125.5 kB / 0.5695 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3975, allocations: 0 / 0.5695 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.552e-06/0.3975, allocations: 3.984 kB / 0.5695 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3975, allocations: 3.984 kB / 0.5696 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.3975, allocations: 0 / 0.5696 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3975, allocations: 0 / 0.5696 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.3976, allocations: 7.938 kB / 0.5696 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.3982, allocations: 450.5 kB / 0.57 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.374e-05/0.3982, allocations: 19.83 kB / 0.57 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.3982, allocations: 4 kB / 0.57 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.314e-05/0.3982, allocations: 4.031 kB / 0.57 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.3982, allocations: 3.938 kB / 0.57 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.3982, allocations: 0 / 0.57 GB, free: 11.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.304e-05/0.3983, allocations: 79.22 kB / 0.5701 GB, free: 10.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3983, allocations: 0 / 0.5701 GB, free: 10.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005094/0.3988, allocations: 99.8 kB / 0.5702 GB, free: 10.89 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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007257/0.3995, allocations: 281.2 kB / 0.5705 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000668/0.4002, allocations: 452.3 kB / 0.5709 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.4002, allocations: 0 / 0.5709 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.4003, allocations: 100.4 kB / 0.571 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.4005, allocations: 4 kB / 0.571 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006831/0.4011, allocations: 491.8 kB / 0.5715 GB, free: 9.586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.4013, allocations: 120.1 kB / 0.5716 GB, free: 9.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.704e-05/0.4013, allocations: 23.44 kB / 0.5716 GB, free: 9.422 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4013, allocations: 0 / 0.5716 GB, free: 9.422 MB / 414.1 MB Notification: Performance of Templates: time 0.007103/0.4084, allocations: 3.831 MB / 0.5753 GB, free: 5.586 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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: 8.800290564075112]