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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin785
RA = 185.378, Dec = 28.2382
tmin = 442800001, tmax = 443059201
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='529174', job_status='RUN', time_executed='2021-09-05 09:50:45.957394', time_epoch_executed='1630860645.96' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/529174

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/529174/ft1_4FGL_J1221.5+2814_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/529174/ft2_4FGL_J1221.5+2814_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/529174/ft1_4FGL_J1221.5+2814_daily_bin785.fits outfile=/scratch/kocevski/529174/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin785.fits ra=185.378 dec=28.2382 rad=12.0 tmin=442800001.0 tmax=443059201.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.46
user 3.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/529174/ft1_filtered_4FGL_J1221.5+2814_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/529174/ft2_4FGL_J1221.5+2814_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/529174/ltcube_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.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/529174/ft2_4FGL_J1221.5+2814_daily_bin785.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/529174/ft1_filtered_4FGL_J1221.5+2814_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/529174/ft2_4FGL_J1221.5+2814_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/529174/ltcube_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.fits outfile=/scratch/kocevski/529174/expmap_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.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/529174/ltcube_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.fits
.....................!
real 190.90
user 185.67
sys 4.86

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/529174/ft1_filtered_4FGL_J1221.5+2814_daily_bin785.fits scfile=/scratch/kocevski/529174/ft2_4FGL_J1221.5+2814_daily_bin785.fits outfile=/scratch/kocevski/529174/cmap_HighResolution_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36656E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.522       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0330       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8156       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2525       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.851       1.0000         .10000E-03   10000.    
    21 'Prefactor '    88.918       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8922       1.0000         .10000E-03   10000.    
    24 'norm      '    2.3817       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.4752       1.0000         .10000E-03   10000.    
    27 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.544       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96442       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95205       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=   6195.907     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3932 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.608       -.20254E-06** at limit **
   2  Prefactor     8.6719        12.379        .30000E-07   -.38981E-04
   3  Prefactor     .10001E-03    3.9985        .83582E-06** at limit **
   4  Prefactor     7.7281        16.828       -.21763E-05   -.12784E-03
   5  Prefactor     .49610        1.5215        .27987E-06   -.38052E-03
   6  Prefactor     .10000E-03    15.692       -.11315E-07** at limit **
   7  norm          4.4433        1.5972       -.12197E-07   -.49448E-04
   8  Prefactor     4.3452        3.7650       -.71385E-07   -.14259E-03
   9  Prefactor     25.528        29.989        .42756E-05    .22234E-03
  10  Prefactor     .10000E-03    1.1300       -.11224E-07** at limit **
  11  Prefactor     .10000E-03    2.0862        .59403E-08** at limit **
  12  norm          17.102        4.8329       -.10506E-06   -.66909E-04
  13  Prefactor     2.0331        5.2168       -.11218E-06   -.21889E-03
  14  Prefactor     3.4007        2.6735       -.78135E-08   -.28654E-04
  15  Prefactor     1.9672        1.8454       -.60237E-07   -.71514E-04
  16  Prefactor     2.8154        5.0177       -.51463E-07   -.17572E-03
  17  norm          1.2525        .32539       -.28573E-08    .16482E-03
  18  norm          4.4610        3.4832        .23161E-07    .40833E-04
  19  Prefactor     3.3700        4.7994        .21049E-05   -.20412E-02
  20  Prefactor     10.850        13.432       -.36443E-07   -.68215E-05
  21  Prefactor     88.896        79.726       -.12200E-04   -.30565E-03
  22  Prefactor     .10000E-03    6.9539       -.17924E-06** at limit **
  23  Prefactor     5.8917        5.4599       -.33150E-07   -.19031E-04
  24  norm          2.3814        4.0104        .87376E-06   -.94951E-04
  25  Prefactor     .10000E-03    30.804        .44234E-07** at limit **
  26  norm          5.4752        3.8453        .31637E-08   -.52091E-04
  27  norm          .10000E-03    3.3523       -.40973E-07** at limit **
  28  norm          12.541        6.8854        .39797E-07    .16277E-04
  29  Normalizat    .96430        .18034        .66791E-06   -.11343E-03
  30  Prefactor     .95225        .19700       -.35992E-06   -.38820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.67187
  Prefactor  = 0.000100008
  Prefactor  = 7.72807
  Prefactor  = 0.496104
  Prefactor  = 0.0001
  norm       = 4.4433
  Prefactor  = 4.34522
  Prefactor  = 25.5277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1018
  Prefactor  = 2.03313
  Prefactor  = 3.4007
  Prefactor  = 1.96719
  Prefactor  = 2.81542
  norm       = 1.2525
  norm       = 4.461
  Prefactor  = 3.37002
  Prefactor  = 10.85
  Prefactor  = 88.8963
  Prefactor  = 0.0001
  Prefactor  = 5.89173
  norm       = 2.38137
  Prefactor  = 0.0001
  norm       = 5.47521
  norm       = 0.0001
  norm       = 12.5412
  Normalizat = 0.964299
  Prefactor  = 0.95225
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.907     FROM HESSE     STATUS=OK           596 CALLS     4528 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6719        12.360        .13617E-03   -1.5119    
   3  Prefactor     .10001E-03    10.906        .30200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7281        16.603        .14421E-03   -1.5152    
   5  Prefactor     .49610        1.4775        .15688E-03   -1.5567    
   6  Prefactor     .10000E-03    15.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4433        1.5972        .56048E-04   -1.5286    
   8  Prefactor     4.3452        3.7562        .13577E-03   -1.5291    
   9  Prefactor     25.528        30.225        .79295E-04   -1.4697    
  10  Prefactor     .10000E-03    3.2224        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1746        .22180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.102        4.8311        .82402E-04   -1.4881    
  13  Prefactor     2.0331        5.2076        .27824E-03   -1.5423    
  14  Prefactor     3.4007        2.6748        .10381E-03   -1.5339    
  15  Prefactor     1.9672        1.8394        .98393E-04   -1.5427    
  16  Prefactor     2.8154        4.9980        .22329E-03   -1.5372    
  17  norm          1.2525        .32548        .21501E-04   -1.5484    
  18  norm          4.4610        3.4792        .12394E-03   -1.5286    
  19  Prefactor     3.3700        7.1509        .11020E-02   -1.5341    
  20  Prefactor     10.850        13.429        .12163E-03   -1.5049    
  21  Prefactor     88.896        81.561        .42610E-04   -1.3819    
  22  Prefactor     .10000E-03    7.1969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8917        5.4595        .16544E-03   -1.5222    
  24  norm          2.3814        3.9815        .18946E-03   -1.5399    
  25  Prefactor     .10000E-03    31.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.4752        3.8433        .12452E-03   -1.5240    
  27  norm          .10000E-03    3.4069        .27871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.541        6.8203        .11310E-03   -1.5000    
  29  Normalizat    .96430        .20938        .25397E-03   -.94236    
  30  Prefactor     .95225        .22783        .29410E-03   -.94339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01293e-09
