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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin58
RA = 185.378, Dec = 28.2382
tmin = 254361601, tmax = 254620801
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='524745', job_status='RUN', time_executed='2021-09-05 09:36:40.230468', time_epoch_executed='1630859800.23' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524745/ft1_4FGL_J1221.5+2814_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524745/ft2_4FGL_J1221.5+2814_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524745/ft1_4FGL_J1221.5+2814_daily_bin58.fits outfile=/scratch/kocevski/524745/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin58.fits ra=185.378 dec=28.2382 rad=12.0 tmin=254361601.0 tmax=254620801.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.42
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524745/ft1_filtered_4FGL_J1221.5+2814_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/524745/ft2_4FGL_J1221.5+2814_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/524745/ltcube_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.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/524745/ft2_4FGL_J1221.5+2814_daily_bin58.fits
.....................!
real 12.57
user 12.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524745/ft1_filtered_4FGL_J1221.5+2814_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/524745/ft2_4FGL_J1221.5+2814_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/524745/ltcube_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.fits outfile=/scratch/kocevski/524745/expmap_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.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/524745/ltcube_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.fits
.....................!
real 190.03
user 185.35
sys 4.32

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/524745/ft1_filtered_4FGL_J1221.5+2814_daily_bin58.fits scfile=/scratch/kocevski/524745/ft2_4FGL_J1221.5+2814_daily_bin58.fits outfile=/scratch/kocevski/524745/cmap_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524745/ft1_filtered_4FGL_J1221.5+2814_daily_bin58.fits scfile=/scratch/kocevski/524745/ft2_4FGL_J1221.5+2814_daily_bin58.fits outfile=/scratch/kocevski/524745/cmap_HighResolution_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12325E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.813       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8766       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.930       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3127       1.0000         .10000E-03   10000.    
    24 'norm      '    3.7440       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.653       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8282       1.0000         .10000E-03   10000.    
    27 'norm      '    6.0137       1.0000         .10000E-03   10000.    
    28 'norm      '    4.4082       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82368       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98956       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=   5176.615     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3916 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.064        .61157E-05** at limit **
   2  Prefactor     .10000E-03    6.2007       -.29454E-05** at limit **
   3  Prefactor     .10000E-03    8.1768        .91975E-05** at limit **
   4  Prefactor     21.609        19.060       -.80795E-06    .72010E-04
   5  Prefactor     .26132        1.5064       -.42778E-06   -.75216E-03
   6  Prefactor     16.804        27.296       -.11392E-04   -.13885E-03
   7  norm          2.9856        1.2775        .73196E-07    .52984E-04
   8  Prefactor     .10000E-03    1.9873       -.52990E-06** at limit **
   9  Prefactor     .10000E-03    10.947       -.10423E-04** at limit **
  10  Prefactor     5.0036        3.3397        .12893E-06    .11752E-03
  11  Prefactor     1.8757        3.6956       -.42390E-06   -.60689E-03
  12  norm          5.7861        2.7341        .96897E-06    .85613E-04
  13  Prefactor     .10000E-03    2.1560       -.94813E-07** at limit **
  14  Prefactor     1.4850        1.4337       -.15811E-06    .21088E-03
  15  Prefactor     6.1853        2.5400       -.23245E-06   -.26643E-05
  16  Prefactor     .10000E-03    2.4103        .14185E-06** at limit **
  17  norm          .10000E-03    .54562E-01   -.16740E-07** at limit **
  18  norm          .10000E-03    3.9850        .12000E-05** at limit **
  19  Prefactor     10.480        11.472       -.49272E-06   -.64554E-04
  20  Prefactor     14.929        16.455       -.58298E-06   -.69395E-05
  21  Prefactor     .10000E-03    37.785       -.34515E-05** at limit **
  22  Prefactor     .10000E-03    1.7591       -.25016E-07** at limit **
  23  Prefactor     8.3129        5.9467       -.47374E-07   -.52312E-05
  24  norm          3.7441        3.5201       -.17115E-06   -.75335E-04
  25  Prefactor     24.654        19.022        .46753E-06    .42170E-05
  26  norm          1.8282        1.9933       -.22317E-07    .10589E-03
  27  norm          6.0141        4.1094       -.11984E-06   -.48608E-04
  28  norm          4.4081        5.7773       -.29436E-07   -.50620E-04
  29  Normalizat    .82327        .17817        .23384E-05   -.13047E-03
  30  Prefactor     .99006        .20074       -.65497E-06    .32072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6094
  Prefactor  = 0.261321
  Prefactor  = 16.8044
  norm       = 2.98563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00355
  Prefactor  = 1.87574
  norm       = 5.78608
  Prefactor  = 0.0001
  Prefactor  = 1.48502
  Prefactor  = 6.18534
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4797
  Prefactor  = 14.9286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.31288
  norm       = 3.74415
  Prefactor  = 24.6543
  norm       = 1.82819
  norm       = 6.01408
  norm       = 4.40811
  Normalizat = 0.823272
  Prefactor  = 0.99006
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.615     FROM HESSE     STATUS=OK           600 CALLS     4516 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2054        .17480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.609        18.601        .86159E-04   -1.4778    
   5  Prefactor     .26132        2.5501        .15788E-02   -1.5606    
   6  Prefactor     16.804        27.702        .97677E-04   -1.4888    
   7  norm          2.9856        1.2755        .51000E-04   -1.5362    
   8  Prefactor     .10000E-03    3.5352        .19478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0036        3.2870        .91095E-04   -1.5261    
  11  Prefactor     1.8757        3.6585        .16618E-03   -1.5434    
  12  norm          5.7861        2.7306        .78164E-04   -1.5227    
  13  Prefactor     .10000E-03    2.1589        .10317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4850        1.4514        .81299E-04   -1.5464    
  15  Prefactor     6.1853        2.5391        .69066E-04   -1.5211    
  16  Prefactor     .10000E-03    2.4260        .10906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .58683E-01    .32714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0586        .14002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.480        11.469        .12377E-03   -1.5060    
  20  Prefactor     14.929        16.456        .10366E-03   -1.4935    
  21  Prefactor     .10000E-03    37.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7613        .93191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.3129        5.9457        .13905E-03   -1.5131    
  24  norm          3.7441        3.5130        .12501E-03   -1.5321    
  25  Prefactor     24.654        19.013        .80678E-04   -1.4714    
  26  norm          1.8282        1.9973        .10324E-03   -1.5438    
  27  norm          6.0141        4.1400        .10683E-03   -1.5217    
  28  norm          4.4081        5.8190        .17756E-03   -1.5288    
  29  Normalizat    .82327        .20880        .24000E-03   -.99211    
  30  Prefactor     .99006        .23590        .25826E-03   -.93062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65173e-10
