Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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.0007763/0.0007763, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001459/0.002235, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0007322/0.0007322, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001142/0.001874, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 1.041/1.041, allocations: 177.5 MB / 190 MB, free: 4.805 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1054/1.147, allocations: 53.86 MB / 243.9 MB, free: 14.87 MB / 250.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.2857/0.2857, allocations: 34.89 MB / 279.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02449/0.3102, allocations: 13.24 MB / 292.8 MB, free: 6.398 MB / 282.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 294.1 MB, free: 5.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.707e-05, allocations: 4.703 kB / 294.1 MB, free: 5.105 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00105/0.001067, allocations: 0.563 MB / 294.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.003088, allocations: 2.094 MB / 296.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.271e-05/0.003101, allocations: 0 / 296.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.918e-06/0.003105, allocations: 0 / 296.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.81e-07/0.003106, allocations: 4 kB / 296.8 MB, free: 2.426 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1036:5-1119: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.000961/0.004067, allocations: 482.2 kB / 297.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.404e-05/0.004121, allocations: 11.97 kB / 297.2 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.973e-05/0.004151, allocations: 0 / 297.2 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.964e-05/0.00418, allocations: 4 kB / 297.2 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.692e-05/0.004197, allocations: 0 / 297.2 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.122e-06/0.004203, allocations: 0 / 297.2 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000839/0.005042, allocations: 0.6821 MB / 297.9 MB, free: 1.254 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.005054, allocations: 4 kB / 297.9 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.228e-05/0.005067, allocations: 0 / 297.9 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004669/0.005533, allocations: 375 kB / 298.3 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.005541, allocations: 0 / 298.3 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.005542, allocations: 0 / 298.3 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.005552, allocations: 0 / 298.3 MB, free: 0.8828 MB / 282.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.0003305/0.005882, allocations: 377.5 kB / 298.7 MB, free: 496 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.715e-05/0.005909, allocations: 8.922 kB / 298.7 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.005937, allocations: 0.9375 kB / 298.7 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.942e-05/0.005997, allocations: 109.8 kB / 298.8 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.006007, allocations: 4.359 kB / 298.8 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.006016, allocations: 4.312 kB / 298.8 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.867e-05/0.006085, allocations: 59.97 kB / 298.9 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-06/0.00609, allocations: 192 / 298.9 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-06/0.006095, allocations: 384 / 298.9 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.006099, allocations: 3.938 kB / 298.9 MB, free: 268 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.419e-05/0.006113, allocations: 37.69 kB / 298.9 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.608e-05/0.00617, allocations: 53.05 kB / 298.9 MB, free: 156 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.51e-05/0.006205, allocations: 44.31 kB / 299 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.047e-05/0.006225, allocations: 38.5 kB / 299 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-06/0.006228, allocations: 0 / 299 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.006266, allocations: 60.33 kB / 299.1 MB, free: 15.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.61e-07/0.006266, allocations: 0 / 299.1 MB, free: 15.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001064/0.006373, allocations: 114.8 kB / 299.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.006424, allocations: 154.2 kB / 299.3 MB, free: 15.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.753e-05/0.006451, allocations: 93.98 kB / 299.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.00646, allocations: 25.7 kB / 299.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.948e-05/0.00648, allocations: 84.12 kB / 299.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.006499, allocations: 4.688 kB / 299.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.109e-05/0.00652, allocations: 13.7 kB / 299.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.257e-05/0.006592, allocations: 326.7 kB / 299.9 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.615e-05/0.006609, allocations: 29.64 kB / 299.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.113e-05/0.00662, allocations: 29.7 kB / 299.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.691e-05/0.006657, allocations: 60.27 kB / 300 MB, free: 14.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.006658, allocations: 0 / 300 MB, free: 14.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.107e-05/0.006709, allocations: 93.16 kB / 300.1 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.006744, allocations: 29.7 kB / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.006748, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/0.006758, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-06/0.006759, allocations: 4 kB / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.425e-06/0.006762, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.006777, allocations: 0 / 300.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-06/0.006785, allocations: 3.938 kB / 300.1 MB, free: 14.78 MB / 298.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 6.34e-05/0.006848, allocations: 143.5 kB / 300.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-06/0.006853, allocations: 0 / 300.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-06/0.006861, allocations: 7.031 kB / 300.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.006863, allocations: 0 / 300.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.006865, allocations: 4 kB / 300.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.006868, allocations: 0 / 300.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.484e-05/0.006913, allocations: 61.84 kB / 300.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.92e-07/0.006913, allocations: 0 / 300.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.006914, allocations: 0 / 300.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-06/0.00692, allocations: 8.5 kB / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.51e-07/0.006921, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-06/0.006925, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.006926, allocations: 0 / 300.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.006926, allocations: 4 kB / 300.4 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.821e-05/0.007005, allocations: 120.5 kB / 300.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.849e-06/0.007014, allocations: 0 / 300.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.643e-06/0.007021, allocations: 4 kB / 300.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-06/0.00703, allocations: 7.922 kB / 300.5 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.007033, allocations: 0 / 300.5 MB, free: 14.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.894e-06/0.007041, allocations: 8.859 kB / 300.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007041, allocations: 0 / 300.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.007339, allocations: 135.5 kB / 300.6 MB, free: 14.22 MB / 298.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.0005253/0.007864, allocations: 337.1 kB / 301 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.682e-05/0.007951, allocations: 115.7 kB / 301.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.007957, allocations: 8 kB / 301.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.984e-05/0.007987, allocations: 85.97 kB / 301.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.788e-05/0.008035, allocations: 12.11 kB / 301.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001385/0.008173, allocations: 111.5 kB / 301.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.74e-05/0.008201, allocations: 55.34 kB / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.949e-06/0.008206, allocations: 0 / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.079e-05/0.008237, allocations: 55.36 kB / 301.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.008237, allocations: 0 / 301.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of Templates: time 0.005154/0.01339, allocations: 4.145 MB / 305.5 MB, free: 9.234 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0953199584037066]