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.001205/0.001205, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.205/0.205, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 75.83 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1222, allocations: 62.45 MB / 481.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002114/0.1243, allocations: 0.5321 MB / 482 MB, free: 4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.1257, allocations: 0.5911 MB / 482.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.082e-05/0.1258, allocations: 7.938 kB / 482.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.1259, allocations: 7.922 kB / 482.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.308e-06/0.1259, allocations: 0 / 482.6 MB, free: 3.391 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.0008386/0.1267, allocations: 206.9 kB / 482.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.153e-05/0.1268, allocations: 27.92 kB / 482.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.193e-05/0.1269, allocations: 0 / 482.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.309e-05/0.1269, allocations: 19.97 kB / 482.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.433e-05/0.127, allocations: 16.2 kB / 482.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.127, allocations: 0 / 482.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003128/0.1273, allocations: 167.8 kB / 483 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1275, allocations: 60.11 kB / 483.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.965e-05/0.1275, allocations: 55.61 kB / 483.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.1279, allocations: 211.4 kB / 483.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.912e-06/0.1279, allocations: 0 / 483.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1279, allocations: 0 / 483.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1279, allocations: 0 / 483.4 MB, free: 2.641 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.0007108/0.1286, allocations: 492.5 kB / 483.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.1287, allocations: 8.031 kB / 483.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.376e-05/0.1288, allocations: 16.75 kB / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.1289, allocations: 176.2 kB / 484 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.129, allocations: 20.38 kB / 484.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.129, allocations: 20.38 kB / 484.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.1292, allocations: 132.4 kB / 484.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1292, allocations: 3.938 kB / 484.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.1293, allocations: 3.984 kB / 484.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1293, allocations: 0 / 484.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.1294, allocations: 96.41 kB / 484.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002331/0.1296, allocations: 226.2 kB / 484.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.1298, allocations: 167 kB / 484.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.1299, allocations: 161.7 kB / 484.8 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.1299, allocations: 0 / 484.8 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.1302, allocations: 165.9 kB / 485 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.353e-06/0.1302, allocations: 4 kB / 485 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001081/0.1313, allocations: 0.7694 MB / 485.8 MB, free: 48 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.1314, allocations: 111.8 kB / 485.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.391e-05/0.1315, allocations: 117.6 kB / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.492e-05/0.1315, allocations: 69.67 kB / 486.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.78e-05/0.1316, allocations: 93.45 kB / 486.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.1317, allocations: 134.5 kB / 486.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.1319, allocations: 158.7 kB / 486.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1321, allocations: 350.7 kB / 486.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.1323, allocations: 181.9 kB / 487 MB, free: 14.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007262/0.1331, allocations: 0.5408 MB / 487.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009496/0.134, allocations: 0.7749 MB / 488.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.134, allocations: 4 kB / 488.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009768/0.135, allocations: 0.7428 MB / 489 MB, free: 12.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1351, allocations: 12 kB / 489 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.1351, allocations: 16.84 kB / 489.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.1351, allocations: 16 kB / 489.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.1355, allocations: 119.8 kB / 489.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.523e-05/0.1355, allocations: 27.86 kB / 489.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.1357, allocations: 63.38 kB / 489.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.945e-05/0.1357, allocations: 44 kB / 489.3 MB, free: 12.11 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 (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.0002252/0.136, allocations: 245.4 kB / 489.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.593e-05/0.136, allocations: 11.75 kB / 489.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.136, allocations: 5.875 kB / 489.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.136, allocations: 4 kB / 489.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.136, allocations: 0 / 489.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.136, allocations: 0 / 489.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.1362, allocations: 193.8 kB / 489.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1362, allocations: 0 / 489.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.48e-06/0.1362, allocations: 7.938 kB / 489.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.1363, allocations: 4 kB / 489.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.1363, allocations: 0 / 489.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1363, allocations: 0 / 489.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1363, allocations: 3.938 kB / 489.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008893/0.1372, allocations: 0.6147 MB / 490.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.485e-05/0.1373, allocations: 104.7 kB / 490.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.1373, allocations: 4 kB / 490.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.1373, allocations: 4.031 kB / 490.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.1373, allocations: 7.922 kB / 490.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1374, allocations: 0 / 490.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.002e-05/0.1374, allocations: 75.28 kB / 490.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1374, allocations: 0 / 490.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005656/0.138, allocations: 95.98 kB / 490.7 MB, free: 10.65 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 (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.0007295/0.1387, allocations: 263.8 kB / 490.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006294/0.1394, allocations: 467.8 kB / 491.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1394, allocations: 5.875 kB / 491.4 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.1395, allocations: 156.4 kB / 491.6 MB, free: 9.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.1397, allocations: 10.48 kB / 491.6 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005661/0.1402, allocations: 449.1 kB / 492 MB, free: 9.324 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.1405, allocations: 0.7303 MB / 492.7 MB, free: 8.566 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.125e-05/0.1406, allocations: 47.58 kB / 492.8 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.353e-05/0.1407, allocations: 19.44 kB / 492.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1407, allocations: 4 kB / 492.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of Templates: time 0.006414/0.1471, allocations: 2.973 MB / 495.8 MB, free: 5.523 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches