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.001484/0.001484, allocations: 83.59 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001502/0.001502, allocations: 168.2 kB / 23.96 MB, free: 4.16 MB / 14.72 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 1.499/1.499, allocations: 177.1 MB / 204.3 MB, free: 9.207 MB / 190.1 MB " [Timeout remaining time 178] 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.2214/0.2214, allocations: 34.28 MB / 295 MB, free: 14.6 MB / 286.1 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.733e-06/1.733e-06, allocations: 0 / 442.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.044e-05/3.217e-05, allocations: 6.219 kB / 442.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001649/0.001682, allocations: 0.5076 MB / 443.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003488/0.005169, allocations: 2.012 MB / 445.2 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.229e-05/0.005192, allocations: 4 kB / 445.2 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.005205, allocations: 0 / 445.2 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-06/0.005212, allocations: 0 / 445.2 MB, free: 2.895 MB / 366.1 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.00164/0.006851, allocations: 0.5174 MB / 445.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.812e-05/0.006899, allocations: 4 kB / 445.7 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.895e-05/0.006938, allocations: 3.984 kB / 445.7 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.804e-05/0.006966, allocations: 4 kB / 445.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.385e-05/0.00699, allocations: 0 / 445.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.136e-06/0.006998, allocations: 0 / 445.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.008213, allocations: 0.6431 MB / 446.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.219e-05/0.008225, allocations: 0 / 446.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.744e-05/0.008253, allocations: 11.94 kB / 446.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007434/0.008996, allocations: 462.8 kB / 446.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.009, allocations: 0 / 446.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.009002, allocations: 0 / 446.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.009007, allocations: 4 kB / 446.8 MB, free: 1.254 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.0004984/0.009506, allocations: 343.3 kB / 447.2 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.009551, allocations: 16.03 kB / 447.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.009585, allocations: 0.9375 kB / 447.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.151e-05/0.009677, allocations: 101.8 kB / 447.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.009689, allocations: 384 / 447.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.0097, allocations: 4.359 kB / 447.3 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.009812, allocations: 55.97 kB / 447.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.009821, allocations: 192 / 447.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.009832, allocations: 4.375 kB / 447.3 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.00984, allocations: 3.938 kB / 447.4 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.091e-05/0.009881, allocations: 29.7 kB / 447.4 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.01002, allocations: 101.3 kB / 447.5 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.506e-05/0.01009, allocations: 48.3 kB / 447.5 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.717e-05/0.01013, allocations: 30.56 kB / 447.6 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.01014, allocations: 0 / 447.6 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.987e-05/0.0102, allocations: 64.33 kB / 447.6 MB, free: 328 kB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.0102, allocations: 0 / 447.6 MB, free: 328 kB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002264/0.01043, allocations: 126.7 kB / 447.7 MB, free: 176 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.01049, allocations: 81.05 kB / 447.8 MB, free: 76 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1844/0.1949, allocations: 89.86 kB / 447.9 MB, free: 19.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.1949, allocations: 27.77 kB / 447.9 MB, free: 19.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.086e-05/0.1949, allocations: 80.92 kB / 448 MB, free: 19.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.1949, allocations: 2.109 kB / 448 MB, free: 19.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.195, allocations: 15.92 kB / 448 MB, free: 19.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.195, allocations: 313.4 kB / 448.3 MB, free: 18.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.944e-05/0.195, allocations: 26.64 kB / 448.4 MB, free: 18.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.562e-05/0.195, allocations: 31.39 kB / 448.4 MB, free: 18.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.689e-05/0.1951, allocations: 65.38 kB / 448.5 MB, free: 18.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1951, allocations: 0 / 448.5 MB, free: 18.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.084e-05/0.1952, allocations: 89.03 kB / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.1952, allocations: 33.88 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1952, allocations: 0 / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1952, allocations: 1.094 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.402e-06/0.1952, allocations: 0.6562 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1952, allocations: 4.75 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.774e-05/0.1952, allocations: 0.9688 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.1952, allocations: 1.688 kB / 448.6 MB, free: 18.7 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 4.943e-05/0.1953, allocations: 139.2 kB / 448.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.1953, allocations: 1.906 kB / 448.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.103e-05/0.1953, allocations: 4.672 kB / 448.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1953, allocations: 0.75 kB / 448.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1953, allocations: 4.875 kB / 448.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1953, allocations: 0 / 448.7 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.458e-05/0.1954, allocations: 101.2 kB / 448.8 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1954, allocations: 0 / 448.8 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.1954, allocations: 3.438 kB / 448.8 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1954, allocations: 1.922 kB / 448.8 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.1954, allocations: 2.875 kB / 448.8 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1954, allocations: 5.734 kB / 448.9 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1954, allocations: 3.938 kB / 448.9 MB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.191e-05/0.1955, allocations: 118 kB / 449 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-06/0.1955, allocations: 3.891 kB / 449 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1955, allocations: 4.828 kB / 449 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-06/0.1955, allocations: 2.531 kB / 449 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.077e-05/0.1955, allocations: 4.5 kB / 449 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.1955, allocations: 1.188 kB / 449 MB, free: 18.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.09e-05/0.1955, allocations: 75.28 kB / 449.1 MB, free: 18.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1955, allocations: 1.125 kB / 449.1 MB, free: 18.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.196, allocations: 132.8 kB / 449.2 MB, free: 18.21 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.0007286/0.1967, allocations: 334.4 kB / 449.5 MB, free: 18.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.761e-05/0.1968, allocations: 115.9 kB / 449.6 MB, free: 17.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1968, allocations: 0 / 449.6 MB, free: 17.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.22e-05/0.1969, allocations: 81.72 kB / 449.7 MB, free: 17.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.197, allocations: 13.47 kB / 449.7 MB, free: 17.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001638/0.1971, allocations: 108.2 kB / 449.8 MB, free: 17.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.391e-05/0.1972, allocations: 55.05 kB / 449.9 MB, free: 17.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.851e-06/0.1972, allocations: 1.094 kB / 449.9 MB, free: 17.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.2e-05/0.1972, allocations: 9.562 kB / 449.9 MB, free: 17.69 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1972, allocations: 0 / 449.9 MB, free: 17.69 MB / 366.1 MB Notification: Performance of Templates: time 0.008287/0.2055, allocations: 3.555 MB / 453.4 MB, free: 17.45 MB / 366.1 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: 5.0743054039776325]