/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin90
RA = 185.378, Dec = 28.2382
tmin = 262656001, tmax = 262915201
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='524790', job_status='RUN', time_executed='2021-09-05 09:37:58.057614', time_epoch_executed='1630859878.06' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524790/ft1_4FGL_J1221.5+2814_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524790/ft2_4FGL_J1221.5+2814_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524790/ft1_4FGL_J1221.5+2814_daily_bin90.fits outfile=/scratch/kocevski/524790/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin90.fits ra=185.378 dec=28.2382 rad=12.0 tmin=262656001.0 tmax=262915201.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.41
user 1.23
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524790/ft1_filtered_4FGL_J1221.5+2814_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/524790/ft2_4FGL_J1221.5+2814_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/524790/ltcube_262656001_262915201_4FGL_J1221.5+2814_daily_bin90.fits outfile=/scratch/kocevski/524790/expmap_262656001_262915201_4FGL_J1221.5+2814_daily_bin90.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/524790/ltcube_262656001_262915201_4FGL_J1221.5+2814_daily_bin90.fits
.....................!
real 190.12
user 185.45
sys 4.00

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/524790/ft1_filtered_4FGL_J1221.5+2814_daily_bin90.fits scfile=/scratch/kocevski/524790/ft2_4FGL_J1221.5+2814_daily_bin90.fits outfile=/scratch/kocevski/524790/cmap_262656001_262915201_4FGL_J1221.5+2814_daily_bin90.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.609       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6241       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2338       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39653       1.0000         .10000E-03   10000.    
    18 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7314       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13873E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .23747       1.0000         .10000E-03   10000.    
    25 'Prefactor '    42.623       1.0000         .10000E-03   10000.    
    26 'norm      '    6.1195       1.0000         .10000E-03   10000.    
    27 'norm      '    15.864       1.0000         .10000E-03   10000.    
    28 'norm      '    .14748E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99584       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=   5405.563     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     3975 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2433        .66155E-07** at limit **
   2  Prefactor     .10000E-03    4.6015        .98245E-07** at limit **
   3  Prefactor     .10000E-03    2.9256        .40139E-06** at limit **
   4  Prefactor     .10000E-03    51.409       -.23890E-06** at limit **
   5  Prefactor     4.5873        2.5279        .74639E-07   -.31096E-04
   6  Prefactor     19.553        27.130        .71808E-06    .83465E-04
   7  norm          2.2777        1.2639        .56190E-07   -.10563E-04
   8  Prefactor     2.2324        3.7669        .44368E-07   -.45852E-05
   9  Prefactor     .10000E-03    14.499        .60398E-06** at limit **
  10  Prefactor     2.0711        2.5961        .17731E-06    .14821E-03
  11  Prefactor     .10000E-03    2.2886       -.51585E-07** at limit **
  12  norm          4.6238        3.8477       -.21803E-07   -.10470E-03
  13  Prefactor     .10000E-03    7.4233       -.20938E-06** at limit **
  14  Prefactor     1.8618        2.4224        .15841E-07    .19597E-04
  15  Prefactor     2.2331        2.1907        .15139E-07    .14957E-04
  16  Prefactor     .10000E-03    4.1440       -.22886E-06** at limit **
  17  norm          .39653        .21385        .21948E-07    .13557E-03
  18  norm          .10000E-03    1.9506       -.13484E-06** at limit **
  19  Prefactor     .10000E-03    2.6486       -.40554E-07** at limit **
  20  Prefactor     .10000E-03    8.9433        .52255E-07** at limit **
  21  Prefactor     .10000E-03    16.456        .31668E-06** at limit **
  22  Prefactor     1.7308        5.1868       -.14596E-05    .29771E-04
  23  Prefactor     .10000E-03    3.9792        .19145E-06** at limit **
  24  norm          .17697        32.193       -.43390E-05   -.24572E-04
  25  Prefactor     42.750        39.990       -.13408E-05   -.14690E-03
  26  norm          6.1193        4.5304        .10068E-06   -.29957E-05
  27  norm          15.872        6.3474        .11046E-05    .50493E-03
  28  norm          .10001E-03    10.608       -.31090E-05** at limit **
  29  Normalizat    1.0263        .20861       -.24396E-05    .50148E-04
  30  Prefactor     .99609        .22510        .26227E-05   -.22773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58731
  Prefactor  = 19.5533
  norm       = 2.27768
  Prefactor  = 2.23238
  Prefactor  = 0.0001
  Prefactor  = 2.07115
  Prefactor  = 0.0001
  norm       = 4.62382
  Prefactor  = 0.0001
  Prefactor  = 1.86181
  Prefactor  = 2.23312
  Prefactor  = 0.0001
  norm       = 0.39653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.73084
  Prefactor  = 0.0001
  norm       = 0.17697
  Prefactor  = 42.7501
  norm       = 6.11926
  norm       = 15.8716
  norm       = 0.000100006
  Normalizat = 1.02629
  Prefactor  = 0.996086
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.563     FROM HESSE     STATUS=OK           592 CALLS     4567 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2456        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6088        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9595        .12272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5873        2.5216        .81593E-04   -1.5280    
   6  Prefactor     19.553        27.011        .90449E-04   -1.4823    
   7  norm          2.2777        1.2598        .58702E-04   -1.5406    
   8  Prefactor     2.2324        3.7309        .17366E-03   -1.5409    
   9  Prefactor     .10000E-03    14.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0711        2.5190        .12279E-03   -1.5420    
  11  Prefactor     .10000E-03    4.1778        .21015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6238        3.8521        .11272E-03   -1.5278    
  13  Prefactor     .10000E-03    7.5231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8618        2.4076        .11442E-03   -1.5435    
  15  Prefactor     2.2331        2.1716        .10051E-03   -1.5409    
  16  Prefactor     .10000E-03    4.1808        .14602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .39653        .21347        .23855E-04   -1.5582    
  18  norm          .10000E-03    1.9705        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6508        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7308        5.1911        .14015E-02   -1.5445    
  23  Prefactor     .10000E-03    9.1009        .28510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17697        35.241        .23417E-02   -1.5624    
  25  Prefactor     42.750        42.316        .61404E-04   -1.4399    
  26  norm          6.1193        4.5311        .12929E-03   -1.5213    
  27  norm          15.872        6.5620        .10056E-03   -1.4911    
  28  norm          .10001E-03    64.781        .38924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0263        .22178        .24269E-03   -.92155    
  30  Prefactor     .99609        .24068        .28126E-03   -.92860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4111e-08
