/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 153 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7421
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2311.0+0205_daily_bin560
RA = 347.766, Dec = 2.0995
tmin = 384480001, tmax = 384739201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='675875', job_status='RUN', time_executed='2021-09-29 07:28:18.320857', time_epoch_executed='1632925698.32' WHERE source_name='4FGL J2311.0+0205' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675875

Creating custom pfile directory:
/scratch/kocevski/675875/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=384480001.0 && nMetStart<384739201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=384480001.0 && nMetStart<384739201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675875/ft1_4FGL_J2311.0+0205_daily_bin560.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=384480001.0 && nMetStart<384739201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675875/ft1_4FGL_J2311.0+0205_daily_bin560.fits outfile=/scratch/kocevski/675875/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin560.fits ra=347.766 dec=2.0995 rad=12.0 tmin=384480001.0 tmax=384739201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.04
user 3.81
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/675875/ft1_filteredMKT_4FGL_J2311.0+0205_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/675875/ltcube_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits
.....................!
real 11.68
user 11.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/675875/ltcube_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits outfile=/scratch/kocevski/675875/expmap_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/675875/ltcube_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits
.....................!
real 190.00
user 184.87
sys 4.79

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2311.0+0205 @ 347.766 2.0995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits scfile=/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits outfile=/scratch/kocevski/675875/cmap_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=347.766 yref=2.0995 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.68
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits scfile=/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits outfile=/scratch/kocevski/675875/cmap_HighResolution_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=347.766 yref=2.0995 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.60
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675875/Model_4FGL_J2311.0+0205_daily_bin560.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits.....................!
real 73.59
user 72.19
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits', '/scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits', expMap='/scratch/kocevski/675875/expmap_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits', expCube='/scratch/kocevski/675875/ltcube_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675875/Model_4FGL_J2311.0+0205_daily_bin560.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+0205'

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  6.504e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/675875/ft1_filtered_4FGL_J2311.0+0205_daily_bin560.fits
Spacecraft file(s): /scratch/kocevski/675875/ft2_4FGL_J2311.0+0205_daily_bin560.fits
Exposure map: /scratch/kocevski/675875/expmap_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits
Exposure cube: /scratch/kocevski/675875/ltcube_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675875/Model_4FGL_J2311.0+0205_daily_bin560.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7337.4503216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7336.59255428

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    29.098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .76656E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.2126       1.0000         .10000E-03   10000.    
     9 'norm      '    15.005       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.600       1.0000         .10000E-03   10000.    
    12 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    202.78       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.096       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.845       1.0000         .10000E-03   10000.    
    17 'norm      '    38.384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    145.65       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.208       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11373E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1295       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91760       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7336.593     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2645 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3023       -.11296E-06** at limit **
   2  norm          29.097        21.668        .76864E-06   -.22610E-05
   3  Prefactor     43.660        32.838        .64899E-06   -.14154E-04
   4  Prefactor     .10000E-03    124.71       -.75186E-04** at limit **
   5  Prefactor     43.617        24.770        .70638E-06    .14417E-04
   6  Prefactor     57.492        62.914        .14239E-05    .38890E-04
   7  Prefactor     .10000E-03    6.1387       -.15201E-05** at limit **
   8  norm          8.2120        2.1097        .10264E-05    .14338E-02
   9  norm          15.001        10.454       -.95140E-06    .21105E-03
  10  Prefactor     5.6996        6.4941        .49708E-06   -.99318E-04
  11  Prefactor     14.563        41.346        .31391E-05    .30144E-04
  12  norm          .10000E-03    3.5031        .31061E-05** at limit **
  13  Prefactor     .10000E-03    2.2851        .11303E-05** at limit **
  14  Prefactor     203.48        196.71       -.16487E-04    .43390E-04
  15  Prefactor     18.072        19.889        .42053E-06    .74611E-03
  16  Prefactor     36.827        28.899       -.34121E-06   -.70715E-04
  17  norm          38.382        32.623        .22185E-05    .53452E-03
  18  Prefactor     145.64        103.31        .20752E-05    .66982E-04
  19  Prefactor     .10000E-03    2.6916       -.99659E-05** at limit **
  20  Prefactor     63.224        44.662        .41793E-06    .75756E-04
  21  Prefactor     .10000E-03    51.464       -.37079E-05** at limit **
  22  Normalizat    1.1294        .24837       -.27296E-05    .37011E-03
  23  Prefactor     .91772        .14100        .18572E-06   -.38579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 29.0973
  Prefactor  = 43.6598
  Prefactor  = 0.000100001
  Prefactor  = 43.6174
  Prefactor  = 57.4915
  Prefactor  = 0.0001
  norm       = 8.21204
  norm       = 15.0015
  Prefactor  = 5.69958
  Prefactor  = 14.5627
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 203.484
  Prefactor  = 18.0716
  Prefactor  = 36.8269
  norm       = 38.3823
  Prefactor  = 145.636
  Prefactor  = 0.0001
  Prefactor  = 63.2237
  Prefactor  = 0.0001
  Normalizat = 1.12935
  Prefactor  = 0.917718
 **********
 **   18 **HESSE 
 **********

 FCN=   7336.593     FROM HESSE     STATUS=OK           374 CALLS     3019 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3125        .15201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.097        21.789        .74272E-04   -1.4629    
   3  Prefactor     43.660        32.854        .60674E-04   -1.4385    
   4  Prefactor     .10000E-03    9.0602        .72487E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.617        24.776        .60700E-04   -1.4386    
   6  Prefactor     57.492        62.979        .52910E-04   -1.4190    
   7  Prefactor     .10000E-03    6.1440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.2120        2.1119        .56627E-04   -1.5135    
   9  norm          15.001        10.447        .10340E-03   -1.4933    
  10  Prefactor     5.6996        6.4886        .16828E-03   -1.5230    
  11  Prefactor     14.563        41.374        .10482E-03   -1.4945    
  12  norm          .10000E-03    3.5197        .15650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2932        .12644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     203.48        196.77        .14190E-03   -1.2845    
  15  Prefactor     18.072        19.922        .94151E-04   -1.4857    
  16  Prefactor     36.827        28.926        .66026E-04   -1.4494    
  17  norm          38.382        32.671        .64693E-04   -1.4468    
  18  Prefactor     145.64        103.41        .33388E-04   -1.3288    
  19  Prefactor     .10000E-03    2.7061        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.224        44.762        .50474E-04   -1.4116    
  21  Prefactor     .10000E-03    51.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1294        .29035        .35019E-03   -.88815    
  23  Prefactor     .91772        .16460        .23400E-03   -.95525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91153e-09
Minuit parameter uncertainties:
  1  1.22665e-06
  2  21.7946
  3  32.8676
  4  0.000194938
  5  24.782
  6  63.0517
  7  4.29839e-06
  8  2.11193
  9  10.448
  10  6.48944
  11  41.4556
  12  2.7087e-07
  13  2.36588e-06
  14  197.415
  15  19.9294
  16  28.937
  17  32.6861
  18  103.539
  19  6.48842e-06
  20  44.7854
  21  0.000208149
  22  0.290766
  23  0.164692
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7336.59254252

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  4.362e+01  2.478e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.177e-01  1.647e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.129e+00  2.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.97
Ra Dec: 347.766 2.099
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 8.19e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 2.14e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7336.42151313
delta logL = 0.171029386162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7336.40368442
delta logL = 0.188858098861

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.518       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9144       1.0000          .0000       10.000    
     3 'Normalizat'    1.1505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91009       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7336.404     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      305 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.501        29.372        .28212E-03   -.42313E-05
   2  Index         1.9139        .42459        .69198E-02    .40350E-05
   3  Normalizat    1.1505        .26638        .34740E-03   -.40448E-04
   4  Prefactor     .90993        .16241        .23488E-03    .51500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.5006
  Index      = 1.91389
  Normalizat = 1.15052
  Prefactor  = 0.909931
 **********
 **   18 **HESSE 
 **********

 FCN=   7336.404     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.501        29.228        .11285E-04   -1.4285    
   2  Index         1.9139        .42236        .27679E-03   -.66521    
   3  Normalizat    1.1505        .26656        .13896E-04   -.88146    
   4  Prefactor     .90993        .16254        .93952E-05   -.95795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71974e-11
Minuit parameter uncertainties:
  1  29.2362
  2  0.423173
  3  0.266873
  4  0.162632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675875': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7336.40368065
delta logL = 0.188861864216

Extracting fit parameters...

4FGL J2311.0+0205
   Spectrum: PowerLaw
368    Prefactor:  5.050e+01  2.924e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  1.914e+00  4.232e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.099e-01  1.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.151e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 347.766 2.099
Photon Index (Free Index): 1.91 +/- 0.42
Photon Flux (Free Index): 6.27e-08 +/- 4.78e-08
Energy Flux (Free Index): 5.41e-05 +/- 4.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/675875/cmap_HighResolution_384480001_384739201_4FGL_J2311.0+0205_daily_bin560.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/675875

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.19e-08', energy_flux2='5.41e-05', photon_flux_error='4.65e-08', dlogl='1.89e-01', energy_flux='3.78e-05', photon_flux2='6.27e-08', job_status='DONE', time_completed='2021-09-29 07:39:01.198081', photon_index_error2='0.42', photon_index2='1.91', ts='6.97', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='4.66e-05', EG='1.13', time_epoch_completed='1632926341.2', return_code='0', job_id='675875', GAL2='0.91', EG2='1.15', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='4.78e-08', ts2='7.30', photon_index='2.19' WHERE bin_id='560' AND source_name='4FGL J2311.0+0205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 675875: <4FGL_J2311.0+0205_daily_bin560> in cluster <slac> Done

Job <4FGL_J2311.0+0205_daily_bin560> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:25:34 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:25:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:25:35 2021
Terminated at Wed Sep 29 07:39:01 2021
Results reported at Wed Sep 29 07:39:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+0205_daily_bin560 347.766 2.0995 384480001 384739201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+0205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

The output (if any) is above this job summary.

