/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 4 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 = 7589
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0418.1-0252_daily_bin437
RA = 64.5321, Dec = -2.8795
tmin = 352598401, tmax = 352857601
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='353964', job_status='RUN', time_executed='2021-08-20 10:33:36.979277', time_epoch_executed='1629480816.98' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353964/ft1_4FGL_J0418.1-0252_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353964/ft1_4FGL_J0418.1-0252_daily_bin437.fits outfile=/scratch/kocevski/353964/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin437.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=352598401.0 tmax=352857601.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 12.18
user 3.87
sys 8.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353964/ft1_filtered_4FGL_J0418.1-0252_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/353964/ltcube_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.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/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits
.....................!
real 21.40
user 12.04
sys 9.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353964/ft1_filtered_4FGL_J0418.1-0252_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/353964/ltcube_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.fits outfile=/scratch/kocevski/353964/expmap_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.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/353964/ltcube_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.fits
.....................!
real 201.62
user 185.17
sys 16.01

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/353964/ft1_filtered_4FGL_J0418.1-0252_daily_bin437.fits scfile=/scratch/kocevski/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits outfile=/scratch/kocevski/353964/cmap_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.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 8.50
user 0.40
sys 7.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353964/ft1_filtered_4FGL_J0418.1-0252_daily_bin437.fits scfile=/scratch/kocevski/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits outfile=/scratch/kocevski/353964/cmap_HighResolution_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.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 8.63
user 0.37
sys 8.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353964/ft1_filtered_4FGL_J0418.1-0252_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/353964/ft2_4FGL_J0418.1-0252_daily_bin437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353964/Model_4FGL_J0418.1-0252_daily_bin437.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/353964/ft1_filtered_4FGL_J0418.1-0252_daily_bin437.fits.....................!
real 82.75
user 69.64
sys 11.74

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17291E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.656       1.0000         .10000E-03   10000.    
    10 'norm      '    32.817       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8166       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .79339       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2649       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .66643E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.444       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2187       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2291       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .35178       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2463       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=   5191.751     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     3111 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3390        2.3959        .71103E-04   -.12312E-04
   2  Prefactor     .10002E-03    62.780        .15417    ** at limit **
   3  Prefactor     .10000E-03    8.6008        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.6198        .15120E-02** at limit **
   5  norm          .10000E-03    9.0664        .18142E-02** at limit **
   6  Prefactor     .10000E-03    49.404        .18142E-02** at limit **
   7  norm          .10000E-03    11.112        .29219E-02** at limit **
   8  Prefactor     .10000E-03    15.421        .18142E-02** at limit **
   9  norm          10.658        9.6712        .12274E-03    .16766E-04
  10  norm          32.862        33.281        .69948E-04    .18041E-04
  11  norm          1.8158        1.5241        .75041E-04    .34087E-03
  12  Prefactor     .79058        2.2702        .15950E-03    .22809E-05
  13  Prefactor     1.3032        82.434        .39615E-03    .21810E-05
  14  Prefactor     .10000E-03    35.718        .18142E-02** at limit **
  15  Prefactor     .10000E-03    9.6469        .18142E-02** at limit **
  16  norm          .10003E-03    3.1905        .27370E-01** at limit **
  17  Prefactor     29.451        40.575        .73835E-04    .60050E-05
  18  norm          6.2181        2.8054        .77566E-04   -.12004E-03
  19  norm          1.2283        1.6769        .10748E-03   -.15338E-04
  20  Prefactor     .10000E-03    67.511        .18142E-02** at limit **
  21  Normalizat    .35213        .27093        .56292E-03   -.14824E-04
  22  Prefactor     1.2461        .13292        .15493E-03    .10714E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.33898
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6585
  norm       = 32.8618
  norm       = 1.81579
  Prefactor  = 0.790577
  Prefactor  = 1.30316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 29.4515
  norm       = 6.21805
  norm       = 1.22829
  Prefactor  = 0.0001
  Normalizat = 0.352128
  Prefactor  = 1.24611
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.751     FROM HESSE     STATUS=OK           340 CALLS     3451 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3390        2.3958        .28441E-05   -1.5246    
   2  Prefactor     .10002E-03    68.194        .14637       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6199        .30239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.0665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.182        .58439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.658        9.6709        .49094E-05   -1.5055    
  10  norm          32.862        33.258        .27979E-05   -1.4561    
  11  norm          1.8158        1.5233        .30017E-05   -1.5438    
  12  Prefactor     .79058        2.2683        .63798E-05   -1.5530    
  13  Prefactor     1.3032        81.901        .15846E-04   -1.5480    
  14  Prefactor     .10000E-03    35.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    2.5127        .32184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.451        40.572        .29534E-05   -1.4622    
  18  norm          6.2181        2.8054        .31026E-05   -1.5209    
  19  norm          1.2283        1.6768        .42991E-05   -1.5486    
  20  Prefactor     .10000E-03    67.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .35213        .27080        .22517E-04   -1.1985    
  22  Prefactor     1.2461        .13288        .61971E-05   -.84924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45832e-11
Minuit parameter uncertainties:
  1  2.39584
  2  0.0024439
  3  3.87508e-08
  4  1.43308e-06
  5  7.22487e-06
  6  9.96405e-05
  7  1.50131e-05
  8  1.13171e-05
  9  9.67236
  10  33.2763
  11  1.52331
  12  2.26851
  13  20.691
  14  0.000172293
  15  3.29775e-05
  16  0.000505153
  17  40.6104
  18  2.80549
  19  1.67691
  20  0.00011118
  21  0.271817
  22  0.132915
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  1.501e-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.246e+00  1.329e-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:  3.521e-01  2.718e-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: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/353964/likelihoodResults_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.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) = 5191.75174764
delta logL = -0.000427447566835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5191.75132516
delta logL = -4.97201290273e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10903E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1695       1.0000          .0000       5.0000    
     3 'Normalizat'    .35134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2465       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=   5191.751     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      260 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    28.971        .29460E-02** at limit **
   2  alpha         2.1978        3.5897        .50000       -.14173E-04
   3  Normalizat    .35213        .25441        .56292E-03    .16276E-03
   4  Prefactor     1.2461        .12838        .15493E-03    .53267E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 2.1978
  Normalizat = 0.35213
  Prefactor  = 1.24611
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.751     FROM HESSE     STATUS=OK            29 CALLS      289 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    12.125        .58920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1978        3.4813        .50000       -.12118    
   3  Normalizat    .35213        .25429        .22517E-04   -1.1985    
   4  Prefactor     1.2461        .12834        .30985E-04   -.84924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16922e-10
Minuit parameter uncertainties:
  1  0.000501208
  2  2.5123
  3  0.255124
  4  0.128368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353964': 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) = 5191.75131992
delta logL = 2.65177732217e-07

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  5.012e-04  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.198e+00  2.512e+00  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.246e+00  1.284e-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:  3.521e-01  2.551e-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/353964/cmap_HighResolution_352598401_352857601_4FGL_J0418.1-0252_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-08-20 10:45:22.894691', job_id='353964', GAL2='1.25', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1629481522.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='437' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 353964: <4FGL_J0418.1-0252_daily_bin437> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin437> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:31:12 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:31:13 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:31:13 2021
Terminated at Fri Aug 20 10:45:25 2021
Results reported at Fri Aug 20 10:45:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin437 64.5321 -2.8795 352598401 352857601 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 :                                   828.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

