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


Performing analysis on: 4FGL_J0418.2+3807_monthly_bin174
RA = 64.5633, Dec = 38.1219
tmin = 688003201, tmax = 690595201
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='838903', job_status='RUN', time_executed='2022-11-20 00:56:45.118128', time_epoch_executed='1668934605.12' WHERE source_name='4FGL J0418.2+3807' and cadence='monthly' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838903

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838903/ft1_4FGL_J0418.2+3807_monthly_bin174.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838903/ft1_4FGL_J0418.2+3807_monthly_bin174.fits outfile=/scratch/kocevski/838903/ft1_filteredMKT_4FGL_J0418.2+3807_monthly_bin174.fits ra=64.5633 dec=38.1219 rad=12.0 tmin=688003201.0 tmax=690595201.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 35.01
user 30.49
sys 0.79

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

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

Number of photons that the gtmktime cut: 21113

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/838903/ltcube_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.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/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits
.....................!
real 126.44
user 125.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/838903/ltcube_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.fits outfile=/scratch/kocevski/838903/expmap_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.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/838903/ltcube_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.fits
.....................!
real 190.99
user 185.91
sys 4.76

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_8years/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_8years/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/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits scfile=/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits outfile=/scratch/kocevski/838903/cmap_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.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.80
user 0.64
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits scfile=/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits outfile=/scratch/kocevski/838903/cmap_HighResolution_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.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.82
user 0.63
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838903/Model_4FGL_J0418.2+3807_monthly_bin174.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/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits.....................!
real 4860.69
user 4851.40
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits', '/scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits', expMap='/scratch/kocevski/838903/expmap_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.fits', expCube='/scratch/kocevski/838903/ltcube_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838903/Model_4FGL_J0418.2+3807_monthly_bin174.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  0.000e+00  1.000e+06 ( 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 -5.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/838903/ft1_filtered_4FGL_J0418.2+3807_monthly_bin174.fits
Spacecraft file(s): /scratch/kocevski/838903/ft2_4FGL_J0418.2+3807_monthly_bin174.fits
Exposure map: /scratch/kocevski/838903/expmap_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.fits
Exposure cube: /scratch/kocevski/838903/ltcube_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838903/Model_4FGL_J0418.2+3807_monthly_bin174.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) = 210326.100629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3662       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9346       1.0000          .0000       .10000E+07
     3 'norm      '    .29332E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    35.714       1.0000          .0000       .10000E+07
     5 'norm      '    .57224E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2268       1.0000          .0000       .10000E+07
     7 'Prefactor '    .67606       1.0000          .0000       .10000E+07
     8 'norm      '    .28057       1.0000          .0000       .10000E+07
     9 'norm      '    5.8199       1.0000          .0000       .10000E+07
    10 'norm      '    48.073       1.0000          .0000       .10000E+07
    11 'norm      '    1.8657       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4260       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.3651       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .94159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   210326.1     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      956 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3661        .30250        .52349E-08   -.50470E-02
   2  Prefactor     1.9348        .62807       -.69875E-08   -.31906E-03
   3  norm           .0000        .30699        .76445E-07** at limit **
   4  Prefactor     35.773        15.423        .42809E-07    .19066E-01
   5  norm           .0000        5.3522        .85543E-07** at limit **
   6  Prefactor     2.2275        1.1269       -.40396E-08   -.18494E-03
   7  Prefactor     .67140        2.4735       -.95212E-07   -.10527E-03
   8  norm          .28064        1.1131       -.89182E-07   -.92098E-04
   9  norm          5.8108        3.2502       -.39513E-07   -.79179E-04
  10  norm          48.124        13.074        .32195E-07   -.26181E-01
  11  norm          1.8653        1.1973        .17090E-07    .30167E-04
  12  Prefactor     2.4286        2.1848        .37134E-08   -.31781E-04
  13  Normalizat    1.3651        .10457        .71034E-06   -.17015E-04
  14  Prefactor     .94158        .13345E-01   -.75501E-07   -.14835E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36609
  Prefactor  = 1.93482
  norm       = 0
  Prefactor  = 35.7734
  norm       = 0
  Prefactor  = 2.22747
  Prefactor  = 0.6714
  norm       = 0.28064
  norm       = 5.81075
  norm       = 48.1245
  norm       = 1.86533
  Prefactor  = 2.42858
  Normalizat = 1.36511
  Prefactor  = 0.941584
 **********
 **   18 **HESSE 
 **********

 FCN=   210326.1     FROM HESSE     STATUS=OK           208 CALLS     1164 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3661        .30277        .48178E-03   -1.5666    
   2  Prefactor     1.9348        .63208        .74631E-03   -1.5680    
   3  norm           .0000        .29818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.773        19.716        .16735E-03   -1.5588    
   5  norm           .0000        5.3478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2275        1.1297        .68871E-03   -1.5678    
   7  Prefactor     .67140        2.4506        .62673E-03   -1.5692    
   8  norm          .28064        .35806        .84221E-02   -1.5697    
   9  norm          5.8108        3.2452        .41607E-03   -1.5660    
  10  norm          48.124        20.595        .14424E-03   -1.5569    
  11  norm          1.8653        1.1978        .76240E-03   -1.5681    
  12  Prefactor     2.4286        2.1842        .65679E-03   -1.5677    
  13  Normalizat    1.3651        .10189        .17811       -.81643    
  14  Prefactor     .94158        .12686E-01    .27592E-01   -.94703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14449e-05
Minuit parameter uncertainties:
  1  0.302773
  2  0.632081
  3  8.33387e-08
  4  19.7156
  5  1.9627e-06
  6  1.12968
  7  2.45062
  8  0.35806
  9  3.24523
  10  20.5947
  11  1.19782
  12  2.18419
  13  0.101908
  14  0.0126861
Done.

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

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  2.806e-01  3.581e-01  0.000e+00  1.000e+06 ( 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 -5.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.416e-01  1.269e-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.365e+00  1.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/838903/likelihoodResults_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.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) = 210326.005542
delta logL = 0.0901970452687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 210325.994026
delta logL = 0.10171304972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41864       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94117       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=   210326.0     FROM MIGRAD    STATUS=FAILED        96 CALLS      276 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41898        1.0877        .17472E-03    .23854    
   2  alpha         1.8869        1.2587        .85678E-02   -.24381E-04
   3  Normalizat    1.3680        .99455E-01    .79206E-03    .18372E-05
   4  Prefactor     .94117        .13164E-01    .12196E-03   -.13721E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   210326.0     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      350 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41898        1.0877        .50280E-05   -1.5695    
   2  alpha         1.8869        1.2587        .15069E-02   -.24776    
   3  Normalizat    1.3680        .99455E-01    .13209E-03   -.81559    
   4  Prefactor     .94117        .13164E-01    .18162E-04   -.94717    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   210326.0     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      383 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41898        .99856        .34943E-04    .95366E-02
   2  alpha         1.8869        1.1654        .17136E-02   -.97660E-06
   3  Normalizat    1.3680        .99410E-01    .31682E-04    .13779E-05
   4  Prefactor     .94117        .13161E-01    .24393E-04   -.14914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.418983
  alpha      = 1.88691
  Normalizat = 1.36799
  Prefactor  = 0.941168
 **********
 **   18 **HESSE 
 **********

 FCN=   210326.0     FROM HESSE     STATUS=OK            25 CALLS      408 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41898        .98512        .69886E-05   -1.5695    
   2  alpha         1.8869        1.1513        .34271E-03   -.24776    
   3  Normalizat    1.3680        .99402E-01    .31682E-04   -.81559    
   4  Prefactor     .94117        .13161E-01    .24393E-04   -.94717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90954e-13
Minuit parameter uncertainties:
  1  0.985125
  2  1.19964
  3  0.0994162
  4  0.0131609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838903': 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) = 210325.994026
delta logL = 0.101713161392

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  4.190e-01  9.851e-01  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  1.887e+00  1.200e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.499e-01  0.000e+00 -5.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.412e-01  1.316e-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.368e+00  9.942e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/838903/cmap_HighResolution_688003201_690595201_4FGL_J0418.2+3807_monthly_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-05', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2022-11-20 03:43:54.447695', job_id='838903', GAL2='0.94', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1668944634.45', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.02e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='174' AND source_name='4FGL J0418.2+3807' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Nov 20 03:43:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 838903: <4FGL_J0418.2+3807_monthly_bin174> in cluster <slac> Done

Job <4FGL_J0418.2+3807_monthly_bin174> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:55:35 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:56:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:56:33 2022
Terminated at Sun Nov 20 03:43:56 2022
Results reported at Sun Nov 20 03:43:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.2+3807_monthly_bin174 64.5633 38.1219 688003201 690595201 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 :                                   9987.00 sec.
    Max Memory :                                 656 MB
    Average Memory :                             586.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10042 sec.
    Turnaround time :                            10101 sec.

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

