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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin671
RA = 185.883, Dec = 8.3017
tmin = 413251201, tmax = 413510401
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='546635', job_status='RUN', time_executed='2021-09-05 10:49:07.162194', time_epoch_executed='1630864147.16' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546635/ft1_4FGL_J1223.5+0818_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546635/ft1_4FGL_J1223.5+0818_daily_bin671.fits outfile=/scratch/kocevski/546635/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin671.fits ra=185.883 dec=8.3017 rad=12.0 tmin=413251201.0 tmax=413510401.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.75
user 5.48
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.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/546635/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/546635/ltcube_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.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/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits
.....................!
real 12.52
user 12.15
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/546635/ltcube_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.fits outfile=/scratch/kocevski/546635/expmap_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.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/546635/ltcube_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.fits
.....................!
real 190.80
user 185.35
sys 5.12

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.fits scfile=/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits outfile=/scratch/kocevski/546635/cmap_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.fits scfile=/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits outfile=/scratch/kocevski/546635/cmap_HighResolution_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.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.53
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.fits', '/scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits', expMap='/scratch/kocevski/546635/expmap_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.fits', expCube='/scratch/kocevski/546635/ltcube_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546635/Model_4FGL_J1223.5+0818_daily_bin671.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/546635/ft1_filtered_4FGL_J1223.5+0818_daily_bin671.fits
Spacecraft file(s): /scratch/kocevski/546635/ft2_4FGL_J1223.5+0818_daily_bin671.fits
Exposure map: /scratch/kocevski/546635/expmap_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.fits
Exposure cube: /scratch/kocevski/546635/ltcube_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546635/Model_4FGL_J1223.5+0818_daily_bin671.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) = 4560.57037288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10882E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.503       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0700       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0942       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    194.77       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3667       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.174       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3844       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41338E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.271       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .68869E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77106       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=   4560.528     FROM MIGRAD    STATUS=CONVERGED   1298 CALLS     4331 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.093        22.636        .71855E-04    .22941E-04
   2  Prefactor     .10000E-03    38.587        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.4527        .12248E-02** at limit **
   4  Prefactor     .10000E-03    8.9599        .18142E-02** at limit **
   5  Prefactor     .10000E-03    28.182        .18142E-02** at limit **
   6  Prefactor     .10000E-03    37.165        .18142E-02** at limit **
   7  Prefactor     .10000E-03    105.74        .18142E-02** at limit **
   8  Prefactor     .10000E-03    75.096        .18142E-02** at limit **
   9  Prefactor     .10000E-03    1.6125        .83390E-03** at limit **
  10  Prefactor     .10000E-03    38.701        .19054E-02** at limit **
  11  Prefactor     .10000E-03    13.872        .18142E-02** at limit **
  12  Prefactor     24.497        18.123        .80923E-04    .90334E-04
  13  norm          6.0691        4.2068        .10162E-03    .13447E-03
  14  norm          1.0992        1.9393        .14626E-02   -.15723E-03
  15  Prefactor     .10000E-03    26.530        .18142E-02** at limit **
  16  norm          .10000E-03    11.723        .18142E-02** at limit **
  17  Prefactor     194.70        179.70        .14472E-03    .42419E-05
  18  norm          1.4317        .70529        .18603E-03    .31534E-04
  19  Prefactor     1.3841        35.691        .18659E-02   -.61063E-04
  20  Prefactor     32.061        46.868        .70641E-04   -.12070E-04
  21  Prefactor     .10000E-03    6.7377        .17096E-02** at limit **
  22  norm          3.3840        2.2978        .79335E-04   -.10891E-03
  23  Prefactor     .10000E-03    31.045        .39263E-02** at limit **
  24  Prefactor     14.266        37.830        .10603E-03   -.15869E-04
  25  Prefactor     .10000E-03    25.863        .18142E-02** at limit **
  26  Prefactor     16.118        17.473        .99865E-04   -.24430E-03
  27  Prefactor     .10000E-03    29.537        .82030E-01** at limit **
  28  Normalizat    1.2589        .28424        .25943E-03   -.14552E-03
  29  Prefactor     .77141        .23106        .27355E-03   -.25665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4969
  norm       = 6.06909
  norm       = 1.09924
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 194.7
  norm       = 1.43168
  Prefactor  = 1.38412
  Prefactor  = 32.0609
  Prefactor  = 0.0001
  norm       = 3.38401
  Prefactor  = 0.000100001
  Prefactor  = 14.2657
  Prefactor  = 0.0001
  Prefactor  = 16.1179
  Prefactor  = 0.000100003
  Normalizat = 1.25892
  Prefactor  = 0.771407
 **********
 **   18 **HESSE 
 **********

 FCN=   4560.528     FROM HESSE     STATUS=OK           539 CALLS     4870 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.093        22.635        .28742E-05   -1.4592    
   2  Prefactor     .10000E-03    38.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4528        .24497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    105.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    75.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6126        .16678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.726        .76216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.497        18.123        .32369E-05   -1.4718    
  13  norm          6.0691        4.2068        .40650E-05   -1.5215    
  14  norm          1.0992        1.9372        .58506E-04   -1.5498    
  15  Prefactor     .10000E-03    26.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     194.70        179.70        .57890E-05   -1.2908    
  18  norm          1.4317        .70509        .74411E-05   -1.5469    
  19  Prefactor     1.3841        34.973        .74635E-04   -1.5473    
  20  Prefactor     32.061        46.459        .28257E-05   -1.4575    
  21  Prefactor     .10000E-03    6.7383        .34191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3840        2.2976        .31734E-05   -1.5340    
  23  Prefactor     .10000E-03    31.359        .78527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.266        37.832        .42411E-05   -1.4952    
  25  Prefactor     .10000E-03    25.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.118        17.457        .39946E-05   -1.4905    
  27  Prefactor     .10000E-03    25.956        .89010E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2589        .28438        .51885E-04   -.84801    
  29  Prefactor     .77141        .23123        .54711E-04   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99977e-10
