/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 235 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.9+5000_daily_bin451
RA = 185.988, Dec = 50.0089
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='567913', job_status='RUN', time_executed='2021-09-05 11:55:40.027684', time_epoch_executed='1630868140.03' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567913

Creating custom pfile directory:
/scratch/kocevski/567913/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/567913/ft1_4FGL_J1223.9+5000_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/567913/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/567913/ft2_4FGL_J1223.9+5000_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567913/ft1_4FGL_J1223.9+5000_daily_bin451.fits outfile=/scratch/kocevski/567913/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin451.fits ra=185.988 dec=50.0089 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.08
user 2.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567913/ft2_4FGL_J1223.9+5000_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/567913/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/567913/ft1_filtered_4FGL_J1223.9+5000_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.47
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567913/ft1_filtered_4FGL_J1223.9+5000_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/567913/ft2_4FGL_J1223.9+5000_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/567913/ltcube_356227201_356486401_4FGL_J1223.9+5000_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/567913/ft2_4FGL_J1223.9+5000_daily_bin451.fits
.....................!
real 3.28
user 2.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567913/ft1_filtered_4FGL_J1223.9+5000_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/567913/ft2_4FGL_J1223.9+5000_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/567913/ltcube_356227201_356486401_4FGL_J1223.9+5000_daily_bin451.fits outfile=/scratch/kocevski/567913/expmap_356227201_356486401_4FGL_J1223.9+5000_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/567913/ltcube_356227201_356486401_4FGL_J1223.9+5000_daily_bin451.fits
.....................!
real 191.42
user 186.16
sys 4.68

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/567913/ft1_filtered_4FGL_J1223.9+5000_daily_bin451.fits scfile=/scratch/kocevski/567913/ft2_4FGL_J1223.9+5000_daily_bin451.fits outfile=/scratch/kocevski/567913/cmap_356227201_356486401_4FGL_J1223.9+5000_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.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
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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/567913/ft1_filtered_4FGL_J1223.9+5000_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/567913/ft2_4FGL_J1223.9+5000_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/567913/Model_4FGL_J1223.9+5000_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/567913/ft1_filtered_4FGL_J1223.9+5000_daily_bin451.fits.....................!
real 22.37
user 20.87
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    325.73       1.0000         .10000E-03   10000.    
     2 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.725       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1725       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.946       1.0000         .10000E-03   10000.    
     8 'norm      '    6.6778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4578       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    28.118       1.0000         .10000E-03   10000.    
    23 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    62.046       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    17.640       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3116       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .21670       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=   1274.919     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     4293 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     325.72        309.32        .16968E-05    .84887E-06
   2  norm          .10000E-03    102.69        .28835E-06** at limit **
   3  Prefactor     10.726        13.120        .51363E-06    .14905E-04
   4  norm          2.1715        3.8338       -.26771E-06    .73951E-04
   5  norm          .10000E-03    12.999        .62640E-06** at limit **
   6  Prefactor     5.1177        12.830        .11624E-05    .26254E-04
   7  Prefactor     42.063        171.37        .60595E-05    .12258E-04
   8  norm          6.6777        7.6121        .14207E-06    .12475E-04
   9  Prefactor     16.191        61.510       -.97632E-06    .10123E-04
  10  Prefactor     .10000E-03    5.8586       -.87463E-08** at limit **
  11  Prefactor     .10000E-03    19.470       -.11998E-08** at limit **
  12  norm          .10000E-03    1.6717       -.54534E-07** at limit **
  13  Prefactor     .10000E-03    63.773       -.14418E-06** at limit **
  14  norm          3.3849        37.115        .55602E-05    .23567E-05
  15  Prefactor     88.344        90.333       -.42954E-05    .45778E-04
  16  Prefactor     .10000E-03    6.3934       -.49411E-07** at limit **
  17  norm          7.2958        4.9605        .42415E-07    .31755E-04
  18  Prefactor     1.4137        481.16        .11576E-04    .43729E-05
  19  norm          .10000E-03    1.9464       -.98117E-07** at limit **
  20  Prefactor     .10000E-03    134.48       -.14290E-05** at limit **
  21  Prefactor     .10000E-03    7.2032       -.22056E-07** at limit **
  22  norm          28.119        34.205       -.47863E-07    .17114E-04
  23  norm          .10000E-03    10.174       -.43513E-06** at limit **
  24  Prefactor     62.057        93.639        .81333E-06    .13920E-04
  25  Prefactor     .10000E-03    139.93       -.11342E-05** at limit **
  26  Prefactor     .10000E-03    91.271        .65641E-06** at limit **
  27  norm          17.641        13.225       -.32349E-06    .11225E-03
  28  Normalizat    1.3117        .41046        .14589E-05    .91175E-04
  29  Prefactor     .21665        .45006       -.11408E-04    .34826E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 325.716
  norm       = 0.0001
  Prefactor  = 10.7258
  norm       = 2.17149
  norm       = 0.0001
  Prefactor  = 5.11766
  Prefactor  = 42.0633
  norm       = 6.67774
  Prefactor  = 16.1911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38488
  Prefactor  = 88.3443
  Prefactor  = 0.0001
  norm       = 7.29581
  Prefactor  = 1.41374
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.1194
  norm       = 0.0001
  Prefactor  = 62.0569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6406
  Normalizat = 1.3117
  Prefactor  = 0.216652
 **********
 **   18 **HESSE 
 **********

 FCN=   1274.919     FROM HESSE     STATUS=OK           543 CALLS     4836 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     325.72        309.49        .11267E-03   -1.2079    
   2  norm          .10000E-03    102.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.726        13.116        .12234E-03   -1.5053    
   4  norm          2.1715        3.8397        .75557E-04   -1.5413    
   5  norm          .10000E-03    12.968        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1177        12.716        .13343E-03   -1.5255    
   7  Prefactor     42.063        173.29        .61896E-04   -1.4410    
   8  norm          6.6777        7.6142        .10244E-03   -1.5191    
   9  Prefactor     16.191        61.100        .99544E-04   -1.4903    
  10  Prefactor     .10000E-03    5.8591        .84422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.471        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6783        .45078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    63.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3849        35.644        .21926E-03   -1.5340    
  15  Prefactor     88.344        88.555        .42756E-04   -1.3825    
  16  Prefactor     .10000E-03    6.4030        .88177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2958        4.9663        .63798E-04   -1.5168    
  18  Prefactor     1.4137        505.42        .35650E-02   -1.5470    
  19  norm          .10000E-03    1.9487        .48638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    134.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2048        .93612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          28.119        34.167        .75553E-04   -1.4647    
  23  norm          .10000E-03    10.243        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     62.057        93.630        .50941E-04   -1.4131    
  25  Prefactor     .10000E-03    141.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    91.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          17.641        13.149        .95361E-04   -1.4868    
  28  Normalizat    1.3117        .38406        .18757E-03   -.83218    
  29  Prefactor     .21665        .41764        .49898E-03   -1.2753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11814e-10
