/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 128 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 = 7486
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2311.7+2604_daily_bin70
RA = 347.931, Dec = 26.0831
tmin = 257472001, tmax = 257731201
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='688505', job_status='RUN', time_executed='2021-09-29 08:08:02.834681', time_epoch_executed='1632928082.83' WHERE source_name='4FGL J2311.7+2604' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688505/ft1_4FGL_J2311.7+2604_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688505/ft1_4FGL_J2311.7+2604_daily_bin70.fits outfile=/scratch/kocevski/688505/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin70.fits ra=347.931 dec=26.0831 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.02
user 1.83
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.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/688505/ft1_filteredMKT_4FGL_J2311.7+2604_daily_bin70.fits evtable="EVENTS" outfile="/scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.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/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/688505/ltcube_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.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/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits
.....................!
real 14.58
user 14.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/688505/ltcube_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.fits outfile=/scratch/kocevski/688505/expmap_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.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/688505/ltcube_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.fits
.....................!
real 190.69
user 185.07
sys 5.25

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.7+2604 @ 347.931 26.0831

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits scfile=/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits outfile=/scratch/kocevski/688505/cmap_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.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.931 yref=26.0831 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits scfile=/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits outfile=/scratch/kocevski/688505/cmap_HighResolution_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.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.931 yref=26.0831 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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/688505/Model_4FGL_J2311.7+2604_daily_bin70.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/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits.....................!
real 97.40
user 96.00
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits', '/scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits', expMap='/scratch/kocevski/688505/expmap_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.fits', expCube='/scratch/kocevski/688505/ltcube_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/688505/Model_4FGL_J2311.7+2604_daily_bin70.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.7+2604'

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  4.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/688505/ft1_filtered_4FGL_J2311.7+2604_daily_bin70.fits
Spacecraft file(s): /scratch/kocevski/688505/ft2_4FGL_J2311.7+2604_daily_bin70.fits
Exposure map: /scratch/kocevski/688505/expmap_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.fits
Exposure cube: /scratch/kocevski/688505/ltcube_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/688505/Model_4FGL_J2311.7+2604_daily_bin70.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    143.87       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20699       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .59755       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.365       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90924       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9092.545     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2462 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     143.87        104.44         .0000        .23896E-02
   2  Prefactor     .10003E-03    7.0428         .0000    ** at limit **
   3  norm          2.0315        1.1571         .0000        .27437E-03
   4  Prefactor     .10001E-03    59.452         .0000    ** at limit **
   5  norm          1.0725        1.4562         .0000        .11996E-02
   6  Prefactor     .10001E-03    17.964         .0000    ** at limit **
   7  Prefactor     .10005E-03    7.4569         .0000    ** at limit **
   8  Prefactor     .53716        .15035         .0000        .75251E-03
   9  Prefactor     .10000E-03    4.7829         .0000    ** at limit **
  10  Prefactor     .10000E-03    9.7199         .0000    ** at limit **
  11  Prefactor     .19741        5.0372         .0000        .85453E-02
  12  norm          1.7501        1.7125         .0000        .12605E-02
  13  Prefactor     .10002E-03    14.623         .0000    ** at limit **
  14  Prefactor     .10000E-03    4.9221         .0000    ** at limit **
  15  Prefactor     .10000E-03    2.7366         .0000    ** at limit **
  16  norm          .59592        7.2336         .0000        .57752E-01
  17  Prefactor     3.3101        25.576         .0000        .25261E-03
  18  Prefactor     1.7209        22.596         .0000        .22783E-03
  19  Prefactor     .10000E-03    9.6379         .0000    ** at limit **
  20  Prefactor     29.369        30.458         .0000       -.16425E-02
  21  Normalizat    .90893        .19584         .0000        .30186E-04
  22  Prefactor     1.0694        .10251         .0000       -.32296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 143.871
  Prefactor  = 0.000100028
  norm       = 2.03154
  Prefactor  = 0.000100007
  norm       = 1.07249
  Prefactor  = 0.00010001
  Prefactor  = 0.000100051
  Prefactor  = 0.537161
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.197406
  norm       = 1.75012
  Prefactor  = 0.000100019
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.595921
  Prefactor  = 3.31009
  Prefactor  = 1.7209
  Prefactor  = 0.000100002
  Prefactor  = 29.3695
  Normalizat = 0.90893
  Prefactor  = 1.06936
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.545     FROM HESSE     STATUS=OK           350 CALLS     2812 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     143.87        104.37        .16795E-03   -1.3303    
   2  Prefactor     .10003E-03    7.1160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0315        1.1487        .73380E-04   -1.5423    
   4  Prefactor     .10001E-03    61.874        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0725        1.2567        .12985E-02   -1.5501    
   6  Prefactor     .10001E-03    17.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    7.5543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53716        .14938        .18527E-04   -1.5561    
   9  Prefactor     .10000E-03    4.8140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19741        2.6655        .11942       -1.5619    
  12  norm          1.7501        1.6909        .11372E-03   -1.5443    
  13  Prefactor     .10002E-03    14.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7685        .15391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .59592        6.8501        .22099E-02   -1.5554    
  17  Prefactor     3.3101        23.415        .22327E-03   -1.5344    
  18  Prefactor     1.7209        22.674        .32036E-03   -1.5446    
  19  Prefactor     .10000E-03    9.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.369        30.497        .73934E-04   -1.4624    
  21  Normalizat    .90893        .22462        .34520E-03   -.96147    
  22  Prefactor     1.0694        .11874        .17725E-03   -.90452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6123e-08
