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.001429/0.001429, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 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.00108/0.00108, allocations: 160.9 kB / 24.99 MB, free: 8.805 MB / 18.57 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.081/1.081, allocations: 177 MB / 205.2 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] 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.2635/0.2635, allocations: 34.86 MB / 296.6 MB, free: 0.5547 MB / 266.7 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=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 378.7 MB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/1.975e-05, allocations: 2.312 kB / 378.7 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001065/0.001085, allocations: 0.5476 MB / 379.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008669/0.001951, allocations: 0.6111 MB / 379.9 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.299e-05/0.001984, allocations: 7.938 kB / 379.9 MB, free: 1.227 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.155e-05/0.002066, allocations: 3.938 kB / 379.9 MB, free: 1.223 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-06/0.00207, allocations: 3.938 kB / 379.9 MB, free: 1.219 MB / 346.7 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.0006237/0.002694, allocations: 203.3 kB / 380.1 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.39e-05/0.002758, allocations: 27.97 kB / 380.1 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.002801, allocations: 7.875 kB / 380.2 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.046e-05/0.002841, allocations: 27.91 kB / 380.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.964e-05/0.002881, allocations: 12.25 kB / 380.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.002893, allocations: 0 / 380.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.003182, allocations: 195.6 kB / 380.4 MB, free: 0.75 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.767e-05/0.003269, allocations: 64.08 kB / 380.4 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.004e-05/0.003319, allocations: 31.91 kB / 380.5 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.003584, allocations: 219.3 kB / 380.7 MB, free: 452 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.003587, allocations: 4 kB / 380.7 MB, free: 448 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.003588, allocations: 0 / 380.7 MB, free: 448 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.003593, allocations: 0 / 380.7 MB, free: 448 kB / 346.7 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.0004296/0.004023, allocations: 0.5167 MB / 381.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.004059, allocations: 12.03 kB / 381.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.698e-05/0.004106, allocations: 20.78 kB / 381.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.905e-05/0.004176, allocations: 124.4 kB / 381.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.004192, allocations: 12.38 kB / 381.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.004215, allocations: 20.38 kB / 381.4 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.004324, allocations: 66.27 kB / 381.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.00433, allocations: 4.188 kB / 381.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.00434, allocations: 4.359 kB / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.004348, allocations: 384 / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.233e-05/0.004381, allocations: 48.86 kB / 381.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000121/0.004502, allocations: 157.4 kB / 381.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.253e-05/0.004554, allocations: 63.55 kB / 381.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.16e-05/0.004586, allocations: 44.72 kB / 381.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-06/0.00459, allocations: 0 / 381.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.004694, allocations: 117 kB / 381.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.102e-06/0.004695, allocations: 0 / 381.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.0004934/0.005188, allocations: 0.4945 MB / 382.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.005255, allocations: 95.81 kB / 382.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.023e-05/0.005326, allocations: 182.1 kB / 382.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.00537, allocations: 69.67 kB / 382.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.777e-05/0.005417, allocations: 140.2 kB / 382.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.005516, allocations: 143 kB / 383 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.005653, allocations: 172.3 kB / 383.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.005837, allocations: 0.5235 MB / 383.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.005963, allocations: 89.92 kB / 383.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.006336, allocations: 0.6005 MB / 384.4 MB, free: 12.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.006914, allocations: 0.7562 MB / 385.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.00692, allocations: 4 kB / 385.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006767/0.007597, allocations: 0.6025 MB / 385.7 MB, free: 10.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.007615, allocations: 8 kB / 385.8 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.007627, allocations: 12 kB / 385.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.00765, allocations: 20 kB / 385.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.008022, allocations: 196.4 kB / 386 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.00804, allocations: 23.94 kB / 386 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.008172, allocations: 67.5 kB / 386.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.008202, allocations: 40 kB / 386.1 MB, free: 10.37 MB / 362.7 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.0001472/0.008349, allocations: 276.2 kB / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.008362, allocations: 15.86 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.357e-05/0.008386, allocations: 5.812 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.008388, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.008391, allocations: 4 kB / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.008395, allocations: 3.938 kB / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.555e-05/0.008481, allocations: 129 kB / 386.5 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.008482, allocations: 0 / 386.5 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-06/0.008485, allocations: 4 kB / 386.5 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.008487, allocations: 0 / 386.5 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.008494, allocations: 4 kB / 386.5 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.008496, allocations: 4 kB / 386.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.008497, allocations: 0 / 386.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.008848, allocations: 403.2 kB / 386.9 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.617e-05/0.008864, allocations: 23.73 kB / 387 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.008876, allocations: 4 kB / 387 MB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.484e-06/0.008883, allocations: 3.938 kB / 387 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.518e-05/0.008908, allocations: 7.969 kB / 387 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.008914, allocations: 0 / 387 MB, free: 9.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.024e-05/0.008944, allocations: 119.2 kB / 387.1 MB, free: 9.312 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008944, allocations: 0 / 387.1 MB, free: 9.312 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003623/0.009307, allocations: 107.8 kB / 387.2 MB, free: 9.207 MB / 362.7 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.0004874/0.009794, allocations: 281 kB / 387.5 MB, free: 8.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003641/0.01016, allocations: 331.9 kB / 387.8 MB, free: 8.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01016, allocations: 448 / 387.8 MB, free: 8.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.145e-05/0.01021, allocations: 81.09 kB / 387.9 MB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001064/0.01032, allocations: 4 kB / 387.9 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004103/0.01073, allocations: 380.3 kB / 388.3 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.397e-05/0.01077, allocations: 77.38 kB / 388.3 MB, free: 8.051 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.241e-05/0.01082, allocations: 39.64 kB / 388.4 MB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.741e-05/0.01085, allocations: 20.5 kB / 388.4 MB, free: 7.992 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01085, allocations: 0 / 388.4 MB, free: 7.992 MB / 362.7 MB Notification: Performance of Templates: time 0.005408/0.01626, allocations: 3.156 MB / 391.5 MB, free: 4.883 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2055149930529296]