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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin53
RA = 185.378, Dec = 28.2382
tmin = 253065601, tmax = 253324801
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='524739', job_status='RUN', time_executed='2021-09-05 09:38:58.356371', time_epoch_executed='1630859938.36' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524739/ft1_4FGL_J1221.5+2814_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524739/ft1_4FGL_J1221.5+2814_daily_bin53.fits outfile=/scratch/kocevski/524739/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin53.fits ra=185.378 dec=28.2382 rad=12.0 tmin=253065601.0 tmax=253324801.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 1.47
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.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/524739/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.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.52
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/524739/ltcube_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.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/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits
.....................!
real 12.65
user 12.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/524739/ltcube_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.fits outfile=/scratch/kocevski/524739/expmap_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.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/524739/ltcube_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.fits
.....................!
real 194.45
user 187.78
sys 5.01

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/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.fits scfile=/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits outfile=/scratch/kocevski/524739/cmap_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.fits scfile=/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits outfile=/scratch/kocevski/524739/cmap_HighResolution_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.fits', '/scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits', expMap='/scratch/kocevski/524739/expmap_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.fits', expCube='/scratch/kocevski/524739/ltcube_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524739/Model_4FGL_J1221.5+2814_daily_bin53.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/524739/ft1_filtered_4FGL_J1221.5+2814_daily_bin53.fits
Spacecraft file(s): /scratch/kocevski/524739/ft2_4FGL_J1221.5+2814_daily_bin53.fits
Exposure map: /scratch/kocevski/524739/expmap_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.fits
Exposure cube: /scratch/kocevski/524739/ltcube_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524739/Model_4FGL_J1221.5+2814_daily_bin53.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) = 6408.60795894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7714       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.515       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3315       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .74082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0227       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28997E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8944       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9781       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25828       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2255       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.8854       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.422       1.0000         .10000E-03   10000.    
    27 'norm      '    4.8448       1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89298       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=   6408.590     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3923 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8901       -.13933E-09** at limit **
   2  Prefactor     .10000E-03    2.5147       -.31028E-06** at limit **
   3  Prefactor     .10000E-03    2.4117        .80981E-06** at limit **
   4  Prefactor     9.7638        19.080       -.62939E-05   -.67651E-04
   5  Prefactor     .89323        2.0764        .55147E-06   -.76407E-03
   6  Prefactor     29.521        27.141        .63076E-05   -.61192E-04
   7  norm          3.3317        1.2176       -.78359E-08   -.10826E-03
   8  Prefactor     .74132        2.7972       -.60785E-06   -.54371E-03
   9  Prefactor     .10000E-03    17.773        .11374E-04** at limit **
  10  Prefactor     1.0225        2.5445       -.44564E-06   -.11206E-02
  11  Prefactor     .10000E-03    1.6275        .17472E-06** at limit **
  12  norm          5.8944        2.9673       -.29658E-06    .25127E-03
  13  Prefactor     .10000E-03    6.8314       -.23735E-05** at limit **
  14  Prefactor     .10000E-03    2.0921       -.10917E-05** at limit **
  15  Prefactor     4.9784        2.4832        .10286E-06   -.17523E-04
  16  Prefactor     .10000E-03    2.2524        .10811E-05** at limit **
  17  norm          .25825        .24729       -.21510E-07   -.19175E-02
  18  norm          .10000E-03    1.9609        .31103E-06** at limit **
  19  Prefactor     8.2262        7.5473        .63828E-07    .57247E-04
  20  Prefactor     5.8355        10.181       -.74005E-07   -.30466E-04
  21  Prefactor     .10000E-03    32.714       -.33036E-05** at limit **
  22  Prefactor     .10000E-03    2.8291        .48378E-06** at limit **
  23  Prefactor     .10000E-03    2.5718       -.11913E-05** at limit **
  24  norm          7.8871        5.1672        .54891E-07    .65024E-04
  25  Prefactor     .10000E-03    14.899       -.10121E-04** at limit **
  26  norm          11.422        4.5133        .76966E-08   -.14272E-04
  27  norm          4.8431        3.8504       -.25971E-06   -.46622E-03
  28  norm          .10000E-03    7.7867        .35012E-05** at limit **
  29  Normalizat    1.1527        .17326       -.95571E-07    .55940E-04
  30  Prefactor     .89323        .18474        .21632E-06    .29912E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.76377
  Prefactor  = 0.893226
  Prefactor  = 29.5214
  norm       = 3.3317
  Prefactor  = 0.741315
  Prefactor  = 0.0001
  Prefactor  = 1.0225
  Prefactor  = 0.000100001
  norm       = 5.89438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97841
  Prefactor  = 0.0001
  norm       = 0.25825
  norm       = 0.0001
  Prefactor  = 8.22618
  Prefactor  = 5.83553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.88713
  Prefactor  = 0.0001
  norm       = 11.4223
  norm       = 4.84306
  norm       = 0.0001
  Normalizat = 1.15266
  Prefactor  = 0.893229
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.590     FROM HESSE     STATUS=OK           594 CALLS     4517 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8908        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5157        .12398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4380        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7638        18.587        .12819E-03   -1.5083    
   5  Prefactor     .89323        1.9768        .14951E-03   -1.5519    
   6  Prefactor     29.521        26.997        .73747E-04   -1.4621    
   7  norm          3.3317        1.2161        .51090E-04   -1.5343    
   8  Prefactor     .74132        4.1954        .23218E-02   -1.5536    
   9  Prefactor     .10000E-03    17.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0225        2.3587        .17544E-03   -1.5506    
  11  Prefactor     .10000E-03    12.861        .18662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8944        2.9501        .92815E-04   -1.5222    
  13  Prefactor     .10000E-03    7.0709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1603        .22436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9784        2.4802        .83576E-04   -1.5262    
  16  Prefactor     .10000E-03    2.2587        .11728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .25825        .23697        .35954E-03   -1.5606    
  18  norm          .10000E-03    1.9740        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2262        7.5513        .13979E-03   -1.5134    
  20  Prefactor     5.8355        10.173        .16625E-03   -1.5225    
  21  Prefactor     .10000E-03    32.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8417        .13147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5817        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.8871        5.1681        .13960E-03   -1.5146    
  25  Prefactor     .10000E-03    14.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.422        4.5133        .10351E-03   -1.5032    
  27  norm          4.8431        3.8257        .13308E-03   -1.5268    
  28  norm          .10000E-03    7.8516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1527        .20549        .23126E-03   -.88078    
  30  Prefactor     .89323        .21695        .29380E-03   -.96378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38064e-09
