Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2621/0.2621, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 69.56 kB / 417.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1785, allocations: 62.44 MB / 480 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001607/0.1801, allocations: 499.6 kB / 480.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003232/0.1834, allocations: 2.104 MB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.443e-05/0.1834, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.018e-05/0.1834, allocations: 4 kB / 482.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.617e-06/0.1834, allocations: 0 / 482.6 MB, free: 2.668 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.1847, allocations: 0.5061 MB / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.341e-05/0.1848, allocations: 0 / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.541e-05/0.1848, allocations: 4 kB / 483.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.717e-06/0.1848, allocations: 0 / 483.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.36e-05/0.1849, allocations: 3.984 kB / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.701e-06/0.1849, allocations: 0 / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009928/0.1859, allocations: 0.6201 MB / 483.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.1859, allocations: 3.984 kB / 483.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.633e-05/0.1859, allocations: 4 kB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006532/0.1866, allocations: 383.3 kB / 484.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1866, allocations: 0 / 484.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.1866, allocations: 4 kB / 484.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1866, allocations: 3.938 kB / 484.1 MB, free: 1.145 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004498/0.1871, allocations: 425.4 kB / 484.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1871, allocations: 8.031 kB / 484.6 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.1871, allocations: 0.9375 kB / 484.6 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.1873, allocations: 160.4 kB / 484.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.211e-06/0.1873, allocations: 384 / 484.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.1873, allocations: 4.375 kB / 484.7 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.692e-05/0.1874, allocations: 37.95 kB / 484.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.699e-06/0.1874, allocations: 0 / 484.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.45e-06/0.1874, allocations: 0 / 484.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1874, allocations: 0 / 484.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.674e-05/0.1874, allocations: 4 kB / 484.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.1876, allocations: 153.7 kB / 484.9 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.768e-05/0.1876, allocations: 18.61 kB / 484.9 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.1876, allocations: 4.859 kB / 484.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-06/0.1877, allocations: 4 kB / 484.9 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.1877, allocations: 64.14 kB / 485 MB, free: 108 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1877, allocations: 0 / 485 MB, free: 108 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001379/0.1879, allocations: 71.44 kB / 485.1 MB, free: 24 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.1879, allocations: 77.11 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.345e-05/0.188, allocations: 93.86 kB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.188, allocations: 25.7 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.093e-05/0.188, allocations: 80.27 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.1881, allocations: 4 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.568e-05/0.1881, allocations: 9.719 kB / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1883, allocations: 322.8 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.254e-06/0.1883, allocations: 0 / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.258e-06/0.1883, allocations: 0 / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.736e-05/0.1883, allocations: 64.2 kB / 485.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1883, allocations: 0 / 485.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.863e-05/0.1884, allocations: 67.41 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.1885, allocations: 41.62 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-06/0.1885, allocations: 0 / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1885, allocations: 0 / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-07/0.1885, allocations: 0 / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.1885, allocations: 4 kB / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.1885, allocations: 0 / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1885, allocations: 0 / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.484e-05/0.1886, allocations: 135.5 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-06/0.1887, allocations: 7.969 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.017e-05/0.1887, allocations: 3.125 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1887, allocations: 0 / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1887, allocations: 3.938 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1887, allocations: 3.984 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.1888, allocations: 149.6 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1888, allocations: 4 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1888, allocations: 0 / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.1888, allocations: 3.938 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.1889, allocations: 0 / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1889, allocations: 0 / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1889, allocations: 4 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.189, allocations: 90.83 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.189, allocations: 85 kB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.189, allocations: 3.938 kB / 486.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.675e-06/0.1891, allocations: 4 kB / 486.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.1891, allocations: 7.984 kB / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.1891, allocations: 0 / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.836e-05/0.1891, allocations: 79.31 kB / 486.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1891, allocations: 0 / 486.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.1895, allocations: 124 kB / 486.5 MB, free: 14.36 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0008229/0.1904, allocations: 308.3 kB / 486.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.1905, allocations: 63.34 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1905, allocations: 0 / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.825e-05/0.1906, allocations: 59.39 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.1907, allocations: 4 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002772/0.191, allocations: 84.94 kB / 487 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.1913, allocations: 0.6728 MB / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.653e-06/0.1913, allocations: 0 / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.1914, allocations: 11.44 kB / 487.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1914, allocations: 4.125 kB / 487.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of Templates: time 0.007375/0.1987, allocations: 3.502 MB / 491.2 MB, free: 9.59 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches