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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin698
RA = 185.883, Dec = 8.3017
tmin = 420249601, tmax = 420508801
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='546665', job_status='RUN', time_executed='2021-09-05 10:48:57.404459', time_epoch_executed='1630864137.4' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546665/ft1_4FGL_J1223.5+0818_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546665/ft2_4FGL_J1223.5+0818_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546665/ft1_4FGL_J1223.5+0818_daily_bin698.fits outfile=/scratch/kocevski/546665/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin698.fits ra=185.883 dec=8.3017 rad=12.0 tmin=420249601.0 tmax=420508801.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.45
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546665/ft2_4FGL_J1223.5+0818_daily_bin698.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/546665/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/546665/ft1_filtered_4FGL_J1223.5+0818_daily_bin698.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546665/ft1_filtered_4FGL_J1223.5+0818_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/546665/ft2_4FGL_J1223.5+0818_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/546665/ltcube_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.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/546665/ft2_4FGL_J1223.5+0818_daily_bin698.fits
.....................!
real 12.32
user 11.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546665/ft1_filtered_4FGL_J1223.5+0818_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/546665/ft2_4FGL_J1223.5+0818_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/546665/ltcube_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.fits outfile=/scratch/kocevski/546665/expmap_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.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/546665/ltcube_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.fits
.....................!
real 192.11
user 185.90
sys 5.30

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/546665/ft1_filtered_4FGL_J1223.5+0818_daily_bin698.fits scfile=/scratch/kocevski/546665/ft2_4FGL_J1223.5+0818_daily_bin698.fits outfile=/scratch/kocevski/546665/cmap_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546665/ft1_filtered_4FGL_J1223.5+0818_daily_bin698.fits scfile=/scratch/kocevski/546665/ft2_4FGL_J1223.5+0818_daily_bin698.fits outfile=/scratch/kocevski/546665/cmap_HighResolution_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9270       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.943       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    127.59       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53722E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .68326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4270       1.0000         .10000E-03   10000.    
    22 'norm      '    .14422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23060       1.0000         .10000E-03   10000.    
    25 'Prefactor '    86.193       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9332       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.947       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4131       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71105       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=   5416.776     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3821 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9266        15.727        .99559E-07   -.45962E-05
   2  Prefactor     63.250        110.11       -.66460E-06    .17819E-05
   3  Prefactor     5.9928        15.000        .14920E-05    .40274E-05
   4  Prefactor     .10000E-03    2.4393        .28108E-06** at limit **
   5  Prefactor     .10000E-03    5.7219       -.31405E-06** at limit **
   6  Prefactor     127.57        92.803       -.17036E-05   -.25986E-04
   7  Prefactor     .10000E-03    11.443        .10076E-05** at limit **
   8  Prefactor     .10000E-03    114.79        .52527E-05** at limit **
   9  Prefactor     .10000E-03    2.3916        .42488E-06** at limit **
  10  Prefactor     .10000E-03    1.9132        .49197E-06** at limit **
  11  Prefactor     .10000E-03    11.754        .23710E-06** at limit **
  12  Prefactor     .10000E-03    6.5110       -.10720E-06** at limit **
  13  norm          .10000E-03    1.0340       -.64720E-07** at limit **
  14  norm          .10000E-03    2.2145       -.11953E-06** at limit **
  15  Prefactor     .10000E-03    8.7010       -.21570E-07** at limit **
  16  norm          .10000E-03    20.171       -.29260E-06** at limit **
  17  Prefactor     .10000E-03    86.865       -.73861E-06** at limit **
  18  norm          .68291        .55806        .10044E-06    .78086E-03
  19  Prefactor     20.944        11.322       -.93203E-07   -.11510E-04
  20  Prefactor     .10000E-03    24.562       -.61002E-06** at limit **
  21  Prefactor     8.4291        9.5338        .10837E-06   -.18286E-04
  22  norm          .14529        1.1725       -.48068E-06    .20292E-03
  23  Prefactor     .10000E-03    3.9884       -.51062E-07** at limit **
  24  Prefactor     .10568E-03    32.726        .27219E-05** at limit **
  25  Prefactor     86.144        61.876       -.11690E-05   -.24321E-04
  26  Prefactor     3.9620        19.266        .29539E-06    .11457E-04
  27  Prefactor     25.937        17.203       -.54691E-06   -.43725E-04
  28  Normalizat    1.4132        .24609        .33462E-05   -.10937E-03
  29  Prefactor     .71083        .19305       -.39463E-05   -.20373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.9266
  Prefactor  = 63.2498
  Prefactor  = 5.99278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.57
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.682911
  Prefactor  = 20.9441
  Prefactor  = 0.0001
  Prefactor  = 8.42908
  norm       = 0.145294
  Prefactor  = 0.0001
  Prefactor  = 0.000105682
  Prefactor  = 86.1441
  Prefactor  = 3.96196
  Prefactor  = 25.9374
  Normalizat = 1.41315
  Prefactor  = 0.710833
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.776     FROM HESSE     STATUS=OK           567 CALLS     4388 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9266        15.719        .12718E-03   -1.5078    
   2  Prefactor     63.250        109.99        .25290E-03   -1.4116    
   3  Prefactor     5.9928        14.976        .16394E-03   -1.5218    
   4  Prefactor     .10000E-03    2.4421        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7275        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     127.57        92.710        .17820E-03   -1.3444    
   7  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    113.97        .49514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5136        .20770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1007        .18614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0466        .73055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2626        .21346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    86.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .68291        .54112        .45988E-03   -1.5543    
  19  Prefactor     20.944        11.318        .87514E-04   -1.4792    
  20  Prefactor     .10000E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4291        9.5198        .13810E-03   -1.5127    
  22  norm          .14529        2.3022        .14335E-02   -1.5632    
  23  Prefactor     .10000E-03    3.9933        .14354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10568E-03    29.018        .11378       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     86.144        61.244        .21636E-03   -1.3849    
  26  Prefactor     3.9620        18.650        .20341E-03   -1.5310    
  27  Prefactor     25.937        17.112        .78643E-04   -1.4689    
  28  Normalizat    1.4132        .24760        .23915E-03   -.80249    
  29  Prefactor     .71083        .19930        .27684E-03   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4569e-10
Minuit parameter uncertainties:
  1  15.7251
  2  110.349
  3  14.9856
  4  8.76638e-07
  5  2.14196e-06
  6  92.8158
  7  6.64546e-06
  8  0.000525929
  9  0.000140842
  10  7.23024e-05
  11  1.48455e-06
  12  6.96587e-06
  13  8.31133e-07
  14  1.18072e-05
  15  1.5746e-07
  16  2.96284e-05
  17  5.97914e-05
  18  0.541119
  19  11.3194
  20  2.09944e-05
  21  9.52148
  22  1.15638
  23  2.23313e-06
  24  0.0256932
  25  61.2889
  26  17.2004
  27  17.1157
  28  0.247808
  29  0.199504
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.575e-07  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.108e-01  1.995e-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.413e+00  2.478e-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: 3.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546665/likelihoodResults_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.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) = 5416.77620783
delta logL = -0.000527995172888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5416.7756803
delta logL = -4.65008270112e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11245E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8914       1.0000          .0000       10.000    
     3 'Normalizat'    1.4131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71085       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=   5416.776     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    58.993        .18142E-02** at limit **
   2  Index         1.8329        5.9194        .50000        .24156E-04
   3  Normalizat    1.4132        .12781E-01    .23915E-03   -.21915E-04
   4  Prefactor     .71084        .10941E-01    .27684E-03    .20287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101589
  Index      = 1.83292
  Normalizat = 1.41315
  Prefactor  = 0.710836
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.776     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    256.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8329        8.3308        .50000       -.68596    
   3  Normalizat    1.4132        .27357E-01    .95660E-05   -.80249    
   4  Prefactor     .71084        .23419E-01    .11073E-04   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43039e-08
Minuit parameter uncertainties:
  1  0.0405715
  2  352.835
  3  0.0273573
  4  0.0234192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546665': 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) = 5416.77567931
delta logL = 5.30572833668e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.016e-04  4.057e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.833e+00  3.528e+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:  7.108e-01  2.342e-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.413e+00  2.736e-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/546665/cmap_HighResolution_420249601_420508801_4FGL_J1223.5+0818_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-03', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2021-09-05 11:01:51.639173', job_id='546665', GAL2='0.71', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630864911.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='5.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='698' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:51 PDT 2021


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

Job <4FGL_J1223.5+0818_daily_bin698> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:46:02 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:04 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:04 2021
Terminated at Sun Sep  5 11:01:52 2021
Results reported at Sun Sep  5 11:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin698 185.883 8.3017 420249601 420508801 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 :                                   773.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            950 sec.

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

