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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 45.91 MB / 344 MB, free: 12.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 8 kB / 417.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 63.46 MB / 481.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.00073/0.1412, allocations: 262.7 kB / 481.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1423, allocations: 0.5564 MB / 482.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.197e-05/0.1424, allocations: 4 kB / 482.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.907e-05/0.1425, allocations: 0 / 482.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.116e-06/0.1425, allocations: 0 / 482.2 MB, free: 4.648 MB / 350.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.0006619/0.1432, allocations: 171 kB / 482.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.806e-05/0.1432, allocations: 19.98 kB / 482.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.796e-05/0.1433, allocations: 0 / 482.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.157e-05/0.1433, allocations: 23.91 kB / 482.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.823e-05/0.1434, allocations: 15.98 kB / 482.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.1434, allocations: 0 / 482.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.1436, allocations: 127.8 kB / 482.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1437, allocations: 71.81 kB / 482.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.567e-05/0.1438, allocations: 45.64 kB / 482.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002058/0.144, allocations: 135.8 kB / 482.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.144, allocations: 4 kB / 482.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.144, allocations: 0 / 482.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.144, allocations: 0 / 482.8 MB, free: 4.043 MB / 350.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.0005111/0.1445, allocations: 464.6 kB / 483.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1446, allocations: 8.031 kB / 483.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.1446, allocations: 23.75 kB / 483.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.1448, allocations: 174.8 kB / 483.5 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.1448, allocations: 20 kB / 483.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.1448, allocations: 24 kB / 483.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.145, allocations: 128.2 kB / 483.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.145, allocations: 3.984 kB / 483.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.1451, allocations: 3.938 kB / 483.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.1451, allocations: 0 / 483.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.173e-05/0.1452, allocations: 96.41 kB / 483.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000201/0.1454, allocations: 238.1 kB / 484 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.1455, allocations: 167 kB / 484.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-06/0.1456, allocations: 0 / 484.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.1458, allocations: 166 kB / 484.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.102e-06/0.1458, allocations: 0 / 484.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001113/0.1469, allocations: 0.8685 MB / 485.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.147, allocations: 103.8 kB / 485.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.425e-05/0.147, allocations: 121.7 kB / 485.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.383e-05/0.1471, allocations: 69.69 kB / 485.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.003e-05/0.1472, allocations: 89.45 kB / 485.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1473, allocations: 134.5 kB / 485.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.1473, allocations: 16 kB / 485.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1474, allocations: 354.7 kB / 486 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.1477, allocations: 173.9 kB / 486.2 MB, free: 428 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/0.1482, allocations: 0.537 MB / 486.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.1485, allocations: 271.7 kB / 487 MB, free: 15.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.1485, allocations: 4 kB / 487 MB, free: 15.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009364/0.1495, allocations: 0.7273 MB / 487.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.1495, allocations: 15.98 kB / 487.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.1495, allocations: 12 kB / 487.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.1496, allocations: 20.75 kB / 487.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.1499, allocations: 115.7 kB / 487.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/0.1499, allocations: 27.94 kB / 487.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.1501, allocations: 67.36 kB / 488 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/0.1502, allocations: 40 kB / 488 MB, free: 14.41 MB / 366.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 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002211/0.1504, allocations: 249.4 kB / 488.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.1504, allocations: 11.81 kB / 488.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.864e-05/0.1505, allocations: 9.812 kB / 488.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1505, allocations: 0 / 488.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1505, allocations: 0 / 488.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1505, allocations: 0 / 488.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.1506, allocations: 193.8 kB / 488.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1506, allocations: 3.953 kB / 488.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-06/0.1506, allocations: 0 / 488.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1507, allocations: 4 kB / 488.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.1507, allocations: 3.984 kB / 488.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.1507, allocations: 0 / 488.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1507, allocations: 0 / 488.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008267/0.1515, allocations: 0.6186 MB / 489.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.1516, allocations: 108.7 kB / 489.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.1516, allocations: 0 / 489.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/0.1516, allocations: 0 / 489.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.82e-05/0.1516, allocations: 12.02 kB / 489.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1517, allocations: 0 / 489.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.621e-05/0.1517, allocations: 75.28 kB / 489.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1517, allocations: 0 / 489.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004903/0.1522, allocations: 95.98 kB / 489.4 MB, free: 12.95 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005532/0.1528, allocations: 267.5 kB / 489.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.1534, allocations: 464.3 kB / 490.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.1534, allocations: 0 / 490.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.1535, allocations: 164.3 kB / 490.3 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.822e-05/0.1536, allocations: 4 kB / 490.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005743/0.1542, allocations: 452.1 kB / 490.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.1546, allocations: 0.7461 MB / 491.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.787e-05/0.1547, allocations: 39.59 kB / 491.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.1547, allocations: 23.44 kB / 491.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1547, allocations: 0 / 491.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of Templates: time 0.00617/0.1609, allocations: 2.812 MB / 494.3 MB, free: 7.973 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches