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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin186
RA = 185.378, Dec = 28.2382
tmin = 287539201, tmax = 287798401
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='524928', job_status='RUN', time_executed='2021-09-05 09:37:01.261549', time_epoch_executed='1630859821.26' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524928/ft1_4FGL_J1221.5+2814_daily_bin186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524928/ft2_4FGL_J1221.5+2814_daily_bin186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524928/ft1_4FGL_J1221.5+2814_daily_bin186.fits outfile=/scratch/kocevski/524928/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin186.fits ra=185.378 dec=28.2382 rad=12.0 tmin=287539201.0 tmax=287798401.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.62
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524928/ft2_4FGL_J1221.5+2814_daily_bin186.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/524928/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin186.fits evtable="EVENTS" outfile="/scratch/kocevski/524928/ft1_filtered_4FGL_J1221.5+2814_daily_bin186.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.89
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524928/ft1_filtered_4FGL_J1221.5+2814_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/524928/ft2_4FGL_J1221.5+2814_daily_bin186.fits sctable="SC_DATA" expcube=/scratch/kocevski/524928/ltcube_287539201_287798401_4FGL_J1221.5+2814_daily_bin186.fits outfile=/scratch/kocevski/524928/expmap_287539201_287798401_4FGL_J1221.5+2814_daily_bin186.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/524928/ltcube_287539201_287798401_4FGL_J1221.5+2814_daily_bin186.fits
.....................!
real 191.22
user 185.17
sys 5.41

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/524928/ft1_filtered_4FGL_J1221.5+2814_daily_bin186.fits scfile=/scratch/kocevski/524928/ft2_4FGL_J1221.5+2814_daily_bin186.fits outfile=/scratch/kocevski/524928/cmap_287539201_287798401_4FGL_J1221.5+2814_daily_bin186.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524928/ft1_filtered_4FGL_J1221.5+2814_daily_bin186.fits scfile=/scratch/kocevski/524928/ft2_4FGL_J1221.5+2814_daily_bin186.fits outfile=/scratch/kocevski/524928/cmap_HighResolution_287539201_287798401_4FGL_J1221.5+2814_daily_bin186.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15219E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.499       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5451       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3315       1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.716       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14767E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9255       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8240       1.0000         .10000E-03   10000.    
    24 'norm      '    .23846       1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.482       1.0000         .10000E-03   10000.    
    26 'norm      '    .17611E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.0396       1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90542       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=   7453.167     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3978 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.356        .86071E-07** at limit **
   2  Prefactor     5.5049        11.462        .88854E-06    .59938E-04
   3  Prefactor     .10000E-03    2.1765        .71392E-07** at limit **
   4  Prefactor     35.773        27.889        .80044E-06   -.22850E-05
   5  Prefactor     .10000E-03    1.2824        .69242E-07** at limit **
   6  Prefactor     16.481        20.360        .18710E-05    .24226E-03
   7  norm          3.7500        1.5568        .12887E-07   -.11328E-03
   8  Prefactor     6.4984        4.7585        .38596E-07   -.20485E-03
   9  Prefactor     13.494        33.121        .29637E-05    .10554E-03
  10  Prefactor     .10000E-03    1.4773       -.73172E-07** at limit **
  11  Prefactor     2.5458        3.2888        .27469E-06    .34682E-04
  12  norm          4.7111        2.8778        .32767E-06    .58063E-03
  13  Prefactor     4.8089        6.0587        .70290E-07   -.39892E-04
  14  Prefactor     .10000E-03    .82733        .63224E-07** at limit **
  15  Prefactor     2.3083        1.9797       -.12916E-07   -.79281E-04
  16  Prefactor     .10000E-03    2.3058       -.20640E-07** at limit **
  17  norm          8.3316        .69646        .25740E-07   -.33050E-03
  18  norm          .10000E-03    1.9458        .30201E-08** at limit **
  19  Prefactor     37.718        15.206        .14168E-06   -.25227E-04
  20  Prefactor     .10000E-03    7.2950       -.72684E-10** at limit **
  21  Prefactor     .10000E-03    126.60       -.41228E-06** at limit **
  22  Prefactor     7.9264        6.9801        .12941E-06   -.37469E-04
  23  Prefactor     7.8228        7.1058        .92343E-08   -.36772E-04
  24  norm          .21834        7.8683       -.11300E-05    .73457E-03
  25  Prefactor     38.497        33.178       -.68261E-06    .22437E-03
  26  norm          .10000E-03    2.9467        .22497E-06** at limit **
  27  norm          3.0386        2.9356       -.26246E-06   -.93813E-04
  28  norm          .10000E-03    2.6277        .58340E-07** at limit **
  29  Normalizat    1.0515        .21440       -.35489E-05   -.59221E-04
  30  Prefactor     .90535        .21027        .14561E-05   -.18444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.50493
  Prefactor  = 0.0001
  Prefactor  = 35.7732
  Prefactor  = 0.0001
  Prefactor  = 16.4811
  norm       = 3.75002
  Prefactor  = 6.49842
  Prefactor  = 13.4937
  Prefactor  = 0.0001
  Prefactor  = 2.54577
  norm       = 4.71106
  Prefactor  = 4.80886
  Prefactor  = 0.0001
  Prefactor  = 2.30828
  Prefactor  = 0.0001
  norm       = 8.33157
  norm       = 0.0001
  Prefactor  = 37.7177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.92639
  Prefactor  = 7.82276
  norm       = 0.218345
  Prefactor  = 38.4966
  norm       = 0.000100001
  norm       = 3.03862
  norm       = 0.0001
  Normalizat = 1.05148
  Prefactor  = 0.905354
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.167     FROM HESSE     STATUS=OK           596 CALLS     4574 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5049        11.454        .17124E-03   -1.5239    
   3  Prefactor     .10000E-03    2.1956        .12437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.773        26.083        .67022E-04   -1.4511    
   5  Prefactor     .10000E-03    3.4994        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.481        20.528        .98602E-04   -1.4896    
   7  norm          3.7500        1.5565        .65212E-04   -1.5321    
   8  Prefactor     6.4984        4.7548        .15421E-03   -1.5198    
   9  Prefactor     13.494        33.250        .10907E-03   -1.4973    
  10  Prefactor     .10000E-03    1.4914        .10229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5458        3.2803        .17214E-03   -1.5389    
  12  norm          4.7111        2.8871        .10986E-03   -1.5274    
  13  Prefactor     4.8089        6.0561        .18347E-03   -1.5269    
  14  Prefactor     .10000E-03    .83275        .76576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3083        1.9780        .10699E-03   -1.5404    
  16  Prefactor     .10000E-03    2.3154        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3316        .69798        .19743E-04   -1.5131    
  18  norm          .10000E-03    1.9645        .11759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.718        15.224        .65262E-04   -1.4479    
  20  Prefactor     .10000E-03    7.2978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    126.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9264        6.9627        .14243E-03   -1.5145    
  23  Prefactor     7.8228        7.1085        .14335E-03   -1.5149    
  24  norm          .21834        65.882        .36536E-02   -1.5615    
  25  Prefactor     38.497        40.261        .64611E-04   -1.4466    
  26  norm          .10000E-03    15.097        .28569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.0386        2.9452        .13968E-03   -1.5359    
  28  norm          .10000E-03    2.6324        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0515        .24166        .29921E-03   -.91325    
  30  Prefactor     .90535        .24295        .35142E-03   -.95954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61526e-08
