aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 85 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1762
RA = 185.988, Dec = 50.0089
tmin = 696038401, tmax = 696297601
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='107901', job_status='RUN', time_executed='2023-01-25 00:54:58.497346', time_epoch_executed='1674636898.5' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107901/ft1_4FGL_J1223.9+5000_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107901/ft1_4FGL_J1223.9+5000_daily_bin1762.fits outfile=/scratch/kocevski/107901/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1762.fits ra=185.988 dec=50.0089 rad=12.0 tmin=696038401.0 tmax=696297601.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.70
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.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/107901/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/107901/ft1_filtered_4FGL_J1223.9+5000_daily_bin1762.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.53
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 514

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107901/ft1_filtered_4FGL_J1223.9+5000_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/107901/ltcube_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.fits outfile=/scratch/kocevski/107901/expmap_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.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/107901/ltcube_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.fits
.....................!
real 192.72
user 187.98
sys 4.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/107901/ft1_filtered_4FGL_J1223.9+5000_daily_bin1762.fits scfile=/scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.fits outfile=/scratch/kocevski/107901/cmap_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107901/ft1_filtered_4FGL_J1223.9+5000_daily_bin1762.fits scfile=/scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.fits outfile=/scratch/kocevski/107901/cmap_HighResolution_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107901/ft1_filtered_4FGL_J1223.9+5000_daily_bin1762.fits', '/scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.fits', expMap='/scratch/kocevski/107901/expmap_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.fits', expCube='/scratch/kocevski/107901/ltcube_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107901/Model_4FGL_J1223.9+5000_daily_bin1762.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  0.000e+00  1.000e+06 ( 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 -5.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/107901/ft1_filtered_4FGL_J1223.9+5000_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/107901/ft2_4FGL_J1223.9+5000_daily_bin1762.fits
Exposure map: /scratch/kocevski/107901/expmap_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.fits
Exposure cube: /scratch/kocevski/107901/ltcube_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107901/Model_4FGL_J1223.9+5000_daily_bin1762.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) = 5737.74221314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.203       1.0000          .0000       .10000E+07
     2 'norm      '    .64530E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.5448       1.0000          .0000       .10000E+07
     4 'norm      '    .14777E-05   1.0000          .0000       .10000E+07
     5 'norm      '    8.2032       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.9287       1.0000          .0000       .10000E+07
     7 'Prefactor '    83.550       1.0000          .0000       .10000E+07
     8 'norm      '    .27332E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33097E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.8186       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29522E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .45061       1.0000          .0000       .10000E+07
    13 'norm      '    .36655E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .21038E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.8418       1.0000          .0000       .10000E+07
    16 'norm      '    .14565E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .43272E-03   1.0000          .0000       .10000E+07
    18 'norm      '    4.2579       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20335E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .11712E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .23575E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    45.350       1.0000          .0000       .10000E+07
    23 'Prefactor '    .17671       1.0000          .0000       .10000E+07
    24 'norm      '    .29089E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1746       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5737.741     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     2279 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.134        5.3913        .35473E-07    .71428E-01
   2  norm          .32752E-08    14.068        .50714E-06** at limit **
   3  Prefactor     5.5342        7.2958       -.16034E-07    .10107E-01
   4  norm           .0000        .59482       -.68940E-08** at limit **
   5  norm          8.2287        3.4679        .11828E-06    .55568E-01
   6  Prefactor     3.9289        3.5893       -.33198E-06   -.32506E-03
   7  Prefactor     83.456        3.9879        .19370E-07    .80367E-01
   8  norm          .55511E-10    1.7163       -.15939E-06** at limit **
   9  Prefactor     .27756E-09    7.5231        .10337E-05** at limit **
  10  Prefactor     1.8408        5.6485       -.15077E-06    .73007E-03
  11  Prefactor     .15687E-06    6.2031       -.84949E-06** at limit **
  12  norm          .45004        1.6912       -.17251E-06   -.49678E-03
  13  norm          .16653E-09    2.2168        .66903E-06** at limit **
  14  Prefactor     .12002E-06    5.3125       -.89175E-06** at limit **
  15  Prefactor     4.8586        5.7106        .11907E-06    .20799E-02
  16  norm          .88818E-09    3.7695        .12424E-06** at limit **
  17  Prefactor     .51237E-07    3.2706        .24333E-06** at limit **
  18  norm          4.2588        2.3897        .10340E-07    .76618E-03
  19  Prefactor     .44964E-08    25.602        .88270E-06** at limit **
  20  norm          .35250E-07    3.3215        .11474E-06** at limit **
  21  norm          .39819E-05    41.974        .12807E-05** at limit **
  22  Prefactor     45.582        20.660       -.34186E-06    .87560E-01
  23  Prefactor     .53513E-07    28.444        .11047E-05** at limit **
  24  norm          .55511E-10    1.6486       -.13010E-06** at limit **
  25  Normalizat    1.1746        .19163        .17064E-05   -.24291E-04
  26  Prefactor     .73275        .22424        .45125E-05   -.26373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1343
  norm       = 3.27516e-09
  Prefactor  = 5.53416
  norm       = 0
  norm       = 8.22875
  Prefactor  = 3.92891
  Prefactor  = 83.456
  norm       = 5.55112e-11
  Prefactor  = 2.77556e-10
  Prefactor  = 1.84077
  Prefactor  = 1.56875e-07
  norm       = 0.450041
  norm       = 1.66533e-10
  Prefactor  = 1.20015e-07
  Prefactor  = 4.85861
  norm       = 8.88178e-10
  Prefactor  = 5.12368e-08
  norm       = 4.2588
  Prefactor  = 4.4964e-09
  norm       = 3.52496e-08
  norm       = 3.98187e-06
  Prefactor  = 45.5824
  Prefactor  = 5.35127e-08
  norm       = 5.55112e-11
  Normalizat = 1.17457
  Prefactor  = 0.732754
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.741     FROM HESSE     STATUS=OK           514 CALLS     2793 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.134        52.020        .16397E-03   -1.5586    
   2  norm          .32752E-08    14.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5342        7.3640        .42643E-03   -1.5661    
   4  norm           .0000        .59819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.2287        8.6901        .34980E-03   -1.5651    
   6  Prefactor     3.9289        3.5886        .50872E-03   -1.5668    
   7  Prefactor     83.456        53.924        .10941E-03   -1.5525    
   8  norm          .55511E-10    1.7140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    7.6170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8408        5.6727        .77410E-03   -1.5681    
  11  Prefactor     .15687E-06    11.063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .45004        1.6910        .83843E-03   -1.5695    
  13  norm          .16653E-09    2.2183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12002E-06    11.646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8586        5.8079        .45693E-03   -1.5664    
  16  norm          .88818E-09    3.7254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .51237E-07    5.5394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2588        2.3917        .48805E-03   -1.5667    
  19  Prefactor     .44964E-08    4.7109        .90308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .35250E-07    5.7197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .39819E-05    2.5223        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.582        33.996        .14851E-03   -1.5573    
  23  Prefactor     .53513E-07    38.387        .12206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55511E-10    1.6472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1746        .16702        .35546E-01   -.87392    
  26  Prefactor     .73275        .19489        .69334E-01   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59692e-07
Minuit parameter uncertainties:
  1  52.0211
  2  0.000431464
  3  7.36405
  4  2.31144e-06
  5  8.69016
  6  3.58862
  7  53.924
  8  1.4546e-05
  9  9.5733e-05
  10  5.67272
  11  0.00263496
  12  1.69104
  13  3.51928e-05
  14  0.00236475
  15  5.80794
  16  0.000116524
  17  0.00106564
  18  2.3917
  19  0.00029089
  20  0.000898142
  21  0.00633831
  22  33.9957
  23  0.00286698
  24  2.18397e-05
  25  0.1671
  26  0.19507
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.665e-10  3.519e-05  0.000e+00  1.000e+06 ( 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 -5.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.328e-01  1.951e-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.175e+00  1.671e-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: 4.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107901/likelihoodResults_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.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) = 5737.74138099
delta logL = -0.000464182737232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5737.74091687
delta logL = -5.84395820624e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22704E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    .53768       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73271       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.

 FCN=   5737.737     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      319 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26057E-01    9.7602        .17854E-02** at limit **
   2  alpha         5.0000        4.6924        .50000    ** at limit **
   3  Normalizat    1.1703        .36873E-01    .35547E-01    .17681E-03
   4  Prefactor     .73597        .41215E-01    .69198E-01    .16735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.026057
  alpha      = 5
  Normalizat = 1.17027
  Prefactor  = 0.735968
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.737     FROM HESSE     STATUS=OK            33 CALLS      352 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26057E-01    .87992        .60472E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.6069        .20000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1703        .19186        .20567E-03   -.87527    
   4  Prefactor     .73597        .22665        .30620E-03   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77631e-11
Minuit parameter uncertainties:
  1  0.302841
  2  4.54317e-05
  3  0.191973
  4  0.226934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107901': 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) = 5737.73702143
delta logL = 0.00389537958472

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.606e-02  3.028e-01  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  5.000e+00  4.543e-05  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00 -5.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.360e-01  2.269e-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.170e+00  1.920e-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/107901/cmap_HighResolution_696038401_696297601_4FGL_J1223.9+5000_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-05', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2023-01-25 01:06:37.727686', job_id='107901', GAL2='0.74', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1674637597.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.90e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1762' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:06:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 107901: <4FGL_J1223.9+5000_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:50:30 2023
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:53:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:53:25 2023
Terminated at Wed Jan 25 01:06:38 2023
Results reported at Wed Jan 25 01:06:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1762 185.988 50.0089 696038401 696297601 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 :                                   701.07 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            968 sec.

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

