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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin756
RA = 185.883, Dec = 8.3017
tmin = 435283201, tmax = 435542401
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='547961', job_status='RUN', time_executed='2021-09-05 10:53:07.386773', time_epoch_executed='1630864387.39' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547961/ft1_4FGL_J1223.5+0818_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547961/ft2_4FGL_J1223.5+0818_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547961/ft1_4FGL_J1223.5+0818_daily_bin756.fits outfile=/scratch/kocevski/547961/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin756.fits ra=185.883 dec=8.3017 rad=12.0 tmin=435283201.0 tmax=435542401.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.37
user 4.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547961/ft1_filtered_4FGL_J1223.5+0818_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/547961/ft2_4FGL_J1223.5+0818_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/547961/ltcube_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.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/547961/ft2_4FGL_J1223.5+0818_daily_bin756.fits
.....................!
real 12.09
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547961/ft1_filtered_4FGL_J1223.5+0818_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/547961/ft2_4FGL_J1223.5+0818_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/547961/ltcube_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.fits outfile=/scratch/kocevski/547961/expmap_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.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/547961/ltcube_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.fits
.....................!
real 192.78
user 187.31
sys 5.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/547961/ft1_filtered_4FGL_J1223.5+0818_daily_bin756.fits scfile=/scratch/kocevski/547961/ft2_4FGL_J1223.5+0818_daily_bin756.fits outfile=/scratch/kocevski/547961/cmap_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547961/ft1_filtered_4FGL_J1223.5+0818_daily_bin756.fits scfile=/scratch/kocevski/547961/ft2_4FGL_J1223.5+0818_daily_bin756.fits outfile=/scratch/kocevski/547961/cmap_HighResolution_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.961       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11907E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6351       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5182       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28725E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .64883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7070       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.347       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.337       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4248       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94613       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=   5428.838     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3660 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.780        .13385E-06** at limit **
   2  Prefactor     46.737        132.10       -.46440E-05   -.13908E-04
   3  Prefactor     .10001E-03    44.477       -.12616E-04** at limit **
   4  Prefactor     .10000E-03    2.8110       -.17728E-06** at limit **
   5  Prefactor     5.7848        16.030       -.58205E-07    .89508E-04
   6  Prefactor     .10000E-03    69.227       -.10244E-06** at limit **
   7  Prefactor     .10000E-03    12.928       -.82618E-06** at limit **
   8  Prefactor     15.924        21.337       -.92276E-07    .24891E-05
   9  Prefactor     .10000E-03    1.8445        .27342E-06** at limit **
  10  Prefactor     .10000E-03    2.7563        .44413E-06** at limit **
  11  Prefactor     .10000E-03    19.663       -.29550E-06** at limit **
  12  Prefactor     .10000E-03    3.9518        .75837E-07** at limit **
  13  norm          1.6353        1.7277       -.21605E-07   -.27634E-04
  14  norm          4.5286        4.2351       -.81094E-06   -.16807E-03
  15  Prefactor     .10000E-03    13.557       -.48912E-07** at limit **
  16  norm          .10000E-03    174.98       -.27905E-05** at limit **
  17  Prefactor     .10000E-03    53.279        .50508E-07** at limit **
  18  norm          .64936        .58708        .11352E-07    .81415E-04
  19  Prefactor     16.528        11.123       -.28197E-07    .18719E-04
  20  Prefactor     .10000E-03    23.316        .70291E-06** at limit **
  21  Prefactor     .10000E-03    7.5156        .31444E-06** at limit **
  22  norm          4.7068        2.1160       -.10889E-06   -.60753E-04
  23  Prefactor     .10000E-03    3.3608        .85948E-07** at limit **
  24  Prefactor     .10000E-03    40.003        .20206E-06** at limit **
  25  Prefactor     18.405        47.774       -.42735E-06    .11876E-04
  26  Prefactor     .10000E-03    10.017        .27200E-05** at limit **
  27  Prefactor     17.331        18.522        .43571E-06    .56015E-04
  28  Normalizat    1.4251        .26479        .69587E-05   -.51431E-04
  29  Prefactor     .94573        .21651       -.65714E-05    .18497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.7375
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 5.78483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63531
  norm       = 4.52862
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.649361
  Prefactor  = 16.5281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4049
  Prefactor  = 0.0001
  Prefactor  = 17.3313
  Normalizat = 1.42511
  Prefactor  = 0.945733
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.838     FROM HESSE     STATUS=OK           551 CALLS     4211 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.737        132.48        .29256E-03   -1.4340    
   3  Prefactor     .10001E-03    47.608        .41287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8157        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7848        16.046        .16682E-03   -1.5227    
   6  Prefactor     .10000E-03    69.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.924        21.328        .10039E-03   -1.4910    
   9  Prefactor     .10000E-03    1.8657        .97650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8343        .23862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9570        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6353        1.7307        .96527E-04   -1.5452    
  14  norm          4.5286        4.1756        .13139E-03   -1.5282    
  15  Prefactor     .10000E-03    13.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    180.38        .39750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .64936        .55945        .47910E-03   -1.5547    
  19  Prefactor     16.528        11.126        .98517E-04   -1.4895    
  20  Prefactor     .10000E-03    23.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7068        2.1091        .67822E-04   -1.5274    
  23  Prefactor     .10000E-03    3.3666        .13192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    40.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.405        47.748        .93506E-04   -1.4850    
  26  Prefactor     .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.331        18.564        .48095E-03   -1.4875    
  28  Normalizat    1.4251        .28188        .26809E-03   -.79905    
  29  Prefactor     .94573        .22879        .27375E-03   -.94561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74557e-10
