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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin566
RA = 185.883, Dec = 8.3017
tmin = 386035201, tmax = 386294401
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='546485', job_status='RUN', time_executed='2021-09-05 10:48:10.038461', time_epoch_executed='1630864090.04' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546485/ft1_4FGL_J1223.5+0818_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546485/ft2_4FGL_J1223.5+0818_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546485/ft1_4FGL_J1223.5+0818_daily_bin566.fits outfile=/scratch/kocevski/546485/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin566.fits ra=185.883 dec=8.3017 rad=12.0 tmin=386035201.0 tmax=386294401.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 4.95
user 4.64
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546485/ft2_4FGL_J1223.5+0818_daily_bin566.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/546485/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin566.fits evtable="EVENTS" outfile="/scratch/kocevski/546485/ft1_filtered_4FGL_J1223.5+0818_daily_bin566.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.52
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546485/ft1_filtered_4FGL_J1223.5+0818_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/546485/ft2_4FGL_J1223.5+0818_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/546485/ltcube_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.fits outfile=/scratch/kocevski/546485/expmap_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.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/546485/ltcube_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.fits
.....................!
real 190.14
user 183.74
sys 5.26

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/546485/ft1_filtered_4FGL_J1223.5+0818_daily_bin566.fits scfile=/scratch/kocevski/546485/ft2_4FGL_J1223.5+0818_daily_bin566.fits outfile=/scratch/kocevski/546485/cmap_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546485/ft1_filtered_4FGL_J1223.5+0818_daily_bin566.fits scfile=/scratch/kocevski/546485/ft2_4FGL_J1223.5+0818_daily_bin566.fits outfile=/scratch/kocevski/546485/cmap_HighResolution_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14597E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84616E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.625       1.0000         .10000E-03   10000.    
    13 'norm      '    .98407       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .22993       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.140       1.0000         .10000E-03   10000.    
    22 'norm      '    11.744       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.980       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6740       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.317       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3704       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82156       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=   6404.249     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3759 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.88        .25347E-05** at limit **
   2  Prefactor     .10000E-03    30.688       -.34165E-06** at limit **
   3  Prefactor     .10000E-03    5.1461       -.11947E-09** at limit **
   4  Prefactor     1.4969        5.1231        .10210E-05   -.29414E-03
   5  Prefactor     1.8406        40.275        .13595E-05   -.33234E-04
   6  Prefactor     .10000E-03    51.062        .31726E-06** at limit **
   7  Prefactor     .10000E-03    9.9875       -.50929E-07** at limit **
   8  Prefactor     .10000E-03    9.2250        .18190E-07** at limit **
   9  Prefactor     .11537        1.5438        .12812E-06   -.18581E-03
  10  Prefactor     .82011E-01    1.5551       -.73219E-07    .98773E-04
  11  Prefactor     .10000E-03    27.546        .11488E-05** at limit **
  12  Prefactor     16.650        15.376       -.99319E-06   -.13304E-03
  13  norm          .97850        2.4300        .94239E-06    .45042E-04
  14  norm          6.5685        4.3478       -.56834E-07   -.26708E-03
  15  Prefactor     .10000E-03    31.880       -.11103E-05** at limit **
  16  norm          .10000E-03    29.584        .21357E-06** at limit **
  17  Prefactor     .10000E-03    117.56       -.24536E-05** at limit **
  18  norm          .22991        .58958        .15613E-06   -.83335E-03
  19  Prefactor     .10000E-03    11.536        .92482E-07** at limit **
  20  Prefactor     40.350        35.470        .21961E-06    .96018E-05
  21  Prefactor     14.141        9.8057       -.64988E-07   -.56891E-04
  22  norm          11.745        2.7818       -.18683E-07   -.15540E-03
  23  Prefactor     .10000E-03    5.2812        .51714E-09** at limit **
  24  Prefactor     .10000E-03    20.892       -.20263E-06** at limit **
  25  Prefactor     36.990        40.966        .10065E-05    .77250E-04
  26  Prefactor     9.6648        18.036        .41963E-07   -.19518E-04
  27  Prefactor     14.320        13.817        .64721E-08   -.68691E-05
  28  Normalizat    1.3704        .22050       -.44454E-06   -.10430E-03
  29  Prefactor     .82159        .17310       -.23817E-06   -.96447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49687
  Prefactor  = 1.84057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.115367
  Prefactor  = 0.0820115
  Prefactor  = 0.0001
  Prefactor  = 16.65
  norm       = 0.978505
  norm       = 6.56846
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.229913
  Prefactor  = 0.0001
  Prefactor  = 40.35
  Prefactor  = 14.1414
  norm       = 11.7446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9904
  Prefactor  = 9.66475
  Prefactor  = 14.3197
  Normalizat = 1.37043
  Prefactor  = 0.821585
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.249     FROM HESSE     STATUS=OK           561 CALLS     4320 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1762        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4969        5.0642        .32187E-03   -1.5463    
   5  Prefactor     1.8406        40.463        .30744E-03   -1.5437    
   6  Prefactor     .10000E-03    51.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11537        15.863        .18288E-02   -1.5640    
  10  Prefactor     .82011E-01    16.547        .18370E-02   -1.5651    
  11  Prefactor     .10000E-03    27.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.650        15.141        .98229E-04   -1.4892    
  13  norm          .97850        2.3217        .17332E-02   -1.5510    
  14  norm          6.5685        4.2130        .11790E-03   -1.5195    
  15  Prefactor     .10000E-03    32.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    29.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    118.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .22991        .64927        .77887E-03   -1.5612    
  19  Prefactor     .10000E-03    11.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.350        35.507        .63104E-04   -1.4437    
  21  Prefactor     14.141        9.7753        .10652E-03   -1.4956    
  22  norm          11.745        2.7589        .60118E-04   -1.5022    
  23  Prefactor     .10000E-03    5.3000        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     36.990        41.369        .65906E-04   -1.4491    
  26  Prefactor     9.6648        18.128        .12884E-03   -1.5086    
  27  Prefactor     14.320        13.804        .10585E-03   -1.4951    
  28  Normalizat    1.3704        .26175        .27178E-03   -.81488    
  29  Prefactor     .82159        .20484        .28491E-03   -.98938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48802e-10
