/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 80 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 = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1213.7+6423_daily_bin1215
RA = 183.437, Dec = 64.3961
tmin = 554256001, tmax = 554515201
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='419016', job_status='RUN', time_executed='2021-09-05 04:29:20.448546', time_epoch_executed='1630841360.45' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419016/ft1_4FGL_J1213.7+6423_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419016/ft1_4FGL_J1213.7+6423_daily_bin1215.fits outfile=/scratch/kocevski/419016/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1215.fits ra=183.437 dec=64.3961 rad=12.0 tmin=554256001.0 tmax=554515201.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.13
user 3.80
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.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/419016/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.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.57
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/419016/ltcube_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.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/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits
.....................!
real 13.04
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/419016/ltcube_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.fits outfile=/scratch/kocevski/419016/expmap_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.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/419016/ltcube_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.fits
.....................!
real 195.81
user 185.69
sys 4.62

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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits scfile=/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits outfile=/scratch/kocevski/419016/cmap_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.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=183.437 yref=64.3961 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits scfile=/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits outfile=/scratch/kocevski/419016/cmap_HighResolution_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.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=183.437 yref=64.3961 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419016/Model_4FGL_J1213.7+6423_daily_bin1215.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/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits...!
real 14.02
user 12.59
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits', '/scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits', expMap='/scratch/kocevski/419016/expmap_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.fits', expCube='/scratch/kocevski/419016/ltcube_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/419016/Model_4FGL_J1213.7+6423_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/419016/ft1_filtered_4FGL_J1213.7+6423_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/419016/ft2_4FGL_J1213.7+6423_daily_bin1215.fits
Exposure map: /scratch/kocevski/419016/expmap_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.fits
Exposure cube: /scratch/kocevski/419016/ltcube_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/419016/Model_4FGL_J1213.7+6423_daily_bin1215.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) = 35.6481510779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1559.7       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .47805E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33.58585     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3609 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    201.96       -.75997E-04** at limit **
   2  Prefactor     .10000E-03    7681.0       -.15213E-02** at limit **
   3  Prefactor     .10000E-03    133.44        .63050E-04** at limit **
   4  norm          .10000E-03    16.573        .16726E-06** at limit **
   5  norm          .10000E-03    48.594        .20291E-07** at limit **
   6  Prefactor     .10000E-03    112.89        .14602E-04** at limit **
   7  Prefactor     .10000E-03    1332.0       -.42205E-03** at limit **
   8  Prefactor     .10000E-03    378.90        .13565E-03** at limit **
   9  Prefactor     .10000E-03    1009.1       -.16002E-03** at limit **
  10  Prefactor     .10000E-03    669.74        .13038E-03** at limit **
  11  Prefactor     .10000E-03    340.56        .86315E-04** at limit **
  12  norm          .10000E-03    603.96        .17074E-03** at limit **
  13  norm          .10000E-03    149.70        .33733E-04** at limit **
  14  Prefactor     .10000E-03    271.47       -.26193E-04** at limit **
  15  Prefactor     .10000E-03    834.46       -.42915E-05** at limit **
  16  norm          .10000E-03    105.51       -.38601E-04** at limit **
  17  Prefactor     .10000E-03    1565.0       -.57961E-03** at limit **
  18  Prefactor     1559.8        1230.9        .28850E-04    .54381E-05
  19  Prefactor     .10000E-03    2204.4       -.90029E-03** at limit **
  20  norm          .10000E-03    106.15       -.33307E-04** at limit **
  21  Prefactor     .10000E-03    202.69       -.76535E-04** at limit **
  22  norm          .10000E-03    70.151        .10954E-04** at limit **
  23  Prefactor     .10000E-03    1749.2       -.80404E-04** at limit **
  24  Prefactor     .10000E-03    273.72       -.22611E-04** at limit **
  25  Prefactor     .10000E-03    1015.9       -.16607E-03** at limit **
  26  Prefactor     .10000E-03    539.15        .19516E-03** at limit **
  27  Prefactor     .10000E-03    61.253       -.43486E-05** at limit **
  28  Prefactor     .10000E-03    217.33       -.80784E-04** at limit **
  29  Prefactor     .10000E-03    138.16        .58197E-04** at limit **
  30  Prefactor     .10000E-03    763.22        .57501E-04** at limit **
  31  Normalizat    .10000E-01    .67755        .15931E-05** at limit **
  32  Prefactor     .89982        .91163       -.64623E-05   -.21360E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1559.81
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.89982
 **********
 **   18 **HESSE 
 **********

 FCN=   33.58585     FROM HESSE     STATUS=OK           625 CALLS     4234 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    201.95        .81300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7680.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    133.45        .66006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.575        .23213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    48.594        .39776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    112.89        .60693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1332.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    378.89        .11169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1009.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    669.73        .14925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    340.66        .10579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    603.95        .14157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    149.70        .69933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    271.47        .94370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    834.44        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    105.50        .58667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1564.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1559.8        1230.6        .55123E-04   -.75878    
  19  Prefactor     .10000E-03    2204.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    106.15        .58844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    202.69        .81448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    70.150        .47809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1749.1        .21179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    273.71        .94763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1015.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    539.14        .13360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    61.253        .44668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    217.33        .84360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    138.15        .67170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    763.21        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .67762        .15004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .89982        .91042        .18251E-03   -.96147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6445e-11
