Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.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.001223/0.001223, 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.005123/0.005123, allocations: 160.2 kB / 24.7 MB, free: 9.418 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.8891/0.8891, allocations: 177.1 MB / 205 MB, free: 5.719 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.2298/0.2298, allocations: 34.25 MB / 295.7 MB, free: 0.6914 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 3.938 kB / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.294e-05, allocations: 6.281 kB / 443.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0009496/0.0009726, allocations: 0.497 MB / 443.9 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1839/0.1849, allocations: 2.007 MB / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.53e-05/0.1849, allocations: 0 / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.1849, allocations: 2.656 kB / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-06/0.1849, allocations: 0 / 445.9 MB, free: 43.4 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0008399/0.1857, allocations: 0.5215 MB / 446.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.834e-05/0.1858, allocations: 3.719 kB / 446.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.555e-05/0.1858, allocations: 0 / 446.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.346e-05/0.1858, allocations: 0.5938 kB / 446.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.651e-05/0.1859, allocations: 3.406 kB / 446.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.763e-06/0.1859, allocations: 0 / 446.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000572/0.1864, allocations: 0.6509 MB / 447.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-06/0.1864, allocations: 0 / 447.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.66e-05/0.1865, allocations: 0 / 447.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003727/0.1868, allocations: 466.9 kB / 447.6 MB, free: 43.13 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1868, allocations: 0 / 447.6 MB, free: 43.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1868, allocations: 6.625 kB / 447.6 MB, free: 43.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.1868, allocations: 0 / 447.6 MB, free: 43.13 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.0002756/0.1871, allocations: 342 kB / 447.9 MB, free: 42.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1872, allocations: 10.44 kB / 447.9 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.49e-05/0.1872, allocations: 0.9375 kB / 447.9 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.206e-05/0.1872, allocations: 104.5 kB / 448 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1872, allocations: 4.375 kB / 448 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.1873, allocations: 3.844 kB / 448 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.034e-05/0.1873, allocations: 58.67 kB / 448.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1873, allocations: 3.656 kB / 448.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.1874, allocations: 6.156 kB / 448.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1874, allocations: 3.938 kB / 448.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.91e-05/0.1874, allocations: 28.94 kB / 448.1 MB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.731e-05/0.1874, allocations: 99.86 kB / 448.2 MB, free: 42.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.445e-05/0.1875, allocations: 46.72 kB / 448.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.454e-05/0.1875, allocations: 33.09 kB / 448.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.1875, allocations: 4 kB / 448.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.1875, allocations: 62.56 kB / 448.4 MB, free: 42.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.1875, allocations: 0 / 448.4 MB, free: 42.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001442/0.1877, allocations: 122.5 kB / 448.5 MB, free: 42.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.1877, allocations: 81.05 kB / 448.6 MB, free: 42.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.463e-05/0.1877, allocations: 89.86 kB / 448.7 MB, free: 41.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-06/0.1877, allocations: 25.7 kB / 448.7 MB, free: 41.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.214e-06/0.1877, allocations: 80.14 kB / 448.8 MB, free: 41.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1878, allocations: 5.891 kB / 448.8 MB, free: 41.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.882e-05/0.1878, allocations: 12.25 kB / 448.8 MB, free: 41.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.076e-05/0.1878, allocations: 319 kB / 449.1 MB, free: 41.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/0.1878, allocations: 29.7 kB / 449.1 MB, free: 41.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.842e-06/0.1878, allocations: 35.61 kB / 449.2 MB, free: 41.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.364e-05/0.1878, allocations: 58.83 kB / 449.2 MB, free: 41.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1878, allocations: 2.688 kB / 449.2 MB, free: 41.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.004e-05/0.1879, allocations: 93.72 kB / 449.3 MB, free: 41.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.1879, allocations: 31.61 kB / 449.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.1879, allocations: 0 / 449.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.1879, allocations: 0 / 449.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1879, allocations: 2.875 kB / 449.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.1879, allocations: 7.938 kB / 449.4 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.079e-05/0.1879, allocations: 0 / 449.4 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.1879, allocations: 0 / 449.4 MB, free: 41.21 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.198e-05/0.188, allocations: 143 kB / 449.5 MB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-06/0.188, allocations: 0 / 449.5 MB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.304e-06/0.188, allocations: 5.75 kB / 449.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.188, allocations: 0 / 449.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.188, allocations: 0 / 449.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.188, allocations: 5.719 kB / 449.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.512e-05/0.188, allocations: 96.39 kB / 449.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.31e-07/0.188, allocations: 4 kB / 449.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-07/0.188, allocations: 4.734 kB / 449.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-07/0.188, allocations: 0 / 449.6 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.15e-06/0.188, allocations: 4 kB / 449.6 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.3e-07/0.188, allocations: 2.844 kB / 449.6 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.188, allocations: 0 / 449.6 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.102e-05/0.1881, allocations: 119.4 kB / 449.7 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-06/0.1881, allocations: 4 kB / 449.7 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.306e-06/0.1881, allocations: 2.75 kB / 449.7 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.969e-06/0.1881, allocations: 0 / 449.7 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.438e-06/0.1881, allocations: 4.031 kB / 449.7 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-06/0.1881, allocations: 2.938 kB / 449.7 MB, free: 40.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.085e-06/0.1881, allocations: 79.22 kB / 449.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1881, allocations: 0 / 449.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002075/0.1883, allocations: 129.8 kB / 449.9 MB, free: 40.68 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.0004573/0.1888, allocations: 342.5 kB / 450.3 MB, free: 40.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.397e-05/0.1888, allocations: 115.6 kB / 450.4 MB, free: 40.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1888, allocations: 2.844 kB / 450.4 MB, free: 40.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.148e-05/0.1888, allocations: 80.05 kB / 450.5 MB, free: 40.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.543e-05/0.1889, allocations: 0 / 450.5 MB, free: 40.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001307/0.1891, allocations: 139.1 kB / 450.6 MB, free: 40.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.12e-05/0.1891, allocations: 54.33 kB / 450.7 MB, free: 40.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.508e-06/0.1891, allocations: 11.31 kB / 450.7 MB, free: 40.08 MB / 410.7 MB Notification: Performance of SimCode: time 3.6e-07/0.1891, allocations: 0 / 450.7 MB, free: 40.08 MB / 410.7 MB Notification: Performance of Templates: time 0.003011/0.1921, allocations: 3.364 MB / 454 MB, free: 39.82 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 6.018877116963267]