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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin990
RA = 64.5321, Dec = -2.8795
tmin = 495936001, tmax = 496195201
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='356808', job_status='RUN', time_executed='2021-08-20 10:43:24.676943', time_epoch_executed='1629481404.68' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356808/ft1_4FGL_J0418.1-0252_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356808/ft1_4FGL_J0418.1-0252_daily_bin990.fits outfile=/scratch/kocevski/356808/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin990.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=495936001.0 tmax=496195201.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 4.17
user 3.26
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.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/356808/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.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.19
user 0.34
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/356808/ltcube_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.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/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits
.....................!
real 12.78
user 11.63
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/356808/ltcube_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.fits outfile=/scratch/kocevski/356808/expmap_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.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/356808/ltcube_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.fits
.....................!
real 191.13
user 185.03
sys 5.74

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
Added 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0418.1-0252 @ 64.5321 -2.8795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits scfile=/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits outfile=/scratch/kocevski/356808/cmap_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.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.5321 yref=-2.8795 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.20
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits scfile=/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits outfile=/scratch/kocevski/356808/cmap_HighResolution_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.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.5321 yref=-2.8795 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.22
user 0.38
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356808/Model_4FGL_J0418.1-0252_daily_bin990.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
Working on...
/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits.....................!
real 139.56
user 137.18
sys 2.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits', '/scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits', expMap='/scratch/kocevski/356808/expmap_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.fits', expCube='/scratch/kocevski/356808/ltcube_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/356808/Model_4FGL_J0418.1-0252_daily_bin990.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0418.1-0252'

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.334e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/356808/ft1_filtered_4FGL_J0418.1-0252_daily_bin990.fits
Spacecraft file(s): /scratch/kocevski/356808/ft2_4FGL_J0418.1-0252_daily_bin990.fits
Exposure map: /scratch/kocevski/356808/expmap_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.fits
Exposure cube: /scratch/kocevski/356808/ltcube_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/356808/Model_4FGL_J0418.1-0252_daily_bin990.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) = 10057.7694119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6796       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71213       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9317       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15723E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.802       1.0000         .10000E-03   10000.    
     9 'norm      '    57.047       1.0000         .10000E-03   10000.    
    10 'norm      '    41.946       1.0000         .10000E-03   10000.    
    11 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.316       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3902       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8789       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4132       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9364       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3730       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91580       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10057.77     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2391 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6795        1.2703        .50124E-07   -.91235E-04
   2  Prefactor     .10000E-03    20.248        .39751E-07** at limit **
   3  Prefactor     .71559        4.6287        .17651E-06   -.15036E-03
   4  Prefactor     4.9310        12.839        .23732E-06   -.19651E-04
   5  norm          .10000E-03    6.0855       -.48602E-07** at limit **
   6  Prefactor     .10000E-03    10.542       -.71124E-07** at limit **
   7  norm          .10000E-03    2.0452       -.16655E-07** at limit **
   8  Prefactor     17.799        21.074       -.87766E-06   -.10942E-03
   9  norm          57.049        13.107        .27961E-08    .12237E-03
  10  norm          41.946        22.114        .30936E-06    .31782E-04
  11  norm          .10000E-03    .40201       -.16866E-06** at limit **
  12  Prefactor     .10000E-03    .53203       -.15702E-06** at limit **
  13  Prefactor     18.061        19.207        .41071E-06    .63277E-04
  14  Prefactor     16.305        33.505       -.38776E-05   -.15789E-03
  15  Prefactor     6.3912        6.2756        .14773E-05   -.45778E-03
  16  norm          3.8786        2.8704        .79893E-07   -.84629E-04
  17  Prefactor     7.4128        17.597       -.87376E-07   -.18951E-04
  18  norm          3.9365        1.9832        .58827E-07    .13279E-04
  19  norm          1.3729        1.7343        .21626E-06   -.24452E-03
  20  Prefactor     .10000E-03    6.9054       -.60103E-08** at limit **
  21  Normalizat    .91581        .19448       -.31912E-06    .37551E-04
  22  Prefactor     1.0163        .87125E-01    .42819E-07    .80814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67951
  Prefactor  = 0.0001
  Prefactor  = 0.715588
  Prefactor  = 4.93097
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.799
  norm       = 57.0487
  norm       = 41.946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0611
  Prefactor  = 16.3055
  Prefactor  = 6.39119
  norm       = 3.87863
  Prefactor  = 7.41278
  norm       = 3.93651
  norm       = 1.37287
  Prefactor  = 0.0001
  Normalizat = 0.915813
  Prefactor  = 1.01628
 **********
 **   18 **HESSE 
 **********

 FCN=   10057.77     FROM HESSE     STATUS=OK           350 CALLS     2741 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6795        1.2651        .93786E-04   -1.5449    
   2  Prefactor     .10000E-03    20.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71559        14.436        .40419E-02   -1.5539    
   4  Prefactor     4.9310        12.862        .18111E-03   -1.5264    
   5  norm          .10000E-03    6.0919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.6120        .27520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.799        21.284        .94926E-04   -1.4864    
   9  norm          57.049        13.159        .53113E-04   -1.4196    
  10  norm          41.946        22.152        .61896E-04   -1.4412    
  11  norm          .10000E-03    .61678        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .53504        .70821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.061        19.170        .94247E-04   -1.4858    
  14  Prefactor     16.305        35.594        .99154E-04   -1.4900    
  15  Prefactor     6.3912        6.5927        .79388E-03   -1.5202    
  16  norm          3.8786        2.8573        .12767E-03   -1.5314    
  17  Prefactor     7.4128        17.648        .14730E-03   -1.5163    
  18  norm          3.9365        1.9812        .94544E-04   -1.5311    
  19  norm          1.3729        1.7286        .14164E-03   -1.5474    
  20  Prefactor     .10000E-03    6.9069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91581        .21738        .37809E-03   -.95907    
  22  Prefactor     1.0163        .98065E-01    .17369E-03   -.92189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24964e-08
Minuit parameter uncertainties:
  1  1.26511
  2  3.1752e-06
  3  6.42957
  4  12.8695
  5  4.69292e-06
  6  2.67622e-06
  7  2.55636e-05
  8  21.2927
  9  13.1595
  10  22.1561
  11  2.0552e-05
  12  6.84346e-06
  13  19.1769
  14  35.6399
  15  6.59342
  16  2.85736
  17  17.6601
  18  1.98121
  19  1.72864
  20  1.41767e-06
  21  0.217587
  22  0.0980826
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  2.556e-05  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
454    Prefactor:  1.016e+00  9.808e-02  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.158e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.532 -2.880
Photon Flux Upper Limit: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356808/likelihoodResults_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.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) = 10057.769416
delta logL = -0.00103042652518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10057.768386
delta logL = -3.68983819499e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1655       1.0000          .0000       5.0000    
     3 'Normalizat'    .91564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4570E+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=   10057.77     FROM MIGRAD    STATUS=FAILED        96 CALLS      261 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10169E-03    112.61        .27463E-02** at limit **
   2  alpha         2.3148        3.8377        .50000       -.62437E-05
   3  Normalizat    .91581        .23864E-01    .37809E-03    .24837E-04
   4  Prefactor     1.0163        .11574E-01    .17369E-03    .36262E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10057.77     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      392 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10040E-03    112.61        .27690E-03** at limit **
   2  alpha         2.3143        3.8377        .26276E-03   -.62437E-05
   3  Normalizat    .91580        .23864E-01    .39230E-05    .24837E-04
   4  Prefactor     1.0163        .11574E-01    .16825E-05    .36262E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10057.77     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      431 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    442.25        .54926E-03** at limit **
   2  alpha         2.3615        3.1595        .50000       -.10869E-05
   3  Normalizat    .91581        .51485E-01    .15124E-04    .44020E-03
   4  Prefactor     1.0163        .24972E-01    .69475E-05    .98182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 2.36149
  Normalizat = 0.915813
  Prefactor  = 1.01628
 **********
 **   18 **HESSE 
 **********

 FCN=   10057.77     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    31.128        .10985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3615        3.8135        .50000       -.55432E-01
   3  Normalizat    .91581        .19301        .30247E-05   -.95907    
   4  Prefactor     1.0163        .93670E-01    .13895E-05   -.92189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22724e-09
Minuit parameter uncertainties:
  1  0.00134805
  2  293.695
  3  0.193152
  4  0.0936847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356808': 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) = 10057.7683845
delta logL = 1.06333573058e-06

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  1.348e-03  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.361e+00  2.937e+02  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
454    Prefactor:  1.016e+00  9.368e-02  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  9.158e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.532 -2.880

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/356808/cmap_HighResolution_495936001_496195201_4FGL_J0418.1-0252_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-08-20 10:56:44.579117', job_id='356808', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629482204.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='990' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:56:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 356808: <4FGL_J0418.1-0252_daily_bin990> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin990> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:40:52 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:40:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:40:53 2021
Terminated at Fri Aug 20 10:56:45 2021
Results reported at Fri Aug 20 10:56:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin990 64.5321 -2.8795 495936001 496195201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0418.1-0252 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   810.11 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             350.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

