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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin882
RA = 185.378, Dec = 28.2382
tmin = 467942401, tmax = 468201601
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='530430', job_status='RUN', time_executed='2021-09-05 09:55:46.457921', time_epoch_executed='1630860946.46' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530430/ft1_4FGL_J1221.5+2814_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530430/ft1_4FGL_J1221.5+2814_daily_bin882.fits outfile=/scratch/kocevski/530430/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin882.fits ra=185.378 dec=28.2382 rad=12.0 tmin=467942401.0 tmax=468201601.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 3.57
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.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/530430/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin882.fits evtable="EVENTS" outfile="/scratch/kocevski/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.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/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.fits" evtable="EVENTS" scfile=/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits sctable="SC_DATA" outfile=/scratch/kocevski/530430/ltcube_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.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/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits
.....................!
real 12.09
user 11.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/530430/ltcube_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.fits outfile=/scratch/kocevski/530430/expmap_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.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/530430/ltcube_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.fits
.....................!
real 190.03
user 185.16
sys 4.49

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/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.fits scfile=/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits outfile=/scratch/kocevski/530430/cmap_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.fits scfile=/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits outfile=/scratch/kocevski/530430/cmap_HighResolution_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.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/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/530430/ft2_4FGL_J1221.5+2814_daily_bin882.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530430/Model_4FGL_J1221.5+2814_daily_bin882.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/530430/ft1_filtered_4FGL_J1221.5+2814_daily_bin882.fits.....................!
real 57.00
user 55.58
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39040       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.551       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17552E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8992       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8009       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7326       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.1981       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4616       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2316       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51307E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.945       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .16746E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .12801E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97491       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=   6503.620     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3946 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3255       -.90077E-06** at limit **
   2  Prefactor     .38829        5.9774       -.15134E-05    .13243E-03
   3  Prefactor     11.060        7.5500       -.81678E-06    .28240E-04
   4  Prefactor     .10000E-03    11.369        .29583E-06** at limit **
   5  Prefactor     .10000E-03    .65107        .36753E-07** at limit **
   6  Prefactor     32.756        25.327        .98219E-05    .35232E-04
   7  norm          1.8321        1.0086       -.53000E-07   -.11849E-03
   8  Prefactor     .10000E-03    1.3497        .57962E-07** at limit **
   9  Prefactor     .10000E-03    15.130        .32826E-05** at limit **
  10  Prefactor     .10000E-03    1.0246       -.59343E-07** at limit **
  11  Prefactor     5.9009        3.5984        .25960E-06   -.60241E-04
  12  norm          6.9591        3.0563       -.10120E-05    .32930E-04
  13  Prefactor     3.8131        6.3360        .24344E-05   -.27403E-03
  14  Prefactor     .10000E-03    .98781       -.61878E-07** at limit **
  15  Prefactor     3.7369        2.1535        .28003E-06   -.12219E-04
  16  Prefactor     .10000E-03    3.6246       -.59553E-06** at limit **
  17  norm          .10000E-03    .10822       -.46840E-07** at limit **
  18  norm          6.2004        4.6023        .96603E-06   -.34160E-04
  19  Prefactor     5.4532        6.2469       -.24303E-05    .17639E-04
  20  Prefactor     9.3169        20.223       -.29621E-04   -.23471E-04
  21  Prefactor     .10000E-03    23.602       -.14254E-04** at limit **
  22  Prefactor     21.967        11.345        .28877E-05   -.39928E-05
  23  Prefactor     .10000E-03    2.1318        .21773E-06** at limit **
  24  norm          .10000E-03    2.6628        .48341E-07** at limit **
  25  Prefactor     .10000E-03    37.800       -.61053E-06** at limit **
  26  norm          .10000E-03    1.9221       -.58622E-07** at limit **
  27  norm          .10000E-03    1.2237        .10415E-06** at limit **
  28  norm          .10000E-03    2.7705        .58285E-06** at limit **
  29  Normalizat    1.0878        .17426        .64389E-07    .16042E-03
  30  Prefactor     .97492        .18796       -.74965E-07    .10722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.388286
  Prefactor  = 11.06
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.756
  norm       = 1.83206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.90086
  norm       = 6.95906
  Prefactor  = 3.81305
  Prefactor  = 0.0001
  Prefactor  = 3.73686
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.20039
  Prefactor  = 5.45319
  Prefactor  = 9.31694
  Prefactor  = 0.0001
  Prefactor  = 21.9669
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Normalizat = 1.08777
  Prefactor  = 0.974918
 **********
 **   18 **HESSE 
 **********

 FCN=   6503.620     FROM HESSE     STATUS=OK           592 CALLS     4538 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38829        55.003        .37706E-02   -1.5583    
   3  Prefactor     11.060        7.5302        .12041E-03   -1.5043    
   4  Prefactor     .10000E-03    11.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .66551        .63498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.756        25.324        .70232E-04   -1.4563    
   7  norm          1.8321        1.0050        .57826E-04   -1.5437    
   8  Prefactor     .10000E-03    1.3642        .91463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0328        .79614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9009        3.5918        .11477E-03   -1.5222    
  12  norm          6.9591        3.0504        .89099E-04   -1.5180    
  13  Prefactor     3.8131        6.3089        .20704E-03   -1.5317    
  14  Prefactor     .10000E-03    .99822        .78094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7369        2.1514        .85123E-04   -1.5321    
  16  Prefactor     .10000E-03    3.7194        .29955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .43182        .50305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2004        4.5952        .14245E-03   -1.5210    
  19  Prefactor     5.4532        6.2437        .17193E-03   -1.5241    
  20  Prefactor     9.3169        20.294        .13191E-03   -1.5097    
  21  Prefactor     .10000E-03    23.604        .21145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.967        11.341        .85503E-04   -1.4770    
  23  Prefactor     .10000E-03    2.1356        .11501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.5111        .25418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    38.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.9465        .10914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2313        .87057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.2611        .26139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0878        .20206        .24513E-03   -.90145    
  30  Prefactor     .97492        .21908        .28470E-03   -.93570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26539e-09
Minuit parameter uncertainties:
  1  6.99056e-07
  2  9.25022
  3  7.53084
  4  1.74546e-05
  5  7.46247e-07
  6  25.3328
  7  1.00501
  8  1.18364e-06
  9  7.0268e-05
  10  2.16479e-06
  11  3.5919
  12  3.05043
  13  6.30996
  14  8.98925e-06
  15  2.15145
  16  1.6276e-05
  17  8.20749e-06
  18  4.5955
  19  6.24445
  20  20.309
  21  1.4155e-05
  22  11.3419
  23  3.80393e-05
  24  0.000124001
  25  0.000160513
  26  1.21766e-05
  27  2.47303e-07
  28  0.000165659
  29  0.202205
  30  0.219281
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.737e+00  2.151e+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.749e-01  2.193e-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.088e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.58
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.55e-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) = 6503.31922088
delta logL = 0.300944085728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6503.31444047
delta logL = 0.305724504285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7119       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7801       1.0000          .0000       10.000    
     3 'Normalizat'    1.1090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96393       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=   6503.314     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7119        3.0875        .52401E-02   -.47870E-03
   2  Index         1.7801        .52133        .20500       -.11030E-03
   3  Normalizat    1.1090        .17064        .54999E-01   -.12738E-04
   4  Prefactor     .96394        .18716        .45815E-01    .30561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71187
  Index      = 1.7801
  Normalizat = 1.10897
  Prefactor  = 0.963942
 **********
 **   18 **HESSE 
 **********

 FCN=   6503.314     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7119        2.3620        .91616E-04   -1.5323    
   2  Index         1.7801        .46469        .76819E-02   -.69969    
   3  Normalizat    1.1090        .19665        .24319E-03   -.89464    
   4  Prefactor     .96394        .21728        .28626E-03   -.93941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77736e-10
Minuit parameter uncertainties:
  1  2.36208
  2  0.465841
  3  0.196782
  4  0.217477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530430': 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) = 6503.31444046
delta logL = 0.305724506519

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.712e+00  2.362e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.780e+00  4.658e-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.639e-01  2.175e-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.109e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.22
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.78 +/- 0.47
Photon Flux (Free Index): 3.29e-08 +/- 3.09e-08
Energy Flux (Free Index): 4.18e-05 +/- 3.88e-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/530430/cmap_HighResolution_467942401_468201601_4FGL_J1221.5+2814_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='4.18e-05', photon_flux_error='3.15e-08', dlogl='3.06e-01', energy_flux='2.69e-05', photon_flux2='3.29e-08', job_status='DONE', time_completed='2021-09-05 10:08:58.294000', photon_index_error2='0.47', photon_index2='1.78', ts='10.58', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.88e-05', EG='1.09', time_epoch_completed='1630861738.29', return_code='0', job_id='530430', GAL2='0.96', EG2='1.11', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.09e-08', ts2='11.22', photon_index='2.15' WHERE bin_id='882' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:08:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 530430: <4FGL_J1221.5+2814_daily_bin882> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin882 185.378 28.2382 467942401 468201601 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 :                                   788.00 sec.
    Max Memory :                                 1035 MB
    Average Memory :                             329.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