Minuit parameter uncertainties:
  1  6.19399e-06
  2  0.000136959
  3  1.87332e-05
  4  4.45214e-06
  5  1.95822e-06
  6  7.19363e-06
  7  3.1576e-05
  8  1.13444e-05
  9  4.01072e-05
  10  4.72938e-05
  11  0.000121946
  12  1.54772e-05
  13  3.51762e-05
  14  6.09995e-05
  15  0.000202662
  16  6.69273e-06
  17  2.37016e-05
  18  1255.49
  19  0.000651346
  20  2.5719e-05
  21  2.38412e-05
  22  1.29772e-05
  23  0.00143194
  24  3.1651e-05
  25  0.000207295
  26  3.57885e-05
  27  3.74905e-05
  28  4.08662e-05
  29  3.51059e-05
  30  2.70314e-05
  31  1.25051e-06
  32  0.926527
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.560e+03  1.255e+03  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.998e-01  9.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.000e-02  1.251e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 183.437 64.396
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.41e-06 +/- 1.94e-06
Energy Flux (Fixed Index): 7.23e-04 +/- 5.82e-04

TS (Fixed Index): 3.73
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 8.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/419016/likelihoodResults_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.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): 0
logL (Free Index) = 33.5706257521
delta logL = 0.0152270836333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33.5310854624
delta logL = 0.0547673733544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    970.65       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8302       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   33.53109     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      232 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     969.70        1715.7        .67557E-04    .83274E-05
   2  Index         2.8308        1.1685        .63946E-04    .20457E-04
   3  Normalizat    .10000E-01    .66385        .14836E-02** at limit **
   4  Prefactor     .91469        .92459        .18296E-03   -.57284E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 969.7
  Index      = 2.83081
  Normalizat = 0.01
  Prefactor  = 0.914694
 **********
 **   18 **HESSE 
 **********

 FCN=   33.53109     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     969.70        1713.7        .13511E-04   -.93746    
   2  Index         2.8308        1.1670        .12789E-04   -.44875    
   3  Normalizat    .10000E-01    .66385        .29673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91469        .92457        .73183E-05   -.95630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20342e-12
Minuit parameter uncertainties:
  1  1827.74
  2  1.18047
  3  1.19346e-06
  4  0.941202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419016': 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) = 33.5310852298
delta logL = 0.054767605967

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  9.697e+02  1.828e+03  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.831e+00  1.180e+00  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.147e-01  9.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.000e-02  1.193e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 183.437 64.396
Photon Index (Free Index): 2.83 +/- 1.18
Photon Flux (Free Index): 2.65e-06 +/- 2.25e-06
Energy Flux (Free Index): 5.82e-04 +/- 5.56e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/419016/cmap_HighResolution_554256001_554515201_4FGL_J1213.7+6423_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-01', comment='SUCCESS', photon_flux='2.41e-06', energy_flux2='5.82e-04', photon_flux_error='1.94e-06', dlogl='5.48e-02', energy_flux='7.23e-04', photon_flux2='2.65e-06', job_status='DONE', time_completed='2021-09-05 04:36:57.378962', photon_index_error2='1.18', photon_index2='2.83', ts='3.73', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.22e-06', energy_flux_error2='5.56e-04', EG='0.01', time_epoch_completed='1630841817.38', return_code='0', job_id='419016', GAL2='0.91', EG2='0.01', return_code2='0', energy_flux_error='5.82e-04', photon_flux_error2='2.25e-06', ts2='3.84', photon_index='2.47' WHERE bin_id='1215' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 419016: <4FGL_J1213.7+6423_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin1215> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 04:27:03 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:27:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:27:05 2021
Terminated at Sun Sep  5 04:36:58 2021
Results reported at Sun Sep  5 04:36:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin1215 183.437 64.3961 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   343.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             235.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            595 sec.

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

