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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1432
RA = 185.378, Dec = 28.2382
tmin = 610502401, tmax = 610761601
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='532539', job_status='RUN', time_executed='2021-09-05 10:01:35.710236', time_epoch_executed='1630861295.71' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532539

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532539/ft1_4FGL_J1221.5+2814_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532539/ft2_4FGL_J1221.5+2814_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532539/ft1_4FGL_J1221.5+2814_daily_bin1432.fits outfile=/scratch/kocevski/532539/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1432.fits ra=185.378 dec=28.2382 rad=12.0 tmin=610502401.0 tmax=610761601.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.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532539/ft2_4FGL_J1221.5+2814_daily_bin1432.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/532539/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1432.fits evtable="EVENTS" outfile="/scratch/kocevski/532539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1432.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.51
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/532539/ft2_4FGL_J1221.5+2814_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/532539/ltcube_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.fits outfile=/scratch/kocevski/532539/expmap_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.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/532539/ltcube_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.fits
.....................!
real 190.38
user 185.81
sys 4.12

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/532539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1432.fits scfile=/scratch/kocevski/532539/ft2_4FGL_J1221.5+2814_daily_bin1432.fits outfile=/scratch/kocevski/532539/cmap_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.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/532539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1432.fits scfile=/scratch/kocevski/532539/ft2_4FGL_J1221.5+2814_daily_bin1432.fits outfile=/scratch/kocevski/532539/cmap_HighResolution_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8765       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2141       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0782       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7756       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11629E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.29       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.275       1.0000         .10000E-03   10000.    
    24 'norm      '    .10947E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    56.484       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.8875       1.0000         .10000E-03   10000.    
    28 'norm      '    .81827E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0805       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0745       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=   6094.056     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3965 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8783        16.371        .54324E-06    .18406E-04
   2  Prefactor     .10000E-03    27.278        .36644E-06** at limit **
   3  Prefactor     2.3375        3.2467        .74009E-07   -.99677E-04
   4  Prefactor     .10000E-03    28.290        .43755E-06** at limit **
   5  Prefactor     1.2141        1.3489        .12490E-06    .10759E-03
   6  Prefactor     .10000E-03    41.777        .71282E-06** at limit **
   7  norm          .10000E-03    .39833        .11340E-06** at limit **
   8  Prefactor     .10000E-03    1.3524       -.50866E-07** at limit **
   9  Prefactor     46.323        42.635        .89590E-06    .10512E-03
  10  Prefactor     2.0779        2.9868        .10006E-05   -.24027E-04
  11  Prefactor     .10000E-03    2.9795        .96863E-06** at limit **
  12  norm          10.407        4.0382       -.22729E-08    .10794E-03
  13  Prefactor     .10000E-03    3.0751        .13618E-06** at limit **
  14  Prefactor     3.0642        2.3589        .54691E-08    .88827E-04
  15  Prefactor     2.7763        2.5385        .17481E-06    .34536E-03
  16  Prefactor     .10000E-03    5.0194       -.91796E-06** at limit **
  17  norm          .10000E-03    .40127E-01   -.16065E-07** at limit **
  18  norm          4.7823        3.6424       -.18690E-06   -.27569E-03
  19  Prefactor     .10013E-03    6.6169       -.23691E-05** at limit **
  20  Prefactor     .10000E-03    6.8641        .64035E-07** at limit **
  21  Prefactor     112.26        76.371       -.11836E-05   -.23663E-03
  22  Prefactor     .65691        8.6378        .60043E-05    .21507E-03
  23  Prefactor     10.275        8.8171        .96460E-06    .17629E-03
  24  norm          .10000E-03    3.3798        .37360E-06** at limit **
  25  Prefactor     56.503        35.106        .55672E-06    .27486E-03
  26  norm          .10000E-03    1.7334       -.83794E-07** at limit **
  27  norm          7.8842        4.7018       -.12466E-06    .78147E-04
  28  norm          .10000E-03    6.4879       -.29402E-06** at limit **
  29  Normalizat    1.0804        .18772       -.18089E-05   -.51058E-04
  30  Prefactor     1.0746        .20418        .71399E-06   -.10628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.8783
  Prefactor  = 0.0001
  Prefactor  = 2.33748
  Prefactor  = 0.0001
  Prefactor  = 1.21407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3235
  Prefactor  = 2.07791
  Prefactor  = 0.000100003
  norm       = 10.4074
  Prefactor  = 0.0001
  Prefactor  = 3.06422
  Prefactor  = 2.77634
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.78234
  Prefactor  = 0.000100134
  Prefactor  = 0.0001
  Prefactor  = 112.258
  Prefactor  = 0.656914
  Prefactor  = 10.275
  norm       = 0.0001
  Prefactor  = 56.5029
  norm       = 0.0001
  norm       = 7.88425
  norm       = 0.000100004
  Normalizat = 1.08037
  Prefactor  = 1.07463
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.056     FROM HESSE     STATUS=OK           592 CALLS     4557 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8783        16.310        .15300E-03   -1.5183    
   2  Prefactor     .10000E-03    28.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3375        3.2337        .16129E-03   -1.5402    
   4  Prefactor     .10000E-03    28.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2141        1.3198        .92463E-04   -1.5488    
   6  Prefactor     .10000E-03    42.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .68290        .95353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3612        .88625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.323        42.926        .58917E-04   -1.4346    
  10  Prefactor     2.0779        2.8421        .14763E-03   -1.5420    
  11  Prefactor     .10000E-03    4.9318        .23660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.407        4.0449        .87930E-04   -1.5063    
  13  Prefactor     .10000E-03    3.0837        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0642        2.3628        .96719E-04   -1.5358    
  15  Prefactor     2.7763        2.5224        .11011E-03   -1.5375    
  16  Prefactor     .10000E-03    5.2107        .34034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .40882E-01    .15254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7823        3.6325        .12549E-03   -1.5271    
  19  Prefactor     .10013E-03    25.140        .34495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     112.26        76.834        .18981E-03   -1.3585    
  22  Prefactor     .65691        9.0953        .44850E-03   -1.5546    
  23  Prefactor     10.275        8.8429        .62501E-03   -1.5067    
  24  norm          .10000E-03    3.4608        .27945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     56.503        35.231        .53376E-04   -1.4203    
  26  norm          .10000E-03    1.7488        .10036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.8842        4.1364        .10832E-03   -1.5146    
  28  norm          .10000E-03    20.278        .33672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0804        .22572        .24842E-03   -.90385    
  30  Prefactor     1.0746        .24559        .28413E-03   -.90282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87239e-09