Minuit parameter uncertainties:
  1  1.29375e-06
  2  11.4585
  3  3.24723e-06
  4  26.0917
  5  1.66466e-05
  6  20.5364
  7  1.55654
  8  4.75506
  9  33.2954
  10  1.05187e-06
  11  3.28057
  12  2.88723
  13  6.05684
  14  8.18993e-08
  15  1.97809
  16  3.10853e-07
  17  0.697981
  18  2.88897e-06
  19  15.2256
  20  4.63468e-06
  21  0.000333709
  22  6.96338
  23  7.10926
  24  7.59221
  25  40.2894
  26  0.000228715
  27  2.94533
  28  7.07381e-06
  29  0.241914
  30  0.243246
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.308e+00  1.978e+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.054e-01  2.432e-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.051e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.42e-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) = 7453.13582658
delta logL = 0.0313025569949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7453.13342006
delta logL = 0.033709077803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4349       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90213       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=   7453.133     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4342        62.516        .65556E-02    .51131E-04
   2  Index         1.9902        5.7888        .25844        .11757E-04
   3  Normalizat    1.0569        .10088        .67494E-01    .12968E-04
   4  Prefactor     .90210        .80834E-01    .79528E-01    .18521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4342
  Index      = 1.99023
  Normalizat = 1.05687
  Prefactor  = 0.902096
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.133     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4342        2.1112        .11210E-03   -1.5396    
   2  Index         1.9902        .61313        .94077E-02   -.64594    
   3  Normalizat    1.0569        .21758        .29859E-03   -.91149    
   4  Prefactor     .90210        .23929        .35202E-03   -.96068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43438e-13
Minuit parameter uncertainties:
  1  2.11125
  2  0.615561
  3  0.217768
  4  0.239573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524928': 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) = 7453.13341982
delta logL = 0.0337093099351

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.434e+00  2.111e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.990e+00  6.156e-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.021e-01  2.396e-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.057e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.99 +/- 0.62
Photon Flux (Free Index): 2.81e-08 +/- 3.17e-08
Energy Flux (Free Index): 1.99e-05 +/- 2.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/524928/cmap_HighResolution_287539201_287798401_4FGL_J1221.5+2814_daily_bin186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='1.99e-05', photon_flux_error='2.89e-08', dlogl='3.37e-02', energy_flux='1.66e-05', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-09-05 09:52:38.084798', photon_index_error2='0.62', photon_index2='1.99', ts='4.58', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.05', time_epoch_completed='1630860758.08', return_code='0', job_id='524928', GAL2='0.90', EG2='1.06', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='3.17e-08', ts2='4.64', photon_index='2.15' WHERE bin_id='186' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:52:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 524928: <4FGL_J1221.5+2814_daily_bin186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin186 185.378 28.2382 287539201 287798401 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 :                                   931.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

