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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin1410
RA = 185.883, Dec = 8.3017
tmin = 604800001, tmax = 605059201
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='551193', job_status='RUN', time_executed='2021-09-05 11:01:06.899291', time_epoch_executed='1630864866.9' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551193/ft1_4FGL_J1223.5+0818_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551193/ft1_4FGL_J1223.5+0818_daily_bin1410.fits outfile=/scratch/kocevski/551193/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1410.fits ra=185.883 dec=8.3017 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.09
user 4.81
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.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/551193/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.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.59
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/551193/ltcube_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.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/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits
.....................!
real 12.10
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/551193/ltcube_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.fits outfile=/scratch/kocevski/551193/expmap_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.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/551193/ltcube_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.fits
.....................!
real 191.99
user 187.15
sys 4.38

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits scfile=/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits outfile=/scratch/kocevski/551193/cmap_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.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.883 yref=8.3017 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits scfile=/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits outfile=/scratch/kocevski/551193/cmap_HighResolution_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.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.883 yref=8.3017 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551193/Model_4FGL_J1223.5+0818_daily_bin1410.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/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits.....................!
real 59.94
user 58.24
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits', '/scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits', expMap='/scratch/kocevski/551193/expmap_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.fits', expCube='/scratch/kocevski/551193/ltcube_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551193/Model_4FGL_J1223.5+0818_daily_bin1410.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551193/ft1_filtered_4FGL_J1223.5+0818_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/551193/ft2_4FGL_J1223.5+0818_daily_bin1410.fits
Exposure map: /scratch/kocevski/551193/expmap_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.fits
Exposure cube: /scratch/kocevski/551193/ltcube_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551193/Model_4FGL_J1223.5+0818_daily_bin1410.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) = 6436.07254797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.543       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0433       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8949       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.213       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13548E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.117       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.746       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4977       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22378E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.848       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6327       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.782       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .55167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6436.026     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3733 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.762        .24448E-06** at limit **
   2  Prefactor     43.654        102.54       -.87227E-05   -.81200E-04
   3  Prefactor     1.0410        14.707        .50495E-05   -.12078E-03
   4  Prefactor     8.8985        6.6109       -.14470E-06   -.24305E-04
   5  Prefactor     19.226        21.743       -.12709E-05   -.27339E-04
   6  Prefactor     .10000E-03    138.67        .34043E-06** at limit **
   7  Prefactor     41.141        37.735       -.96238E-06   -.48436E-04
   8  Prefactor     19.757        21.476       -.30928E-06    .27239E-04
   9  Prefactor     .10000E-03    2.5363        .11841E-05** at limit **
  10  Prefactor     2.4853        3.5225       -.13754E-05   -.14322E-02
  11  Prefactor     .10000E-03    12.129       -.24223E-06** at limit **
  12  Prefactor     .10000E-03    10.738        .79013E-06** at limit **
  13  norm          3.4969        2.1441        .12770E-06    .16834E-03
  14  norm          6.8713        3.5055       -.15237E-06   -.54460E-04
  15  Prefactor     .10000E-03    12.985        .67781E-06** at limit **
  16  norm          .10000E-03    11.538       -.22181E-06** at limit **
  17  Prefactor     .10000E-03    92.385        .20333E-06** at limit **
  18  norm          2.4224        .63400       -.74846E-07   -.28599E-03
  19  Prefactor     14.844        12.154        .52880E-07    .10089E-04
  20  Prefactor     23.205        28.953       -.26552E-06   -.22745E-05
  21  Prefactor     8.6320        7.4763       -.66530E-07   -.49640E-06
  22  norm          3.7728        1.8898       -.12223E-06    .10651E-04
  23  Prefactor     .10000E-03    2.6098        .17030E-06** at limit **
  24  Prefactor     .10000E-03    22.963        .11121E-07** at limit **
  25  Prefactor     .10000E-03    23.898        .12960E-05** at limit **
  26  Prefactor     22.882        14.333       -.31907E-07    .12882E-03
  27  Prefactor     15.783        13.638       -.28487E-06    .34771E-04
  28  Normalizat    1.3777        .26041        .67729E-05   -.46125E-03
  29  Prefactor     .55232        .19416       -.76532E-05   -.63798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.6537
  Prefactor  = 1.04101
  Prefactor  = 8.89854
  Prefactor  = 19.2263
  Prefactor  = 0.0001
  Prefactor  = 41.1412
  Prefactor  = 19.7567
  Prefactor  = 0.000100001
  Prefactor  = 2.48534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49692
  norm       = 6.87132
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42235
  Prefactor  = 14.8437
  Prefactor  = 23.2054
  Prefactor  = 8.63199
  norm       = 3.77275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8818
  Prefactor  = 15.783
  Normalizat = 1.37767
  Prefactor  = 0.552318
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.026     FROM HESSE     STATUS=OK           557 CALLS     4290 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.654        102.54        .30377E-03   -1.4386    
   3  Prefactor     1.0410        14.745        .24433E-02   -1.5504    
   4  Prefactor     8.8985        6.6062        .13439E-03   -1.5111    
   5  Prefactor     19.226        21.739        .91376E-04   -1.4831    
   6  Prefactor     .10000E-03    138.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.141        37.648        .62514E-04   -1.4424    
   8  Prefactor     19.757        21.455        .90133E-04   -1.4819    
   9  Prefactor     .10000E-03    4.4466        .22692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4853        3.3912        .16396E-03   -1.5393    
  11  Prefactor     .10000E-03    12.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4969        2.1371        .88058E-04   -1.5334    
  14  norm          6.8713        3.5032        .99263E-04   -1.5184    
  15  Prefactor     .10000E-03    13.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    92.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4224        .63220        .29678E-04   -1.5397    
  19  Prefactor     14.844        12.144        .10394E-03   -1.4937    
  20  Prefactor     23.205        28.912        .83159E-04   -1.4744    
  21  Prefactor     8.6320        7.4726        .13643E-03   -1.5120    
  22  norm          3.7728        1.8829        .72518E-04   -1.5319    
  23  Prefactor     .10000E-03    2.6142        .12657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.882        14.355        .83737E-04   -1.4751    
  27  Prefactor     15.783        13.626        .10082E-03   -1.4913    
  28  Normalizat    1.3777        .25530        .25314E-03   -.81277    
  29  Prefactor     .55232        .19177        .31525E-03   -1.0963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84751e-09
