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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin873
RA = 185.378, Dec = 28.2382
tmin = 465609601, tmax = 465868801
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='530416', job_status='RUN', time_executed='2021-09-05 09:55:46.051638', time_epoch_executed='1630860946.05' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530416/ft1_4FGL_J1221.5+2814_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530416/ft2_4FGL_J1221.5+2814_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530416/ft1_4FGL_J1221.5+2814_daily_bin873.fits outfile=/scratch/kocevski/530416/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin873.fits ra=185.378 dec=28.2382 rad=12.0 tmin=465609601.0 tmax=465868801.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530416/ft2_4FGL_J1221.5+2814_daily_bin873.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/530416/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin873.fits evtable="EVENTS" outfile="/scratch/kocevski/530416/ft1_filtered_4FGL_J1221.5+2814_daily_bin873.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530416/ft1_filtered_4FGL_J1221.5+2814_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/530416/ft2_4FGL_J1221.5+2814_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/530416/ltcube_465609601_465868801_4FGL_J1221.5+2814_daily_bin873.fits outfile=/scratch/kocevski/530416/expmap_465609601_465868801_4FGL_J1221.5+2814_daily_bin873.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/530416/ltcube_465609601_465868801_4FGL_J1221.5+2814_daily_bin873.fits
.....................!
real 192.97
user 187.96
sys 4.57

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.883       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11136E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1734       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4951       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .89196       1.0000         .10000E-03   10000.    
    18 'norm      '    .32128       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.238       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15769E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9167       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9304       1.0000         .10000E-03   10000.    
    24 'norm      '    .96968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7737       1.0000         .10000E-03   10000.    
    26 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    7.4051       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3148       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .54409       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=   5604.345     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3378 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.534        17.512        .15724E-06    .60062E-04
   2  Prefactor     5.6177        7.1822        .68210E-06    .22577E-03
   3  Prefactor     7.5180        4.5186       -.59847E-07   -.87473E-04
   4  Prefactor     3.3697        29.201        .15688E-05    .69882E-04
   5  Prefactor     .16942        1.6590       -.62074E-06    .19114E-03
   6  Prefactor     21.907        23.760       -.18572E-06   -.56489E-04
   7  norm          5.9081        1.7146        .13197E-07    .59888E-04
   8  Prefactor     .10000E-03    2.3097        .67881E-06** at limit **
   9  Prefactor     .10000E-03    15.840       -.44612E-07** at limit **
  10  Prefactor     .10000E-03    .77798        .27519E-07** at limit **
  11  Prefactor     5.1733        3.4055        .68010E-06    .72654E-03
  12  norm          1.4951        2.3350        .13175E-06   -.68245E-04
  13  Prefactor     7.7505        6.7754        .37987E-06   -.16616E-03
  14  Prefactor     2.2727        1.9315       -.11908E-07   -.13965E-04
  15  Prefactor     3.7707        2.1872        .28070E-07   -.50376E-04
  16  Prefactor     .10000E-03    5.2400       -.95357E-06** at limit **
  17  norm          .89194        .29014        .39802E-08   -.26001E-03
  18  norm          .32168        2.8776        .86041E-06   -.40004E-03
  19  Prefactor     .10000E-03    2.2108        .10707E-07** at limit **
  20  Prefactor     25.262        23.353       -.93079E-06   -.17320E-03
  21  Prefactor     .10000E-03    45.340       -.56220E-07** at limit **
  22  Prefactor     2.9160        4.9156        .12345E-06   -.94152E-04
  23  Prefactor     8.9279        6.5529        .27131E-07   -.12028E-03
  24  norm          .96260        8.5159        .20965E-05   -.37048E-03
  25  Prefactor     1.8314        134.72       -.36961E-05   -.55644E-04
  26  norm          .10000E-03    2.0231        .24892E-07** at limit **
  27  norm          .10000E-03    1.5135        .39560E-07** at limit **
  28  norm          7.4065        4.9883        .34404E-06    .28957E-03
  29  Normalizat    1.3149        .18983       -.11236E-05   -.15613E-03
  30  Prefactor     .54411        .20473        .61682E-07   -.13486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5339
  Prefactor  = 5.61771
  Prefactor  = 7.51799
  Prefactor  = 3.36973
  Prefactor  = 0.169419
  Prefactor  = 21.907
  norm       = 5.90809
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17335
  norm       = 1.49506
  Prefactor  = 7.75053
  Prefactor  = 2.27272
  Prefactor  = 3.77075
  Prefactor  = 0.0001
  norm       = 0.891938
  norm       = 0.321685
  Prefactor  = 0.0001
  Prefactor  = 25.2617
  Prefactor  = 0.0001
  Prefactor  = 2.91595
  Prefactor  = 8.92789
  norm       = 0.962604
  Prefactor  = 1.83138
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.40646
  Normalizat = 1.3149
  Prefactor  = 0.544107
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.345     FROM HESSE     STATUS=OK           600 CALLS     3978 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.534        17.507        .80871E-04   -1.4717    
   2  Prefactor     5.6177        7.2306        .16941E-03   -1.5234    
   3  Prefactor     7.5180        4.5202        .11996E-03   -1.5160    
   4  Prefactor     3.3697        27.952        .22041E-03   -1.5341    
   5  Prefactor     .16942        3.3073        .16865E-02   -1.5626    
   6  Prefactor     21.907        23.871        .85624E-04   -1.4772    
   7  norm          5.9081        1.7111        .49633E-04   -1.5222    
   8  Prefactor     .10000E-03    5.3168        .21380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .78249        .64422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1733        3.4812        .11065E-03   -1.5253    
  12  norm          1.4951        2.3087        .13133E-03   -1.5463    
  13  Prefactor     7.7505        6.8232        .72035E-03   -1.5151    
  14  Prefactor     2.2727        1.9366        .88666E-04   -1.5406    
  15  Prefactor     3.7707        2.1823        .80436E-04   -1.5320    
  16  Prefactor     .10000E-03    5.3520        .16750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .89194        .28961        .21820E-04   -1.5519    
  18  norm          .32168        3.4788        .26847E-03   -1.5595    
  19  Prefactor     .10000E-03    2.2122        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.262        23.567        .79738E-04   -1.4702    
  21  Prefactor     .10000E-03    45.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9160        4.9112        .20871E-03   -1.5366    
  23  Prefactor     8.9279        6.5463        .13412E-03   -1.5110    
  24  norm          .96260        11.253        .26769E-02   -1.5512    
  25  Prefactor     1.8314        108.24        .31438E-03   -1.5437    
  26  norm          .10000E-03    2.0577        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.5196        .89625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          7.4065        5.0140        .13385E-03   -1.5164    
  29  Normalizat    1.3149        .21954        .21335E-03   -.83123    
  30  Prefactor     .54411        .23465        .35893E-03   -1.0999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12188e-09
Minuit parameter uncertainties:
  1  17.5106
  2  7.23175
  3  4.52042
  4  19.4225
  5  1.49675
  6  23.8809
  7  1.71109
  8  0.000136968
  9  2.52276e-06
  10  2.36172e-06
  11  3.48136
  12  2.30885
  13  6.8239
  14  1.93661
  15  2.18239
  16  5.41597e-05
  17  0.289611
  18  2.11556
  19  9.99492e-07
  20  23.5757
  21  3.41699e-05
  22  4.91188
  23  6.54679
  24  6.58377
  25  28.2111
  26  3.26332e-06
  27  7.27312e-06
  28  5.01425
  29  0.2197
  30  0.23507
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.771e+00  2.182e+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:  5.441e-01  2.351e-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.315e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.57e-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) = 5604.10098205
delta logL = 0.243982122533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5604.09012654
delta logL = 0.254837634716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8183       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5120       1.0000          .0000       10.000    
     3 'Normalizat'    1.2922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55996       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=   5604.090     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8183        2.3775        .64278E-04    .31571E-03
   2  Index         2.5120        .55954        .49229E-02    .44275E-04
   3  Normalizat    1.2922        .20653        .21480E-03   -.53657E-04
   4  Prefactor     .55989        .23025        .35413E-03   -.47576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81825
  Index      = 2.51201
  Normalizat = 1.29218
  Prefactor  = 0.55989
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.090     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8183        2.2326        .25711E-05   -1.5372    
   2  Index         2.5120        .52522        .19692E-03   -.52083    
   3  Normalizat    1.2922        .20637        .42961E-04   -.83800    
   4  Prefactor     .55989        .23017        .14165E-04   -1.0930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56527e-11
Minuit parameter uncertainties:
  1  2.23264
  2  0.526508
  3  0.206504
  4  0.230557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530416': 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) = 5604.09012642
delta logL = 0.254837750509

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.818e+00  2.233e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.512e+00  5.265e-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:  5.599e-01  2.306e-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.292e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.51 +/- 0.53
Photon Flux (Free Index): 7.40e-08 +/- 4.60e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.25e-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/530416/cmap_HighResolution_465609601_465868801_4FGL_J1221.5+2814_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='2.12e-05', photon_flux_error='3.19e-08', dlogl='2.55e-01', energy_flux='2.71e-05', photon_flux2='7.40e-08', job_status='DONE', time_completed='2021-09-05 10:07:49.392353', photon_index_error2='0.53', photon_index2='2.51', ts='5.81', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.31', time_epoch_completed='1630861669.39', return_code='0', job_id='530416', GAL2='0.56', EG2='1.29', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.60e-08', ts2='6.30', photon_index='2.15' WHERE bin_id='873' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:07:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 530416: <4FGL_J1221.5+2814_daily_bin873> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin873 185.378 28.2382 465609601 465868801 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 :                                   719.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            745 sec.

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

