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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin807
RA = 185.378, Dec = 28.2382
tmin = 448502401, tmax = 448761601
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='530322', job_status='RUN', time_executed='2021-09-05 09:55:29.112436', time_epoch_executed='1630860929.11' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530322/ft1_4FGL_J1221.5+2814_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530322/ft1_4FGL_J1221.5+2814_daily_bin807.fits outfile=/scratch/kocevski/530322/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin807.fits ra=185.378 dec=28.2382 rad=12.0 tmin=448502401.0 tmax=448761601.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 5.97
user 5.71
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530322/ft1_filtered_4FGL_J1221.5+2814_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/530322/ltcube_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.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/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits
.....................!
real 12.66
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530322/ft1_filtered_4FGL_J1221.5+2814_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/530322/ltcube_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.fits outfile=/scratch/kocevski/530322/expmap_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.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/530322/ltcube_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.fits
.....................!
real 190.69
user 185.55
sys 4.61

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/530322/ft1_filtered_4FGL_J1221.5+2814_daily_bin807.fits scfile=/scratch/kocevski/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits outfile=/scratch/kocevski/530322/cmap_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530322/ft1_filtered_4FGL_J1221.5+2814_daily_bin807.fits scfile=/scratch/kocevski/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits outfile=/scratch/kocevski/530322/cmap_HighResolution_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.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/530322/ft1_filtered_4FGL_J1221.5+2814_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/530322/ft2_4FGL_J1221.5+2814_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530322/Model_4FGL_J1221.5+2814_daily_bin807.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/530322/ft1_filtered_4FGL_J1221.5+2814_daily_bin807.fits.....................!
real 41.60
user 40.35
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48992       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6438       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11385E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20706E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9741       1.0000         .10000E-03   10000.    
    12 'norm      '    14.087       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7811       1.0000         .10000E-03   10000.    
    17 'norm      '    .75403       1.0000         .10000E-03   10000.    
    18 'norm      '    11.571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.018       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.9187       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.5513       1.0000         .10000E-03   10000.    
    28 'norm      '    .61662E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99812       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0608       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=   4040.476     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4540 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.500       -.99505E-06** at limit **
   2  Prefactor     .53022        64.890       -.19232E-04   -.23943E-04
   3  Prefactor     9.6448        7.2770        .86406E-07   -.14976E-04
   4  Prefactor     .10000E-03    121.85        .11230E-05** at limit **
   5  Prefactor     6.6799        3.1662       -.41922E-08   -.35451E-03
   6  Prefactor     .10000E-03    20.694       -.31026E-06** at limit **
   7  norm          .10001E-03    1.5037        .20138E-05** at limit **
   8  Prefactor     .21456        3.4746       -.39258E-06    .33569E-04
   9  Prefactor     14.452        34.345       -.39554E-05   -.44939E-04
  10  Prefactor     .10000E-03    2.5105        .26090E-06** at limit **
  11  Prefactor     2.9743        5.6560       -.40966E-06    .34475E-03
  12  norm          14.095        5.4284        .24998E-06    .48641E-03
  13  Prefactor     .10000E-03    3.9153        .90014E-07** at limit **
  14  Prefactor     .10000E-03    1.8780       -.12049E-06** at limit **
  15  Prefactor     .10000E-03    2.2476       -.64724E-06** at limit **
  16  Prefactor     4.7819        5.7885        .95620E-08    .73879E-04
  17  norm          .75396        .38889        .10509E-08    .77250E-03
  18  norm          11.573        6.1618       -.14363E-07    .53391E-04
  19  Prefactor     30.018        15.235        .10638E-06    .12569E-03
  20  Prefactor     .10000E-03    10.627        .13722E-05** at limit **
  21  Prefactor     .10000E-03    29.935        .18695E-05** at limit **
  22  Prefactor     .10000E-03    8.3543        .88478E-06** at limit **
  23  Prefactor     .10000E-03    3.4220        .39777E-07** at limit **
  24  norm          2.9197        2.9653       -.73979E-07   -.21303E-03
  25  Prefactor     .10000E-03    10.109       -.50839E-06** at limit **
  26  norm          .10000E-03    1.6795       -.11082E-06** at limit **
  27  norm          8.5612        5.4601        .10881E-05    .10448E-03
  28  norm          .10000E-03    12.732       -.27476E-05** at limit **
  29  Normalizat    .99807        .23601        .20491E-06   -.20715E-03
  30  Prefactor     1.0610        .25764        .93897E-06   -.83338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.530225
  Prefactor  = 9.64483
  Prefactor  = 0.000100004
  Prefactor  = 6.67987
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.214563
  Prefactor  = 14.4523
  Prefactor  = 0.0001
  Prefactor  = 2.97429
  norm       = 14.0952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.78189
  norm       = 0.753961
  norm       = 11.5726
  Prefactor  = 30.0182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91968
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.56124
  norm       = 0.0001
  Normalizat = 0.998071
  Prefactor  = 1.06097
 **********
 **   18 **HESSE 
 **********

 FCN=   4040.476     FROM HESSE     STATUS=OK           590 CALLS     5130 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .53022        69.877        .43475E-02   -1.5562    
   3  Prefactor     9.6448        7.2729        .12904E-03   -1.5087    
   4  Prefactor     .10000E-03    125.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6799        3.1589        .73707E-04   -1.5191    
   6  Prefactor     .10000E-03    20.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    8.9788        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21456        37.704        .21794E-02   -1.5615    
   9  Prefactor     14.452        34.454        .10541E-03   -1.4947    
  10  Prefactor     .10000E-03    2.5345        .97955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9743        5.5701        .19078E-03   -1.5363    
  12  norm          14.095        5.3741        .86811E-04   -1.4957    
  13  Prefactor     .10000E-03    3.9240        .12284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8916        .84863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6833        .18070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7819        5.7841        .16161E-03   -1.5271    
  17  norm          .75396        .38474        .26469E-04   -1.5534    
  18  norm          11.573        6.1582        .11035E-03   -1.5027    
  19  Prefactor     30.018        15.204        .73128E-04   -1.4612    
  20  Prefactor     .10000E-03    10.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4204        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4269        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9197        2.9749        .10761E-03   -1.5366    
  25  Prefactor     .10000E-03    10.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.6832        .80458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.5612        5.7320        .12003E-03   -1.5123    
  28  norm          .10000E-03    38.838        .39770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99807        .27748        .25893E-03   -.93095    
  30  Prefactor     1.0610        .30443        .28871E-03   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.572e-08
