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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1034
RA = 185.378, Dec = 28.2382
tmin = 507340801, tmax = 507600001
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='530653', job_status='RUN', time_executed='2021-09-05 09:55:56.681041', time_epoch_executed='1630860956.68' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530653/ft1_4FGL_J1221.5+2814_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530653/ft2_4FGL_J1221.5+2814_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530653/ft1_4FGL_J1221.5+2814_daily_bin1034.fits outfile=/scratch/kocevski/530653/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1034.fits ra=185.378 dec=28.2382 rad=12.0 tmin=507340801.0 tmax=507600001.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.63
user 3.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530653/ft1_filtered_4FGL_J1221.5+2814_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/530653/ft2_4FGL_J1221.5+2814_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/530653/ltcube_507340801_507600001_4FGL_J1221.5+2814_daily_bin1034.fits outfile=/scratch/kocevski/530653/expmap_507340801_507600001_4FGL_J1221.5+2814_daily_bin1034.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/530653/ltcube_507340801_507600001_4FGL_J1221.5+2814_daily_bin1034.fits
.....................!
real 189.26
user 184.81
sys 3.90

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/530653/ft1_filtered_4FGL_J1221.5+2814_daily_bin1034.fits scfile=/scratch/kocevski/530653/ft2_4FGL_J1221.5+2814_daily_bin1034.fits outfile=/scratch/kocevski/530653/cmap_507340801_507600001_4FGL_J1221.5+2814_daily_bin1034.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530653/ft1_filtered_4FGL_J1221.5+2814_daily_bin1034.fits scfile=/scratch/kocevski/530653/ft2_4FGL_J1221.5+2814_daily_bin1034.fits outfile=/scratch/kocevski/530653/cmap_HighResolution_507340801_507600001_4FGL_J1221.5+2814_daily_bin1034.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.178       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2541       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9418       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5788       1.0000         .10000E-03   10000.    
    12 'norm      '    14.191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .85551E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .55068       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1319       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.667       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4467       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9468       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.073       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0085       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=   6400.943     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3941 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6739       -.18860E-06** at limit **
   2  Prefactor     .10000E-03    4.8352       -.50805E-06** at limit **
   3  Prefactor     .10000E-03    1.3823       -.95352E-07** at limit **
   4  Prefactor     26.181        20.308        .24234E-05    .77704E-03
   5  Prefactor     .10000E-03    .81591       -.99312E-06** at limit **
   6  Prefactor     .10000E-03    9.2559       -.53850E-06** at limit **
   7  norm          1.7931        1.0737        .20618E-07    .72311E-03
   8  Prefactor     3.2543        4.4496        .38585E-06    .34888E-03
   9  Prefactor     .10000E-03    17.043       -.28202E-06** at limit **
  10  Prefactor     3.9420        3.0058        .23978E-07    .20968E-03
  11  Prefactor     8.5782        4.6181        .49280E-07    .16065E-03
  12  norm          14.191        4.0934        .41170E-07    .21975E-03
  13  Prefactor     .10000E-03    2.5844       -.69863E-07** at limit **
  14  Prefactor     3.1590        1.9927        .12823E-07    .90895E-04
  15  Prefactor     5.8855        2.6263        .68441E-07    .42101E-03
  16  Prefactor     .34892E-01    6.1933       -.37836E-06    .79468E-05
  17  norm          .55089        .24264        .25723E-07    .25641E-02
  18  norm          3.1374        3.2530        .32726E-06    .58716E-03
  19  Prefactor     .10000E-03    4.3139        .31801E-06** at limit **
  20  Prefactor     .10000E-03    10.121        .13978E-06** at limit **
  21  Prefactor     11.738        126.38       -.15001E-04   -.27554E-04
  22  Prefactor     1.4445        10.189        .16296E-04   -.10901E-03
  23  Prefactor     .10000E-03    3.0828       -.11248E-06** at limit **
  24  norm          8.9469        6.0634        .63031E-06    .43810E-03
  25  Prefactor     11.055        28.039        .11534E-05    .77429E-04
  26  norm          .10000E-03    3.5825       -.12862E-06** at limit **
  27  norm          .10000E-03    2.2101       -.16871E-06** at limit **
  28  norm          .10000E-03    2.0924       -.85739E-07** at limit **
  29  Normalizat    1.0025        .17710       -.16654E-05    .92857E-03
  30  Prefactor     1.0091        .19508        .68856E-06    .83873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1806
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.79308
  Prefactor  = 3.25426
  Prefactor  = 0.0001
  Prefactor  = 3.94196
  Prefactor  = 8.57824
  norm       = 14.1912
  Prefactor  = 0.0001
  Prefactor  = 3.15898
  Prefactor  = 5.88549
  Prefactor  = 0.0348919
  norm       = 0.550892
  norm       = 3.1374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7383
  Prefactor  = 1.44454
  Prefactor  = 0.0001
  norm       = 8.94689
  Prefactor  = 11.0551
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.00253
  Prefactor  = 1.00908
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.943     FROM HESSE     STATUS=OK           590 CALLS     4531 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8612        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3892        .91861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.181        20.218        .78296E-04   -1.4684    
   5  Prefactor     .10000E-03    6.0191        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7931        1.0738        .31231E-04   -1.5440    
   8  Prefactor     3.2543        4.4263        .18169E-03   -1.5347    
   9  Prefactor     .10000E-03    17.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9420        2.9911        .10927E-03   -1.5311    
  11  Prefactor     8.5782        4.6110        .11628E-03   -1.5122    
  12  norm          14.191        4.0941        .80846E-04   -1.4954    
  13  Prefactor     .10000E-03    2.5957        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1590        1.9937        .85139E-04   -1.5352    
  15  Prefactor     5.8855        2.6238        .81300E-04   -1.5223    
  16  Prefactor     .34892E-01    8.1078        .52281E-01   -1.5671    
  17  norm          .55089        .24080        .24765E-04   -1.5560    
  18  norm          3.1374        3.2619        .13862E-03   -1.5354    
  19  Prefactor     .10000E-03    4.3256        .16226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.738        126.33        .11728E-03   -1.5023    
  22  Prefactor     1.4445        10.259        .17919E-02   -1.5468    
  23  Prefactor     .10000E-03    3.1132        .13717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9469        6.0395        .13203E-03   -1.5110    
  25  Prefactor     11.055        27.984        .12040E-03   -1.5043    
  26  norm          .10000E-03    3.6991        .29555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2611        .23197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.0976        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0025        .20964        .24483E-03   -.92946    
  30  Prefactor     1.0091        .23121        .28528E-03   -.92427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47272e-09
Minuit parameter uncertainties:
  1  4.40448e-05
  2  4.05352e-05
  3  7.47545e-06
  4  20.2233
  5  0.000293483
  6  4.84938e-05
  7  1.0738
  8  4.42671
  9  7.62288e-05
  10  2.99125
  11  4.61114
  12  4.0942
  13  7.45818e-06
  14  1.9937
  15  2.62385
  16  1.06238
  17  0.240796
  18  3.26204
  19  1.47539e-05
  20  2.38635e-05
  21  77.2267
  22  7.70066
  23  1.43042e-05
  24  6.03994
  25  28.0176
  26  1.92565e-05
  27  1.70724e-05
  28  8.36243e-06
  29  0.209815
  30  0.231434
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.885e+00  2.624e+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.009e+00  2.314e-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.003e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.20
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.61e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 1.89e-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) = 6400.47920437
delta logL = 0.463780769165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.47670738
delta logL = 0.466277759777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9799       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8522       1.0000          .0000       10.000    
     3 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99243       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=   6400.477     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      224 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9774        9.1780        .37962E-02    .16479E-03
   2  Index         1.8526        .79092        .13333        .16224E-03
   3  Normalizat    1.0245        .17787        .42777E-01    .16866E-03
   4  Prefactor     .99218        .20590        .46172E-01   -.45221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.97736
  Index      = 1.85261
  Normalizat = 1.02453
  Prefactor  = 0.992175
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.477     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9774        3.1618        .91723E-04   -1.5180    
   2  Index         1.8526        .29953        .53656E-02   -.68088    
   3  Normalizat    1.0245        .19595        .24262E-03   -.92213    
   4  Prefactor     .99218        .22891        .28724E-03   -.92991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90807e-10
Minuit parameter uncertainties:
  1  3.16184
  2  0.299831
  3  0.19609
  4  0.229137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530653': 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) = 6400.47670566
delta logL = 0.466279481436

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.977e+00  3.162e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.853e+00  2.998e-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.922e-01  2.291e-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.025e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.28
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.85 +/- 0.30
Photon Flux (Free Index): 6.73e-08 +/- 3.67e-08
Energy Flux (Free Index): 6.90e-05 +/- 4.92e-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/530653/cmap_HighResolution_507340801_507600001_4FGL_J1221.5+2814_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.61e-08', energy_flux2='6.90e-05', photon_flux_error='3.84e-08', dlogl='4.66e-01', energy_flux='4.23e-05', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-05 10:09:40.875522', photon_index_error2='0.30', photon_index2='1.85', ts='14.20', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.92e-05', EG='1.00', time_epoch_completed='1630861780.88', return_code='0', job_id='530653', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='3.67e-08', ts2='15.28', photon_index='2.15' WHERE bin_id='1034' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 530653: <4FGL_J1221.5+2814_daily_bin1034> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1034> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:55:42 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:55:43 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:43 2021
Terminated at Sun Sep  5 10:09:41 2021
Results reported at Sun Sep  5 10:09:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1034 185.378 28.2382 507340801 507600001 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 :                                   807.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