Minuit parameter uncertainties:
  1  1.65349e-05
  2  102.957
  3  7.83766
  4  6.60677
  5  21.7477
  6  0.000239048
  7  37.6701
  8  21.4635
  9  0.000108259
  10  3.39141
  11  1.79616e-05
  12  3.94981e-05
  13  2.13716
  14  3.50332
  15  7.36461e-05
  16  2.25019e-05
  17  5.93934e-05
  18  0.632202
  19  12.1457
  20  28.9295
  21  7.47344
  22  1.88296
  23  4.24981e-06
  24  5.14663e-05
  25  0.000182268
  26  14.3573
  27  13.629
  28  0.255537
  29  0.191999
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.365e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  5.523e-01  1.920e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.378e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551193/likelihoodResults_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.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): 102
logL (Free Index) = 6436.02657863
delta logL = -0.000364390783943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6436.02621414
delta logL = 9.68775566434e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8911       1.0000          .0000       10.000    
     3 'Normalizat'    1.3777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   6436.026     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10069E-03    63.920        .18142E-02** at limit **
   2  Index         1.8476        5.9956        .50000        .14724E-04
   3  Normalizat    1.3777        .10572E-01    .25314E-03   -.11632E-04
   4  Prefactor     .55231        .87434E-02    .31525E-03   -.20916E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100694
  Index      = 1.84757
  Normalizat = 1.37767
  Prefactor  = 0.552314
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.026     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10069E-03    290.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8476        7.5800        .50000       -.68218    
   3  Normalizat    1.3777        .23016E-01    .10126E-04   -.81277    
   4  Prefactor     .55231        .19035E-01    .12610E-04   -1.0963    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19047e-09
Minuit parameter uncertainties:
  1  0.0285439
  2  279.384
  3  0.0230159
  4  0.0190348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551193': 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) = 6436.02621394
delta logL = 2.93838638754e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.007e-04  2.854e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.848e+00  2.794e+02  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  5.523e-01  1.903e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.378e+00  2.302e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.883 8.302

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/551193/cmap_HighResolution_604800001_605059201_4FGL_J1223.5+0818_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-05 11:15:56.494990', job_id='551193', GAL2='0.55', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630865756.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1410' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:15:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 551193: <4FGL_J1223.5+0818_daily_bin1410> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin1410> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 11:00:47 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:00:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:00:49 2021
Terminated at Sun Sep  5 11:15:57 2021
Results reported at Sun Sep  5 11:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin1410 185.883 8.3017 604800001 605059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