Minuit parameter uncertainties:
  1  104.508
  2  0.000892316
  3  1.14876
  4  0.00127449
  5  1.25678
  6  0.00086764
  7  0.00123597
  8  0.149381
  9  0.000116644
  10  0.000394693
  11  1.45049
  12  1.69095
  13  0.00105977
  14  0.00014413
  15  4.44788e-06
  16  4.04109
  17  17.6172
  18  12.4987
  19  0.000276448
  20  30.5132
  21  0.224855
  22  0.11877
Done.

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

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  1.060e-03  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.429e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.069e+00  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.089e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 347.931 26.083
Photon Flux Upper Limit: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/688505/likelihoodResults_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.txt

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): 102
logL (Free Index) = 9092.54555687
delta logL = -0.000321428802636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9092.54523542
delta logL = 1.26456143335e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4413       1.0000          .0000       10.000    
     3 'Normalizat'    .90892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   9092.545     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    190.81        .18142E-02** at limit **
   2  Index         2.4998        5.6203        .50000       -.65724E-05
   3  Normalizat    .90893        .16925E-01    .34520E-03   -.20485E-04
   4  Prefactor     1.0694        .94132E-02    .17725E-03   -.10945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101103
  Index      = 2.49981
  Normalizat = 0.90893
  Prefactor  = 1.06936
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    960.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4998        5.5054        .50000       -.52364    
   3  Normalizat    .90893        .41037E-01    .13808E-04   -.96147    
   4  Prefactor     1.0694        .22819E-01    .35450E-04   -.90452    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41802e-08
Minuit parameter uncertainties:
  1  0.0661805
  2  1315.93
  3  0.0410386
  4  0.0228188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688505': 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): 102
logL (Free Index) = 9092.54523536
delta logL = 7.94934749138e-08

Extracting fit parameters...

4FGL J2311.7+2604
   Spectrum: PowerLaw
368    Prefactor:  1.011e-04  6.618e-02  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.500e+00  1.316e+03  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.069e+00  2.282e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.089e-01  4.104e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 347.931 26.083

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/688505/cmap_HighResolution_257472001_257731201_4FGL_J2311.7+2604_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-29 08:21:14.524350', job_id='688505', GAL2='1.07', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632928874.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.95e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='70' AND source_name='4FGL J2311.7+2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:21:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 688505: <4FGL_J2311.7+2604_daily_bin70> in cluster <slac> Done

Job <4FGL_J2311.7+2604_daily_bin70> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 08:05:43 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 08:05:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 08:05:45 2021
Terminated at Wed Sep 29 08:21:15 2021
Results reported at Wed Sep 29 08:21:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.7+2604_daily_bin70 347.931 26.0831 257472001 257731201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.7+2604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

