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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 89.14 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 159.4 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2258/0.2258, allocations: 34.27 MB / 294.8 MB, free: 14.52 MB / 286.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 442.6 MB, free: 5.316 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.689e-05/3.901e-05, allocations: 6.219 kB / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001952/0.001991, allocations: 0.5116 MB / 443.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.005627, allocations: 2.008 MB / 445.2 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.903e-05/0.005646, allocations: 0 / 445.2 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.389e-05/0.00566, allocations: 0 / 445.2 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.864e-06/0.005667, allocations: 0 / 445.2 MB, free: 2.77 MB / 366.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.002088/0.007755, allocations: 0.5255 MB / 445.7 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.267e-05/0.007808, allocations: 3.984 kB / 445.7 MB, free: 2.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.007851, allocations: 4 kB / 445.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.441e-05/0.007876, allocations: 0 / 445.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.76e-05/0.007893, allocations: 0 / 445.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.694e-06/0.007901, allocations: 0 / 445.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001283/0.009184, allocations: 0.6508 MB / 446.4 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.009196, allocations: 4 kB / 446.4 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.815e-05/0.009214, allocations: 0 / 446.4 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009265/0.01014, allocations: 458.8 kB / 446.8 MB, free: 1.133 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.01014, allocations: 4 kB / 446.8 MB, free: 1.129 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.01015, allocations: 4 kB / 446.8 MB, free: 1.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.01015, allocations: 0 / 446.8 MB, free: 1.125 MB / 366.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.0005412/0.01069, allocations: 347.2 kB / 447.1 MB, free: 0.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.01074, allocations: 12.03 kB / 447.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.01078, allocations: 0.9375 kB / 447.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.01088, allocations: 105.8 kB / 447.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.0109, allocations: 384 / 447.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.01091, allocations: 4.375 kB / 447.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.01105, allocations: 55.97 kB / 447.3 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.01106, allocations: 192 / 447.3 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.01107, allocations: 8.359 kB / 447.3 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.01108, allocations: 7.938 kB / 447.3 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.878e-05/0.01112, allocations: 29.64 kB / 447.4 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.01126, allocations: 101.3 kB / 447.5 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.403e-05/0.01135, allocations: 44.31 kB / 447.5 MB, free: 308 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.01139, allocations: 34.56 kB / 447.5 MB, free: 264 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.0114, allocations: 4.062 kB / 447.6 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.731e-05/0.01146, allocations: 56.27 kB / 447.6 MB, free: 188 kB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.01147, allocations: 0 / 447.6 MB, free: 188 kB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002666/0.01173, allocations: 118.7 kB / 447.7 MB, free: 44 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1782/0.1899, allocations: 84.8 kB / 447.8 MB, free: 19.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.306e-05/0.19, allocations: 90.48 kB / 447.9 MB, free: 19.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.19, allocations: 29.42 kB / 447.9 MB, free: 19.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.106e-05/0.19, allocations: 81.92 kB / 448 MB, free: 19.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.19, allocations: 0.8594 kB / 448 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.19, allocations: 14.53 kB / 448 MB, free: 19.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.177e-05/0.1901, allocations: 311.8 kB / 448.3 MB, free: 18.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.103e-05/0.1901, allocations: 27.25 kB / 448.3 MB, free: 18.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.739e-05/0.1901, allocations: 30.22 kB / 448.4 MB, free: 18.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.58e-05/0.1902, allocations: 62.97 kB / 448.4 MB, free: 18.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1902, allocations: 1.875 kB / 448.4 MB, free: 18.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.006e-05/0.1903, allocations: 93.34 kB / 448.5 MB, free: 18.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.1903, allocations: 37.14 kB / 448.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1903, allocations: 0 / 448.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1903, allocations: 0 / 448.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.1903, allocations: 5.391 kB / 448.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.1903, allocations: 0 / 448.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.877e-05/0.1903, allocations: 1.797 kB / 448.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1903, allocations: 1.125 kB / 448.6 MB, free: 18.52 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 5.125e-05/0.1904, allocations: 138.2 kB / 448.7 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.109e-05/0.1904, allocations: 1.688 kB / 448.7 MB, free: 18.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.069e-05/0.1904, allocations: 4.078 kB / 448.7 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1904, allocations: 5.094 kB / 448.7 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1904, allocations: 0.7969 kB / 448.7 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1904, allocations: 1.781 kB / 448.7 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.166e-05/0.1905, allocations: 103.3 kB / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1905, allocations: 3.812 kB / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-06/0.1905, allocations: 3.969 kB / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.1905, allocations: 1.641 kB / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.1905, allocations: 1.094 kB / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1905, allocations: 0 / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1905, allocations: 5.734 kB / 448.8 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.643e-05/0.1906, allocations: 116.7 kB / 449 MB, free: 18.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.481e-06/0.1906, allocations: 1.828 kB / 449 MB, free: 18.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.1906, allocations: 1.156 kB / 449 MB, free: 18.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-06/0.1906, allocations: 1.859 kB / 449 MB, free: 18.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.1906, allocations: 9.062 kB / 449 MB, free: 18.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1906, allocations: 0.5625 kB / 449 MB, free: 18.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.224e-05/0.1906, allocations: 80.41 kB / 449 MB, free: 18.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1906, allocations: 0 / 449 MB, free: 18.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004935/0.1911, allocations: 133.4 kB / 449.2 MB, free: 18.04 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.0007158/0.1918, allocations: 338 kB / 449.5 MB, free: 17.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.646e-05/0.1919, allocations: 111.2 kB / 449.6 MB, free: 17.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.1919, allocations: 0 / 449.6 MB, free: 17.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.189e-05/0.192, allocations: 86.02 kB / 449.7 MB, free: 17.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.1921, allocations: 6.016 kB / 449.7 MB, free: 17.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001585/0.1923, allocations: 103.8 kB / 449.8 MB, free: 17.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.681e-05/0.1923, allocations: 55.23 kB / 449.9 MB, free: 17.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.711e-06/0.1923, allocations: 3.562 kB / 449.9 MB, free: 17.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.1923, allocations: 9.969 kB / 449.9 MB, free: 17.51 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1923, allocations: 0 / 449.9 MB, free: 17.51 MB / 366.1 MB Notification: Performance of Templates: time 0.007924/0.2003, allocations: 3.553 MB / 453.4 MB, free: 17.27 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0088255032896996]