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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin540
RA = 64.5321, Dec = -2.8795
tmin = 379296001, tmax = 379555201
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='355099', job_status='RUN', time_executed='2021-08-20 10:37:51.040402', time_epoch_executed='1629481071.04' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355099/ft1_4FGL_J0418.1-0252_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355099/ft1_4FGL_J0418.1-0252_daily_bin540.fits outfile=/scratch/kocevski/355099/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin540.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=379296001.0 tmax=379555201.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.34
user 4.37
sys 7.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.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/355099/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin540.fits evtable="EVENTS" outfile="/scratch/kocevski/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.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.11
user 0.32
sys 7.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/355099/ltcube_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.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/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits
.....................!
real 20.79
user 11.75
sys 8.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/355099/ltcube_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.fits outfile=/scratch/kocevski/355099/expmap_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.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/355099/ltcube_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.fits
.....................!
real 200.29
user 184.93
sys 14.70

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/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.fits scfile=/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits outfile=/scratch/kocevski/355099/cmap_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.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.04
user 0.37
sys 7.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.fits scfile=/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits outfile=/scratch/kocevski/355099/cmap_HighResolution_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.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 7.98
user 0.39
sys 7.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/355099/ft2_4FGL_J0418.1-0252_daily_bin540.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355099/Model_4FGL_J0418.1-0252_daily_bin540.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/355099/ft1_filtered_4FGL_J0418.1-0252_daily_bin540.fits.....................!
real 95.37
user 84.13
sys 10.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.468       1.0000         .10000E-03   10000.    
     5 'norm      '    27.920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6836       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4703       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1343       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9804       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3288       1.0000         .10000E-03   10000.    
    16 'norm      '    .62001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7433       1.0000         .10000E-03   10000.    
    19 'norm      '    12.810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7342       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .49312       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1920       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=   6159.899     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2067 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61815        .12957E-07** at limit **
   2  Prefactor     20.178        33.442       -.16220E-05   -.89144E-04
   3  Prefactor     6.2236        10.259        .52711E-06   -.90744E-06
   4  Prefactor     26.468        16.882        .55618E-06    .93500E-04
   5  norm          27.920        23.353       -.15482E-07   -.17212E-04
   6  Prefactor     .10000E-03    13.538        .13666E-06** at limit **
   7  norm          .10000E-03    1.8012       -.22333E-07** at limit **
   8  Prefactor     5.6554        27.875        .30254E-05    .51850E-04
   9  norm          6.4690        9.6550        .14688E-06   -.18287E-04
  10  norm          .10000E-03    18.157       -.23772E-07** at limit **
  11  norm          .10000E-03    .46093       -.98937E-07** at limit **
  12  Prefactor     1.1342        1.4701        .57230E-07   -.15218E-03
  13  Prefactor     .10000E-03    8.1633        .56169E-07** at limit **
  14  Prefactor     4.9839        64.213       -.21766E-05   -.59563E-05
  15  Prefactor     1.3279        23.238        .23074E-05   -.44310E-04
  16  norm          .61853        1.4836        .66947E-06    .32311E-03
  17  Prefactor     .10000E-03    10.495        .10655E-06** at limit **
  18  norm          4.7426        3.0991        .11323E-05   -.10308E-02
  19  norm          12.810        4.0465        .10936E-06    .80073E-04
  20  Prefactor     4.6988        112.79       -.92776E-05   -.59917E-04
  21  Normalizat    .49328        .25047       -.19882E-05   -.56610E-04
  22  Prefactor     1.1919        .11418       -.22496E-06   -.40888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.1782
  Prefactor  = 6.22363
  Prefactor  = 26.4685
  norm       = 27.92
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.6554
  norm       = 6.46901
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13417
  Prefactor  = 0.0001
  Prefactor  = 4.98389
  Prefactor  = 1.32788
  norm       = 0.618533
  Prefactor  = 0.0001
  norm       = 4.74259
  norm       = 12.8104
  Prefactor  = 4.69876
  Normalizat = 0.493276
  Prefactor  = 1.19192
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.899     FROM HESSE     STATUS=OK           350 CALLS     2417 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .63746        .12044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.178        33.803        .89091E-04   -1.4809    
   3  Prefactor     6.2236        10.247        .16088E-03   -1.5209    
   4  Prefactor     26.468        16.912        .77867E-04   -1.4679    
   5  norm          27.920        23.363        .75819E-04   -1.4651    
   6  Prefactor     .10000E-03    13.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8073        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6554        28.028        .16849E-03   -1.5232    
   9  norm          6.4690        9.6166        .15778E-03   -1.5199    
  10  norm          .10000E-03    18.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .59515        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1342        1.4153        .98965E-04   -1.5495    
  13  Prefactor     .10000E-03    8.1794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9839        62.279        .18020E-03   -1.5261    
  15  Prefactor     1.3279        22.540        .38110E-03   -1.5477    
  16  norm          .61853        1.3100        .14728E-02   -1.5551    
  17  Prefactor     .10000E-03    10.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7426        3.1169        .52080E-03   -1.5272    
  19  norm          12.810        4.0608        .79342E-04   -1.4992    
  20  Prefactor     4.6988        120.62        .18493E-03   -1.5274    
  21  Normalizat    .49328        .25463        .48277E-03   -1.1273    
  22  Prefactor     1.1919        .11898        .15800E-03   -.86580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55695e-10
