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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin999
RA = 185.378, Dec = 28.2382
tmin = 498268801, tmax = 498528001
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='530602', job_status='RUN', time_executed='2021-09-05 09:55:56.084066', time_epoch_executed='1630860956.08' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530602

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530602/ft1_4FGL_J1221.5+2814_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530602/ft2_4FGL_J1221.5+2814_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530602/ft1_4FGL_J1221.5+2814_daily_bin999.fits outfile=/scratch/kocevski/530602/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin999.fits ra=185.378 dec=28.2382 rad=12.0 tmin=498268801.0 tmax=498528001.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 4.84
user 4.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530602/ft1_filtered_4FGL_J1221.5+2814_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/530602/ft2_4FGL_J1221.5+2814_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/530602/ltcube_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.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/530602/ft2_4FGL_J1221.5+2814_daily_bin999.fits
.....................!
real 12.34
user 11.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530602/ft1_filtered_4FGL_J1221.5+2814_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/530602/ft2_4FGL_J1221.5+2814_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/530602/ltcube_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.fits outfile=/scratch/kocevski/530602/expmap_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.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/530602/ltcube_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.fits
.....................!
real 192.14
user 185.91
sys 5.87

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/530602/ft1_filtered_4FGL_J1221.5+2814_daily_bin999.fits scfile=/scratch/kocevski/530602/ft2_4FGL_J1221.5+2814_daily_bin999.fits outfile=/scratch/kocevski/530602/cmap_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.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.55
user 0.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0046       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9271       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38074       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.186       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6996       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.691       1.0000         .10000E-03   10000.    
    17 'norm      '    .60745       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2459       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.136       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    47.077       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .68690E-01   1.0000         .10000E-03   10000.    
    28 'norm      '    2.8830       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91786       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99208       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=   5231.491     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4058 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.908       -.11499E-05** at limit **
   2  Prefactor     3.6825        10.734        .43125E-06    .12506E-04
   3  Prefactor     8.0628        6.2620        .12189E-05   -.31513E-03
   4  Prefactor     8.0028        15.902        .51478E-06   -.55324E-04
   5  Prefactor     .15027        1.2089        .10327E-05   -.24009E-03
   6  Prefactor     1.9154        106.56        .80726E-06   -.88101E-05
   7  norm          .10000E-03    .40520       -.26124E-07** at limit **
   8  Prefactor     .37843        3.8063        .63653E-06   -.24616E-03
   9  Prefactor     13.364        37.152        .98842E-06   -.38692E-04
  10  Prefactor     .76232        3.0746        .17213E-06   -.17045E-03
  11  Prefactor     .10000E-03    2.1942       -.10413E-06** at limit **
  12  norm          14.186        4.4187        .57092E-07   -.42313E-04
  13  Prefactor     .10000E-03    4.9116       -.70172E-07** at limit **
  14  Prefactor     2.6996        2.3795       -.63474E-09   -.22824E-04
  15  Prefactor     2.8180        2.8257        .16604E-06   -.86545E-04
  16  Prefactor     13.692        9.4036       -.79495E-07   -.12672E-03
  17  norm          .60732        .30384        .36929E-07   -.51875E-03
  18  norm          9.2440        5.8296        .17909E-06   -.30119E-04
  19  Prefactor     36.131        15.145        .14343E-06   -.37235E-04
  20  Prefactor     .10000E-03    6.6260        .65384E-07** at limit **
  21  Prefactor     .10000E-03    28.682        .54638E-06** at limit **
  22  Prefactor     .10000E-03    3.9700       -.32822E-07** at limit **
  23  Prefactor     .10000E-03    1.6290        .12054E-06** at limit **
  24  norm          .10000E-03    2.5628        .88863E-06** at limit **
  25  Prefactor     47.166        26.033        .11040E-05    .25463E-04
  26  norm          .10000E-03    1.5704       -.17752E-07** at limit **
  27  norm          .10321E-03    2.7238        .17667E-05** at limit **
  28  norm          2.9811        4.8831       -.26031E-05   -.84127E-03
  29  Normalizat    .91817        .19670       -.41204E-05   -.18324E-03
  30  Prefactor     .99198        .21135        .21551E-05   -.36558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.68249
  Prefactor  = 8.06281
  Prefactor  = 8.00285
  Prefactor  = 0.150268
  Prefactor  = 1.91544
  norm       = 0.0001
  Prefactor  = 0.378425
  Prefactor  = 13.3639
  Prefactor  = 0.76232
  Prefactor  = 0.0001
  norm       = 14.1859
  Prefactor  = 0.0001
  Prefactor  = 2.69955
  Prefactor  = 2.81803
  Prefactor  = 13.6922
  norm       = 0.607321
  norm       = 9.24396
  Prefactor  = 36.1308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.1656
  norm       = 0.0001
  norm       = 0.000103211
  norm       = 2.98107
  Normalizat = 0.918169
  Prefactor  = 0.991979
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.491     FROM HESSE     STATUS=OK           606 CALLS     4664 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6825        10.689        .21031E-03   -1.5324    
   3  Prefactor     8.0628        6.1855        .70595E-03   -1.5140    
   4  Prefactor     8.0028        15.837        .14172E-03   -1.5142    
   5  Prefactor     .15027        1.1905        .15283E-03   -1.5630    
   6  Prefactor     1.9154        100.88        .29924E-03   -1.5431    
   7  norm          .10000E-03    .41313        .44895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .37843        6.8841        .24440E-02   -1.5585    
   9  Prefactor     13.364        36.358        .10952E-03   -1.4977    
  10  Prefactor     .76232        4.2748        .21387E-02   -1.5533    
  11  Prefactor     .10000E-03    2.2703        .20862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.186        4.4139        .78020E-04   -1.4955    
  13  Prefactor     .10000E-03    4.9565        .15648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6996        2.3806        .97829E-04   -1.5379    
  15  Prefactor     2.8180        2.8047        .11159E-03   -1.5372    
  16  Prefactor     13.692        9.3941        .10825E-03   -1.4968    
  17  norm          .60732        .30047        .26245E-04   -1.5552    
  18  norm          9.2440        5.8258        .12828E-03   -1.5100    
  19  Prefactor     36.131        15.121        .66669E-04   -1.4505    
  20  Prefactor     .10000E-03    6.6308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0099        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6296        .90154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.6070        .11274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     47.166        26.755        .58440E-04   -1.4333    
  26  norm          .10000E-03    1.5805        .88497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10321E-03    9.6534        .34856E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.9811        6.4645        .19505E-03   -1.5363    
  29  Normalizat    .91817        .21876        .24467E-03   -.95825    
  30  Prefactor     .99198        .23861        .27642E-03   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5704e-08