Minuit parameter uncertainties:
  1  0.00059402
  2  6.66006e-05
  3  1.24944e-06
  4  5.06568
  5  17.2725
  6  8.81347e-05
  7  5.12582e-06
  8  1.39593e-06
  9  2.70512
  10  2.32906
  11  0.000216668
  12  15.1448
  13  2.32193
  14  4.21323
  15  0.000213868
  16  4.98202e-05
  17  0.000952888
  18  0.649286
  19  3.53742e-07
  20  35.5261
  21  9.77637
  22  2.75893
  23  1.06347e-06
  24  2.86236e-05
  25  41.4016
  26  18.1381
  27  13.807
  28  0.262002
  29  0.205026
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.139e-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:  8.216e-01  2.050e-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.370e+00  2.620e-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: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546485/likelihoodResults_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.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) = 6404.24934386
delta logL = -0.00014786896736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6404.2491962
delta logL = -2.08782694244e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0712       1.0000          .0000       10.000    
     3 'Normalizat'    1.3704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82158       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=   6404.249     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    10.198        .90712E-02** at limit **
   2  Index         2.0442        8.8504        .50000        .70020E-05
   3  Normalizat    1.3704        .31531E-02    .61449E-01    .65134E-04
   4  Prefactor     .82158        .26491E-02    .64410E-01    .49667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.0442
  Normalizat = 1.37043
  Prefactor  = 0.821585
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.249     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    95.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0442        6.7039        .50000       -.63250    
   3  Normalizat    1.3704        .96553E-02    .27178E-03   -.81488    
   4  Prefactor     .82158        .81070E-02    .28491E-03   -.98938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35921e-08
Minuit parameter uncertainties:
  1  0.00185248
  2  123.778
  3  0.00965533
  4  0.00810701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546485': 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) = 6404.24919615
delta logL = -1.59043338499e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.852e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.044e+00  1.238e+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:  8.216e-01  8.107e-03  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.370e+00  9.655e-03  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/546485/cmap_HighResolution_386035201_386294401_4FGL_J1223.5+0818_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-05 11:02:13.086928', job_id='546485', GAL2='0.82', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630864933.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='566' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:02:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 546485: <4FGL_J1223.5+0818_daily_bin566> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin566 185.883 8.3017 386035201 386294401 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 :                                   838.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

