Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005667/0.005667, allocations: 160.7 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.891/0.891, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2532/0.2532, allocations: 34.26 MB / 295.7 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.992e-05/3.173e-05, allocations: 4.25 kB / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00164/0.001671, allocations: 0.5009 MB / 443.9 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1858/0.1875, allocations: 2.239 MB / 446.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.625e-05/0.1875, allocations: 0 / 446.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.1875, allocations: 3.938 kB / 446.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.623e-06/0.1875, allocations: 0 / 446.2 MB, free: 43.27 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0009299/0.1885, allocations: 0.5848 MB / 446.8 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.734e-05/0.1885, allocations: 10.12 kB / 446.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.581e-05/0.1886, allocations: 0 / 446.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.794e-05/0.1886, allocations: 3.062 kB / 446.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.987e-05/0.1886, allocations: 6.469 kB / 446.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.145e-06/0.1886, allocations: 3.984 kB / 446.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006141/0.1892, allocations: 0.6722 MB / 447.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.1892, allocations: 0 / 447.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.17e-05/0.1893, allocations: 0 / 447.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.1897, allocations: 0.5262 MB / 448 MB, free: 42.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1897, allocations: 3.375 kB / 448 MB, free: 42.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1897, allocations: 0 / 448 MB, free: 42.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1897, allocations: 0 / 448 MB, free: 42.89 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.0002734/0.19, allocations: 369.8 kB / 448.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.19, allocations: 8.531 kB / 448.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.19, allocations: 0.9375 kB / 448.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.776e-05/0.1901, allocations: 104.7 kB / 448.5 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.1901, allocations: 4.375 kB / 448.5 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.1901, allocations: 3.844 kB / 448.5 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.22e-05/0.1901, allocations: 62.19 kB / 448.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1901, allocations: 192 / 448.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.1902, allocations: 384 / 448.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1902, allocations: 9.781 kB / 448.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.544e-05/0.1902, allocations: 29.64 kB / 448.6 MB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.395e-05/0.1902, allocations: 96.33 kB / 448.7 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.262e-05/0.1903, allocations: 43.09 kB / 448.7 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.243e-05/0.1903, allocations: 33.94 kB / 448.7 MB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-06/0.1903, allocations: 4 kB / 448.7 MB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.1903, allocations: 62.83 kB / 448.8 MB, free: 42.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.51e-07/0.1903, allocations: 3.938 kB / 448.8 MB, free: 42.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001453/0.1905, allocations: 118.5 kB / 448.9 MB, free: 41.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.233e-05/0.1905, allocations: 83.8 kB / 449 MB, free: 41.78 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.409e-05/0.1905, allocations: 93.86 kB / 449.1 MB, free: 41.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-06/0.1905, allocations: 25.7 kB / 449.1 MB, free: 41.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.101e-06/0.1905, allocations: 80.14 kB / 449.2 MB, free: 41.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.1905, allocations: 7.203 kB / 449.2 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.1905, allocations: 12.53 kB / 449.2 MB, free: 41.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.574e-05/0.1906, allocations: 320.9 kB / 449.5 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-06/0.1906, allocations: 25.7 kB / 449.6 MB, free: 41.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.111e-06/0.1906, allocations: 28.42 kB / 449.6 MB, free: 41.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.341e-05/0.1906, allocations: 63.02 kB / 449.6 MB, free: 41.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1906, allocations: 0 / 449.6 MB, free: 41.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.713e-05/0.1906, allocations: 95.86 kB / 449.7 MB, free: 41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1907, allocations: 31.36 kB / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.1907, allocations: 0 / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1907, allocations: 0 / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1907, allocations: 4.094 kB / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1907, allocations: 3.938 kB / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.246e-05/0.1907, allocations: 2.844 kB / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.1907, allocations: 0 / 449.8 MB, free: 40.96 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 3.518e-05/0.1907, allocations: 141.7 kB / 449.9 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-06/0.1907, allocations: 0 / 449.9 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.007e-06/0.1907, allocations: 3 kB / 449.9 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.1908, allocations: 0 / 449.9 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1908, allocations: 2.875 kB / 449.9 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.1908, allocations: 5.625 kB / 449.9 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.875e-05/0.1908, allocations: 96.56 kB / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1908, allocations: 6.75 kB / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-07/0.1908, allocations: 0 / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.1908, allocations: 1.75 kB / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.1908, allocations: 0 / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.1908, allocations: 0 / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1908, allocations: 0 / 450 MB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.54e-05/0.1908, allocations: 126.3 kB / 450.2 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-06/0.1908, allocations: 0 / 450.2 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.844e-06/0.1909, allocations: 3.938 kB / 450.2 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.499e-06/0.1909, allocations: 2.875 kB / 450.2 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.053e-05/0.1909, allocations: 7.266 kB / 450.2 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-06/0.1909, allocations: 0 / 450.2 MB, free: 40.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.686e-06/0.1909, allocations: 82.03 kB / 450.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1909, allocations: 0 / 450.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002479/0.1911, allocations: 155 kB / 450.4 MB, free: 40.41 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.0005183/0.1916, allocations: 386.3 kB / 450.8 MB, free: 40.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.967e-05/0.1917, allocations: 114.3 kB / 450.9 MB, free: 40.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1917, allocations: 0 / 450.9 MB, free: 40.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.195e-05/0.1917, allocations: 86.84 kB / 451 MB, free: 40.03 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.926e-05/0.1918, allocations: 8.422 kB / 451 MB, free: 40.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001445/0.192, allocations: 130.9 kB / 451.1 MB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.188e-05/0.192, allocations: 54.23 kB / 451.2 MB, free: 39.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.019e-05/0.192, allocations: 12.44 kB / 451.2 MB, free: 39.79 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.192, allocations: 0 / 451.2 MB, free: 39.79 MB / 410.7 MB Notification: Performance of Templates: time 0.003429/0.1954, allocations: 3.414 MB / 454.6 MB, free: 39.49 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.422249304130673]