Minuit parameter uncertainties:
  1  16.3202
  2  9.65845e-05
  3  3.23392
  4  0.000191487
  5  1.31986
  6  5.85278e-05
  7  8.62648e-07
  8  3.28414e-06
  9  42.9546
  10  2.84224
  11  0.000253816
  12  4.04501
  13  9.38488e-06
  14  2.36286
  15  2.52248
  16  7.28768e-05
  17  7.43838e-08
  18  3.63263
  19  0.00367092
  20  1.59249e-05
  21  76.9025
  22  4.88921
  23  8.84403
  24  7.33866e-06
  25  35.2443
  26  3.79093e-06
  27  4.13656
  28  0.000548196
  29  0.225926
  30  0.245852
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.776e+00  2.522e+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:  1.075e+00  2.459e-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.080e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.06e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.81e-05

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

Saving results to:
/scratch/kocevski/532539/likelihoodResults_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.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) = 6092.44952624
delta logL = 1.60673962739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6092.32714936
delta logL = 1.72911650628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50065       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6510       1.0000          .0000       10.000    
     3 'Normalizat'    .98714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1467       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=   6092.327     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      249 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49967        3.7035        .61896E-02    .81097E-02
   2  Index         3.6526        2.3211        .91202E-01    .62968E-03
   3  Normalizat    .98717        .56667E-01    .46006E-01    .59379E-03
   4  Prefactor     1.1466        .64319E-01    .62442E-01    .25639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.499674
  Index      = 3.65255
  Normalizat = 0.987174
  Prefactor  = 1.1466
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.327     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49967        6.7603        .27831E-04   -1.5567    
   2  Index         3.6526        3.3644        .36346E-02   -.27286    
   3  Normalizat    .98717        .21109        .25768E-03   -.93461    
   4  Prefactor     1.1466        .24267        .27617E-03   -.87991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0287e-09
Minuit parameter uncertainties:
  1  3.67598
  2  3.72498
  3  0.211267
  4  0.242906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532539': 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): 102
logL (Free Index) = 6092.32714593
delta logL = 1.72911993842

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.997e-01  3.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.653e+00  3.725e+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:  1.147e+00  2.429e-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.872e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.46
Ra Dec: 185.378 28.238
Photon Index (Free Index): 3.65 +/- 3.72
Photon Flux (Free Index): 1.13e-07 +/- 6.07e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.61e-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/532539/cmap_HighResolution_610502401_610761601_4FGL_J1221.5+2814_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', photon_flux='4.06e-08', energy_flux2='1.82e-05', photon_flux_error='3.69e-08', dlogl='1.73e+00', energy_flux='2.00e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-05 10:16:49.567556', photon_index_error2='3.72', photon_index2='3.65', ts='1.75', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.61e-05', EG='1.08', time_epoch_completed='1630862209.57', return_code='0', job_id='532539', GAL2='1.15', EG2='0.99', return_code2='102', energy_flux_error='1.81e-05', photon_flux_error2='6.07e-08', ts2='5.46', photon_index='2.15' WHERE bin_id='1432' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:16:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 532539: <4FGL_J1221.5+2814_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1432> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:07 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:01:09 2021
Terminated at Sun Sep  5 10:16:50 2021
Results reported at Sun Sep  5 10:16:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1432 185.378 28.2382 610502401 610761601 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 :                                   906.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