Minuit parameter uncertainties:
  1  2.515e-06
  2  8.36734e-06
  3  6.82858e-05
  4  18.6056
  5  1.63243
  6  27.7235
  7  1.27552
  8  4.66994e-05
  9  4.41373e-05
  10  3.28715
  11  3.65891
  12  2.73066
  13  5.5212e-07
  14  1.45145
  15  2.53917
  16  3.78584e-06
  17  3.52739e-07
  18  1.57613e-05
  19  11.4715
  20  16.4605
  21  1.92807e-05
  22  1.82255e-06
  23  5.94608
  24  3.51323
  25  19.018
  26  1.99739
  27  4.14017
  28  5.81971
  29  0.209
  30  0.236148
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.185e+00  2.539e+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.901e-01  2.361e-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:  8.233e-01  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.33
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.05e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 4.45e-05 +/- 1.83e-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) = 5176.55577012
delta logL = 0.0594236000734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5176.54514013
delta logL = 0.0700535903352

Fit tolerance = 1e-08

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

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

 FCN=   5176.545     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      256 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6397        2.9144        .73684E-04    .19824E-02
   2  Index         2.0194        .35624        .50162E-02    .25040E-03
   3  Normalizat    .83611        .20172        .23844E-03   -.59934E-04
   4  Prefactor     .98094        .23410        .25936E-03   -.70310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.63971
  Index      = 2.01939
  Normalizat = 0.836111
  Prefactor  = 0.980944
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.545     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6397        2.8882        .14737E-04   -1.5193    
   2  Index         2.0194        .35282        .20065E-03   -.63866    
   3  Normalizat    .83611        .20185        .95374E-05   -.98743    
   4  Prefactor     .98094        .23430        .10374E-04   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65593e-10
Minuit parameter uncertainties:
  1  2.88824
  2  0.353276
  3  0.202033
  4  0.234546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524745': 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) = 5176.54514005
delta logL = 0.0700536739032

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.640e+00  2.888e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.019e+00  3.533e-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.809e-01  2.345e-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:  8.361e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.53
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.02 +/- 0.35
Photon Flux (Free Index): 7.99e-08 +/- 4.35e-08
Energy Flux (Free Index): 5.27e-05 +/- 3.38e-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/524745/cmap_HighResolution_254361601_254620801_4FGL_J1221.5+2814_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.05e-08', energy_flux2='5.27e-05', photon_flux_error='3.71e-08', dlogl='7.01e-02', energy_flux='4.45e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2021-09-05 09:48:19.335198', photon_index_error2='0.35', photon_index2='2.02', ts='20.33', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.38e-05', EG='0.82', time_epoch_completed='1630860499.34', return_code='0', job_id='524745', GAL2='0.98', EG2='0.84', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.35e-08', ts2='20.53', photon_index='2.15' WHERE bin_id='58' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:48:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 524745: <4FGL_J1221.5+2814_daily_bin58> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin58> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:23 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:36:24 2021
Terminated at Sun Sep  5 09:48:20 2021
Results reported at Sun Sep  5 09:48:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin58 185.378 28.2382 254361601 254620801 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 :                                   693.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