Minuit parameter uncertainties:
  1  1.38535e-06
  2  1.33597e-06
  3  1.67629e-05
  4  18.5977
  5  1.97691
  6  27.0079
  7  1.21607
  8  3.52725
  9  9.18531e-05
  10  2.3589
  11  0.000231693
  12  2.95015
  13  9.44218e-06
  14  1.4528e-05
  15  2.4803
  16  6.94899e-08
  17  0.236967
  18  5.87647e-07
  19  7.55213
  20  10.1757
  21  2.94608e-06
  22  4.81111e-07
  23  1.41919e-06
  24  5.16836
  25  1.50705e-05
  26  4.51342
  27  3.82592
  28  1.2825e-05
  29  0.205634
  30  0.217162
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.978e+00  2.480e+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:  8.932e-01  2.172e-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.153e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.29e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.78e-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) = 6408.47725822
delta logL = 0.112558555552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6408.46526254
delta logL = 0.124554235237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2332       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3707       1.0000          .0000       10.000    
     3 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90587       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=   6408.465     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2335        33.137        .48962E-02    .97008E-03
   2  Index         2.3711        2.9742        .13221        .31018E-03
   3  Normalizat    1.1349        .89270E-01    .52637E-01    .66630E-05
   4  Prefactor     .90587        .77671E-01    .66014E-01   -.14814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23354
  Index      = 2.37109
  Normalizat = 1.13485
  Prefactor  = 0.905874
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.465     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2335        2.8227        .73756E-04   -1.5296    
   2  Index         2.3711        .47295        .49283E-02   -.55364    
   3  Normalizat    1.1349        .19224        .23273E-03   -.88640    
   4  Prefactor     .90587        .21510        .29199E-03   -.95936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20761e-10
Minuit parameter uncertainties:
  1  2.82276
  2  0.473929
  3  0.192356
  4  0.215301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524739': 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) = 6408.46525977
delta logL = 0.124557010004

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.234e+00  2.823e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.371e+00  4.739e-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:  9.059e-01  2.153e-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.135e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.25
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.37 +/- 0.47
Photon Flux (Free Index): 8.76e-08 +/- 4.91e-08
Energy Flux (Free Index): 2.99e-05 +/- 1.75e-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/524739/cmap_HighResolution_253065601_253324801_4FGL_J1221.5+2814_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.29e-08', energy_flux2='2.99e-05', photon_flux_error='3.63e-08', dlogl='1.25e-01', energy_flux='3.58e-05', photon_flux2='8.76e-08', job_status='DONE', time_completed='2021-09-05 09:52:16.714805', photon_index_error2='0.47', photon_index2='2.37', ts='7.96', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.15', time_epoch_completed='1630860736.71', return_code='0', job_id='524739', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.91e-08', ts2='8.25', photon_index='2.15' WHERE bin_id='53' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 524739: <4FGL_J1221.5+2814_daily_bin53> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin53> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:22 2021
Job was executed on host(s) <bullet0273>, 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:52:17 2021
Results reported at Sun Sep  5 09:52:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin53 185.378 28.2382 253065601 253324801 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

