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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin958
RA = 185.988, Dec = 50.0089
tmin = 487641601, tmax = 487900801
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='573781', job_status='RUN', time_executed='2021-09-05 12:05:42.055118', time_epoch_executed='1630868742.06' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573781

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573781/ft1_4FGL_J1223.9+5000_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573781/ft1_4FGL_J1223.9+5000_daily_bin958.fits outfile=/scratch/kocevski/573781/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin958.fits ra=185.988 dec=50.0089 rad=12.0 tmin=487641601.0 tmax=487900801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.05
user 4.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573781/ft1_filtered_4FGL_J1223.9+5000_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/573781/ltcube_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.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/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits
.....................!
real 12.06
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573781/ft1_filtered_4FGL_J1223.9+5000_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/573781/ltcube_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.fits outfile=/scratch/kocevski/573781/expmap_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.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/573781/ltcube_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.fits
.....................!
real 190.88
user 184.82
sys 5.63

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/573781/ft1_filtered_4FGL_J1223.9+5000_daily_bin958.fits scfile=/scratch/kocevski/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits outfile=/scratch/kocevski/573781/cmap_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573781/ft1_filtered_4FGL_J1223.9+5000_daily_bin958.fits scfile=/scratch/kocevski/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits outfile=/scratch/kocevski/573781/cmap_HighResolution_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573781/ft1_filtered_4FGL_J1223.9+5000_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/573781/ft2_4FGL_J1223.9+5000_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573781/Model_4FGL_J1223.9+5000_daily_bin958.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/573781/ft1_filtered_4FGL_J1223.9+5000_daily_bin958.fits.....................!
real 45.89
user 44.54
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.366       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .78584       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8096       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8824       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20130E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0074       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99751       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79929       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=   5040.448     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3162 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.462        69.016        .18773E-05    .25157E-03
   2  norm          .10000E-03    12.760       -.85505E-07** at limit **
   3  Prefactor     .10000E-03    5.5150       -.14243E-07** at limit **
   4  norm          .78588        .97692       -.10062E-06   -.20074E-03
   5  norm          3.3060        6.1991        .51653E-05   -.25553E-03
   6  Prefactor     .10000E-03    1.4858        .72100E-07** at limit **
   7  Prefactor     .10000E-03    22.172       -.28341E-06** at limit **
   8  norm          3.8096        3.2015       -.35998E-07   -.19529E-04
   9  Prefactor     13.002        15.377        .14287E-06    .14614E-04
  10  Prefactor     1.8830        5.1999        .79989E-06   -.25292E-04
  11  Prefactor     .10000E-03    10.417       -.39399E-07** at limit **
  12  norm          2.5293        2.2387        .10945E-06   -.28580E-04
  13  Prefactor     .10000E-03    14.012       -.18718E-07** at limit **
  14  norm          .10000E-03    4.7279        .12493E-06** at limit **
  15  Prefactor     42.029        23.379        .21728E-06    .12678E-04
  16  Prefactor     .10000E-03    2.9046       -.10882E-06** at limit **
  17  norm          1.3294        1.2656       -.13126E-07    .56150E-04
  18  Prefactor     .10000E-03    18.080        .32841E-07** at limit **
  19  norm          5.1133        2.4345        .17619E-07   -.12271E-05
  20  Prefactor     .10000E-03    138.25        .63932E-06** at limit **
  21  Prefactor     .10000E-03    5.7259       -.84520E-07** at limit **
  22  norm          2.9890        17.500        .99920E-06    .27330E-04
  23  norm          .10000E-03    1.9720       -.31860E-07** at limit **
  24  Prefactor     .10000E-03    25.604       -.24091E-07** at limit **
  25  Prefactor     .10000E-03    4.7985       -.54293E-07** at limit **
  26  Prefactor     .10000E-03    16.237        .94707E-07** at limit **
  27  norm          .10000E-03    2.3581       -.42467E-07** at limit **
  28  Normalizat    .99767        .15505       -.45000E-06    .13529E-04
  29  Prefactor     .79914        .19049        .95251E-07   -.18467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.4624
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.785883
  norm       = 3.306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80958
  Prefactor  = 13.0022
  Prefactor  = 1.88299
  Prefactor  = 0.0001
  norm       = 2.52931
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.0288
  Prefactor  = 0.0001
  norm       = 1.32936
  Prefactor  = 0.0001
  norm       = 5.11327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.997673
  Prefactor  = 0.799145
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.462        69.063        .24633E-03   -1.4076    
   2  norm          .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6372        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .78588        .93294        .75909E-03   -1.5531    
   5  norm          3.3060        6.2045        .11132E-02   -1.5344    
   6  Prefactor     .10000E-03    1.5126        .84295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8096        3.1944        .11211E-03   -1.5318    
   9  Prefactor     13.002        15.373        .11106E-03   -1.4987    
  10  Prefactor     1.8830        5.1624        .25796E-03   -1.5434    
  11  Prefactor     .10000E-03    10.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5293        2.2295        .94460E-04   -1.5390    
  13  Prefactor     .10000E-03    14.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7756        .15048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.029        23.405        .61826E-04   -1.4410    
  16  Prefactor     .10000E-03    6.8527        .23380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3294        1.2850        .75450E-04   -1.5477    
  18  Prefactor     .10000E-03    18.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1133        2.4351        .74048E-04   -1.5256    
  20  Prefactor     .10000E-03    140.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7749        .16586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9890        17.485        .23405E-03   -1.5362    
  23  norm          .10000E-03    1.9865        .97340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.8007        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.4056        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99767        .18337        .20164E-03   -.93108    
  29  Prefactor     .79914        .22470        .27764E-03   -.99760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71329e-10
