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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin1499
RA = 64.5321, Dec = -2.8795
tmin = 627868801, tmax = 628128001
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='359577', job_status='RUN', time_executed='2021-08-20 10:55:22.257071', time_epoch_executed='1629482122.26' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359577/ft1_4FGL_J0418.1-0252_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359577/ft1_4FGL_J0418.1-0252_daily_bin1499.fits outfile=/scratch/kocevski/359577/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin1499.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=627868801.0 tmax=628128001.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 7.87
user 2.29
sys 5.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359577/ft1_filtered_4FGL_J0418.1-0252_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/359577/ltcube_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.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/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits
.....................!
real 18.96
user 12.18
sys 6.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359577/ft1_filtered_4FGL_J0418.1-0252_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/359577/ltcube_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.fits outfile=/scratch/kocevski/359577/expmap_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.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/359577/ltcube_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.fits
.....................!
real 197.49
user 185.70
sys 11.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/359577/ft1_filtered_4FGL_J0418.1-0252_daily_bin1499.fits scfile=/scratch/kocevski/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits outfile=/scratch/kocevski/359577/cmap_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.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 5.75
user 0.37
sys 5.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359577/ft1_filtered_4FGL_J0418.1-0252_daily_bin1499.fits scfile=/scratch/kocevski/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits outfile=/scratch/kocevski/359577/cmap_HighResolution_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.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 5.70
user 0.38
sys 5.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359577/ft1_filtered_4FGL_J0418.1-0252_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/359577/ft2_4FGL_J0418.1-0252_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359577/Model_4FGL_J0418.1-0252_daily_bin1499.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/359577/ft1_filtered_4FGL_J0418.1-0252_daily_bin1499.fits.....................!
real 78.89
user 70.63
sys 8.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    116.61       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.729       1.0000         .10000E-03   10000.    
     7 'norm      '    .12171E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19170E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10860E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18178E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19146E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29999E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4831       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0860       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27251       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1586       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91174       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=   4743.610     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2449 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5048        .86959E-08** at limit **
   2  Prefactor     116.56        153.61       -.32719E-04    .91533E-05
   3  Prefactor     .86193        5.5832       -.94799E-06   -.53991E-04
   4  Prefactor     .10000E-03    46.045        .43206E-06** at limit **
   5  norm          .10000E-03    11.493       -.64168E-08** at limit **
   6  Prefactor     31.729        47.756        .72087E-06   -.11108E-04
   7  norm          .10000E-03    6.4619       -.25649E-07** at limit **
   8  Prefactor     .10000E-03    125.50       -.49644E-06** at limit **
   9  norm          .10000E-03    3.7489        .43378E-07** at limit **
  10  norm          .10000E-03    95.660        .47721E-06** at limit **
  11  norm          .10000E-03    .86583       -.15292E-06** at limit **
  12  Prefactor     .10000E-03    1.0059       -.41874E-07** at limit **
  13  Prefactor     .12782E-03    50.292       -.47616E-05** at limit **
  14  Prefactor     .12755E-03    63.147        .73563E-05** at limit **
  15  Prefactor     .10000E-03    9.8847       -.46293E-06** at limit **
  16  norm          .10000E-03    2.3892        .13074E-06** at limit **
  17  Prefactor     .10000E-03    10.055        .33831E-07** at limit **
  18  norm          8.4796        3.6155       -.11177E-06   -.34065E-03
  19  norm          1.0877        1.9108       -.33562E-06   -.64070E-03
  20  Prefactor     .26310        38.611       -.99880E-06   -.20194E-04
  21  Normalizat    1.1583        .24998        .40410E-06    .15264E-03
  22  Prefactor     .91172        .12193        .10268E-05    .12736E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 116.564
  Prefactor  = 0.861933
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 31.7293
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000127822
  Prefactor  = 0.000127545
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.47956
  norm       = 1.0877
  Prefactor  = 0.263101
  Normalizat = 1.15826
  Prefactor  = 0.91172
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.610     FROM HESSE     STATUS=OK           368 CALLS     2817 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5547        .16489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     116.56        153.73        .18630E-03   -1.3544    
   3  Prefactor     .86193        21.366        .29954E-02   -1.5522    
   4  Prefactor     .10000E-03    46.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.729        47.820        .71133E-04   -1.4581    
   7  norm          .10000E-03    6.7256        .34151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    126.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.7555        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    96.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6415        .12174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0117        .67294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12782E-03    48.964        .12151       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12755E-03    56.178        .14896       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.534        .40138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4100        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4796        3.6116        .80366E-04   -1.5125    
  19  norm          1.0877        1.8646        .11837E-03   -1.5499    
  20  Prefactor     .26310        45.292        .11541       -1.5605    
  21  Normalizat    1.1583        .27852        .31336E-03   -.87903    
  22  Prefactor     .91172        .13931        .17863E-03   -.95733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39779e-08
Minuit parameter uncertainties:
  1  1.67511e-06
  2  154.257
  3  8.58564
  4  0.00041529
  5  5.16146e-06
  6  47.8781
  7  1.8512e-05
  8  0.000408104
  9  3.29646e-06
  10  5.28133e-05
  11  2.3808e-05
  12  4.3239e-06
  13  0.0738786
  14  0.0787491
  15  0.000477643
  16  1.00898e-05
  17  8.43905e-06
  18  3.61167
  19  1.8647
  20  6.90805
  21  0.278874
  22  0.139365
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  1.851e-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:  9.117e-01  1.394e-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:  1.158e+00  2.789e-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: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359577/likelihoodResults_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.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) = 4743.61064441
delta logL = -0.000709971727701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4743.60615672
delta logL = 0.00377772422689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11375       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6563       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91274       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=   4743.606     FROM MIGRAD    STATUS=FAILED        94 CALLS      329 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11372        594.93        .11344E-02   -.71503E-03
   2  alpha         3.6556        3.6394        .10785        .13559E-03
   3  Normalizat    1.1521        .16959        .31407E-03   -.33917E-04
   4  Prefactor     .91274        .77935E-01    .17854E-03   -.11780E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4743.606     FROM SIMPLEX   STATUS=UNCHANGED    107 CALLS      436 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11372        594.93        .29022E-03   -.71503E-03
   2  alpha         3.6556        3.6394        .55754E-02    .13559E-03
   3  Normalizat    1.1521        .16959        .26321E-03   -.33917E-04
   4  Prefactor     .91274        .77935E-01    .55531E-04   -.11780E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4743.606     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      468 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11374        7.0420        .45377E-04   -.64464E-03
   2  alpha         3.6555        3.9978        .21569E-01   -.12014E-04
   3  Normalizat    1.1521        .27104        .12563E-04   -.19185E-04
   4  Prefactor     .91274        .13558        .71415E-05    .25471E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.113744
  alpha      = 3.65555
  Normalizat = 1.15213
  Prefactor  = 0.912739
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.606     FROM HESSE     STATUS=OK            23 CALLS      491 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11374        5.5847        .18151E-05   -1.5641    
   2  alpha         3.6555        4.2113        .86277E-03    .48050    
   3  Normalizat    1.1521        .27107        .25126E-05   -.88095    
   4  Prefactor     .91274        .13548        .14283E-05   -.95697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0171e-10
Minuit parameter uncertainties:
  1  1.59348
  2  5.51194
  3  0.271397
  4  0.135526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359577': 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) = 4743.60615671
delta logL = 0.00377773378659

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.137e-01  1.593e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  3.656e+00  5.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:  9.127e-01  1.355e-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:  1.152e+00  2.714e-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/359577/cmap_HighResolution_627868801_628128001_4FGL_J0418.1-0252_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', job_status='DONE', photon_flux_upper_limit='8.38e-08', time_completed='2021-08-20 11:05:32.673692', job_id='359577', GAL2='0.91', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1629482732.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.78e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1499' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 11:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 359577: <4FGL_J0418.1-0252_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin1499> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 10:50:37 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:50:39 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:50:39 2021
Terminated at Fri Aug 20 11:05:34 2021
Results reported at Fri Aug 20 11:05:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin1499 64.5321 -2.8795 627868801 628128001 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 :                                   691.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            897 sec.

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

