/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 144 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 = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0418.2+3807_daily_bin1495
RA = 64.5633, Dec = 38.1219
tmin = 626832001, tmax = 627091201
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='370785', job_status='RUN', time_executed='2021-08-20 11:33:12.081488', time_epoch_executed='1629484392.08' WHERE source_name='4FGL J0418.2+3807' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370785/ft1_4FGL_J0418.2+3807_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370785/ft1_4FGL_J0418.2+3807_daily_bin1495.fits outfile=/scratch/kocevski/370785/ft1_filteredMKT_4FGL_J0418.2+3807_daily_bin1495.fits ra=64.5633 dec=38.1219 rad=12.0 tmin=626832001.0 tmax=627091201.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.60
user 2.77
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.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/370785/ft1_filteredMKT_4FGL_J0418.2+3807_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.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 1.10
user 0.32
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/370785/ltcube_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.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/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits
.....................!
real 14.02
user 12.99
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/370785/ltcube_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.fits outfile=/scratch/kocevski/370785/expmap_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.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/370785/ltcube_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.fits
.....................!
real 191.08
user 185.38
sys 5.38

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/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.fits scfile=/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits outfile=/scratch/kocevski/370785/cmap_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.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 1.11
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.fits scfile=/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits outfile=/scratch/kocevski/370785/cmap_HighResolution_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.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 1.13
user 0.37
sys 0.75

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.fits', '/scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits', expMap='/scratch/kocevski/370785/expmap_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.fits', expCube='/scratch/kocevski/370785/ltcube_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/370785/Model_4FGL_J0418.2+3807_daily_bin1495.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/370785/ft1_filtered_4FGL_J0418.2+3807_daily_bin1495.fits
Spacecraft file(s): /scratch/kocevski/370785/ft2_4FGL_J0418.2+3807_daily_bin1495.fits
Exposure map: /scratch/kocevski/370785/expmap_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.fits
Exposure cube: /scratch/kocevski/370785/ltcube_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/370785/Model_4FGL_J0418.2+3807_daily_bin1495.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 731.711396138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 727.359465373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2998       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0726       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1901       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0461       1.0000         .10000E-03   10000.    
     8 'norm      '    152.49       1.0000         .10000E-03   10000.    
     9 'norm      '    .47735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.382       1.0000         .10000E-03   10000.    
    11 'norm      '    909.72       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.823       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    .64574       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   724.5260     FROM MIGRAD    STATUS=CONVERGED    210 CALLS      397 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        5127.4        .46921E-02** at limit **
   2  Prefactor     1.2998        1.1047         .0000         .0000    
   3  norm          1.0726        1.2120         .0000         .0000    
   4  Prefactor    10000.0        .27310E-01   -.30732E-03** at limit **
   5  norm         10000.0        .27944E-01    .76542E-04** at limit **
   6  Prefactor    10000.0        .24793E-01   -.47894E-04** at limit **
   7  Prefactor     .10065E-03    .62788E-01   -.40938E-03** at limit **
   8  norm          86.431        .75540       -.30212E-04    .49171E-04
   9  norm          .10000E-03    .31236       -.13951E-04** at limit **
  10  Prefactor     42.926        .98360        .61681E-05    .70870E-04
  11  norm          909.77        1.0000        .62109E-05   -.52012E-04
  12  norm          7.3441        .99908        .46692E-07    .21193E-03
  13  Prefactor     28.488        .86835        .78947E-05   -.15127E-03
  14  Normalizat    .10000E-01    .25693       -.31794E-04** at limit **
  15  Prefactor     .63312        .98574       -.25242E-05    .89811E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 1.29981
  norm       = 1.07257
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100647
  norm       = 86.4313
  norm       = 0.0001
  Prefactor  = 42.9259
  norm       = 909.769
  norm       = 7.34411
  Prefactor  = 28.4884
  Normalizat = 0.01
  Prefactor  = 0.633121
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   724.5260     FROM HESSE     STATUS=FAILED        11 CALLS      408 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        5127.4        .46921E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     581.76        580.23         .0000       -1.5480    
   3  norm          1.0726        1.2120         .0000       -1.5501    
   4  Prefactor    10000.0        .27310E-01   -.30732E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        .27944E-01    .76542E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        .24793E-01   -.47894E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10065E-03    .62788E-01   -.40938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          86.431        .75540       -.30212E-04   -1.3846    
   9  norm          .10000E-03    .31236       -.13951E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.926        .98360        .61681E-05   -1.4397    
  11  norm          909.77        1.0000        .62109E-05   -.95801    
  12  norm          7.3441        .99908        .46692E-07   -1.5166    
  13  Prefactor     28.488        .86835        .78947E-05   -1.4640    
  14  Normalizat    .10000E-01    .25693       -.31794E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .63312        .98574       -.25242E-05   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.51678e-10
Minuit parameter uncertainties:
  1  0.125315
  2  1.10472
  3  1.21206
  4  0.000651828
  5  0.000107604
  6  2.8885e-05
  7  0.000403176
  8  0.755397
  9  1.35242e-05
  10  0.983597
  11  1.00002
  12  0.999087
  13  0.868351
  14  8.44872e-07
  15  1.01487
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 724.52598095

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  8.643e+01  7.554e-01  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:  6.331e-01  1.015e+00  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.000e-02  8.449e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 64.563 38.122
Photon Flux Upper Limit: 1.69e-05 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/370785/likelihoodResults_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.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) = 724.305380524
delta logL = 0.220600425906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 724.304415279
delta logL = 0.221565670469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    78.704       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9025       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62804       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   724.3044     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      258 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          78.693        179.17        .45267E-04    .15293E-03
   2  alpha         3.9026        3.7435        .20023E-01    .27970E-04
   3  Normalizat    .10000E-01    .56940        .12205E-01** at limit **
   4  Prefactor     .62804        .10387        .11124E-03   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 78.6932
  alpha      = 3.90259
  Normalizat = 0.01
  Prefactor  = 0.628043
 **********
 **   18 **HESSE 
 **********

 FCN=   724.3044     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          78.693        172.79        .90535E-05   -1.3931    
   2  alpha         3.9026        3.7006        .80093E-03    .59564    
   3  Normalizat    .10000E-01    .56942        .24410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62804        .10385        .22249E-04   -1.0642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42684e-10
Minuit parameter uncertainties:
  1  173.914
  2  2.08299
  3  5.67568e-07
  4  0.103882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370785': 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) = 724.304415276
delta logL = 0.221565674119

Extracting fit parameters...

4FGL J0418.2+3807
   Spectrum: LogParabola
279         norm:  7.869e+01  1.739e+02  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  3.903e+00  2.083e+00  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:  6.280e-01  1.039e-01  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.000e-02  5.676e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 64.563 38.122

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/370785/cmap_HighResolution_626832001_627091201_4FGL_J0418.2+3807_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='1.69e-05', time_completed='2021-08-20 11:38:57.260890', job_id='370785', GAL2='0.63', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629484737.26', return_code2='0', ts='0.23', comment='SUCCESS', return_code='101', GAL='0.63', dlogl='2.22e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1495' AND source_name='4FGL J0418.2+3807' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:38:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 370785: <4FGL_J0418.2+3807_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0418.2+3807_daily_bin1495> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Aug 20 11:30:26 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:30:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 11:30:27 2021
Terminated at Fri Aug 20 11:38:57 2021
Results reported at Fri Aug 20 11:38:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.2+3807_daily_bin1495 64.5633 38.1219 626832001 627091201 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 :                                   352.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            511 sec.

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

