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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin451
RA = 185.883, Dec = 8.3017
tmin = 356227201, tmax = 356486401
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='546245', job_status='RUN', time_executed='2021-09-05 10:48:05.378216', time_epoch_executed='1630864085.38' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546245

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546245/ft1_4FGL_J1223.5+0818_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/546245/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/546245/ft2_4FGL_J1223.5+0818_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546245/ft1_4FGL_J1223.5+0818_daily_bin451.fits outfile=/scratch/kocevski/546245/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin451.fits ra=185.883 dec=8.3017 rad=12.0 tmin=356227201.0 tmax=356486401.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.11
user 2.91
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546245/ft2_4FGL_J1223.5+0818_daily_bin451.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/546245/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/546245/ft1_filtered_4FGL_J1223.5+0818_daily_bin451.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/546245/ft1_filtered_4FGL_J1223.5+0818_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/546245/ft2_4FGL_J1223.5+0818_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/546245/ltcube_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.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/546245/ft2_4FGL_J1223.5+0818_daily_bin451.fits
.....................!
real 3.28
user 2.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546245/ft1_filtered_4FGL_J1223.5+0818_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/546245/ft2_4FGL_J1223.5+0818_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/546245/ltcube_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.fits outfile=/scratch/kocevski/546245/expmap_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.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/546245/ltcube_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.fits
.....................!
real 191.56
user 186.07
sys 4.98

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/546245/ft1_filtered_4FGL_J1223.5+0818_daily_bin451.fits scfile=/scratch/kocevski/546245/ft2_4FGL_J1223.5+0818_daily_bin451.fits outfile=/scratch/kocevski/546245/cmap_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546245/ft1_filtered_4FGL_J1223.5+0818_daily_bin451.fits scfile=/scratch/kocevski/546245/ft2_4FGL_J1223.5+0818_daily_bin451.fits outfile=/scratch/kocevski/546245/cmap_HighResolution_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16653E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    69.495       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6260       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4498       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    59.085       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.121       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6557       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53870       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=   1194.162     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3645 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.711       -.15709E-06** at limit **
   2  Prefactor     .10000E-03    102.51        .14154E-06** at limit **
   3  Prefactor     7.9226        28.768        .12785E-05   -.50651E-05
   4  Prefactor     .10000E-03    18.149       -.40189E-06** at limit **
   5  Prefactor     .10000E-03    18.329       -.15837E-07** at limit **
   6  Prefactor     .10000E-03    84.315       -.11693E-07** at limit **
   7  Prefactor     .10000E-03    34.663        .35888E-07** at limit **
   8  Prefactor     .10000E-03    548.62       -.16941E-04** at limit **
   9  Prefactor     .67706        13.271        .20316E-05   -.11977E-03
  10  Prefactor     .10000E-03    4.9492       -.20040E-07** at limit **
  11  Prefactor     .10000E-03    69.250       -.41120E-06** at limit **
  12  Prefactor     .10000E-03    22.476       -.30732E-06** at limit **
  13  norm          .10000E-03    2.7235       -.12407E-06** at limit **
  14  norm          .10000E-03    4.7111       -.45257E-07** at limit **
  15  Prefactor     .10000E-03    90.133        .95478E-09** at limit **
  16  norm          .10000E-03    94.320        .85277E-07** at limit **
  17  Prefactor     .10000E-03    158.52       -.59290E-07** at limit **
  18  norm          2.5903        1.7601        .17758E-07   -.65997E-04
  19  Prefactor     .10000E-03    46.503        .30483E-05** at limit **
  20  Prefactor     69.542        81.210        .90150E-06   -.55263E-05
  21  Prefactor     6.6352        25.061        .47891E-05    .99104E-05
  22  norm          1.4500        2.9479        .32267E-06    .83150E-05
  23  Prefactor     .10000E-03    39.644       -.27135E-06** at limit **
  24  Prefactor     .10000E-03    46.666       -.14067E-06** at limit **
  25  Prefactor     59.181        139.02        .24539E-05    .11409E-04
  26  Prefactor     .10000E-03    22.380        .15386E-05** at limit **
  27  Prefactor     11.122        35.621        .12223E-05   -.60392E-05
  28  Normalizat    1.6562        .51247       -.50333E-05   -.20018E-04
  29  Prefactor     .53839        .40207        .14054E-05   -.53712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.92263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.677055
  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       = 2.59029
  Prefactor  = 0.0001
  Prefactor  = 69.5421
  Prefactor  = 6.63521
  norm       = 1.45003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.1808
  Prefactor  = 0.0001
  Prefactor  = 11.1223
  Normalizat = 1.65625
  Prefactor  = 0.53839
 **********
 **   18 **HESSE 
 **********

 FCN=   1194.162     FROM HESSE     STATUS=OK           543 CALLS     4188 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.734        .17784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    102.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9226        28.755        .14259E-03   -1.5145    
   4  Prefactor     .10000E-03    18.221        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.336        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    84.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    554.32        .40773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .67706        22.639        .22632E-02   -1.5543    
  10  Prefactor     .10000E-03    4.9611        .74964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    69.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.501        .16002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7246        .55696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7212        .73216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    94.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    158.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5903        1.7654        .34505E-04   -1.5386    
  19  Prefactor     .10000E-03    46.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     69.542        81.567        .24076E-03   -1.4038    
  21  Prefactor     6.6352        25.643        .77947E-03   -1.5193    
  22  norm          1.4500        2.9008        .81136E-04   -1.5467    
  23  Prefactor     .10000E-03    39.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     59.181        139.43        .26097E-03   -1.4168    
  26  Prefactor     .10000E-03    22.456        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.122        35.607        .12014E-03   -1.5041    
  28  Normalizat    1.6562        .58434        .23922E-03   -.73478    
  29  Prefactor     .53839        .46454        .32364E-03   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75288e-10
