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.001165/0.001165, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 76.16 kB / 416.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.137, allocations: 62.46 MB / 479.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001683/0.1388, allocations: 0.5915 MB / 479.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.1399, allocations: 0.6187 MB / 480.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.787e-05/0.1399, allocations: 0 / 480.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.294e-05/0.14, allocations: 3.938 kB / 480.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.378e-06/0.14, allocations: 0 / 480.5 MB, free: 4.531 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.0005872/0.1406, allocations: 179.5 kB / 480.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.785e-05/0.1407, allocations: 19.98 kB / 480.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.723e-05/0.1407, allocations: 7.938 kB / 480.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.179e-05/0.1408, allocations: 11.97 kB / 480.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.52e-05/0.1408, allocations: 20.48 kB / 480.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.1408, allocations: 4 kB / 480.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002525/0.1411, allocations: 163.8 kB / 480.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.478e-05/0.1412, allocations: 60.39 kB / 481 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.289e-05/0.1413, allocations: 51.61 kB / 481 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.1415, allocations: 207.4 kB / 481.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1415, allocations: 0 / 481.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1415, allocations: 0 / 481.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1416, allocations: 0 / 481.2 MB, free: 3.816 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.000522/0.1421, allocations: 496.7 kB / 481.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1421, allocations: 12.88 kB / 481.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.1422, allocations: 16.75 kB / 481.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.1423, allocations: 180.2 kB / 481.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.1423, allocations: 16.38 kB / 481.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.1424, allocations: 20.38 kB / 481.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.1425, allocations: 136.3 kB / 482.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1426, allocations: 0 / 482.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.1426, allocations: 0 / 482.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1426, allocations: 0 / 482.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.429e-05/0.1427, allocations: 96.41 kB / 482.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000221/0.1429, allocations: 222.2 kB / 482.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.1431, allocations: 175 kB / 482.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.1432, allocations: 153.7 kB / 482.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.1433, allocations: 0 / 482.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.1435, allocations: 173.9 kB / 482.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.443e-06/0.1435, allocations: 0 / 482.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001068/0.1446, allocations: 0.7732 MB / 483.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.1447, allocations: 111.8 kB / 483.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.441e-05/0.1447, allocations: 113.7 kB / 483.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.1448, allocations: 73.67 kB / 483.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.1448, allocations: 89.45 kB / 484 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.145, allocations: 134.5 kB / 484.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.1451, allocations: 162.6 kB / 484.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1453, allocations: 346.8 kB / 484.7 MB, free: 156 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.1455, allocations: 185.8 kB / 484.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.146, allocations: 0.5408 MB / 485.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008191/0.1468, allocations: 0.7749 MB / 486.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.1469, allocations: 4 kB / 486.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009873/0.1479, allocations: 0.7427 MB / 486.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1479, allocations: 9 kB / 486.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1479, allocations: 12 kB / 486.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.1479, allocations: 24 kB / 487 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.1483, allocations: 115.7 kB / 487.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.237e-05/0.1483, allocations: 27.92 kB / 487.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.1485, allocations: 63.38 kB / 487.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.1486, allocations: 40 kB / 487.2 MB, free: 13.28 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.0002342/0.1488, allocations: 249.4 kB / 487.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.91e-05/0.1488, allocations: 15.75 kB / 487.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.129e-05/0.1489, allocations: 5.875 kB / 487.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.1489, allocations: 0 / 487.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1489, allocations: 0 / 487.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1489, allocations: 0 / 487.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.1491, allocations: 197.8 kB / 487.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1491, allocations: 4 kB / 487.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.13e-06/0.1491, allocations: 3.938 kB / 487.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1491, allocations: 0 / 487.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1491, allocations: 0 / 487.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1491, allocations: 0 / 487.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1491, allocations: 0 / 487.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008279/0.1499, allocations: 0.6225 MB / 488.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.15, allocations: 104.7 kB / 488.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.15, allocations: 4.031 kB / 488.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.257e-05/0.1501, allocations: 0 / 488.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-05/0.1501, allocations: 0 / 488.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1501, allocations: 4 kB / 488.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.617e-05/0.1501, allocations: 75.28 kB / 488.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1501, allocations: 0 / 488.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004904/0.1506, allocations: 99.92 kB / 488.6 MB, free: 11.82 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.0005468/0.1512, allocations: 266.1 kB / 488.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005763/0.1518, allocations: 465.6 kB / 489.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1518, allocations: 0 / 489.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.1519, allocations: 160.4 kB / 489.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.1521, allocations: 11.92 kB / 489.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005436/0.1526, allocations: 471 kB / 489.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.1529, allocations: 0.7298 MB / 490.6 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.783e-05/0.153, allocations: 47.52 kB / 490.7 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.402e-05/0.1531, allocations: 27.38 kB / 490.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1531, allocations: 0 / 490.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of Templates: time 0.006077/0.1591, allocations: 2.876 MB / 493.6 MB, free: 6.77 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