/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 2 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 = 7265
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin561
RA = 185.378, Dec = 28.2382
tmin = 384739201, tmax = 384998401
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='527665', job_status='RUN', time_executed='2021-09-05 09:45:58.117184', time_epoch_executed='1630860358.12' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527665/ft1_4FGL_J1221.5+2814_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527665/ft2_4FGL_J1221.5+2814_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527665/ft1_4FGL_J1221.5+2814_daily_bin561.fits outfile=/scratch/kocevski/527665/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin561.fits ra=185.378 dec=28.2382 rad=12.0 tmin=384739201.0 tmax=384998401.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.53
user 4.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/527665/ft2_4FGL_J1221.5+2814_daily_bin561.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/527665/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin561.fits evtable="EVENTS" outfile="/scratch/kocevski/527665/ft1_filtered_4FGL_J1221.5+2814_daily_bin561.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.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527665/ft1_filtered_4FGL_J1221.5+2814_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/527665/ft2_4FGL_J1221.5+2814_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/527665/ltcube_384739201_384998401_4FGL_J1221.5+2814_daily_bin561.fits outfile=/scratch/kocevski/527665/expmap_384739201_384998401_4FGL_J1221.5+2814_daily_bin561.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/527665/ltcube_384739201_384998401_4FGL_J1221.5+2814_daily_bin561.fits
.....................!
real 189.38
user 184.81
sys 4.02

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/527665/ft1_filtered_4FGL_J1221.5+2814_daily_bin561.fits scfile=/scratch/kocevski/527665/ft2_4FGL_J1221.5+2814_daily_bin561.fits outfile=/scratch/kocevski/527665/cmap_384739201_384998401_4FGL_J1221.5+2814_daily_bin561.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527665/ft1_filtered_4FGL_J1221.5+2814_daily_bin561.fits scfile=/scratch/kocevski/527665/ft2_4FGL_J1221.5+2814_daily_bin561.fits outfile=/scratch/kocevski/527665/cmap_HighResolution_384739201_384998401_4FGL_J1221.5+2814_daily_bin561.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.905       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.746       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2223       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8798       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1658       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4898       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7960       1.0000         .10000E-03   10000.    
    17 'norm      '    .30066       1.0000         .10000E-03   10000.    
    18 'norm      '    12.520       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0632       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10722E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.839       1.0000         .10000E-03   10000.    
    26 'norm      '    .19771E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2853       1.0000         .10000E-03   10000.    
    28 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2116       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82034       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=   5798.507     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3954 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.909        16.643       -.16345E-06   -.10209E-03
   2  Prefactor     .10000E-03    17.067        .15061E-06** at limit **
   3  Prefactor     .10000E-03    1.9932       -.39073E-07** at limit **
   4  Prefactor     48.735        29.610        .68476E-06   -.74634E-04
   5  Prefactor     3.4429        2.4469       -.15001E-06   -.16517E-03
   6  Prefactor     .10000E-03    76.070        .42678E-05** at limit **
   7  norm          5.3820        1.8440       -.43963E-07   -.91380E-03
   8  Prefactor     3.2218        5.9120        .53130E-05    .37979E-05
   9  Prefactor     .10000E-03    14.040       -.92103E-06** at limit **
  10  Prefactor     2.3893        4.4204       -.15498E-05   -.10197E-03
  11  Prefactor     .10000E-03    4.0370        .18752E-06** at limit **
  12  norm          4.8800        2.8593       -.38519E-07   -.25422E-03
  13  Prefactor     6.1658        6.6686        .15955E-06   -.50673E-04
  14  Prefactor     .10000E-03    .91053       -.11215E-07** at limit **
  15  Prefactor     5.4914        3.3020        .23598E-07   -.57847E-03
  16  Prefactor     2.7958        6.4620        .32258E-06   -.49209E-04
  17  norm          .30068        .27300        .35832E-07   -.11597E-03
  18  norm          12.521        6.2125        .20166E-08   -.22358E-03
  19  Prefactor     .10000E-03    33.307        .78431E-06** at limit **
  20  Prefactor     .10000E-03    10.119        .12512E-05** at limit **
  21  Prefactor     .10000E-03    53.726       -.61972E-05** at limit **
  22  Prefactor     8.0615        7.7022        .35478E-06   -.90134E-04
  23  Prefactor     .10000E-03    2.5934       -.33372E-07** at limit **
  24  norm          .10000E-03    2.4791        .44800E-07** at limit **
  25  Prefactor     23.839        34.999        .85017E-06    .14153E-04
  26  norm          .10000E-03    3.2447        .31439E-05** at limit **
  27  norm          2.2842        4.1305        .12075E-07   -.20642E-04
  28  norm          .10000E-03    4.0035        .19825E-06** at limit **
  29  Normalizat    1.2116        .20863       -.10941E-05   -.40057E-03
  30  Prefactor     .82037        .22109       -.93327E-06   -.35633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7355
  Prefactor  = 3.44291
  Prefactor  = 0.000100001
  norm       = 5.38203
  Prefactor  = 3.22176
  Prefactor  = 0.0001
  Prefactor  = 2.38933
  Prefactor  = 0.0001
  norm       = 4.88
  Prefactor  = 6.16581
  Prefactor  = 0.0001
  Prefactor  = 5.49143
  Prefactor  = 2.79577
  norm       = 0.300682
  norm       = 12.5213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.8387
  norm       = 0.000100004
  norm       = 2.28419
  norm       = 0.0001
  Normalizat = 1.21159
  Prefactor  = 0.820366
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.507     FROM HESSE     STATUS=OK           588 CALLS     4542 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.909        16.618        .12132E-03   -1.5047    
   2  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9982        .10498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.735        29.667        .57435E-04   -1.4311    
   5  Prefactor     3.4429        2.4394        .92500E-04   -1.5337    
   6  Prefactor     .10000E-03    76.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3820        1.8450        .56956E-04   -1.5244    
   8  Prefactor     3.2218        6.1332        .11264E-02   -1.5349    
   9  Prefactor     .10000E-03    14.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3893        4.3826        .18698E-03   -1.5399    
  11  Prefactor     .10000E-03    4.1273        .29718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8800        2.8567        .94072E-04   -1.5266    
  13  Prefactor     6.1658        6.6675        .16168E-03   -1.5211    
  14  Prefactor     .10000E-03    .91567        .70873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4914        3.2893        .99243E-04   -1.5239    
  16  Prefactor     2.7958        6.4150        .24331E-03   -1.5374    
  17  norm          .30068        .25966        .35146E-03   -1.5598    
  18  norm          12.521        6.1936        .11321E-03   -1.5000    
  19  Prefactor     .10000E-03    34.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0615        7.6629        .14120E-03   -1.5140    
  23  Prefactor     .10000E-03    2.5980        .11975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4882        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.839        34.863        .82040E-04   -1.4731    
  26  norm          .10000E-03    9.5158        .23071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2842        4.0623        .18495E-03   -1.5406    
  28  norm          .10000E-03    4.0100        .14830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2116        .25508        .24753E-03   -.86245    
  30  Prefactor     .82037        .26746        .32311E-03   -.98982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56148e-09
Minuit parameter uncertainties:
  1  16.6246
  2  4.71288e-05
  3  2.7808e-06
  4  29.6755
  5  2.43945
  6  0.000447075
  7  1.845
  8  6.13435
  9  2.76423e-05
  10  4.38318
  11  1.5398e-05
  12  2.85682
  13  6.6683
  14  2.30175e-07
  15  3.2894
  16  6.41653
  17  0.259661
  18  6.19391
  19  0.000234558
  20  2.50029e-05
  21  0.000276163
  22  7.66379
  23  7.77419e-07
  24  1.50741e-06
  25  34.8924
  26  0.000376607
  27  4.06275
  28  3.2904e-05
  29  0.255345
  30  0.267882
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.491e+00  3.289e+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.204e-01  2.679e-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.212e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 2.37e-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) = 5798.48805145
delta logL = 0.0186922960629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5798.48262739
delta logL = 0.0241163619785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1872       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2418       1.0000          .0000       10.000    
     3 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82638       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=   5798.483     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1879        65.774        .44126E-02    .33351E-03
   2  Index         2.2417        3.3272        .14080        .88911E-04
   3  Normalizat    1.2035        .10666        .56130E-01    .24653E-04
   4  Prefactor     .82646        .10641        .72769E-01    .16267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.18793
  Index      = 2.24167
  Normalizat = 1.20349
  Prefactor  = 0.826458
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.483     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1879        3.4788        .95167E-04   -1.5252    
   2  Index         2.2417        .41765        .53963E-02   -.58436    
   3  Normalizat    1.2035        .24275        .24821E-03   -.86495    
   4  Prefactor     .82646        .26518        .32202E-03   -.98760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48182e-12
Minuit parameter uncertainties:
  1  3.47892
  2  0.418349
  3  0.242977
  4  0.265594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527665': 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) = 5798.48262724
delta logL = 0.024116504761

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.188e+00  3.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.242e+00  4.183e-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:  8.265e-01  2.656e-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.203e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.43
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.24 +/- 0.42
Photon Flux (Free Index): 8.71e-08 +/- 5.75e-08
Energy Flux (Free Index): 3.63e-05 +/- 2.56e-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/527665/cmap_HighResolution_384739201_384998401_4FGL_J1221.5+2814_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='3.63e-05', photon_flux_error='4.81e-08', dlogl='2.41e-02', energy_flux='3.95e-05', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-09-05 09:58:35.156162', photon_index_error2='0.42', photon_index2='2.24', ts='4.37', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.21', time_epoch_completed='1630861115.16', return_code='0', job_id='527665', GAL2='0.83', EG2='1.20', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='5.75e-08', ts2='4.43', photon_index='2.15' WHERE bin_id='561' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 527665: <4FGL_J1221.5+2814_daily_bin561> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin561> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:45:46 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:45:47 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:45:47 2021
Terminated at Sun Sep  5 09:58:35 2021
Results reported at Sun Sep  5 09:58:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin561 185.378 28.2382 384739201 384998401 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