Minuit parameter uncertainties:
  1  22.6417
  2  8.3715e-05
  3  7.96373e-06
  4  8.43187e-05
  5  0.000206977
  6  8.80151e-05
  7  0.000929222
  8  0.000757744
  9  6.8872e-06
  10  0.000195543
  11  1.97743e-05
  12  18.1273
  13  4.20702
  14  1.93734
  15  3.82376e-05
  16  2.49714e-06
  17  180.212
  18  0.705092
  19  13.9235
  20  46.5117
  21  1.78585e-05
  22  2.29765
  23  0.00042054
  24  37.8953
  25  2.56938e-06
  26  17.4623
  27  0.000571274
  28  0.28473
  29  0.231519
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.824e-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:  7.714e-01  2.315e-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.259e+00  2.847e-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: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546635/likelihoodResults_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.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) = 4560.52788651
delta logL = -0.000179365963959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4560.52770703
delta logL = 1.16555384011e-07

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 'Index     '    1.9977       1.0000          .0000       10.000    
     3 'Normalizat'    1.2589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77141       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.

 FCN=   4560.528     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1479.8        .90712E-02** at limit **
   2  Index         2.0232        5.9842        .50000       -.79953E-05
   3  Normalizat    1.2589        .45502E-01    .58660E-01    .11222E-03
   4  Prefactor     .77141        .38738E-01    .43344E-01   -.74420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.02316
  Normalizat = 1.25892
  Prefactor  = 0.771406
 **********
 **   18 **HESSE 
 **********

 FCN=   4560.528     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1490.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0232        5.9769        .50000       -.63772    
   3  Normalizat    1.2589        .45601E-01    .25942E-03   -.84801    
   4  Prefactor     .77141        .38835E-01    .27356E-03   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.22714e-08
Minuit parameter uncertainties:
  1  0.00855107
  2  29.6595
  3  0.0456026
  4  0.0388368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546635': 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) = 4560.52770698
delta logL = 1.68260157807e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  8.551e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.023e+00  2.966e+01  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:  7.714e-01  3.884e-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.259e+00  4.560e-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/546635/cmap_HighResolution_413251201_413510401_4FGL_J1223.5+0818_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-09-05 11:01:12.390168', job_id='546635', GAL2='0.77', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630864872.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='671' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 546635: <4FGL_J1223.5+0818_daily_bin671> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin671> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:59 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:46:00 2021
Terminated at Sun Sep  5 11:01:13 2021
Results reported at Sun Sep  5 11:01:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin671 185.883 8.3017 413251201 413510401 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 :                                   723.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