Minuit parameter uncertainties:
  1  0.000151409
  2  10.6948
  3  6.186
  4  15.8453
  5  0.84565
  6  27.8502
  7  1.32969e-06
  8  3.22807
  9  36.4184
  10  3.61058
  11  2.57925e-06
  12  4.41402
  13  1.48228e-05
  14  2.38068
  15  2.80484
  16  9.39516
  17  0.300473
  18  5.82618
  19  15.1222
  20  1.37254e-06
  21  2.28582e-05
  22  8.09958e-06
  23  9.00919e-07
  24  1.99034e-05
  25  26.7613
  26  4.57517e-06
  27  0.0111374
  28  6.46604
  29  0.218976
  30  0.238869
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.818e+00  2.805e+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.920e-01  2.389e-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.182e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/530602/likelihoodResults_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.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) = 5231.39980197
delta logL = 0.0914171586264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5231.39605379
delta logL = 0.0951653376624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2537       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4701       1.0000          .0000       10.000    
     3 'Normalizat'    .90330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       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=   5231.396     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      234 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2537        51.221        .68421E-02    .11822E-02
   2  Index         2.4701        6.2207        .13167        .11357E-03
   3  Normalizat    .90330        .70879E-01    .44944E-01    .51939E-04
   4  Prefactor     1.0027        .70004E-01    .44752E-01   -.38117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25368
  Index      = 2.47011
  Normalizat = 0.903298
  Prefactor  = 1.00271
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.396     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2537        3.0568        .92068E-04   -1.5408    
   2  Index         2.4701        .86364        .73503E-02   -.53051    
   3  Normalizat    .90330        .20330        .24631E-03   -.96344    
   4  Prefactor     1.0027        .23553        .27505E-03   -.92639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33427e-10
Minuit parameter uncertainties:
  1  3.05697
  2  0.869514
  3  0.203477
  4  0.23577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530602': 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) = 5231.39605379
delta logL = 0.0951653379007

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.254e+00  3.057e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.470e+00  8.695e-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:  1.003e+00  2.358e-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.033e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.47 +/- 0.87
Photon Flux (Free Index): 5.51e-08 +/- 5.49e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.74e-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/530602/cmap_HighResolution_498268801_498528001_4FGL_J1221.5+2814_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='1.65e-05', photon_flux_error='4.10e-08', dlogl='9.52e-02', energy_flux='2.03e-05', photon_flux2='5.51e-08', job_status='DONE', time_completed='2021-09-05 10:10:15.097949', photon_index_error2='0.87', photon_index2='2.47', ts='1.42', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.74e-05', EG='0.92', time_epoch_completed='1630861815.1', return_code='0', job_id='530602', GAL2='1.00', EG2='0.90', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='5.49e-08', ts2='1.66', photon_index='2.15' WHERE bin_id='999' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:10:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 530602: <4FGL_J1221.5+2814_daily_bin999> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin999 185.378 28.2382 498268801 498528001 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 :                                   845.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            876 sec.

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

