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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1028
RA = 185.988, Dec = 50.0089
tmin = 505785601, tmax = 506044801
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='573885', job_status='RUN', time_executed='2021-09-05 12:05:54.740576', time_epoch_executed='1630868754.74' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573885/ft1_4FGL_J1223.9+5000_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573885/ft1_4FGL_J1223.9+5000_daily_bin1028.fits outfile=/scratch/kocevski/573885/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1028.fits ra=185.988 dec=50.0089 rad=12.0 tmin=505785601.0 tmax=506044801.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.57
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.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/573885/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/573885/ltcube_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.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/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits
.....................!
real 12.02
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/573885/ltcube_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.fits outfile=/scratch/kocevski/573885/expmap_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.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/573885/ltcube_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.fits
.....................!
real 188.93
user 185.01
sys 3.52

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits scfile=/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits outfile=/scratch/kocevski/573885/cmap_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.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.988 yref=50.0089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits scfile=/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits outfile=/scratch/kocevski/573885/cmap_HighResolution_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.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.988 yref=50.0089 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/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573885/Model_4FGL_J1223.9+5000_daily_bin1028.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/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits.....................!
real 59.58
user 58.29
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits', '/scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits', expMap='/scratch/kocevski/573885/expmap_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.fits', expCube='/scratch/kocevski/573885/ltcube_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573885/Model_4FGL_J1223.9+5000_daily_bin1028.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/573885/ft1_filtered_4FGL_J1223.9+5000_daily_bin1028.fits
Spacecraft file(s): /scratch/kocevski/573885/ft2_4FGL_J1223.9+5000_daily_bin1028.fits
Exposure map: /scratch/kocevski/573885/expmap_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.fits
Exposure cube: /scratch/kocevski/573885/ltcube_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573885/Model_4FGL_J1223.9+5000_daily_bin1028.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) = 6983.78744906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33590E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1028       1.0000         .10000E-03   10000.    
     5 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.888       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1911       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.683       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    27.983       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19114E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5033       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.307       1.0000         .10000E-03   10000.    
    19 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6653       1.0000         .10000E-03   10000.    
    22 'norm      '    .11985E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.168       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6867       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.0520       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1384       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82668       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6983.716     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3818 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.362       -.90623E-05** at limit **
   2  norm          .10000E-03    23.315        .97882E-05** at limit **
   3  Prefactor     .10000E-03    3.6846       -.36297E-06** at limit **
   4  norm          1.1025        .93661        .10300E-06    .26935E-04
   5  norm          .10000E-03    4.2687       -.29150E-07** at limit **
   6  Prefactor     .10000E-03    1.3288       -.13536E-06** at limit **
   7  Prefactor     70.882        55.722       -.53738E-05   -.19719E-05
   8  norm          4.1895        5.3205       -.98429E-08   -.42358E-03
   9  Prefactor     .10000E-03    12.271        .76325E-05** at limit **
  10  Prefactor     .10000E-03    3.9307        .12988E-07** at limit **
  11  Prefactor     17.684        18.147       -.20378E-06    .24312E-04
  12  norm          2.7301        1.4966       -.12254E-06    .15618E-03
  13  Prefactor     .10000E-03    58.192       -.58279E-05** at limit **
  14  norm          27.982        10.312        .56417E-07    .17019E-04
  15  Prefactor     16.448        28.589       -.30475E-05   -.77086E-05
  16  Prefactor     .10000E-03    3.6750       -.11504E-05** at limit **
  17  norm          2.5043        1.6517       -.22576E-07    .66366E-03
  18  Prefactor     13.298        18.333        .96909E-06    .11657E-04
  19  norm          .10000E-03    .89812       -.13838E-06** at limit **
  20  Prefactor     29.420        39.898       -.47272E-04    .30367E-04
  21  Prefactor     6.6659        6.1198       -.25435E-06    .15835E-03
  22  norm          .10000E-03    13.339       -.64834E-05** at limit **
  23  norm          .10000E-03    .98039       -.42536E-07** at limit **
  24  Prefactor     25.184        25.630        .23558E-05   -.11866E-03
  25  Prefactor     7.6900        9.5117        .26257E-06   -.14303E-03
  26  Prefactor     .10000E-03    93.663        .19934E-04** at limit **
  27  norm          1.0493        3.5814       -.20742E-05   -.14170E-02
  28  Normalizat    1.1386        .15818        .22620E-05    .13901E-03
  29  Prefactor     .82662        .18697        .16950E-05    .18100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.10248
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.8817
  norm       = 4.18953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6835
  norm       = 2.73013
  Prefactor  = 0.0001
  norm       = 27.9817
  Prefactor  = 16.4484
  Prefactor  = 0.000100002
  norm       = 2.50426
  Prefactor  = 13.2977
  norm       = 0.0001
  Prefactor  = 29.4203
  Prefactor  = 6.66587
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 25.1843
  Prefactor  = 7.68996
  Prefactor  = 0.000100002
  norm       = 1.04928
  Normalizat = 1.13859
  Prefactor  = 0.826625
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.716     FROM HESSE     STATUS=OK           555 CALLS     4373 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    23.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.579        .30997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1025        1.0047        .70491E-03   -1.5498    
   5  norm          .10000E-03    4.2797        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3610        .18802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.882        55.596        .47679E-04   -1.4022    
   8  norm          4.1895        5.3036        .19686E-03   -1.5299    
   9  Prefactor     .10000E-03    12.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9407        .16151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.684        18.125        .95244E-04   -1.4867    
  12  norm          2.7301        1.4987        .73108E-04   -1.5377    
  13  Prefactor     .10000E-03    58.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.982        10.293        .75734E-04   -1.4650    
  15  Prefactor     16.448        28.561        .98730E-04   -1.4897    
  16  Prefactor     .10000E-03    10.585        .30220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5043        1.6172        .82895E-04   -1.5391    
  18  Prefactor     13.298        18.322        .10980E-03   -1.4978    
  19  norm          .10000E-03    1.7273        .15397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.420        39.800        .73788E-04   -1.4623    
  21  Prefactor     6.6659        6.1109        .15543E-03   -1.5192    
  22  norm          .10000E-03    13.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .98378        .80793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.184        25.562        .79849E-04   -1.4704    
  25  Prefactor     7.6900        9.3859        .72319E-03   -1.5153    
  26  Prefactor     .10000E-03    94.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.0493        3.5607        .26345E-03   -1.5503    
  28  Normalizat    1.1386        .18444        .21438E-03   -.88522    
  29  Prefactor     .82662        .21779        .30526E-03   -.98754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30391e-09