Minuit parameter uncertainties:
  1  2.77694e-05
  2  133.324
  3  0.00110289
  4  5.35415e-06
  5  16.0576
  6  0.00022312
  7  3.77554e-05
  8  21.3387
  9  1.10656e-06
  10  3.02186e-06
  11  1.27885e-05
  12  1.48256e-06
  13  1.73079
  14  4.17589
  15  2.99805e-05
  16  0.000393533
  17  2.3327e-05
  18  0.559452
  19  11.1274
  20  8.03815e-05
  21  1.60621e-05
  22  2.10912
  23  9.99084e-07
  24  9.97387e-05
  25  47.8472
  26  0.000125138
  27  18.5701
  28  0.282194
  29  0.229028
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.998e-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:  9.457e-01  2.290e-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.425e+00  2.822e-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: 5.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547961/likelihoodResults_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.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) = 5428.83825011
delta logL = -0.000350103925484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5428.83790242
delta logL = -2.41704856307e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14316E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8909       1.0000          .0000       10.000    
     3 'Normalizat'    1.4247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94603       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=   5428.838     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    75.433        .18142E-02** at limit **
   2  Index         1.8462        8.9869        .50000        .13782E-04
   3  Normalizat    1.4251        .13185E-01    .26809E-03    .53984E-04
   4  Prefactor     .94573        .11312E-01    .27375E-03    .41239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100856
  Index      = 1.84623
  Normalizat = 1.42512
  Prefactor  = 0.945729
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.838     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    337.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8462        5.2442        .50000       -.68252    
   3  Normalizat    1.4251        .28564E-01    .10723E-04   -.79905    
   4  Prefactor     .94573        .24507E-01    .10950E-04   -.94561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.01229e-09
Minuit parameter uncertainties:
  1  0.0341976
  2  341.813
  3  0.0285648
  4  0.0245077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547961': 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) = 5428.83789974
delta logL = 2.66693859885e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.009e-04  3.420e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.846e+00  3.418e+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:  9.457e-01  2.451e-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.425e+00  2.856e-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/547961/cmap_HighResolution_435283201_435542401_4FGL_J1223.5+0818_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2021-09-05 11:05:48.254347', job_id='547961', GAL2='0.95', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1630865148.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='756' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:05:48 PDT 2021


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

Job <4FGL_J1223.5+0818_daily_bin756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:33 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:34 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:50:34 2021
Terminated at Sun Sep  5 11:05:49 2021
Results reported at Sun Sep  5 11:05:49 2021

Your job looked like:

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

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

