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.0008677/0.0008677, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001797/0.002665, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001173/0.001173, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001641/0.002814, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.009/1.009, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1006/1.109, allocations: 53.65 MB / 243.4 MB, free: 15.51 MB / 250.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.2961/0.2961, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02674/0.3228, allocations: 13.1 MB / 291.5 MB, free: 7.336 MB / 282.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.403e-06/1.403e-06, allocations: 0 / 292.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.087e-05/2.227e-05, allocations: 4.812 kB / 292.8 MB, free: 6.207 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001278/0.0013, allocations: 0.5713 MB / 293.4 MB, free: 5.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.00344, allocations: 2.063 MB / 295.5 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.246e-05/0.003452, allocations: 4 kB / 295.5 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.288e-06/0.003456, allocations: 0 / 295.5 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.71e-07/0.003457, allocations: 0 / 295.5 MB, free: 3.547 MB / 282.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.001068/0.004525, allocations: 482.2 kB / 295.9 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.433e-05/0.00458, allocations: 4 kB / 295.9 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.678e-05/0.004616, allocations: 4 kB / 295.9 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.597e-05/0.004652, allocations: 0 / 295.9 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.95e-05/0.004672, allocations: 3.984 kB / 296 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.004679, allocations: 4 kB / 296 MB, free: 3.059 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.005691, allocations: 0.6782 MB / 296.6 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.005703, allocations: 3.938 kB / 296.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.133e-05/0.005714, allocations: 0 / 296.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004698/0.006184, allocations: 367.1 kB / 297 MB, free: 2.016 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.006192, allocations: 3.938 kB / 297 MB, free: 2.012 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.006194, allocations: 0 / 297 MB, free: 2.012 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.006202, allocations: 0 / 297 MB, free: 2.012 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.0003416/0.006544, allocations: 365.6 kB / 297.4 MB, free: 1.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.006575, allocations: 8.031 kB / 297.4 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.006603, allocations: 0.9375 kB / 297.4 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.445e-05/0.006657, allocations: 109.8 kB / 297.5 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.006666, allocations: 4.359 kB / 297.5 MB, free: 1.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.006674, allocations: 384 / 297.5 MB, free: 1.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.815e-05/0.006732, allocations: 59.97 kB / 297.5 MB, free: 1.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.718e-06/0.006737, allocations: 192 / 297.5 MB, free: 1.41 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.982e-06/0.006743, allocations: 384 / 297.5 MB, free: 1.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.006747, allocations: 3.938 kB / 297.5 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.503e-05/0.006762, allocations: 29.7 kB / 297.6 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.692e-05/0.006819, allocations: 57.05 kB / 297.6 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.757e-05/0.006857, allocations: 52.23 kB / 297.7 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.611e-05/0.006873, allocations: 30.56 kB / 297.7 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-06/0.006876, allocations: 8 kB / 297.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.006906, allocations: 60.27 kB / 297.8 MB, free: 1.113 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.006907, allocations: 0 / 297.8 MB, free: 1.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001045/0.007011, allocations: 118.7 kB / 297.9 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.007065, allocations: 154.2 kB / 298 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.77e-05/0.007103, allocations: 89.86 kB / 298.1 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.935e-06/0.007111, allocations: 25.7 kB / 298.2 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.035e-05/0.007131, allocations: 84.14 kB / 298.2 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.007151, allocations: 4.688 kB / 298.2 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.272e-05/0.007174, allocations: 9.719 kB / 298.2 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.465e-05/0.007248, allocations: 322.8 kB / 298.6 MB, free: 232 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.579e-05/0.007264, allocations: 25.83 kB / 298.6 MB, free: 200 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.175e-05/0.007276, allocations: 33.7 kB / 298.6 MB, free: 160 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.899e-05/0.007315, allocations: 60.27 kB / 298.7 MB, free: 84 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.007317, allocations: 0 / 298.7 MB, free: 84 kB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.63e-05/0.007393, allocations: 89.03 kB / 298.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.007427, allocations: 29.7 kB / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.007431, allocations: 4 kB / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-06/0.00744, allocations: 0 / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.392e-06/0.007441, allocations: 0 / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.415e-06/0.007443, allocations: 0 / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.364e-05/0.007457, allocations: 4.094 kB / 298.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.007463, allocations: 3.938 kB / 298.8 MB, free: 15.93 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.273e-05/0.007526, allocations: 143.5 kB / 298.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-06/0.007532, allocations: 0 / 298.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-06/0.00754, allocations: 3 kB / 299 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.007542, allocations: 4 kB / 299 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.007546, allocations: 7.984 kB / 299 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.007548, allocations: 0 / 299 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.993e-05/0.007598, allocations: 69.84 kB / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.007598, allocations: 0 / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.353e-06/0.0076, allocations: 8 kB / 299 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-06/0.007604, allocations: 0 / 299 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.007605, allocations: 0 / 299 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.00761, allocations: 3.984 kB / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.00761, allocations: 0 / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.007611, allocations: 3.938 kB / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.488e-05/0.007686, allocations: 120.4 kB / 299.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.788e-06/0.007696, allocations: 0 / 299.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.689e-06/0.0077, allocations: 0 / 299.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-06/0.007709, allocations: 0 / 299.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.007711, allocations: 4.031 kB / 299.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.737e-06/0.00772, allocations: 8.859 kB / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00772, allocations: 0 / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003148/0.008035, allocations: 135.5 kB / 299.3 MB, free: 15.36 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.0005838/0.008619, allocations: 331.8 kB / 299.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.008722, allocations: 127.7 kB / 299.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.008726, allocations: 0 / 299.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.172e-05/0.008757, allocations: 89.91 kB / 299.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.286e-05/0.00881, allocations: 9.469 kB / 299.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001609/0.008971, allocations: 118.4 kB / 300 MB, free: 14.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.831e-05/0.008999, allocations: 55.36 kB / 300 MB, free: 14.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.82e-06/0.009005, allocations: 0 / 300 MB, free: 14.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.009038, allocations: 51.38 kB / 300.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.009039, allocations: 0 / 300.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of Templates: time 0.006382/0.01542, allocations: 4.146 MB / 304.2 MB, free: 10.37 MB / 298.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",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.025260335765779]