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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin61
RA = 185.378, Dec = 28.2382
tmin = 255139201, tmax = 255398401
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='524749', job_status='RUN', time_executed='2021-09-05 09:39:05.926629', time_epoch_executed='1630859945.93' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524749/ft1_4FGL_J1221.5+2814_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524749/ft1_4FGL_J1221.5+2814_daily_bin61.fits outfile=/scratch/kocevski/524749/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin61.fits ra=185.378 dec=28.2382 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.60
user 7.16
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.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/524749/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.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.69
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/524749/ltcube_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.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/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits
.....................!
real 11.85
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/524749/ltcube_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.fits outfile=/scratch/kocevski/524749/expmap_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.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/524749/ltcube_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.fits
.....................!
real 191.97
user 184.78
sys 6.26

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

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits scfile=/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits outfile=/scratch/kocevski/524749/cmap_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.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=185.378 yref=28.2382 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits scfile=/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits outfile=/scratch/kocevski/524749/cmap_HighResolution_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.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=185.378 yref=28.2382 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524749/Model_4FGL_J1221.5+2814_daily_bin61.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/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits.....................!
real 46.44
user 45.07
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits', '/scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits', expMap='/scratch/kocevski/524749/expmap_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.fits', expCube='/scratch/kocevski/524749/ltcube_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524749/Model_4FGL_J1221.5+2814_daily_bin61.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524749/ft1_filtered_4FGL_J1221.5+2814_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/524749/ft2_4FGL_J1221.5+2814_daily_bin61.fits
Exposure map: /scratch/kocevski/524749/expmap_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.fits
Exposure cube: /scratch/kocevski/524749/ltcube_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524749/Model_4FGL_J1221.5+2814_daily_bin61.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) = 5014.8060018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1089       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.995       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73240       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5374       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2709       1.0000         .10000E-03   10000.    
    17 'norm      '    .34851       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33515E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.0112       1.0000         .10000E-03   10000.    
    27 'norm      '    6.0027       1.0000         .10000E-03   10000.    
    28 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0161       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5014.800     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4055 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7509        .18691E-05** at limit **
   2  Prefactor     7.1091        8.3387        .60961E-06    .34000E-04
   3  Prefactor     .10000E-03    4.2427        .71950E-06** at limit **
   4  Prefactor     .10000E-03    9.4386       -.39795E-05** at limit **
   5  Prefactor     .45206        1.2723       -.82759E-06   -.16616E-02
   6  Prefactor     20.045        31.684       -.55271E-04   -.69009E-04
   7  norm          1.3222        1.0870       -.15409E-06    .92848E-04
   8  Prefactor     .10001E-03    2.3025        .22463E-06** at limit **
   9  Prefactor     16.911        40.924        .68799E-04    .82051E-04
  10  Prefactor     2.8447        3.4721        .21097E-06   -.19532E-03
  11  Prefactor     .72853        3.0481       -.15686E-05   -.11757E-02
  12  norm          4.8786        2.9031       -.25696E-06   -.65089E-05
  13  Prefactor     9.5346        9.7238       -.27571E-05   -.91746E-04
  14  Prefactor     1.2861        1.3464        .74049E-07    .12660E-03
  15  Prefactor     6.2914        3.1588       -.13711E-06   -.38440E-04
  16  Prefactor     3.2715        4.6827       -.33107E-06   -.18451E-03
  17  norm          .34856        .23474       -.10474E-06   -.35149E-03
  18  norm          .10000E-03    2.3678        .43602E-06** at limit **
  19  Prefactor     24.363        14.206       -.43810E-06    .99189E-05
  20  Prefactor     .10013E-03    15.884       -.23795E-05** at limit **
  21  Prefactor     63.552        72.845       -.17482E-04    .11589E-04
  22  Prefactor     .10000E-03    3.7728        .18158E-06** at limit **
  23  Prefactor     .10000E-03    4.1446        .51106E-06** at limit **
  24  norm          .10000E-03    1.8750       -.21113E-06** at limit **
  25  Prefactor     .10000E-03    13.873       -.43784E-07** at limit **
  26  norm          2.0115        2.5393       -.77186E-07   -.62501E-04
  27  norm          6.0011        4.3274        .77173E-06    .11884E-03
  28  norm          .10000E-03    7.0291       -.13411E-05** at limit **
  29  Normalizat    1.0160        .20325        .32485E-05    .55133E-04
  30  Prefactor     .99527        .21902       -.24275E-06    .17230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.10913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.452056
  Prefactor  = 20.0446
  norm       = 1.32215
  Prefactor  = 0.000100007
  Prefactor  = 16.9114
  Prefactor  = 2.84474
  Prefactor  = 0.728529
  norm       = 4.87855
  Prefactor  = 9.53464
  Prefactor  = 1.28607
  Prefactor  = 6.29142
  Prefactor  = 3.27153
  norm       = 0.348559
  norm       = 0.0001
  Prefactor  = 24.3628
  Prefactor  = 0.00010013
  Prefactor  = 63.5523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01148
  norm       = 6.0011
  norm       = 0.0001
  Normalizat = 1.01605
  Prefactor  = 0.995275
 **********
 **   18 **HESSE 
 **********

 FCN=   5014.800     FROM HESSE     STATUS=OK           596 CALLS     4651 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1091        8.3374        .15045E-03   -1.5175    
   3  Prefactor     .10000E-03    4.3776        .28489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .45206        1.1574        .12861E-02   -1.5574    
   6  Prefactor     20.045        31.701        .89571E-04   -1.4812    
   7  norm          1.3222        1.0865        .38253E-04   -1.5478    
   8  Prefactor     .10001E-03    9.9400        .20331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.911        40.866        .97763E-04   -1.4885    
  10  Prefactor     2.8447        3.3165        .12580E-03   -1.5371    
  11  Prefactor     .72853        2.8849        .21861E-03   -1.5537    
  12  norm          4.8786        2.9014        .88828E-04   -1.5266    
  13  Prefactor     9.5346        9.7213        .12976E-03   -1.5090    
  14  Prefactor     1.2861        1.3622        .81109E-04   -1.5481    
  15  Prefactor     6.2914        3.1587        .82686E-04   -1.5206    
  16  Prefactor     3.2715        4.6650        .17690E-03   -1.5346    
  17  norm          .34856        .23222        .26595E-04   -1.5590    
  18  norm          .10000E-03    2.3908        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.363        14.198        .81159E-04   -1.4720    
  20  Prefactor     .10013E-03    74.863        .54827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.552        73.004        .50329E-04   -1.4112    
  22  Prefactor     .10000E-03    3.8026        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1859        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.8880        .94657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.0115        2.5295        .12305E-03   -1.5424    
  27  norm          6.0011        4.3003        .11996E-03   -1.5218    
  28  norm          .10000E-03    7.0591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0160        .23493        .24353E-03   -.92495    
  30  Prefactor     .99527        .25395        .27877E-03   -.92887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00143e-09