Minuit parameter uncertainties:
  1  9.57381e-06
  2  2.10872e-05
  3  0.000313271
  4  1.00474
  5  9.58399e-06
  6  1.18437e-05
  7  55.6368
  8  5.30422
  9  6.15558e-05
  10  1.11443e-05
  11  18.1302
  12  1.49868
  13  0.000108409
  14  10.2934
  15  28.5845
  16  0.000255896
  17  1.61722
  18  18.3293
  19  2.08369e-05
  20  39.8361
  21  6.11145
  22  0.000396551
  23  1.23534e-07
  24  25.5726
  25  9.38772
  26  0.000833636
  27  3.56144
  28  0.184549
  29  0.218019
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.798e+01  1.029e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  8.266e-01  2.180e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.139e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.67
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 4.13e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.29e-05

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): 0
logL (Free Index) = 6983.70223793
delta logL = 0.0133115828366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6983.69924379
delta logL = 0.0163057270338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.296       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4888       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+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=   6983.699     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.296        9.8252        .76680E-04   -.12039E-03
   2  alpha         2.4888        .39146        .10103E-01    .19957E-03
   3  Normalizat    1.1322        .17994        .21485E-03   -.74450E-04
   4  Prefactor     .83143        .21835        .30442E-03   -.84661E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.2964
  alpha      = 2.48877
  Normalizat = 1.13216
  Prefactor  = 0.831433
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.699     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.296        9.7088        .30672E-05   -1.4663    
   2  alpha         2.4888        .38662        .20207E-02   -.44939E-02
   3  Normalizat    1.1322        .18005        .85941E-05   -.88726    
   4  Prefactor     .83143        .21850        .12177E-04   -.98580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60783e-11
Minuit parameter uncertainties:
  1  9.70936
  2  0.388176
  3  0.180148
  4  0.21873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573885': 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): 0
logL (Free Index) = 6983.69924378
delta logL = 0.0163057328537

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.730e+01  9.709e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.489e+00  3.882e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  8.314e-01  2.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.132e+00  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.76
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.49 +/- 0.39
Photon Flux (Free Index): 1.18e-07 +/- 4.76e-08
Energy Flux (Free Index): 3.49e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/573885/cmap_HighResolution_505785601_506044801_4FGL_J1223.9+5000_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.49e-05', photon_flux_error='4.13e-08', dlogl='1.63e-02', energy_flux='3.51e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-05 12:20:46.277332', photon_index_error2='0.39', photon_index2='2.49', ts='27.67', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='1.14', time_epoch_completed='1630869646.28', return_code='0', job_id='573885', GAL2='0.83', EG2='1.13', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.76e-08', ts2='27.76', photon_index='2.42' WHERE bin_id='1028' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:20:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 573885: <4FGL_J1223.9+5000_daily_bin1028> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1028> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:36 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:05:38 2021
Terminated at Sun Sep  5 12:20:48 2021
Results reported at Sun Sep  5 12:20:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1028 185.988 50.0089 505785601 506044801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.02 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