Minuit parameter uncertainties:
  1  1.7799e-05
  2  12.3638
  3  0.000605921
  4  16.6124
  5  1.47758
  6  6.64352e-05
  7  1.5972
  8  3.75642
  9  30.2428
  10  7.93091e-07
  11  1.75341e-06
  12  4.83122
  13  5.20875
  14  2.67489
  15  1.83945
  16  4.99878
  17  0.325485
  18  3.47931
  19  7.15275
  20  13.433
  21  81.664
  22  1.35754e-05
  23  5.46
  24  3.98191
  25  4.25424e-05
  26  3.84344
  27  3.43431e-06
  28  6.82073
  29  0.209559
  30  0.228063
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.967e+00  1.839e+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.523e-01  2.281e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.643e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.32e-05

TS (Fixed Index): 2.76
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/529174/likelihoodResults_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.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) = 6195.43474506
delta logL = 0.471961165685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6195.43042014
delta logL = 0.476286085815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0941       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0017       1.0000          .0000       10.000    
     3 'Normalizat'    .92078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98126       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=   6195.430     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      235 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0941        12.033        .11405E-01    .16635E-02
   2  Index         3.0017        3.1295        .11478        .11547E-03
   3  Normalizat    .92081        .52712E-01    .45167E-01    .17883E-03
   4  Prefactor     .98123        .56186E-01    .46032E-01   -.18037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09408
  Index      = 3.00174
  Normalizat = 0.920808
  Prefactor  = 0.981227
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.430     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0941        2.0260        .54789E-04   -1.5499    
   2  Index         3.0017        1.1932        .59227E-02   -.41114    
   3  Normalizat    .92081        .20549        .25873E-03   -.95733    
   4  Prefactor     .98123        .23073        .28978E-03   -.93358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53826e-08
Minuit parameter uncertainties:
  1  2.02609
  2  1.2071
  3  0.205668
  4  0.230962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/529174': 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) = 6195.43042013
delta logL = 0.476286095143

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.094e+00  2.026e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.002e+00  1.207e+00  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.812e-01  2.310e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.208e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 185.378 28.238
Photon Index (Free Index): 3.00 +/- 1.21
Photon Flux (Free Index): 6.97e-08 +/- 6.17e-08
Energy Flux (Free Index): 1.39e-05 +/- 9.62e-06

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/529174/cmap_HighResolution_442800001_443059201_4FGL_J1221.5+2814_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.39e-05', photon_flux_error='2.69e-08', dlogl='4.76e-01', energy_flux='1.42e-05', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-09-05 10:05:50.087874', photon_index_error2='1.21', photon_index2='3.00', ts='2.76', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.59e-08', energy_flux_error2='9.62e-06', EG='0.96', time_epoch_completed='1630861550.09', return_code='0', job_id='529174', GAL2='0.98', EG2='0.92', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.17e-08', ts2='3.77', photon_index='2.15' WHERE bin_id='785' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 529174: <4FGL_J1221.5+2814_daily_bin785> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin785 185.378 28.2382 442800001 443059201 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 :                                   901.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