Minuit parameter uncertainties:
  1  4.01086e-06
  2  2.66186e-06
  3  3.36306e-06
  4  7.23495e-05
  5  2.52168
  6  27.0283
  7  1.2598
  8  3.73131
  9  2.1461e-05
  10  2.51912
  11  2.37798e-06
  12  3.85234
  13  2.06852e-05
  14  2.4077
  15  2.17172
  16  4.39825e-06
  17  0.213474
  18  2.65865e-06
  19  1.87977e-06
  20  1.97643e-05
  21  9.12142e-05
  22  5.1924
  23  4.05416e-06
  24  4.99618
  25  42.3461
  26  4.5314
  27  6.56226
  28  0.00128062
  29  0.221982
  30  0.240945
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.233e+00  2.172e+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.961e-01  2.409e-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.026e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/524790/likelihoodResults_262656001_262915201_4FGL_J1221.5+2814_daily_bin90.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5405.54706074
delta logL = 0.015754667239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5405.54194825
delta logL = 0.0208671629534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4690       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0144       1.0000          .0000       10.000    
     3 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99228       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=   5405.542     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4696        86.311        .65060E-02    .31953E-03
   2  Index         2.0146        5.4718        .17152        .35971E-04
   3  Normalizat    1.0309        .96320E-01    .42077E-01    .21310E-05
   4  Prefactor     .99227        .93706E-01    .46171E-01    .77146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46961
  Index      = 2.01463
  Normalizat = 1.03093
  Prefactor  = 0.992269
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.542     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4696        2.5351        .10553E-03   -1.5394    
   2  Index         2.0146        .66243        .90337E-02   -.63985    
   3  Normalizat    1.0309        .20758        .24221E-03   -.92001    
   4  Prefactor     .99227        .23757        .28170E-03   -.92988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5701e-12
Minuit parameter uncertainties:
  1  2.53521
  2  0.66548
  3  0.207746
  4  0.237816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524790': 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) = 5405.54194792
delta logL = 0.0208674959167

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.470e+00  2.535e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.015e+00  6.655e-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.923e-01  2.378e-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.031e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.01 +/- 0.67
Photon Flux (Free Index): 2.95e-08 +/- 3.19e-08
Energy Flux (Free Index): 1.97e-05 +/- 2.82e-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/524790/cmap_HighResolution_262656001_262915201_4FGL_J1221.5+2814_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.97e-05', photon_flux_error='3.18e-08', dlogl='2.09e-02', energy_flux='1.61e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-05 09:51:45.268936', photon_index_error2='0.67', photon_index2='2.01', ts='1.71', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='2.82e-05', EG='1.03', time_epoch_completed='1630860705.27', return_code='0', job_id='524790', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='3.19e-08', ts2='1.76', photon_index='2.15' WHERE bin_id='90' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 524790: <4FGL_J1221.5+2814_daily_bin90> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin90> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:26 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:28 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:28 2021
Terminated at Sun Sep  5 09:51:46 2021
Results reported at Sun Sep  5 09:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin90 185.378 28.2382 262656001 262915201 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 :                                   826.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             306.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

