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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1752
RA = 186.392, Dec = -28.8625
tmin = 693446401, tmax = 693705601
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='261897', job_status='RUN', time_executed='2022-12-26 00:53:47.140900', time_epoch_executed='1672044827.14' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261897/ft1_4FGL_J1225.5-2851_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261897/ft1_4FGL_J1225.5-2851_daily_bin1752.fits outfile=/scratch/kocevski/261897/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1752.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=693446401.0 tmax=693705601.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.48
user 3.22
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.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/261897/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 720

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/261897/ltcube_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.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/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits
.....................!
real 15.22
user 14.72
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/261897/ltcube_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.fits outfile=/scratch/kocevski/261897/expmap_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.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/261897/ltcube_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.fits
.....................!
real 192.63
user 186.25
sys 5.92

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 183 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1225.5-2851 @ 186.392 -28.8625

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits scfile=/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits outfile=/scratch/kocevski/261897/cmap_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.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=186.392 yref=-28.8625 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits scfile=/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits outfile=/scratch/kocevski/261897/cmap_HighResolution_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.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=186.392 yref=-28.8625 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261897/Model_4FGL_J1225.5-2851_daily_bin1752.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits....................!
real 131.99
user 130.00
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits', '/scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits', expMap='/scratch/kocevski/261897/expmap_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.fits', expCube='/scratch/kocevski/261897/ltcube_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261897/Model_4FGL_J1225.5-2851_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.5-2851'

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.708e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261897/ft1_filtered_4FGL_J1225.5-2851_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/261897/ft2_4FGL_J1225.5-2851_daily_bin1752.fits
Exposure map: /scratch/kocevski/261897/expmap_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.fits
Exposure cube: /scratch/kocevski/261897/ltcube_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261897/Model_4FGL_J1225.5-2851_daily_bin1752.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) = 7825.94613891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49213E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .18191E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .92003E-04   1.0000          .0000       .10000E+07
     4 'norm      '    12.109       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.7025       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11505E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12072       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.734       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16759E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .47794E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21522E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .23278       1.0000          .0000       .10000E+07
    13 'Prefactor '    260.47       1.0000          .0000       .10000E+07
    14 'norm      '    .11236E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .15643E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .18056E-05   1.0000          .0000       .10000E+07
    17 'norm      '    7.3806       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7825.939     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1448 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7419        .10800E-06** at limit **
   2  norm           .0000        32.879        .16767E-05** at limit **
   3  Prefactor      .0000        5.9078        .30676E-05** at limit **
   4  norm          12.161        5.8206        .24615E-06   -.34990E-03
   5  Prefactor     4.7322        6.7171       -.44410E-06   -.24933E-03
   6  Prefactor      .0000        9.6346       -.27291E-07** at limit **
   7  Prefactor      .0000        34.911       -.31245E-05** at limit **
   8  Prefactor     13.734        14.870       -.17822E-05    .67265E-04
   9  Prefactor      .0000        17.820       -.16138E-05** at limit **
  10  Prefactor      .0000        5.8604       -.17283E-05** at limit **
  11  Prefactor      .0000        5.0029        .34915E-06** at limit **
  12  norm          .23247        1.1042       -.26733E-06** at limit **
  13  Prefactor     261.61        102.39        .25926E-06    .29349E-04
  14  norm           .0000        2.1865       -.46573E-06** at limit **
  15  Prefactor      .0000        2.0509       -.36364E-06** at limit **
  16  norm           .0000        1.7709        .35073E-06** at limit **
  17  norm          7.3815        6.6961        .15225E-06    .15792E-03
  18  Normalizat    1.1335        .31114        .73295E-05    .14858E-04
  19  Prefactor     1.1281        .13743       -.47650E-06    .18908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 12.1606
  Prefactor  = 4.73218
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.7341
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.232468
  Prefactor  = 261.61
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 7.38155
  Normalizat = 1.13349
  Prefactor  = 1.1281
 **********
 **   18 **HESSE 
 **********

 FCN=   7825.939     FROM HESSE     STATUS=OK           304 CALLS     1752 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        32.817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.9081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.161        5.8202        .28762E-03   -1.5638    
   5  Prefactor     4.7322        6.7436        .46380E-03   -1.5664    
   6  Prefactor      .0000        9.6265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        34.740        .13403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.734        14.871        .27002E-03   -1.5634    
   9  Prefactor      .0000        17.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.8616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.9983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .23247        .79674        .25836E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     261.61        102.68        .61970E-04   -1.5384    
  14  norm           .0000        2.1823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.0472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.7714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3815        6.6947        .36894E-03   -1.5654    
  18  Normalizat    1.1335        .26745        .89850E-01   -.88684    
  19  Prefactor     1.1281        .11685        .36605E-01   -.88573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21716e-08
Minuit parameter uncertainties:
  1  8.78314e-07
  2  9.74325e-07
  3  2.52677e-06
  4  5.82019
  5  6.74365
  6  7.48966e-06
  7  1.12115e-05
  8  14.8705
  9  3.50485e-05
  10  3.14722e-06
  11  1.77186e-06
  12  0.796739
  13  102.682
  14  3.03713e-06
  15  4.76258e-07
  16  5.51879e-07
  17  6.6947
  18  0.267774
  19  0.116881
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  3.147e-06  0.000e+00  1.000e+06 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.128e+00  1.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.133e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261897/likelihoodResults_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.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) = 7825.93881688
delta logL = -0.000148028375406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7825.93867161
delta logL = -2.75299771602e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19305E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4168       1.0000          .0000       10.000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7825.939     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      241 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.1015        .42118E-03** at limit **
   2  Index         2.7712        1.3583        .21837E-04     .0000    
   3  Normalizat    1.1335        1.1342        .37643E-05    .24304E-04
   4  Prefactor     1.1281        1.1325        .48511E-06    .43571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.77116
  Normalizat = 1.13349
  Prefactor  = 1.1281
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7825.939     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.1015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86984        2.0064        .21837E-04   -.46203    
   3  Normalizat    1.1335        1.1342        .37643E-05   -.88684    
   4  Prefactor     1.1281        1.1325        .48511E-06   -.88573    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.48285e-12
Minuit parameter uncertainties:
  1  2.06637e-05
  2  1.38002
  3  1.1602
  4  1.15821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261897': 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): 101
logL (Free Index) = 7825.93866885
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  2.066e-05  0.000e+00  1.000e+06 ( 1.000e-13)
294        Index:  2.771e+00  1.380e+00  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.128e+00  1.158e+00  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.133e+00  1.160e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 186.392 -28.863

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261897/cmap_HighResolution_693446401_693705601_4FGL_J1225.5-2851_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2022-12-26 01:05:09.651843', job_id='261897', GAL2='1.13', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1672045509.65', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1752' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:05:09 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 261897: <4FGL_J1225.5-2851_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:50:19 2022
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:51:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:51:31 2022
Terminated at Mon Dec 26 01:05:10 2022
Results reported at Mon Dec 26 01:05:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1752 186.392 -28.8625 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.5-2851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.00 sec.
    Max Memory :                                 1058 MB
    Average Memory :                             327.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            891 sec.

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