Minuit parameter uncertainties:
  1  4.80833e-05
  2  0.000188679
  3  28.8056
  4  1.43601e-05
  5  1.69804e-05
  6  1.17654e-05
  7  7.53539e-05
  8  0.000378012
  9  7.83285
  10  6.39683e-06
  11  9.77262e-05
  12  2.33349e-05
  13  8.65077e-07
  14  7.93727e-06
  15  0.000123763
  16  0.000139152
  17  7.99971e-05
  18  1.76546
  19  2.3742e-05
  20  81.6987
  21  25.6854
  22  2.90109
  23  5.11927e-05
  24  3.85721e-05
  25  140.213
  26  3.57554e-05
  27  35.6755
  28  0.58679
  29  0.467884
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  5.384e-01  4.679e-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.656e+00  5.868e-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: 2.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546245/likelihoodResults_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.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) = 1194.16215142
delta logL = -5.25826669673e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1194.16209965
delta logL = -8.095623798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17323E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1592       1.0000          .0000       10.000    
     3 'Normalizat'    1.6563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53842       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=   1194.162     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      242 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.522        .90712E-02** at limit **
   2  Index         2.1208        8.1167        .50000        .45239E-05
   3  Normalizat    1.6562        .74279E-02    .54109E-01    .56920E-04
   4  Prefactor     .53839        .61198E-02    .73099E-01    .49999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12085
  Normalizat = 1.65624
  Prefactor  = 0.538394
 **********
 **   18 **HESSE 
 **********

 FCN=   1194.162     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    385.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1208        5.0853        .50000       -.61362    
   3  Normalizat    1.6562        .28085E-01    .23922E-03   -.73478    
   4  Prefactor     .53839        .23091E-01    .32364E-03   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67279e-07
Minuit parameter uncertainties:
  1  0.000711546
  2  462.498
  3  0.0280853
  4  0.0230911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546245': 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) = 1194.16209901
delta logL = -1.72867657966e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  5.384e-01  2.309e-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.656e+00  2.809e-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/546245/cmap_HighResolution_356227201_356486401_4FGL_J1223.5+0818_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', job_status='DONE', photon_flux_upper_limit='2.24e-07', time_completed='2021-09-05 10:54:53.532908', job_id='546245', GAL2='0.54', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1630864493.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='-1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='451' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:54:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 546245: <4FGL_J1223.5+0818_daily_bin451> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:30 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:45:31 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:31 2021
Terminated at Sun Sep  5 10:54:54 2021
Results reported at Sun Sep  5 10:54:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin451 185.883 8.3017 356227201 356486401 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 :                                   406.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