Minuit parameter uncertainties:
  1  6.38453e-05
  2  12.1872
  3  7.27361
  4  0.00136627
  5  3.15898
  6  0.00011591
  7  0.00059775
  8  5.69088
  9  34.5018
  10  3.94962e-05
  11  5.57111
  12  5.37427
  13  9.96062e-06
  14  2.51521e-05
  15  0.000127689
  16  5.78475
  17  0.384743
  18  6.15854
  19  15.206
  20  3.60906e-05
  21  8.26105e-05
  22  1.40102e-05
  23  2.17024e-06
  24  2.97502
  25  1.90265e-05
  26  4.36314e-06
  27  5.73232
  28  7.74034e-05
  29  0.277887
  30  0.30493
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.277e-04  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:  1.061e+00  3.049e-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.981e-01  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530322/likelihoodResults_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4040.47756734
delta logL = -0.00129403131768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4040.47627334
delta logL = -3.01897671307e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1227       1.0000          .0000       10.000    
     3 'Normalizat'    .99809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0610       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4040.476     FROM MIGRAD    STATUS=FAILED       101 CALLS      269 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10302E-03    41.141        .18576E-02** at limit **
   2  Index         2.0275        5.8083        .50000        .47186E-04
   3  Normalizat    .99807        .17485E-01    .25893E-03    .59712E-04
   4  Prefactor     1.0610        .20119E-01    .28871E-03    .58024E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4040.476     FROM SIMPLEX   STATUS=PROGRESS     114 CALLS      383 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    41.141        .28307E-03** at limit **
   2  Index         2.0265        5.8083        .34548E-03    .47186E-04
   3  Normalizat    .99807        .17485E-01    .41804E-05    .59712E-04
   4  Prefactor     1.0610        .20119E-01    .39923E-05    .58024E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4040.476     FROM MIGRAD    STATUS=FAILED        92 CALLS      475 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    186.74        .74302E-03** at limit **
   2  Index         1.7955        6.6389        .50000       -.63023E-05
   3  Normalizat    .99807        .36252E-01    .20715E-05    .52138E-04
   4  Prefactor     1.0610        .41707E-01    .23097E-05    .58083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79553
  Normalizat = 0.998075
  Prefactor  = 1.06097
 **********
 **   18 **HESSE 
 **********

 FCN=   4040.476     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      502 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    701.80        .14860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7955        5.6357        .50000       -.69566    
   3  Normalizat    .99807        .87729E-01    .41429E-06   -.93095    
   4  Prefactor     1.0610        .10048        .46193E-06   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46975e-06
Minuit parameter uncertainties:
  1  0.000172484
  2  749.175
  3  0.0877422
  4  0.100496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530322': 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): 1
logL (Free Index) = 4040.47627015
delta logL = 3.15959232466e-06

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.725e-04  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.796e+00  7.492e+02  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.061e+00  1.005e-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.981e-01  8.774e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.378 28.238

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/530322/cmap_HighResolution_448502401_448761601_4FGL_J1221.5+2814_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-05 10:08:20.054780', job_id='530322', GAL2='1.06', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630861700.05', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='807' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:08:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 530322: <4FGL_J1221.5+2814_daily_bin807> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin807> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:55:19 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:55:21 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:55:21 2021
Terminated at Sun Sep  5 10:08:20 2021
Results reported at Sun Sep  5 10:08:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin807 185.378 28.2382 448502401 448761601 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 :                                   759.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