Minuit parameter uncertainties:
  1  69.1465
  2  3.86414e-05
  3  9.63582e-06
  4  0.932954
  5  6.2057
  6  6.5176e-07
  7  9.06938e-05
  8  3.19453
  9  15.3779
  10  5.16362
  11  2.92295e-06
  12  2.22961
  13  7.4337e-07
  14  4.07913e-06
  15  23.4097
  16  6.22267e-05
  17  1.28498
  18  2.61276e-05
  19  2.43515
  20  0.000126118
  21  5.86334e-07
  22  14.4648
  23  1.23758e-06
  24  2.34285e-05
  25  6.90286e-06
  26  4.86335e-05
  27  1.70566e-06
  28  0.183482
  29  0.224956
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  4.079e-06  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:  7.991e-01  2.250e-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:  9.977e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573781/likelihoodResults_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.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) = 5040.44919016
delta logL = -0.000998204653115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5040.44819198
delta logL = -1.77506080945e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4228       1.0000          .0000       5.0000    
     3 'Normalizat'    .99769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79914       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=   5040.442     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      286 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43524E-01    .29541        .15057E-01   -.17353E-02
   2  alpha         5.0000        3.8426        .16471    ** at limit **
   3  Normalizat    .99150        .17905        .20164E-03   -.13819E-03
   4  Prefactor     .80366        .22278        .27764E-03   -.48400E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0435242
  alpha      = 5
  Normalizat = 0.991496
  Prefactor  = 0.803656
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.442     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43524E-01    .93309        .70632E-03   -1.5750    
   2  alpha         5.0000        4.2049        .32941E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99150        .18520        .40327E-04   -.93316    
   4  Prefactor     .80366        .22556        .11106E-04   -.99594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85338e-11
Minuit parameter uncertainties:
  1  0.402591
  2  0.000105437
  3  0.185315
  4  0.225822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573781': 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) = 5040.4423967
delta logL = 0.0057952597399

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  4.352e-02  4.026e-01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  5.000e+00  1.054e-04  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.037e-01  2.258e-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:  9.915e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/573781/cmap_HighResolution_487641601_487900801_4FGL_J1223.9+5000_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-05 12:18:41.417787', job_id='573781', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1630869521.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.80e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='958' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:18:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 573781: <4FGL_J1223.9+5000_daily_bin958> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin958> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:30 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05: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 12:05:32 2021
Terminated at Sun Sep  5 12:18:44 2021
Results reported at Sun Sep  5 12:18:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin958 185.988 50.0089 487641601 487900801 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 :                                   775.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            794 sec.

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

