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


Performing analysis on: 4FGL_J0456.2+2702_monthly_bin170
RA = 74.0673, Dec = 27.0403
tmin = 677635201, tmax = 680227201
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='87287', job_status='RUN', time_executed='2022-07-23 00:51:18.205490', time_epoch_executed='1658562678.21' WHERE source_name='4FGL J0456.2+2702' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87287

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87287/ft1_4FGL_J0456.2+2702_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87287/ft1_4FGL_J0456.2+2702_monthly_bin170.fits outfile=/scratch/kocevski/87287/ft1_filteredMKT_4FGL_J0456.2+2702_monthly_bin170.fits ra=74.0673 dec=27.0403 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.69
user 31.81
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.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/87287/ft1_filteredMKT_4FGL_J0456.2+2702_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.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.88
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 25364

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/87287/ltcube_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.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/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits
.....................!
real 111.02
user 110.25
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/87287/ltcube_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.fits outfile=/scratch/kocevski/87287/expmap_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.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/87287/ltcube_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.fits
.....................!
real 191.51
user 185.79
sys 5.27

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 161 point sources and 3 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 J0456.2+2702 @ 74.0673 27.0403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits scfile=/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits outfile=/scratch/kocevski/87287/cmap_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.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=74.0673 yref=27.0403 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.81
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits scfile=/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits outfile=/scratch/kocevski/87287/cmap_HighResolution_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.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=74.0673 yref=27.0403 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.84
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87287/Model_4FGL_J0456.2+2702_monthly_bin170.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
adding source HB 9
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits.....................!
real 6599.45
user 6577.93
sys 5.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits', '/scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits', expMap='/scratch/kocevski/87287/expmap_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.fits', expCube='/scratch/kocevski/87287/ltcube_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87287/Model_4FGL_J0456.2+2702_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0456.2+2702'

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  6.481e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87287/ft1_filtered_4FGL_J0456.2+2702_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/87287/ft2_4FGL_J0456.2+2702_monthly_bin170.fits
Exposure map: /scratch/kocevski/87287/expmap_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.fits
Exposure cube: /scratch/kocevski/87287/ltcube_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87287/Model_4FGL_J0456.2+2702_monthly_bin170.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) = 249431.594521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14912E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4669       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12196E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1761       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29969E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2367       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7010       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1233       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4842       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   249430.6     FROM MIGRAD    STATUS=CONVERGED    350 CALLS     1446 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3906         .0000    ** at limit **
   2  Prefactor     3.4664        2.8916         .0000        .23985E-01
   3  norm          2.9088        3.4077         .0000        .19686E-02
   4  Prefactor     .10000E-03    .21758         .0000    ** at limit **
   5  norm          .10000E-03    5.8452         .0000    ** at limit **
   6  norm          5.1564        7.0769         .0000        .68249E-02
   7  norm          .10000E-03    .13881         .0000    ** at limit **
   8  norm          1.8948        1.0812         .0000        .11649E-01
   9  Prefactor     6.4253        10.464         .0000        .20787E-03
  10  Prefactor     .10000E-03    6.4867         .0000    ** at limit **
  11  norm          4.4685        .81203         .0000        .82856E-01
  12  Prefactor     .10000E-03    2.2043         .0000    ** at limit **
  13  Prefactor     1.2367        .50041E-01     .0000       -.29854E-02
  14  norm          6.7009        1.2292         .0000       -.69845E-03
  15  Prefactor     5.1233        .38169         .0000        .13233E-01
  16  Normalizat    1.4842        .10489         .0000        .10461E-02
  17  Prefactor     .95929        .13122E-01     .0000        .16490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.46639
  norm       = 2.90883
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.15645
  norm       = 0.0001
  norm       = 1.89479
  Prefactor  = 6.42531
  Prefactor  = 0.0001
  norm       = 4.46851
  Prefactor  = 0.0001
  Prefactor  = 1.23673
  norm       = 6.70094
  Prefactor  = 5.12333
  Normalizat = 1.48419
  Prefactor  = 0.959294
 **********
 **   18 **HESSE 
 **********

 FCN=   249430.6     FROM HESSE     STATUS=OK           241 CALLS     1687 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3701        .21639       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4664        2.8870        .10859E-02   -1.5336    
   3  norm          2.9088        3.4036        .23827E-03   -1.5367    
   4  Prefactor     .10000E-03    1.1968        .44909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1564        7.0744        .88349E-03   -1.5254    
   7  norm          .10000E-03    .59995        .35920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8948        1.0743        .30222E-03   -1.5433    
   9  Prefactor     6.4253        10.461        .15821E-03   -1.5201    
  10  Prefactor     .10000E-03    6.5026        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4685        .81162        .92944E-03   -1.5285    
  12  Prefactor     .10000E-03    2.2197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2367        .56259E-01    .15057E-04   -1.5486    
  14  norm          6.7009        1.3400        .15501E-04   -1.5190    
  15  Prefactor     5.1233        .40681        .64344E-04   -1.5255    
  16  Normalizat    1.4842        .10933        .87889E-03   -.78223    
  17  Prefactor     .95929        .13918E-01    .13510E-03   -.94099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55627e-10
Minuit parameter uncertainties:
  1  3.58929e-05
  2  2.88713
  3  3.40386
  4  3.61419e-05
  5  6.41836e-05
  6  7.07552
  7  1.61481e-05
  8  1.07428
  9  10.4641
  10  0.000113314
  11  0.811623
  12  4.22877e-05
  13  0.0562589
  14  1.34004
  15  0.406806
  16  0.109348
  17  0.0139182
Done.

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

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  5.156e+00  7.076e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.593e-01  1.392e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.484e+00  1.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 74.067 27.040
Photon Flux Upper Limit: 3.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87287/likelihoodResults_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.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) = 249430.308685
delta logL = 0.252428665117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 249430.307104
delta logL = 0.254009132797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8629       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8673       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   249430.3     FROM MIGRAD    STATUS=FAILED        88 CALLS      263 TOTAL
                     EDM=   .60E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8639        41.688        .18241E-03   -.85758E-04
   2  alpha         2.8671        3.8612        .70754E-01    .56261E-02
   3  Normalizat    1.4762        .11986        .88084E-03    .10226E-02
   4  Prefactor     .95939        .14721E-01    .13510E-03    .75357E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   249430.3     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      353 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8639        41.688        .11572E-03   -1.5267    
   2  alpha         2.8671        3.8612        .13344E-02    .14736    
   3  Normalizat    1.4762        .11986        .13848E-03   -.78450    
   4  Prefactor     .95939        .14721E-01    .19926E-04   -.94096    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   249430.3     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      385 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8638        6.4871        .72965E-05   -.26924E-03
   2  alpha         2.8671        .76885        .14151E-01    .22290E-04
   3  Normalizat    1.4762        .10742        .35234E-04    .26433E-03
   4  Prefactor     .95939        .13731E-01    .27019E-04    .20466E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.86383
  alpha      = 2.86708
  Normalizat = 1.47618
  Prefactor  = 0.959391
 **********
 **   18 **HESSE 
 **********

 FCN=   249430.3     FROM HESSE     STATUS=OK            25 CALLS      410 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8638        6.1051        .14593E-05   -1.5267    
   2  alpha         2.8671        .72144        .56603E-03    .14736    
   3  Normalizat    1.4762        .10731        .70467E-05   -.78450    
   4  Prefactor     .95939        .13724E-01    .54039E-05   -.94096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52887e-10
Minuit parameter uncertainties:
  1  6.10589
  2  0.732089
  3  0.107328
  4  0.0137239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87287': 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) = 249430.307104
delta logL = 0.254009175114

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  4.864e+00  6.106e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.867e+00  7.321e-01  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.594e-01  1.372e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.476e+00  1.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 74.067 27.040
Photon Index (Free Index): 2.87 +/- 0.73
Photon Flux (Free Index): 1.88e-08 +/- 2.19e-08
Energy Flux (Free Index): 5.02e-06 +/- 5.05e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/87287/cmap_HighResolution_677635201_680227201_4FGL_J0456.2+2702_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-05', comment='SUCCESS', energy_flux2='5.02e-06', dlogl='2.54e-01', photon_flux2='1.88e-08', job_status='DONE', time_completed='2022-07-23 05:07:13.311564', photon_index_error2='0.73', photon_index2='2.87', ts='0.61', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.03e-08', energy_flux_error2='5.05e-06', EG='1.48', time_epoch_completed='1658578033.31', return_code='0', job_id='87287', GAL2='0.96', EG2='1.48', return_code2='0', photon_flux_error2='2.19e-08', ts2='1.12', photon_index='2.32' WHERE bin_id='170' AND source_name='4FGL J0456.2+2702' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:07:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 87287: <4FGL_J0456.2+2702_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0456.2+2702_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:50:30 2022
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:50:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:50:32 2022
Terminated at Sat Jul 23 05:07:15 2022
Results reported at Sat Jul 23 05:07:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.2+2702_monthly_bin170 74.0673 27.0403 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0456.2+2702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15323.00 sec.
    Max Memory :                                 1280 MB
    Average Memory :                             638.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15402 sec.
    Turnaround time :                            15405 sec.

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

