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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1277
RA = 64.5321, Dec = -2.8795
tmin = 570326401, tmax = 570585601
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='358250', job_status='RUN', time_executed='2021-08-20 10:46:08.489963', time_epoch_executed='1629481568.49' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358250/ft1_4FGL_J0418.1-0252_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358250/ft1_4FGL_J0418.1-0252_daily_bin1277.fits outfile=/scratch/kocevski/358250/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1277.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=570326401.0 tmax=570585601.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.71
user 3.23
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.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/358250/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.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.75
user 0.33
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/358250/ltcube_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.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/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits
.....................!
real 12.09
user 11.46
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/358250/ltcube_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.fits outfile=/scratch/kocevski/358250/expmap_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.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/358250/ltcube_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.fits
.....................!
real 190.49
user 184.74
sys 5.43

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/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits scfile=/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits outfile=/scratch/kocevski/358250/cmap_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.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 0.77
user 0.36
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits scfile=/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits outfile=/scratch/kocevski/358250/cmap_HighResolution_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.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 0.77
user 0.39
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358250/Model_4FGL_J0418.1-0252_daily_bin1277.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/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits.....................!
real 56.46
user 54.85
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits', '/scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits', expMap='/scratch/kocevski/358250/expmap_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.fits', expCube='/scratch/kocevski/358250/ltcube_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358250/Model_4FGL_J0418.1-0252_daily_bin1277.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/358250/ft1_filtered_4FGL_J0418.1-0252_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/358250/ft2_4FGL_J0418.1-0252_daily_bin1277.fits
Exposure map: /scratch/kocevski/358250/expmap_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.fits
Exposure cube: /scratch/kocevski/358250/ltcube_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358250/Model_4FGL_J0418.1-0252_daily_bin1277.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) = 3169.60133968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1468       1.0000         .10000E-03   10000.    
     5 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11364E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    90.265       1.0000         .10000E-03   10000.    
     9 'norm      '    22.756       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.329       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .57939E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15089E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .38713       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85776       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0697       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=   3169.590     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2476 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4962        3.1508        .27332E-06   -.18101E-03
   2  Prefactor     .10000E-03    27.757       -.12704E-06** at limit **
   3  Prefactor     22.028        21.877       -.31100E-05   -.19568E-04
   4  Prefactor     9.1578        15.170       -.37593E-07   -.46769E-04
   5  norm          .10000E-03    15.619        .19740E-07** at limit **
   6  Prefactor     .10000E-03    63.180        .18587E-04** at limit **
   7  norm          .10000E-03    2.9816        .17539E-07** at limit **
   8  Prefactor     90.324        57.481        .45721E-04    .62110E-04
   9  norm          22.747        16.107        .43286E-06   -.35077E-05
  10  norm          .10000E-03    60.780       -.18168E-04** at limit **
  11  norm          .10000E-03    1.1176        .36012E-07** at limit **
  12  Prefactor     .10000E-03    1.9777        .64664E-07** at limit **
  13  Prefactor     36.902        42.798       -.13667E-04    .13623E-03
  14  Prefactor     13.319        94.521        .62839E-05    .69674E-05
  15  Prefactor     .10000E-03    7.1072        .20011E-07** at limit **
  16  norm          .61274E-01    2.6242       -.90419E-06    .73674E-05
  17  Prefactor     .10000E-03    91.800        .10068E-06** at limit **
  18  norm          .37646        4.4117        .22836E-06   -.31733E-03
  19  norm          4.8084        4.0834        .33439E-06   -.16600E-03
  20  Prefactor     .10000E-03    46.025        .11717E-05** at limit **
  21  Normalizat    .85850        .35458       -.19426E-05   -.32261E-04
  22  Prefactor     1.0688        .15057       -.38034E-05    .37474E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49621
  Prefactor  = 0.0001
  Prefactor  = 22.0283
  Prefactor  = 9.15784
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 90.3241
  norm       = 22.7469
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9019
  Prefactor  = 13.3195
  Prefactor  = 0.0001
  norm       = 0.0612744
  Prefactor  = 0.0001
  norm       = 0.376463
  norm       = 4.80836
  Prefactor  = 0.0001
  Normalizat = 0.858499
  Prefactor  = 1.06879
 **********
 **   18 **HESSE 
 **********

 FCN=   3169.590     FROM HESSE     STATUS=OK           346 CALLS     2822 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4962        3.1446        .90963E-04   -1.5334    
   2  Prefactor     .10000E-03    27.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.028        21.977        .85367E-04   -1.4769    
   4  Prefactor     9.1578        15.186        .13252E-03   -1.5103    
   5  norm          .10000E-03    15.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9850        .94940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     90.324        57.389        .21147E-03   -1.3804    
   9  norm          22.747        16.127        .83968E-04   -1.4754    
  10  norm          .10000E-03    60.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1585        .11544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0028        .76894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.902        43.362        .65753E-04   -1.4492    
  14  Prefactor     13.319        89.873        .10971E-03   -1.4978    
  15  Prefactor     .10000E-03    7.1257        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .61274E-01    72.275        .16142E-02   -1.5658    
  17  Prefactor     .10000E-03    92.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .37646        8.3330        .21040E-02   -1.5585    
  19  norm          4.8084        4.0772        .10012E-03   -1.5269    
  20  Prefactor     .10000E-03    46.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85850        .38328        .42181E-03   -.97934    
  22  Prefactor     1.0688        .16680        .16876E-03   -.90470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19821e-10
Minuit parameter uncertainties:
  1  3.14476
  2  4.49463e-05
  3  21.9853
  4  15.1925
  5  7.55334e-06
  6  0.000131707
  7  3.97496e-06
  8  57.4242
  9  16.1305
  10  0.000289459
  11  3.54023e-06
  12  9.80857e-06
  13  43.3992
  14  69.3475
  15  7.04507e-06
  16  4.21052
  17  0.000330153
  18  3.54244
  19  4.07742
  20  4.00962e-05
  21  0.384497
  22  0.166877
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  3.975e-06  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.069e+00  1.669e-01  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:  8.585e-01  3.845e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358250/likelihoodResults_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.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) = 3169.59118064
delta logL = -0.00153465134281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3169.58964607
delta logL = -7.30524334358e-08

Fit tolerance = 1e-08

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

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

 FCN=   3169.590     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      226 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9268        .94974E-03** at limit **
   2  alpha         1.9180        3.9214        .16679        .92017E-07
   3  Normalizat    .85851        .35205        .42181E-03    .90829E-05
   4  Prefactor     1.0688        .15708        .16876E-03    .25767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91796
  Normalizat = 0.858506
  Prefactor  = 1.06878
 **********
 **   18 **HESSE 
 **********

 FCN=   3169.590     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0290        .18995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9180        3.6294        .66717E-02   -.23497    
   3  Normalizat    .85851        .35218        .16872E-04   -.97934    
   4  Prefactor     1.0688        .15714        .67506E-05   -.90471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48753e-10
Minuit parameter uncertainties:
  1  2.06846e-06
  2  318.444
  3  0.353126
  4  0.157208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358250': 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) = 3169.58964575
delta logL = 2.42630903813e-07

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  2.068e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  1.918e+00  3.184e+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.069e+00  1.572e-01  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:  8.585e-01  3.531e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/358250/cmap_HighResolution_570326401_570585601_4FGL_J0418.1-0252_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-20 10:53:52.165365', job_id='358250', GAL2='1.07', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629482032.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1277' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:53:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 358250: <4FGL_J0418.1-0252_daily_bin1277> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin1277> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:45:52 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:45:54 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:45:54 2021
Terminated at Fri Aug 20 10:53:53 2021
Results reported at Fri Aug 20 10:53:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1277 64.5321 -2.8795 570326401 570585601 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 :                                   467.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             397.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   478 sec.
    Turnaround time :                            481 sec.

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

