/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 99 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 = 7206
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin615
RA = 185.883, Dec = 8.3017
tmin = 398736001, tmax = 398995201
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='546575', job_status='RUN', time_executed='2021-09-05 10:47:54.657792', time_epoch_executed='1630864074.66' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546575

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546575/ft1_4FGL_J1223.5+0818_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546575/ft2_4FGL_J1223.5+0818_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546575/ft1_4FGL_J1223.5+0818_daily_bin615.fits outfile=/scratch/kocevski/546575/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin615.fits ra=185.883 dec=8.3017 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.20
user 5.81
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546575/ft1_filtered_4FGL_J1223.5+0818_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/546575/ft2_4FGL_J1223.5+0818_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/546575/ltcube_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.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/546575/ft2_4FGL_J1223.5+0818_daily_bin615.fits
.....................!
real 11.72
user 11.22
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546575/ft1_filtered_4FGL_J1223.5+0818_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/546575/ft2_4FGL_J1223.5+0818_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/546575/ltcube_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.fits outfile=/scratch/kocevski/546575/expmap_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.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/546575/ltcube_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.fits
.....................!
real 191.75
user 185.07
sys 6.10

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/546575/ft1_filtered_4FGL_J1223.5+0818_daily_bin615.fits scfile=/scratch/kocevski/546575/ft2_4FGL_J1223.5+0818_daily_bin615.fits outfile=/scratch/kocevski/546575/cmap_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546575/ft1_filtered_4FGL_J1223.5+0818_daily_bin615.fits scfile=/scratch/kocevski/546575/ft2_4FGL_J1223.5+0818_daily_bin615.fits outfile=/scratch/kocevski/546575/cmap_HighResolution_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9673       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10915E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.259       1.0000         .10000E-03   10000.    
    13 'norm      '    .98958E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .12272E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    75.108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14501E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90556E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0903       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.3756       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.627       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0878       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2328       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=   5796.753     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3714 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7694        .33313E-05** at limit **
   2  Prefactor     .10000E-03    44.686       -.17287E-04** at limit **
   3  Prefactor     5.9665        11.539       -.20330E-05   -.57120E-04
   4  Prefactor     .10000E-03    3.1595        .11454E-06** at limit **
   5  Prefactor     .10000E-03    15.136       -.24475E-05** at limit **
   6  Prefactor     14.109        107.60        .34083E-04    .11874E-04
   7  Prefactor     .10001E-03    197.18       -.75339E-04** at limit **
   8  Prefactor     .10000E-03    10.552       -.16534E-05** at limit **
   9  Prefactor     .10000E-03    2.7182       -.35019E-07** at limit **
  10  Prefactor     3.6155        3.8950       -.34764E-06   -.45133E-03
  11  Prefactor     9.6852        25.643        .76730E-05    .64312E-04
  12  Prefactor     10.247        9.9684        .37565E-06    .34830E-03
  13  norm          .10524        1.4770       -.95089E-06    .92001E-03
  14  norm          .10000E-03    4.7690        .82881E-06** at limit **
  15  Prefactor     .10000E-03    8.8150       -.20114E-05** at limit **
  16  norm          75.085        59.043       -.19193E-04    .26078E-04
  17  Prefactor     .10000E-03    50.177        .29490E-05** at limit **
  18  norm          1.3390        .66053        .49917E-06   -.58847E-03
  19  Prefactor     .10000E-03    4.3596       -.21124E-06** at limit **
  20  Prefactor     .10000E-03    95.886        .10524E-04** at limit **
  21  Prefactor     .10011E-03    6.9496        .24810E-05** at limit **
  22  norm          5.0893        2.0921        .10015E-06   -.21683E-03
  23  Prefactor     .10000E-03    3.9201        .11284E-07** at limit **
  24  Prefactor     .10000E-03    28.147        .15533E-05** at limit **
  25  Prefactor     .10000E-03    53.173        .14530E-04** at limit **
  26  Prefactor     2.3650        28.736       -.14503E-05   -.14969E-03
  27  Prefactor     10.626        16.187       -.43009E-06   -.41729E-04
  28  Normalizat    1.0879        .23034       -.16608E-05    .28493E-03
  29  Prefactor     1.2331        .19254        .13775E-05    .35297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.96649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1093
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61546
  Prefactor  = 9.6852
  Prefactor  = 10.2473
  norm       = 0.105241
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 75.0849
  Prefactor  = 0.0001
  norm       = 1.33902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100109
  norm       = 5.08933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.36498
  Prefactor  = 10.6258
  Normalizat = 1.08794
  Prefactor  = 1.23312
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.753     FROM HESSE     STATUS=OK           549 CALLS     4263 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9665        11.522        .16438E-03   -1.5219    
   4  Prefactor     .10000E-03    3.1669        .13216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.109        107.75        .10669E-03   -1.4957    
   7  Prefactor     .10001E-03    199.41        .41408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8061        .24404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6155        3.8809        .14787E-03   -1.5328    
  11  Prefactor     9.6852        25.615        .12892E-03   -1.5085    
  12  Prefactor     10.247        10.235        .12510E-03   -1.5068    
  13  norm          .10524        10.491        .16461E-02   -1.5643    
  14  norm          .10000E-03    4.9018        .32174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          75.085        59.016        .46330E-04   -1.3973    
  17  Prefactor     .10000E-03    50.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3390        .65231        .38159E-04   -1.5477    
  19  Prefactor     .10000E-03    4.3659        .15525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    96.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10011E-03    23.165        .38359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0893        2.0899        .66836E-04   -1.5257    
  23  Prefactor     .10000E-03    3.9316        .14721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    53.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.3650        28.419        .26581E-03   -1.5400    
  27  Prefactor     10.626        16.108        .12290E-03   -1.5056    
  28  Normalizat    1.0879        .27662        .29643E-03   -.90140    
  29  Prefactor     1.2331        .23163        .24751E-03   -.85318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04586e-08
