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.001211/0.001211, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2358/0.2358, allocations: 46.11 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 89.42 kB / 417.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1284, allocations: 62.45 MB / 480 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001985/0.1304, allocations: 0.5229 MB / 480.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1316, allocations: 0.599 MB / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.024e-05/0.1317, allocations: 3.938 kB / 481.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.73e-05/0.1318, allocations: 7.875 kB / 481.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.1318, allocations: 0 / 481.2 MB, free: 4.172 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.0008283/0.1327, allocations: 199.1 kB / 481.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.483e-05/0.1327, allocations: 27.97 kB / 481.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.469e-05/0.1328, allocations: 7.938 kB / 481.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.658e-05/0.1328, allocations: 12 kB / 481.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.345e-05/0.1329, allocations: 16.19 kB / 481.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.311e-05/0.1329, allocations: 4 kB / 481.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003366/0.1332, allocations: 167.7 kB / 481.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.715e-05/0.1333, allocations: 60.09 kB / 481.6 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.77e-05/0.1334, allocations: 55.61 kB / 481.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.1337, allocations: 203.5 kB / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1337, allocations: 0 / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1337, allocations: 0 / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.383e-06/0.1337, allocations: 0 / 481.9 MB, free: 3.434 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.000529/0.1343, allocations: 0.4889 MB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1343, allocations: 8.031 kB / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.1344, allocations: 24.75 kB / 482.4 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.1345, allocations: 184.1 kB / 482.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.1345, allocations: 12.38 kB / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.1345, allocations: 20.38 kB / 482.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.1347, allocations: 128.4 kB / 482.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.1347, allocations: 0 / 482.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.1347, allocations: 4 kB / 482.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.1348, allocations: 4 kB / 482.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.783e-05/0.1349, allocations: 92.41 kB / 482.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001992/0.1351, allocations: 226.2 kB / 483.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.1352, allocations: 170.9 kB / 483.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.1353, allocations: 153.7 kB / 483.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.1353, allocations: 0 / 483.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.1356, allocations: 169.9 kB / 483.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.453e-06/0.1356, allocations: 0 / 483.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001077/0.1367, allocations: 0.7772 MB / 484.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.1368, allocations: 103.8 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.888e-05/0.1369, allocations: 117.6 kB / 484.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.875e-05/0.137, allocations: 73.67 kB / 484.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.137, allocations: 89.45 kB / 484.7 MB, free: 424 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.1372, allocations: 138.5 kB / 484.8 MB, free: 284 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.1373, allocations: 162.7 kB / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1375, allocations: 350.8 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002829/0.1378, allocations: 185.8 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004878/0.1383, allocations: 0.5331 MB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000916/0.1392, allocations: 0.7749 MB / 486.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.1392, allocations: 4 kB / 486.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001109/0.1403, allocations: 0.7475 MB / 487.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.1404, allocations: 8 kB / 487.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.1404, allocations: 12 kB / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.361e-05/0.1404, allocations: 23.98 kB / 487.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003445/0.1408, allocations: 119.7 kB / 487.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.509e-05/0.1408, allocations: 19.94 kB / 487.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.141, allocations: 63.38 kB / 487.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-05/0.1411, allocations: 44 kB / 487.9 MB, free: 12.9 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.0002442/0.1414, allocations: 245.5 kB / 488.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.1414, allocations: 15.75 kB / 488.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.205e-05/0.1414, allocations: 9.859 kB / 488.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1414, allocations: 4 kB / 488.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1414, allocations: 0 / 488.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1414, allocations: 0 / 488.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.1416, allocations: 189.8 kB / 488.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1416, allocations: 4 kB / 488.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.141e-06/0.1416, allocations: 3.938 kB / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1416, allocations: 0 / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.1416, allocations: 0 / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1416, allocations: 0 / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.1417, allocations: 7.938 kB / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009293/0.1426, allocations: 0.6225 MB / 489 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.1427, allocations: 104.7 kB / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1427, allocations: 0 / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.404e-05/0.1427, allocations: 0 / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.1427, allocations: 3.984 kB / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.1427, allocations: 4 kB / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.914e-05/0.1428, allocations: 75.28 kB / 489.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.984e-06/0.1428, allocations: 0 / 489.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005095/0.1433, allocations: 95.94 kB / 489.2 MB, free: 11.44 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.0005665/0.1439, allocations: 262.6 kB / 489.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006625/0.1445, allocations: 473.3 kB / 490 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.1446, allocations: 4.375 kB / 490 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.1447, allocations: 164.3 kB / 490.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.1449, allocations: 4 kB / 490.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/0.1455, allocations: 445.1 kB / 490.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1458, allocations: 0.7303 MB / 491.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.819e-05/0.1459, allocations: 47.58 kB / 491.3 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.825e-05/0.1459, allocations: 19.44 kB / 491.4 MB, free: 9.289 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.146, allocations: 4 kB / 491.4 MB, free: 9.285 MB / 366.1 MB Notification: Performance of Templates: time 0.007825/0.1538, allocations: 2.977 MB / 494.3 MB, free: 6.305 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches