Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001322/0.001322, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.00142/0.00142, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.466/1.466, allocations: 177.2 MB / 204.9 MB, free: 9.055 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2097/0.2097, allocations: 32.8 MB / 294.1 MB, free: 60 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 67.89 kB / 440.6 MB, free: 9.488 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3079, allocations: 65.43 MB / 0.4941 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001503/0.3094, allocations: 0.5072 MB / 0.4946 GB, free: 31.08 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.3116, allocations: 2 MB / 0.4966 GB, free: 29.74 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.412e-05/0.3116, allocations: 0 / 0.4966 GB, free: 29.74 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.3116, allocations: 0 / 0.4966 GB, free: 29.74 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.36e-06/0.3116, allocations: 0 / 0.4966 GB, free: 29.74 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.00131/0.3129, allocations: 0.5251 MB / 0.4971 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.096e-05/0.313, allocations: 0 / 0.4971 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.309e-05/0.313, allocations: 0 / 0.4971 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.14e-05/0.313, allocations: 7.359 kB / 0.4971 GB, free: 29.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.761e-05/0.3131, allocations: 0 / 0.4971 GB, free: 29.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.981e-06/0.3131, allocations: 0 / 0.4971 GB, free: 29.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008769/0.3139, allocations: 0.6461 MB / 0.4977 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.3139, allocations: 0 / 0.4977 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.703e-05/0.314, allocations: 2.938 kB / 0.4977 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.3144, allocations: 383.1 kB / 0.4981 GB, free: 29.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.3144, allocations: 0 / 0.4981 GB, free: 29.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3144, allocations: 0 / 0.4981 GB, free: 29.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.3144, allocations: 4 kB / 0.4981 GB, free: 29.23 MB / 446.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.0003145/0.3147, allocations: 349.2 kB / 0.4984 GB, free: 28.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.3148, allocations: 8.969 kB / 0.4984 GB, free: 28.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.3148, allocations: 4.875 kB / 0.4985 GB, free: 28.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.671e-05/0.3149, allocations: 105.5 kB / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.3149, allocations: 384 / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-06/0.3149, allocations: 384 / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.716e-05/0.3149, allocations: 66.17 kB / 0.4986 GB, free: 28.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.315, allocations: 0 / 0.4986 GB, free: 28.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.026e-06/0.315, allocations: 3 kB / 0.4986 GB, free: 28.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.315, allocations: 4 kB / 0.4986 GB, free: 28.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.288e-05/0.315, allocations: 29.64 kB / 0.4987 GB, free: 28.65 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.617e-05/0.3151, allocations: 96.36 kB / 0.4987 GB, free: 28.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.075e-05/0.3151, allocations: 43.34 kB / 0.4988 GB, free: 28.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.708e-05/0.3151, allocations: 38.08 kB / 0.4988 GB, free: 28.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.637e-06/0.3151, allocations: 0 / 0.4988 GB, free: 28.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.3152, allocations: 59.2 kB / 0.4989 GB, free: 28.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3152, allocations: 0 / 0.4989 GB, free: 28.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001527/0.3153, allocations: 127.2 kB / 0.499 GB, free: 28.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.3153, allocations: 81.11 kB / 0.4991 GB, free: 28.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.292e-05/0.3154, allocations: 93.98 kB / 0.4992 GB, free: 28.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-06/0.3154, allocations: 25.7 kB / 0.4992 GB, free: 28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.847e-06/0.3154, allocations: 80.14 kB / 0.4993 GB, free: 27.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.3154, allocations: 3.062 kB / 0.4993 GB, free: 27.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-05/0.3154, allocations: 9.719 kB / 0.4993 GB, free: 27.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.141e-05/0.3155, allocations: 313.8 kB / 0.4996 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.3155, allocations: 29.12 kB / 0.4996 GB, free: 27.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-06/0.3155, allocations: 32.8 kB / 0.4996 GB, free: 27.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/0.3155, allocations: 67.39 kB / 0.4997 GB, free: 27.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3155, allocations: 4.062 kB / 0.4997 GB, free: 27.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.216e-05/0.3156, allocations: 90.8 kB / 0.4998 GB, free: 27.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3156, allocations: 32.08 kB / 0.4998 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3156, allocations: 0 / 0.4998 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3156, allocations: 3.938 kB / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.3156, allocations: 0 / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3156, allocations: 3.094 kB / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.371e-05/0.3156, allocations: 0 / 0.4998 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.3156, allocations: 0 / 0.4998 GB, free: 27.3 MB / 446.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.689e-05/0.3157, allocations: 143 kB / 0.5 GB, free: 27.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-06/0.3157, allocations: 4.031 kB / 0.5 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.917e-06/0.3157, allocations: 6.938 kB / 0.5 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3157, allocations: 2.969 kB / 0.5 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3157, allocations: 0 / 0.5 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3157, allocations: 0 / 0.5 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.641e-05/0.3157, allocations: 93.33 kB / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3157, allocations: 6.844 kB / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3157, allocations: 0 / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3157, allocations: 7.359 kB / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-06/0.3158, allocations: 0 / 0.5001 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3158, allocations: 3.938 kB / 0.5001 GB, free: 27.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3158, allocations: 4 kB / 0.5001 GB, free: 27.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.925e-05/0.3158, allocations: 125 kB / 0.5002 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-06/0.3158, allocations: 3.25 kB / 0.5002 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.868e-06/0.3158, allocations: 0 / 0.5002 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.3158, allocations: 3.938 kB / 0.5002 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.928e-06/0.3159, allocations: 0 / 0.5002 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.3159, allocations: 7.438 kB / 0.5002 GB, free: 26.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.969e-06/0.3159, allocations: 75.31 kB / 0.5003 GB, free: 26.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3159, allocations: 0 / 0.5003 GB, free: 26.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003723/0.3162, allocations: 128.8 kB / 0.5004 GB, free: 26.76 MB / 446.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.000604/0.3168, allocations: 329.4 kB / 0.5007 GB, free: 26.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.317, allocations: 110 kB / 0.5008 GB, free: 26.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.317, allocations: 3.188 kB / 0.5008 GB, free: 26.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.099e-05/0.317, allocations: 83.77 kB / 0.5009 GB, free: 26.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.3171, allocations: 4.125 kB / 0.5009 GB, free: 26.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001507/0.3172, allocations: 117.9 kB / 0.501 GB, free: 26.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.518e-05/0.3173, allocations: 57.92 kB / 0.5011 GB, free: 26.15 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.21e-06/0.3173, allocations: 0 / 0.5011 GB, free: 26.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.001e-05/0.3173, allocations: 8.5 kB / 0.5011 GB, free: 26.14 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3173, allocations: 0 / 0.5011 GB, free: 26.14 MB / 446.1 MB Notification: Performance of Templates: time 0.006265/0.3236, allocations: 3.518 MB / 0.5045 GB, free: 25.85 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.9908925630152225]