Minuit parameter uncertainties:
  1  1.9697e-06
  2  1.90401e-05
  3  11.5261
  4  7.85697e-06
  5  0.000174275
  6  78.1784
  7  0.0032273
  8  1.12177e-05
  9  6.71621e-06
  10  3.88114
  11  25.6438
  12  10.2367
  13  2.10093
  14  0.000259849
  15  8.64103e-07
  16  59.0618
  17  2.04827e-05
  18  0.652315
  19  9.38464e-07
  20  1.52641e-05
  21  0.00318264
  22  2.08994
  23  4.95762e-06
  24  2.0417e-05
  25  3.58664e-05
  26  16.4057
  27  16.115
  28  0.276985
  29  0.231824
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  8.641e-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:  1.233e+00  2.318e-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.088e+00  2.770e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546575/likelihoodResults_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.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) = 5796.75322265
delta logL = -0.000530618105586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.75269233
delta logL = -3.01195541397e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8934       1.0000          .0000       10.000    
     3 'Normalizat'    1.0879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2332       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=   5796.753     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10137E-03    56.989        .18142E-02** at limit **
   2  Index         1.8415        8.9955        .50000        .22175E-04
   3  Normalizat    1.0879        .13475E-01    .29643E-03   -.31218E-04
   4  Prefactor     1.2331        .11944E-01    .24751E-03    .35413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101369
  Index      = 1.84154
  Normalizat = 1.08794
  Prefactor  = 1.23312
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.753     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10137E-03    248.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8415        7.4293        .50000       -.68374    
   3  Normalizat    1.0879        .28871E-01    .11857E-04   -.90140    
   4  Prefactor     1.2331        .25591E-01    .99005E-05   -.85318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92486e-09
Minuit parameter uncertainties:
  1  0.0370646
  2  336.964
  3  0.0288712
  4  0.0255912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546575': 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) = 5796.7526916
delta logL = 4.30106410931e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.014e-04  3.706e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.842e+00  3.370e+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:  1.233e+00  2.559e-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.088e+00  2.887e-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/546575/cmap_HighResolution_398736001_398995201_4FGL_J1223.5+0818_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-09-05 11:01:23.374255', job_id='546575', GAL2='1.23', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630864883.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='4.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='615' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 546575: <4FGL_J1223.5+0818_daily_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin615 185.883 8.3017 398736001 398995201 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 :                                   804.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