Minuit parameter uncertainties:
  1  1.69081e-05
  2  8.3388
  3  8.56121e-05
  4  2.01551e-05
  5  1.15743
  6  31.7277
  7  1.08656
  8  0.000512217
  9  40.9336
  10  3.3167
  11  2.8854
  12  2.90152
  13  9.72288
  14  1.36221
  15  3.15876
  16  4.66552
  17  0.232224
  18  3.17442e-06
  19  14.2
  20  0.00624014
  21  73.1066
  22  1.00102e-05
  23  9.53389e-07
  24  5.85029e-06
  25  3.38954e-06
  26  2.52961
  27  4.30047
  28  6.54906e-05
  29  0.235165
  30  0.25426
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.291e+00  3.159e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.953e-01  2.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.016e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.89
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.21e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 4.53e-05 +/- 2.27e-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) = 5014.27280586
delta logL = 0.527096463316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5014.26293314
delta logL = 0.536969184001

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5014.263     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4029        25.304        .47986E-02    .13987E-02
   2  Index         2.6690        2.7391        .94027E-01    .37237E-03
   3  Normalizat    .94384        .10545        .45457E-01   -.27650E-05
   4  Prefactor     1.0465        .90867E-01    .61647E-01   -.18710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.40292
  Index      = 2.66897
  Normalizat = 0.943844
  Prefactor  = 1.0465
 **********
 **   18 **HESSE 
 **********

 FCN=   5014.263     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4029        3.4689        .56500E-04   -1.5288    
   2  Index         2.6690        .56088        .37181E-02   -.48500    
   3  Normalizat    .94384        .23316        .25081E-03   -.94936    
   4  Prefactor     1.0465        .25698        .27264E-03   -.91195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58258e-10
Minuit parameter uncertainties:
  1  3.46908
  2  0.562395
  3  0.23341
  4  0.257284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524749': 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) = 5014.26293211
delta logL = 0.536970214982

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.403e+00  3.469e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.669e+00  5.624e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.046e+00  2.573e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.438e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.16
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.67 +/- 0.56
Photon Flux (Free Index): 1.52e-07 +/- 7.89e-08
Energy Flux (Free Index): 3.76e-05 +/- 1.60e-05

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/524749/cmap_HighResolution_255139201_255398401_4FGL_J1221.5+2814_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.21e-08', energy_flux2='3.76e-05', photon_flux_error='4.62e-08', dlogl='5.37e-01', energy_flux='4.53e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-05 09:51:35.697337', photon_index_error2='0.56', photon_index2='2.67', ts='10.89', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.02', time_epoch_completed='1630860695.7', return_code='0', job_id='524749', GAL2='1.05', EG2='0.94', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='7.89e-08', ts2='12.16', photon_index='2.15' WHERE bin_id='61' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 524749: <4FGL_J1221.5+2814_daily_bin61> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin61> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:23 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:36:24 2021
Terminated at Sun Sep  5 09:51:36 2021
Results reported at Sun Sep  5 09:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin61 185.378 28.2382 255139201 255398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