Minuit parameter uncertainties:
  1  1.22885e-06
  2  33.8346
  3  10.2496
  4  16.9155
  5  23.3705
  6  1.50236e-05
  7  5.51759e-07
  8  25.1986
  9  9.61888
  10  6.64604e-06
  11  2.0507e-06
  12  1.41535
  13  1.29994e-05
  14  35.281
  15  10.9462
  16  1.3101
  17  1.10875e-05
  18  3.117
  19  4.06088
  20  47.7208
  21  0.255236
  22  0.119011
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  5.518e-07  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.192e+00  1.190e-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:  4.933e-01  2.552e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355099/likelihoodResults_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.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) = 6159.90112793
delta logL = -0.00259956630725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6159.89852836
delta logL = -6.90306478646e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1495       1.0000          .0000       5.0000    
     3 'Normalizat'    .49324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1919       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=   6159.889     FROM MIGRAD    STATUS=FAILED       136 CALLS      273 TOTAL
                     EDM=   .49E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24475E-01    5.9491        .10291E-01    .35303E-02
   2  alpha         4.6615        3.8758        .50000       -.29957E-03
   3  Normalizat    .48283        .48685E-01    .48277E-03    .14153E-04
   4  Prefactor     1.1943        .23262E-01    .15800E-03    .33746E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6159.889     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      350 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24475E-01    5.9491        .66051E-04    .35303E-02
   2  alpha         4.6615        3.8758        .17105E-01   -.29957E-03
   3  Normalizat    .48283        .48685E-01    .40971E-04    .14153E-04
   4  Prefactor     1.1943        .23262E-01    .46607E-05    .33746E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6159.889     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      397 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24475E-01    .33369         .0000        .59148E-03
   2  alpha         4.6615        4.7997         .0000       -.29957E-03
   3  Normalizat    .48283        .24921         .0000        .14129E-04
   4  Prefactor     1.1943        .11630         .0000        .33818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0244751
  alpha      = 4.6615
  Normalizat = 0.482834
  Prefactor  = 1.19428
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.889     FROM HESSE     STATUS=OK            29 CALLS      426 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24475E-01    .33607        .20728E-04   -1.5677    
   2  alpha         4.6615        4.8098        .50000        14.664    
   3  Normalizat    .48283        .25091        .38621E-05   -1.1322    
   4  Prefactor     1.1943        .11651        .12640E-05   -.86507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08935e-06
Minuit parameter uncertainties:
  1  0.181018
  2  4.37752
  3  0.251497
  4  0.116539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355099': 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) = 6159.88882793
delta logL = 0.00970042603058

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  2.448e-02  1.810e-01  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  4.662e+00  4.378e+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.194e+00  1.165e-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:  4.828e-01  2.515e-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/355099/cmap_HighResolution_379296001_379555201_4FGL_J0418.1-0252_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-08-20 10:49:23.433612', job_id='355099', GAL2='1.19', fit_tolerance='1e-08', EG2='0.48', EG='0.49', time_epoch_completed='1629481763.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='9.70e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='540' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:49:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 355099: <4FGL_J0418.1-0252_daily_bin540> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin540> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 10:35:28 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:35:30 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:35:30 2021
Terminated at Fri Aug 20 10:49:25 2021
Results reported at Fri Aug 20 10:49:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin540 64.5321 -2.8795 379296001 379555201 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 :                                   807.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

