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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1718
RA = 185.988, Dec = 50.0089
tmin = 684633601, tmax = 684892801
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='117775', job_status='RUN', time_executed='2022-09-16 16:45:11.770406', time_epoch_executed='1663371911.77' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117775/ft1_4FGL_J1223.9+5000_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117775/ft2_4FGL_J1223.9+5000_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117775/ft1_4FGL_J1223.9+5000_daily_bin1718.fits outfile=/scratch/kocevski/117775/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1718.fits ra=185.988 dec=50.0089 rad=12.0 tmin=684633601.0 tmax=684892801.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.21
user 2.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117775/ft2_4FGL_J1223.9+5000_daily_bin1718.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/117775/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/117775/ft1_filtered_4FGL_J1223.9+5000_daily_bin1718.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 74

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117775/ft1_filtered_4FGL_J1223.9+5000_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/117775/ft2_4FGL_J1223.9+5000_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/117775/ltcube_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.fits outfile=/scratch/kocevski/117775/expmap_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.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/117775/ltcube_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.fits
.....................!
real 193.02
user 187.20
sys 5.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/117775/ft1_filtered_4FGL_J1223.9+5000_daily_bin1718.fits scfile=/scratch/kocevski/117775/ft2_4FGL_J1223.9+5000_daily_bin1718.fits outfile=/scratch/kocevski/117775/cmap_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117775/ft1_filtered_4FGL_J1223.9+5000_daily_bin1718.fits scfile=/scratch/kocevski/117775/ft2_4FGL_J1223.9+5000_daily_bin1718.fits outfile=/scratch/kocevski/117775/cmap_HighResolution_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26312E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .21722E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .57229E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .33176E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .29548E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.8130       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6699       1.0000          .0000       .10000E+07
     8 'norm      '    2.4480       1.0000          .0000       .10000E+07
     9 'Prefactor '    .91556E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10447E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    24.311       1.0000          .0000       .10000E+07
    12 'norm      '    .49910E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .16070       1.0000          .0000       .10000E+07
    14 'Prefactor '    37833.       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11493E-01   1.0000          .0000       .10000E+07
    16 'norm      '    15.225       1.0000          .0000       .10000E+07
    17 'Prefactor '    .55266E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .13961E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    10.712       1.0000          .0000       .10000E+07
    20 'norm      '    .14984E-01   1.0000          .0000       .10000E+07
    21 'norm      '    7.7319       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14006E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    85.106       1.0000          .0000       .10000E+07
    24 'norm      '    4.0762       1.0000          .0000       .10000E+07
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57059       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=   823.9338     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     3434 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        72.476        .25370E-06** at limit **
   2  norm           .0000        37.285       -.30392E-06** at limit **
   3  Prefactor      .0000        11.022        .73838E-07** at limit **
   4  norm           .0000        7.8053        .20208E-06** at limit **
   5  norm           .0000        104.89       -.23995E-06** at limit **
   6  Prefactor     3.8289        7.1989       -.37998E-07    .17879E-04
   7  Prefactor     .11102E-09    748.31        .10292E-05** at limit **
   8  norm          2.4476        4.2922        .16812E-06    .75636E-04
   9  Prefactor     .66613E-09    33.218       -.99481E-07** at limit **
  10  Prefactor     .62172E-08    33.484       -.11905E-05** at limit **
  11  Prefactor     24.529        24.676        .35318E-07   -.56747E-03
  12  norm           .0000        2.9814        .33227E-08** at limit **
  13  norm          .12026E-05    25.558       -.92902E-06** at limit **
  14  Prefactor     37833.        1.2080        .29492E-10   -.20043    
  15  Prefactor      .0000        20.302        .73643E-07** at limit **
  16  norm          15.332        12.749       -.68536E-07   -.17698E-02
  17  Prefactor      .0000        44.356        .33039E-07** at limit **
  18  norm           .0000        7.9161        .46274E-07** at limit **
  19  Prefactor     10.774        3.6306        .17718E-07    .63211E-02
  20  norm           .0000        14.688        .47165E-07** at limit **
  21  norm          7.6851        8.0632       -.74380E-08    .58695E-05
  22  Prefactor     .55511E-10    46.345       -.38053E-06** at limit **
  23  Prefactor     86.156        72.024       -.48372E-07   -.10743E-03
  24  norm          4.0013        5.9674       -.19659E-07    .34402E-05
  25  Normalizat    .10000E-01    .61061E-01    .26847E-05** at limit **
  26  Prefactor     .57053        .18394        .55915E-05   -.16953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 3.82888
  Prefactor  = 1.11022e-10
  norm       = 2.44762
  Prefactor  = 6.66134e-10
  Prefactor  = 6.21725e-09
  Prefactor  = 24.5287
  norm       = 0
  norm       = 1.20265e-06
  Prefactor  = 37833.4
  Prefactor  = 0
  norm       = 15.3317
  Prefactor  = 0
  norm       = 0
  Prefactor  = 10.7744
  norm       = 0
  norm       = 7.68508
  Prefactor  = 5.55112e-11
  Prefactor  = 86.1559
  norm       = 4.00128
  Normalizat = 0.01
  Prefactor  = 0.570533
 **********
 **   18 **HESSE 
 **********

 FCN=   823.9338     FROM HESSE     STATUS=OK           500 CALLS     3934 TOTAL
                     EDM=   .68E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        72.462        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        37.325        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        10.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        7.8018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        105.02        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8289        7.2056        .51666E-03   -1.5669    
   7  Prefactor     .11102E-09    748.90        .36186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4476        4.3240        .65355E-03   -1.5677    
   9  Prefactor     .66613E-09    33.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .62172E-08    35.734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.529        24.765        .20286E-03   -1.5609    
  12  norm           .0000        2.9839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .12026E-05    320.90        .12522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37833.        7871.6        .56233E-05   -1.1793    
  15  Prefactor      .0000        20.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.332        14.131        .25642E-03   -1.5630    
  17  Prefactor      .0000        44.378        .15336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        7.9037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.774        26.145        .30588E-03   -1.5642    
  20  norm           .0000        14.680        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6851        8.0813        .36039E-03   -1.5653    
  22  Prefactor     .55511E-10    46.525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     86.156        72.155        .10840E-03   -1.5522    
  24  norm          4.0013        5.9881        .49913E-03   -1.5668    
  25  Normalizat    .10000E-01    .59706E-01    .98986E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .57053        .19135        .40651E-01   -1.0884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84804e-05
