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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008849/0.0008849, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.005022/0.005022, allocations: 161 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.9063/0.9063, allocations: 177 MB / 204.9 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2884/0.2884, allocations: 34.25 MB / 295.6 MB, free: 0.668 MB / 266.7 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 443.4 MB, free: 1.055 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.657e-05/2.829e-05, allocations: 2.281 kB / 443.4 MB, free: 1.051 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001628/0.001656, allocations: 0.5009 MB / 443.9 MB, free: 0.5508 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1939/0.1956, allocations: 2.242 MB / 446.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.1956, allocations: 2.812 kB / 446.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.774e-05/0.1956, allocations: 0 / 446.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.694e-06/0.1956, allocations: 0 / 446.2 MB, free: 43.14 MB / 410.7 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.001165/0.1968, allocations: 0.58 MB / 446.7 MB, free: 43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.483e-05/0.1969, allocations: 2.75 kB / 446.7 MB, free: 43 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.1969, allocations: 7.406 kB / 446.8 MB, free: 43 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.011e-05/0.1969, allocations: 6.688 kB / 446.8 MB, free: 43 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.986e-05/0.1969, allocations: 0 / 446.8 MB, free: 43 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-06/0.197, allocations: 3.562 kB / 446.8 MB, free: 43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000741/0.1977, allocations: 0.6774 MB / 447.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.506e-06/0.1977, allocations: 0 / 447.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.079e-05/0.1977, allocations: 2.875 kB / 447.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005016/0.1982, allocations: 0.5257 MB / 448 MB, free: 42.68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1982, allocations: 2.875 kB / 448 MB, free: 42.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1982, allocations: 0 / 448 MB, free: 42.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1982, allocations: 0 / 448 MB, free: 42.68 MB / 410.7 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.0003025/0.1985, allocations: 357.5 kB / 448.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1986, allocations: 11.66 kB / 448.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.809e-05/0.1986, allocations: 4.938 kB / 448.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.531e-05/0.1987, allocations: 101.8 kB / 448.4 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.1987, allocations: 3.25 kB / 448.4 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.1987, allocations: 5.156 kB / 448.4 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.997e-05/0.1988, allocations: 66.22 kB / 448.5 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1988, allocations: 192 / 448.5 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1988, allocations: 1.969 kB / 448.5 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.1988, allocations: 3.938 kB / 448.5 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.874e-05/0.1988, allocations: 28.73 kB / 448.5 MB, free: 42.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.738e-05/0.1989, allocations: 93.33 kB / 448.6 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.051e-05/0.1989, allocations: 50.64 kB / 448.7 MB, free: 41.92 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.614e-05/0.1989, allocations: 33.47 kB / 448.7 MB, free: 41.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.185e-06/0.1989, allocations: 1.688 kB / 448.7 MB, free: 41.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.199, allocations: 63.23 kB / 448.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.42e-07/0.199, allocations: 3.938 kB / 448.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001641/0.1991, allocations: 118.4 kB / 448.9 MB, free: 41.67 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.1992, allocations: 81.05 kB / 449 MB, free: 41.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.98e-05/0.1992, allocations: 89.86 kB / 449.1 MB, free: 41.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.1992, allocations: 25.7 kB / 449.1 MB, free: 41.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.827e-06/0.1992, allocations: 83.02 kB / 449.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1992, allocations: 7.203 kB / 449.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.1992, allocations: 15.92 kB / 449.2 MB, free: 41.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.963e-05/0.1993, allocations: 310.8 kB / 449.5 MB, free: 41.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.393e-05/0.1993, allocations: 36.52 kB / 449.5 MB, free: 40.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.456e-06/0.1993, allocations: 28.58 kB / 449.6 MB, free: 40.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/0.1993, allocations: 63.08 kB / 449.6 MB, free: 40.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1993, allocations: 0 / 449.6 MB, free: 40.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.364e-05/0.1994, allocations: 93.06 kB / 449.7 MB, free: 40.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.1994, allocations: 31.48 kB / 449.7 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1994, allocations: 0 / 449.7 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1994, allocations: 1.406 kB / 449.7 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.1994, allocations: 3.281 kB / 449.8 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.1994, allocations: 9.516 kB / 449.8 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.1994, allocations: 4 kB / 449.8 MB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.1994, allocations: 0 / 449.8 MB, free: 40.75 MB / 410.7 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 4.142e-05/0.1995, allocations: 134.5 kB / 449.9 MB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-06/0.1995, allocations: 0 / 449.9 MB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.088e-05/0.1995, allocations: 5.906 kB / 449.9 MB, free: 40.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1995, allocations: 2.75 kB / 449.9 MB, free: 40.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1995, allocations: 3.938 kB / 449.9 MB, free: 40.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1995, allocations: 7.172 kB / 449.9 MB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.779e-05/0.1996, allocations: 100.2 kB / 450 MB, free: 40.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.1996, allocations: 0 / 450 MB, free: 40.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-07/0.1996, allocations: 4 kB / 450 MB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.01e-07/0.1996, allocations: 3.938 kB / 450 MB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-06/0.1996, allocations: 3.938 kB / 450 MB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1996, allocations: 5.688 kB / 450 MB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.1996, allocations: 0 / 450 MB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.252e-05/0.1996, allocations: 119.1 kB / 450.1 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.89e-06/0.1996, allocations: 3.234 kB / 450.1 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.1996, allocations: 2.906 kB / 450.2 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.56e-06/0.1996, allocations: 0 / 450.2 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.291e-05/0.1997, allocations: 0 / 450.2 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-06/0.1997, allocations: 10.91 kB / 450.2 MB, free: 40.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.025e-05/0.1997, allocations: 79.22 kB / 450.2 MB, free: 40.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1997, allocations: 0 / 450.2 MB, free: 40.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002751/0.1999, allocations: 161.2 kB / 450.4 MB, free: 40.2 MB / 410.7 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.0005616/0.2005, allocations: 379.4 kB / 450.8 MB, free: 40.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.138e-05/0.2006, allocations: 119.4 kB / 450.9 MB, free: 39.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2006, allocations: 2.594 kB / 450.9 MB, free: 39.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.307e-05/0.2006, allocations: 79.83 kB / 451 MB, free: 39.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.462e-05/0.2007, allocations: 2.656 kB / 451 MB, free: 39.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000164/0.2009, allocations: 127.9 kB / 451.1 MB, free: 39.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.563e-05/0.2009, allocations: 54.17 kB / 451.1 MB, free: 39.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.238e-05/0.2009, allocations: 8.5 kB / 451.2 MB, free: 39.59 MB / 410.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2009, allocations: 0 / 451.2 MB, free: 39.59 MB / 410.7 MB Notification: Performance of Templates: time 0.003867/0.2048, allocations: 3.427 MB / 454.6 MB, free: 39.28 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.842593907378614]