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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin929
RA = 185.988, Dec = 50.0089
tmin = 480124801, tmax = 480384001
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='573737', job_status='RUN', time_executed='2021-09-05 12:05:37.620663', time_epoch_executed='1630868737.62' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573737/ft1_4FGL_J1223.9+5000_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573737/ft2_4FGL_J1223.9+5000_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573737/ft1_4FGL_J1223.9+5000_daily_bin929.fits outfile=/scratch/kocevski/573737/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin929.fits ra=185.988 dec=50.0089 rad=12.0 tmin=480124801.0 tmax=480384001.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.53
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573737/ft2_4FGL_J1223.9+5000_daily_bin929.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/573737/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin929.fits evtable="EVENTS" outfile="/scratch/kocevski/573737/ft1_filtered_4FGL_J1223.9+5000_daily_bin929.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.54
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573737/ft1_filtered_4FGL_J1223.9+5000_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/573737/ft2_4FGL_J1223.9+5000_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/573737/ltcube_480124801_480384001_4FGL_J1223.9+5000_daily_bin929.fits outfile=/scratch/kocevski/573737/expmap_480124801_480384001_4FGL_J1223.9+5000_daily_bin929.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/573737/ltcube_480124801_480384001_4FGL_J1223.9+5000_daily_bin929.fits
.....................!
real 189.90
user 184.83
sys 4.71

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/573737/ft1_filtered_4FGL_J1223.9+5000_daily_bin929.fits scfile=/scratch/kocevski/573737/ft2_4FGL_J1223.9+5000_daily_bin929.fits outfile=/scratch/kocevski/573737/cmap_480124801_480384001_4FGL_J1223.9+5000_daily_bin929.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573737/ft1_filtered_4FGL_J1223.9+5000_daily_bin929.fits scfile=/scratch/kocevski/573737/ft2_4FGL_J1223.9+5000_daily_bin929.fits outfile=/scratch/kocevski/573737/cmap_HighResolution_480124801_480384001_4FGL_J1223.9+5000_daily_bin929.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2296       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10524E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6812       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.388       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9276       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .63193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6745       1.0000         .10000E-03   10000.    
    22 'norm      '    19.101       1.0000         .10000E-03   10000.    
    23 'norm      '    .58325E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    79.386       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.5824       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85962       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1497       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=   6117.818     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3755 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.305        .38805E-06** at limit **
   2  norm          .10000E-03    15.747       -.40406E-06** at limit **
   3  Prefactor     .10000E-03    4.2516        .10155E-06** at limit **
   4  norm          1.2296        1.0200        .30322E-07    .28057E-04
   5  norm          .10000E-03    3.6477        .14398E-07** at limit **
   6  Prefactor     .10000E-03    2.9984       -.30766E-06** at limit **
   7  Prefactor     .10000E-03    11.702       -.44116E-06** at limit **
   8  norm          .10056E-03    3.9163        .29644E-05** at limit **
   9  Prefactor     29.801        20.501        .47946E-06   -.13761E-04
  10  Prefactor     .10000E-03    15.984       -.42375E-06** at limit **
  11  Prefactor     .10000E-03    26.881        .11073E-05** at limit **
  12  norm          1.6811        2.1550        .17411E-06   -.93959E-04
  13  Prefactor     .10000E-03    30.458        .38418E-06** at limit **
  14  norm          16.390        8.6702       -.87667E-07   -.16881E-03
  15  Prefactor     .10000E-03    107.24        .71725E-06** at limit **
  16  Prefactor     .10000E-03    2.6446        .25195E-07** at limit **
  17  norm          3.9274        1.9726       -.84555E-08   -.13215E-03
  18  Prefactor     .10000E-03    29.016        .29530E-06** at limit **
  19  norm          .63224        1.6420        .27445E-06    .99635E-04
  20  Prefactor     40.937        58.750        .44394E-05   -.47746E-04
  21  Prefactor     1.6776        4.8393        .83502E-06    .51667E-04
  22  norm          19.103        17.480       -.45323E-06   -.67700E-05
  23  norm          .10000E-03    1.6199       -.48594E-06** at limit **
  24  Prefactor     79.383        38.596       -.46325E-06   -.21835E-04
  25  Prefactor     10.604        12.363       -.10302E-05   -.68408E-05
  26  Prefactor     .10000E-03    13.748        .13062E-05** at limit **
  27  norm          2.5836        4.0568        .34310E-05    .91333E-03
  28  Normalizat    .85978        .16119        .12164E-06   -.22764E-03
  29  Prefactor     1.1494        .19761       -.13488E-05   -.22177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100556
  Prefactor  = 29.8011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68115
  Prefactor  = 0.0001
  norm       = 16.3897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92735
  Prefactor  = 0.0001
  norm       = 0.632241
  Prefactor  = 40.9373
  Prefactor  = 1.67764
  norm       = 19.1027
  norm       = 0.000100002
  Prefactor  = 79.3826
  Prefactor  = 10.6044
  Prefactor  = 0.0001
  norm       = 2.58359
  Normalizat = 0.859777
  Prefactor  = 1.14944
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.818     FROM HESSE     STATUS=OK           551 CALLS     4306 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3278        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2296        1.0138        .69910E-04   -1.5486    
   5  norm          .10000E-03    3.6547        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0967        .26254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10056E-03    34.200        .23843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.801        20.403        .73417E-04   -1.4616    
  10  Prefactor     .10000E-03    16.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6811        2.1369        .12199E-03   -1.5449    
  13  Prefactor     .10000E-03    30.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.390        8.6303        .98936E-04   -1.4898    
  15  Prefactor     .10000E-03    110.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6690        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9274        1.9720        .75438E-04   -1.5312    
  18  Prefactor     .10000E-03    29.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .63224        1.6050        .15556E-03   -1.5549    
  20  Prefactor     40.937        58.962        .62625E-04   -1.4427    
  21  Prefactor     1.6776        4.7994        .28323E-03   -1.5449    
  22  norm          19.103        17.486        .91643E-04   -1.4834    
  23  norm          .10000E-03    11.742        .18976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     79.383        38.228        .45074E-04   -1.3924    
  25  Prefactor     10.604        12.371        .12303E-03   -1.5057    
  26  Prefactor     .10000E-03    13.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.5836        4.1185        .94429E-03   -1.5386    
  28  Normalizat    .85978        .18929        .23593E-03   -.97888    
  29  Prefactor     1.1494        .23369        .26419E-03   -.87902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64327e-08
Minuit parameter uncertainties:
  1  1.18896e-05
  2  1.58894e-05
  3  9.02498e-06
  4  1.01383
  5  2.09857e-06
  6  2.85903e-05
  7  1.53209e-05
  8  0.00872322
  9  20.4076
  10  5.13227e-06
  11  5.4638e-05
  12  2.13696
  13  9.38513e-06
  14  8.63093
  15  2.65173e-05
  16  1.63362e-06
  17  1.97207
  18  0.00013674
  19  1.60509
  20  59.0462
  21  4.80049
  22  17.491
  23  0.000322243
  24  38.2397
  25  12.3737
  26  5.90425e-05
  27  4.1189
  28  0.189432
  29  0.233898
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.639e+01  8.631e+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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.149e+00  2.339e-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:  8.598e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.28
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.08e-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) = 6117.34150481
delta logL = 0.476935196446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6117.33815548
delta logL = 0.48028452488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.149       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0282       1.0000          .0000       5.0000    
     3 'Normalizat'    .81706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1842       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=   6117.338     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      285 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.146        9.2456        .11493E-03    .36531E-02
   2  alpha         3.0280        .68252        .11428E-01    .36953E-03
   3  Normalizat    .81704        .18905        .24115E-03   -.43326E-03
   4  Prefactor     1.1843        .23683        .26076E-03   -.79102E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1465
  alpha      = 3.02795
  Normalizat = 0.81704
  Prefactor  = 1.1843
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.338     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.146        8.6059        .22986E-04   -1.5011    
   2  alpha         3.0280        .63570        .45713E-03    .21278    
   3  Normalizat    .81704        .18875        .48230E-04   -.99440    
   4  Prefactor     1.1843        .23655        .52152E-04   -.86816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49123e-09
Minuit parameter uncertainties:
  1  8.60675
  2  0.643098
  3  0.188904
  4  0.236759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573737': 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) = 6117.33815472
delta logL = 0.480285291454

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.215e+01  8.607e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  3.028e+00  6.431e-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:  1.184e+00  2.368e-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:  8.170e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.27
Ra Dec: 185.988 50.009
Photon Index (Free Index): 3.03 +/- 0.64
Photon Flux (Free Index): 9.69e-08 +/- 5.13e-08
Energy Flux (Free Index): 2.12e-05 +/- 9.85e-06

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/573737/cmap_HighResolution_480124801_480384001_4FGL_J1223.9+5000_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='2.12e-05', photon_flux_error='3.46e-08', dlogl='4.80e-01', energy_flux='2.06e-05', photon_flux2='9.69e-08', job_status='DONE', time_completed='2021-09-05 12:19:08.804558', photon_index_error2='0.64', photon_index2='3.03', ts='7.28', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='9.85e-06', EG='0.86', time_epoch_completed='1630869548.8', return_code='0', job_id='573737', GAL2='1.18', EG2='0.82', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.13e-08', ts2='8.27', photon_index='2.42' WHERE bin_id='929' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 573737: <4FGL_J1223.9+5000_daily_bin929> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin929 185.988 50.0089 480124801 480384001 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 :                                   807.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