Minuit parameter uncertainties:
  1  9.06152e-06
  2  7.47249e-06
  3  3.69888e-06
  4  9.63753e-07
  5  3.91544e-06
  6  7.20565
  7  0.00064333
  8  4.32398
  9  0.000294948
  10  0.000942574
  11  24.7649
  12  2.34666e-08
  13  0.0392922
  14  7873.82
  15  3.91652e-05
  16  14.1306
  17  2.86929e-07
  18  2.10473e-08
  19  26.1454
  20  3.58351e-07
  21  8.0813
  22  8.13885e-05
  23  72.1554
  24  5.9881
  25  8.13053e-09
  26  0.191567
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.203e-06  3.929e-02  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:  5.705e-01  1.916e-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.000e-02  8.131e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 6.58e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117775/likelihoodResults_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.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): 102
logL (Free Index) = 823.935321512
delta logL = -0.00148653221072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 823.933834978
delta logL = 1.28534338728e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '     .0000       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3907       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57054       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=   823.5072     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      262 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          64.767        77.171        .42118E-03    .18168E-02
   2  alpha         5.0000        .92943        .48023    ** at limit **
   3  Normalizat    .10000E-01    .54188E-01    .94147E-01** at limit **
   4  Prefactor     .54806        .17352        .40651E-01    .42525E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 64.7671
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.548056
 **********
 **   18 **HESSE 
 **********

 FCN=   823.5072     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          64.767        75.590        .16847E-04   -1.5547    
   2  alpha         5.0000        .95798        .24434E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .55248E-01    .40722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .54806        .17101        .20902E-03   -1.0982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5537e-09
Minuit parameter uncertainties:
  1  75.5916
  2  3.4191e-05
  3  3.49341e-06
  4  0.171167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117775': 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) = 823.507185764
delta logL = 0.426649215458

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  6.477e+01  7.559e+01  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  5.000e+00  3.419e-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:  5.481e-01  1.712e-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.000e-02  3.493e-06  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/117775/cmap_HighResolution_684633601_684892801_4FGL_J1223.9+5000_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-03', job_status='DONE', photon_flux_upper_limit='6.58e-06', time_completed='2022-09-16 16:52:01.403112', job_id='117775', GAL2='0.55', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1663372321.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.27e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1718' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:52:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 117775: <4FGL_J1223.9+5000_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1718> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:43 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:42:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:42:29 2022
Terminated at Fri Sep 16 16:52:02 2022
Results reported at Fri Sep 16 16:52:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1718 185.988 50.0089 684633601 684892801 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 :                                   411.22 sec.
    Max Memory :                                 1214 MB
    Average Memory :                             253.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            679 sec.

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

