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.001259/0.001259, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001769/0.001769, allocations: 212.6 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2494/0.2494, allocations: 46.13 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003214/0.003214, allocations: 87 kB / 417.7 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1839, allocations: 62.45 MB / 480.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002234/0.1862, allocations: 0.4905 MB / 480.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004664/0.1909, allocations: 2.373 MB / 483 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.445e-05/0.1909, allocations: 3.938 kB / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.1909, allocations: 0 / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.549e-06/0.191, allocations: 0 / 483 MB, free: 2.336 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.002009/0.193, allocations: 0.5645 MB / 483.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.778e-05/0.193, allocations: 7.984 kB / 483.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.92e-05/0.1931, allocations: 4 kB / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.438e-05/0.1931, allocations: 0 / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.598e-05/0.1931, allocations: 0 / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.922e-06/0.1931, allocations: 0 / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.1948, allocations: 0.7097 MB / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.074e-06/0.1948, allocations: 0 / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.483e-05/0.1948, allocations: 0 / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008944/0.1957, allocations: 451.4 kB / 484.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1958, allocations: 0 / 484.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.1958, allocations: 4 kB / 484.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1958, allocations: 7.938 kB / 484.7 MB, free: 0.5977 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.0005838/0.1964, allocations: 433.2 kB / 485.1 MB, free: 124 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1964, allocations: 8.031 kB / 485.1 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.1965, allocations: 12.94 kB / 485.2 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.1966, allocations: 160.4 kB / 485.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1967, allocations: 384 / 485.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1967, allocations: 384 / 485.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.613e-05/0.1968, allocations: 34.02 kB / 485.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1968, allocations: 0 / 485.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-06/0.1968, allocations: 4 kB / 485.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1968, allocations: 0 / 485.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.311e-05/0.1969, allocations: 7.922 kB / 485.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001864/0.1971, allocations: 145.7 kB / 485.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.49e-05/0.1971, allocations: 18.58 kB / 485.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.1972, allocations: 8.797 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.1972, allocations: 4.094 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/0.1972, allocations: 64.2 kB / 485.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.1973, allocations: 0 / 485.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001931/0.1975, allocations: 67.33 kB / 485.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.1975, allocations: 77.11 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.047e-05/0.1976, allocations: 93.86 kB / 485.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.1976, allocations: 25.7 kB / 485.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.1977, allocations: 80.14 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.1977, allocations: 4 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.1978, allocations: 13.84 kB / 486 MB, free: 15.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.198, allocations: 318.8 kB / 486.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.142e-05/0.198, allocations: 0 / 486.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.773e-06/0.198, allocations: 4 kB / 486.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.338e-05/0.1981, allocations: 64.27 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1981, allocations: 0 / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001082/0.1982, allocations: 63.33 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/0.1983, allocations: 37.73 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1983, allocations: 4 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1983, allocations: 0 / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1983, allocations: 0 / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1983, allocations: 0 / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.926e-05/0.1983, allocations: 0 / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.1984, allocations: 4 kB / 486.4 MB, free: 14.61 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.0001147/0.1985, allocations: 131.5 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.1985, allocations: 3.938 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.568e-06/0.1985, allocations: 11.11 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1985, allocations: 7.984 kB / 486.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1986, allocations: 0 / 486.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1986, allocations: 0 / 486.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.1987, allocations: 145.7 kB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1987, allocations: 0 / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.1987, allocations: 0 / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.1987, allocations: 7.938 kB / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.1988, allocations: 0 / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.1988, allocations: 0 / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.1988, allocations: 11.92 kB / 486.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.1989, allocations: 98.69 kB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.199, allocations: 77.11 kB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.199, allocations: 7.922 kB / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.309e-05/0.199, allocations: 0 / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.531e-05/0.1991, allocations: 4 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.1991, allocations: 0 / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.785e-05/0.1991, allocations: 75.28 kB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1991, allocations: 4.031 kB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006797/0.1998, allocations: 159.9 kB / 487.2 MB, free: 13.77 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.001135/0.201, allocations: 339 kB / 487.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001161/0.2011, allocations: 59.41 kB / 487.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.2011, allocations: 4.062 kB / 487.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.114e-05/0.2012, allocations: 63.33 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.2014, allocations: 3.938 kB / 487.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001999/0.2016, allocations: 84.94 kB / 487.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.202, allocations: 0.669 MB / 488.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.078e-05/0.202, allocations: 3.984 kB / 488.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.011e-05/0.2021, allocations: 11.44 kB / 488.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2021, allocations: 0 / 488.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01057/0.2127, allocations: 3.595 MB / 492 MB, free: 8.871 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches