Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002288/0.002288, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002521/0.002521, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.366/2.366, allocations: 227.4 MB / 246.9 MB, free: 9.094 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.296/0.296, allocations: 46.11 MB / 344.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002804/0.002804, allocations: 76.41 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1788, allocations: 62.45 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002368/0.1813, allocations: 0.5488 MB / 480.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004711/0.186, allocations: 2.455 MB / 482.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.558e-05/0.186, allocations: 0 / 482.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.793e-05/0.1861, allocations: 0 / 482.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.673e-06/0.1861, allocations: 7.938 kB / 482.9 MB, free: 2.668 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.00188/0.188, allocations: 462.8 kB / 483.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.23e-05/0.1881, allocations: 4 kB / 483.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.136e-05/0.1881, allocations: 0 / 483.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.412e-05/0.1882, allocations: 3.984 kB / 483.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.263e-05/0.1882, allocations: 3.938 kB / 483.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.1882, allocations: 4 kB / 483.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001644/0.1899, allocations: 0.7369 MB / 484.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.285e-05/0.1899, allocations: 3.984 kB / 484.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.1899, allocations: 0 / 484.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000627/0.1906, allocations: 303.7 kB / 484.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1906, allocations: 4 kB / 484.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1906, allocations: 0 / 484.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1906, allocations: 0 / 484.5 MB, free: 1.16 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.0005557/0.1912, allocations: 425.3 kB / 484.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.1912, allocations: 12.86 kB / 484.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.1913, allocations: 4.938 kB / 484.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1914, allocations: 164.4 kB / 485 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1915, allocations: 384 / 485 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.1915, allocations: 384 / 485 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.1916, allocations: 34.02 kB / 485.1 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1916, allocations: 3.938 kB / 485.1 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.1917, allocations: 7.875 kB / 485.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1917, allocations: 0 / 485.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.606e-05/0.1917, allocations: 4 kB / 485.1 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001682/0.1919, allocations: 153.7 kB / 485.2 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.294e-05/0.1919, allocations: 14.58 kB / 485.3 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.814e-05/0.192, allocations: 4.953 kB / 485.3 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-06/0.192, allocations: 4 kB / 485.3 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.496e-05/0.1921, allocations: 68.19 kB / 485.3 MB, free: 108 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.1921, allocations: 0 / 485.3 MB, free: 108 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000214/0.1923, allocations: 71.33 kB / 485.4 MB, free: 24 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.381e-05/0.1924, allocations: 81.23 kB / 485.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.622e-05/0.1924, allocations: 89.86 kB / 485.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.1925, allocations: 25.7 kB / 485.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.911e-05/0.1925, allocations: 80.14 kB / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.1925, allocations: 4 kB / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.1926, allocations: 13.72 kB / 485.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1927, allocations: 310.8 kB / 486 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.972e-05/0.1927, allocations: 7.984 kB / 486 MB, free: 15.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-06/0.1928, allocations: 4 kB / 486 MB, free: 15.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.556e-05/0.1928, allocations: 64.2 kB / 486.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1928, allocations: 0 / 486.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.78e-05/0.1929, allocations: 63.41 kB / 486.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.193, allocations: 37.62 kB / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.193, allocations: 0 / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.193, allocations: 0 / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.854e-06/0.193, allocations: 0 / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1931, allocations: 0 / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.452e-05/0.1931, allocations: 8.094 kB / 486.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.1931, allocations: 0 / 486.2 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 0.0001075/0.1932, allocations: 131.5 kB / 486.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.1932, allocations: 7.938 kB / 486.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.949e-06/0.1933, allocations: 3.125 kB / 486.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1933, allocations: 0 / 486.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1933, allocations: 0 / 486.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1933, allocations: 0 / 486.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.1934, allocations: 149.6 kB / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1934, allocations: 4 kB / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.1934, allocations: 4 kB / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1934, allocations: 3.938 kB / 486.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.1935, allocations: 4 kB / 486.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1935, allocations: 3.938 kB / 486.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1935, allocations: 0 / 486.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.1936, allocations: 98.67 kB / 486.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.816e-05/0.1937, allocations: 85.09 kB / 486.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.1937, allocations: 7.969 kB / 486.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.311e-05/0.1937, allocations: 4 kB / 486.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.1937, allocations: 3.984 kB / 486.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.1938, allocations: 0 / 486.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.178e-05/0.1938, allocations: 75.28 kB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1938, allocations: 0 / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006255/0.1944, allocations: 159.9 kB / 486.9 MB, free: 14.33 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.001294/0.1957, allocations: 349.1 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.1959, allocations: 67.34 kB / 487.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1959, allocations: 0 / 487.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.223e-05/0.196, allocations: 59.39 kB / 487.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1962, allocations: 0 / 487.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002468/0.1964, allocations: 108.6 kB / 487.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.1967, allocations: 0.6692 MB / 488.1 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.29e-05/0.1968, allocations: 7.438 kB / 488.2 MB, free: 13 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1968, allocations: 4 kB / 488.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of Templates: time 0.009168/0.206, allocations: 3.378 MB / 491.5 MB, free: 9.609 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches