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


Performing analysis on: 4FGL_J0418.2+3807_monthly_bin167
RA = 64.5633, Dec = 38.1219
tmin = 669859201, tmax = 672451201
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='878920', job_status='RUN', time_executed='2022-04-24 01:03:58.633184', time_epoch_executed='1650787438.63' WHERE source_name='4FGL J0418.2+3807' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/878920

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/878920/ft1_4FGL_J0418.2+3807_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/878920/ft1_4FGL_J0418.2+3807_monthly_bin167.fits outfile=/scratch/kocevski/878920/ft1_filteredMKT_4FGL_J0418.2+3807_monthly_bin167.fits ra=64.5633 dec=38.1219 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.48
user 37.45
sys 0.85

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.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/878920/ft1_filteredMKT_4FGL_J0418.2+3807_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.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.95
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 23819

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/878920/ltcube_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.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/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits
.....................!
real 128.27
user 127.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/878920/ltcube_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.fits outfile=/scratch/kocevski/878920/expmap_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.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/878920/ltcube_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.fits
.....................!
real 191.69
user 187.21
sys 4.12

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 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 G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Added 153 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 J0418.2+3807 @ 64.5633 38.1219

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits scfile=/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits outfile=/scratch/kocevski/878920/cmap_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.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=64.5633 yref=38.1219 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.83
user 0.66
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits scfile=/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits outfile=/scratch/kocevski/878920/cmap_HighResolution_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.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=64.5633 yref=38.1219 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.83
user 0.66
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/878920/Model_4FGL_J0418.2+3807_monthly_bin167.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
adding source S 147
Working on...
/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits.....................!
real 5975.63
user 5963.64
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits', '/scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits', expMap='/scratch/kocevski/878920/expmap_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.fits', expCube='/scratch/kocevski/878920/ltcube_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/878920/Model_4FGL_J0418.2+3807_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0418.2+3807'

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  1.806e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.499e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.029e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/878920/ft1_filtered_4FGL_J0418.2+3807_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/878920/ft2_4FGL_J0418.2+3807_monthly_bin167.fits
Exposure map: /scratch/kocevski/878920/expmap_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.fits
Exposure cube: /scratch/kocevski/878920/ltcube_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/878920/Model_4FGL_J0418.2+3807_monthly_bin167.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) = 234016.868407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9432       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50069       1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.445       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42612       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4631       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.380       1.0000         .10000E-03   10000.    
    12 'norm      '    .50860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9460       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.4050       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .97253       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   234015.8     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1320 TOTAL
                     EDM=   .83E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9432        .21315         .0000        .16684E-02
   2  Prefactor     .50073        .48745         .0000        .62247E-01
   3  norm          .10000E-03    .60443E-01     .0000    ** at limit **
   4  Prefactor     .10000E-03    5.9027         .0000    ** at limit **
   5  norm          11.418        16.919         .0000        .44670E-02
   6  Prefactor     .42935        .84978         .0000        .99647    
   7  Prefactor     2.4631        1.9085         .0000        .77919E-01
   8  norm          .10000E-03    .15101         .0000    ** at limit **
   9  norm          .10000E-03    1.3254         .0000    ** at limit **
  10  Prefactor     .10000E-03    .22317         .0000    ** at limit **
  11  norm          10.365        12.334         .0000       -.72982E-02
  12  norm          .51040        .63112         .0000        .18501E-01
  13  Prefactor     3.9458        3.2978         .0000       -.76658E-02
  14  Normalizat    1.4050        .94629E-01     .0000        .96144E-03
  15  Prefactor     .97252        .11996E-01     .0000       -.16090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94324
  Prefactor  = 0.500728
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4175
  Prefactor  = 0.429348
  Prefactor  = 2.46309
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3651
  norm       = 0.5104
  Prefactor  = 3.94577
  Normalizat = 1.40496
  Prefactor  = 0.972523
 **********
 **   18 **HESSE 
 **********

 FCN=   234015.8     FROM HESSE     STATUS=OK           202 CALLS     1522 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9432        .21307        .71444E-04   -1.5429    
   2  Prefactor     .50073        .47665        .31000E-03   -1.5566    
   3  norm          .10000E-03    1.0849        .22451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.418        16.645        .11842E-03   -1.5032    
   6  Prefactor     .42935        .84418        .21931E-02   -1.5577    
   7  Prefactor     2.4631        1.9055        .13029E-02   -1.5394    
   8  norm          .10000E-03    .19850        .51751E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2479        .43930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.365        12.331        .12436E-03   -1.5064    
  12  norm          .51040        1.2118        .40831E-02   -1.5565    
  13  Prefactor     3.9458        3.2964        .20307E-03   -1.5311    
  14  Normalizat    1.4050        .96298E-01    .77770E-03   -.80485    
  15  Prefactor     .97252        .12623E-01    .12128E-03   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73538e-06
Minuit parameter uncertainties:
  1  0.213071
  2  0.476653
  3  1.20441e-05
  4  2.33049e-05
  5  16.6522
  6  0.844201
  7  1.90556
  8  7.83934e-06
  9  6.26129e-06
  10  3.24878e-06
  11  12.3343
  12  1.21184
  13  3.29655
  14  0.09631
  15  0.0126233
Done.

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

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  1.000e-04  7.839e-06  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.499e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.029e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  9.725e-01  1.262e-02  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.405e+00  9.631e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.563 38.122
Photon Flux Upper Limit: 4.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/878920/likelihoodResults_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.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) = 234015.799763
delta logL = -0.00118947317242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 234015.798513
delta logL = 6.03646913078e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13229E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7497       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   234015.5     FROM MIGRAD    STATUS=FAILED       145 CALLS      337 TOTAL
                     EDM=   .78E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20188        11.426        .14785E-02    .49333E-02
   2  alpha         4.2271        3.7849        .50000        .11972E-01
   3  Normalizat    1.3868        .34538E-01    .78204E-03    .51171E-05
   4  Prefactor     .97339        .47274E-02    .12123E-03    .11403E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   234015.5     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      429 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20188        11.426        .54766E-04    .49333E-02
   2  alpha         4.2271        3.7849        .26875E-02    .11972E-01
   3  Normalizat    1.3868        .34538E-01    .19706E-04    .51171E-05
   4  Prefactor     .97339        .47274E-02    .27220E-05    .11403E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   234015.5     FROM MIGRAD    STATUS=FAILED        73 CALLS      502 TOTAL
                     EDM=   .94E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20188        13.743        .23656E-05    .61515E-04
   2  alpha         4.2271        4.4476        .50000        .11972E-01
   3  Normalizat    1.3868        .41001E-01    .62563E-05    .46519E-05
   4  Prefactor     .97339        .55919E-02    .96984E-06    .13039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.201884
  alpha      = 4.22707
  Normalizat = 1.3868
  Prefactor  = 0.973389
 **********
 **   18 **HESSE 
 **********

 FCN=   234015.5     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      529 TOTAL
                     EDM=   .94E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20188        13.721        .47312E-06   -1.5618    
   2  alpha         4.2271        4.4521        .50000        .76263    
   3  Normalizat    1.3868        .41055E-01    .62563E-05   -.81011    
   4  Prefactor     .97339        .55569E-02    .22321E-06   -.93622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00940922
Minuit parameter uncertainties:
  1  3.32867
  2  14.6461
  3  0.0410562
  4  0.00555693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/878920': 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): 1
logL (Free Index) = 234015.545803
delta logL = 0.252770355088

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  2.019e-01  3.329e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  4.227e+00  1.465e+01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.499e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.029e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  9.734e-01  5.557e-03  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.387e+00  4.106e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.563 38.122

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/878920/cmap_HighResolution_669859201_672451201_4FGL_J0418.2+3807_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-05', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2022-04-24 04:49:03.340668', job_id='878920', GAL2='0.97', fit_tolerance='1e-08', EG2='1.39', EG='1.40', time_epoch_completed='1650800943.34', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.53e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='167' AND source_name='4FGL J0418.2+3807' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:49:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 878920: <4FGL_J0418.2+3807_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0418.2+3807_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:55:33 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:00:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:00:33 2022
Terminated at Sun Apr 24 04:49:05 2022
Results reported at Sun Apr 24 04:49:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.2+3807_monthly_bin167 64.5633 38.1219 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0418.2+3807 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13466.00 sec.
    Max Memory :                                 661 MB
    Average Memory :                             600.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13711 sec.
    Turnaround time :                            14012 sec.

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