Minuit parameter uncertainties:
  1  311.081
  2  0.000317015
  3  13.1197
  4  3.84009
  5  4.05298e-05
  6  12.7228
  7  171.618
  8  7.61528
  9  61.3375
  10  9.12766e-07
  11  5.15417e-06
  12  2.01674e-06
  13  0.000117657
  14  21.9847
  15  88.6876
  16  5.84842e-06
  17  4.96661
  18  53.9245
  19  3.78267e-06
  20  1.38601e-05
  21  2.6558e-06
  22  34.1911
  23  2.16424e-05
  24  93.8528
  25  0.000238944
  26  0.000296352
  27  13.1509
  28  0.384902
  29  0.423594
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.385e+00  2.198e+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:  2.167e-01  4.236e-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.312e+00  3.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 2.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567913/likelihoodResults_356227201_356486401_4FGL_J1223.9+5000_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): 0
logL (Free Index) = 1274.91473848
delta logL = 0.00430314210666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1274.9146673
delta logL = 0.00437432790955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2625       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6448       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21819       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=   1274.915     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      259 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2629        17.850        .22421E-03    .42572E-03
   2  alpha         2.6447        3.5861        .28661E-01    .43062E-04
   3  Normalizat    1.3093        .35772        .18769E-03   -.12928E-03
   4  Prefactor     .21801        .40416        .49741E-03   -.53277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26285
  alpha      = 2.64471
  Normalizat = 1.30932
  Prefactor  = 0.218008
 **********
 **   18 **HESSE 
 **********

 FCN=   1274.915     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2629        16.614        .89684E-05   -1.5347    
   2  alpha         2.6447        2.0566        .11465E-02    .57916E-01
   3  Normalizat    1.3093        .35755        .37538E-04   -.83289    
   4  Prefactor     .21801        .40388        .19896E-04   -1.2744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1478e-09
Minuit parameter uncertainties:
  1  14.7315
  2  2.41718
  3  0.358233
  4  0.409209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567913': 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) = 1274.9146672
delta logL = 0.00437442975931

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.263e+00  1.473e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.645e+00  2.417e+00  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:  2.180e-01  4.092e-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.309e+00  3.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 185.988 50.009

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/567913/cmap_HighResolution_356227201_356486401_4FGL_J1223.9+5000_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-05', job_status='DONE', photon_flux_upper_limit='2.02e-07', time_completed='2021-09-05 12:03:20.445911', job_id='567913', GAL2='0.22', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630868600.45', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.22', dlogl='4.37e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='451' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:03:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 567913: <4FGL_J1223.9+5000_daily_bin451> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin451> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:51:30 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:51:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:51:32 2021
Terminated at Sun Sep  5 12:03:21 2021
Results reported at Sun Sep  5 12:03:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin451 185.988 50.0089 356227201 356486401 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 :                                   458.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             229.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            711 sec.

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

