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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin533
RA = 64.5321, Dec = -2.8795
tmin = 377481601, tmax = 377740801
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='355089', job_status='RUN', time_executed='2021-08-20 10:35:57.557412', time_epoch_executed='1629480957.56' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355089

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355089/ft1_4FGL_J0418.1-0252_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355089/ft1_4FGL_J0418.1-0252_daily_bin533.fits outfile=/scratch/kocevski/355089/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin533.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=377481601.0 tmax=377740801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.27
user 2.95
sys 1.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.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/355089/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin533.fits evtable="EVENTS" outfile="/scratch/kocevski/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.66
user 0.34
sys 1.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/355089/ltcube_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.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/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits
.....................!
real 11.40
user 9.80
sys 1.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/355089/ltcube_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.fits outfile=/scratch/kocevski/355089/expmap_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.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/355089/ltcube_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.fits
.....................!
real 191.97
user 185.75
sys 5.64

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/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits scfile=/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits outfile=/scratch/kocevski/355089/cmap_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=64.5321 yref=-2.8795 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.62
user 0.36
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits scfile=/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits outfile=/scratch/kocevski/355089/cmap_HighResolution_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=64.5321 yref=-2.8795 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.63
user 0.39
sys 1.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/355089/ft2_4FGL_J0418.1-0252_daily_bin533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355089/Model_4FGL_J0418.1-0252_daily_bin533.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/355089/ft1_filtered_4FGL_J0418.1-0252_daily_bin533.fits.....................!
real 101.76
user 98.82
sys 2.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.898       1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.366       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3566       1.0000         .10000E-03   10000.    
    10 'norm      '    .21992E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .12716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2085       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.745       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6626       1.0000         .10000E-03   10000.    
    16 'norm      '    .67564       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2945       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6841       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.624       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .53327       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0376       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=   7479.659     FROM MIGRAD    STATUS=FAILED       869 CALLS     2797 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48479        .55407        .69697E-03    .18073E-04
   2  Prefactor     45.470        59.487        .59491E-04    .34398E-05
   3  Prefactor     .10000E-03    2.3093        .12776E-02** at limit **
   4  Prefactor     10.900        16.562        .12136E-03    .42904E-04
   5  norm          .10000E-03    6.8927        .18142E-02** at limit **
   6  Prefactor     .10000E-03    18.116        .18142E-02** at limit **
   7  norm          .10000E-03    1.5646        .10522E-02** at limit **
   8  Prefactor     39.378        31.272        .63884E-04   -.46269E-05
   9  norm          2.3562        7.6129        .13349E-02    .42880E-03
  10  norm          .10000E-03    31.027        .10302    ** at limit **
  11  norm          .12691        1.9287        .13678E-02    .58287E-03
  12  Prefactor     1.2081        1.4616        .10306E-03    .20827E-04
  13  Prefactor     18.444        24.939        .93195E-04   -.19274E-04
  14  Prefactor     30.697        43.098        .72260E-04    .29893E-04
  15  Prefactor     5.6614        7.3138        .16881E-03    .20676E-04
  16  norm          .67752        3.0541        .20268E-02    .45793E-02
  17  Prefactor     .10000E-03    8.2780        .18142E-02** at limit **
  18  norm          2.2946        1.6519        .90613E-04    .78791E-04
  19  norm          1.6843        1.4412        .93094E-04    .57397E-04
  20  Prefactor     32.626        28.128        .70154E-04    .81027E-05
  21  Normalizat    .53347        .18538        .38987E-03    .89813E-04
  22  Prefactor     1.0375        .99692E-01    .15123E-03   -.26885E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7479.659     FROM SIMPLEX   STATUS=UNCHANGED   1077 CALLS     3874 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48479        .55407        .35183E-06   -1.5569    
   2  Prefactor     45.470        59.487        .47250E-06   -1.4358    
   3  Prefactor     .10000E-03    2.3093        .21252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.900        16.562        .32893E-06   -1.5048    
   5  norm          .10000E-03    6.8927        .39469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.116        .58615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5646        .14989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.378        31.272        .31548E-06   -1.4452    
   9  norm          2.3562        7.6129        .33660E-06   -1.5401    
  10  norm          .10000E-03    31.027        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12691        1.9287        .34367E-06   -1.5637    
  12  Prefactor     1.2081        1.4616        .33995E-06   -1.5488    
  13  Prefactor     18.444        24.939        .33532E-06   -1.4849    
  14  Prefactor     30.697        43.098        .33687E-06   -1.4599    
  15  Prefactor     5.6614        7.3138        .33815E-06   -1.5232    
  16  norm          .67752        3.0541        .34241E-06   -1.5543    
  17  Prefactor     .10000E-03    8.2780        .40189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2946        1.6519        .33740E-06   -1.5405    
  19  norm          1.6843        1.4412        .33891E-06   -1.5448    
  20  Prefactor     32.626        28.128        .32667E-06   -1.4565    
  21  Normalizat    .53347        .18538        .24890E-06   -1.1089    
  22  Prefactor     1.0375        .99692E-01    .20140E-06   -.91491    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7479.659     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     4217 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48479        .55402        .27879E-04    .12234E-05
   2  Prefactor     45.470        59.569        .23796E-05    .95550E-06
   3  Prefactor     .10000E-03    2.3097        .25551E-03** at limit **
   4  Prefactor     10.900        16.565        .48544E-05    .46839E-06
   5  norm          .10000E-03    6.8933        .36285E-03** at limit **
   6  Prefactor     .10000E-03    18.117        .36285E-03** at limit **
   7  norm          .10000E-03    1.5647        .21045E-03** at limit **
   8  Prefactor     39.378        31.276        .25554E-05    .88979E-06
   9  norm          2.3562        7.6033        .26698E-03    .23846E-05
  10  norm          .10000E-03    28.219        .10916    ** at limit **
  11  norm          .12691        1.8478        .54714E-04    .27012E-05
  12  Prefactor     1.2082        1.4600        .20612E-04    .36403E-04
  13  Prefactor     18.444        24.722        .37278E-05    .60994E-05
  14  Prefactor     30.698        42.506        .28904E-05    .70798E-05
  15  Prefactor     5.6614        7.2985        .67523E-05    .63980E-05
  16  norm          .67753        2.9866        .40536E-03    .12116E-04
  17  Prefactor     .10000E-03    8.2788        .36285E-03** at limit **
  18  norm          2.2946        1.6517        .36245E-05    .62732E-05
  19  norm          1.6843        1.4412        .37238E-05    .61060E-06
  20  Prefactor     32.626        28.129        .28061E-05    .16205E-06
  21  Normalizat    .53346        .18530        .15595E-04    .59778E-05
  22  Prefactor     1.0375        .99590E-01    .30247E-04    .16087E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.484792
  Prefactor  = 45.4701
  Prefactor  = 0.0001
  Prefactor  = 10.8995
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.3784
  norm       = 2.35623
  norm       = 0.0001
  norm       = 0.126907
  Prefactor  = 1.20815
  Prefactor  = 18.444
  Prefactor  = 30.6975
  Prefactor  = 5.66137
  norm       = 0.677531
  Prefactor  = 0.0001
  norm       = 2.29459
  norm       = 1.68433
  Prefactor  = 32.6256
  Normalizat = 0.533465
  Prefactor  = 1.03748
 **********
 **   18 **HESSE 
 **********

 FCN=   7479.659     FROM HESSE     STATUS=OK           332 CALLS     4549 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48479        .55400        .11151E-05   -1.5569    
   2  Prefactor     45.470        59.901        .47593E-06   -1.4358    
   3  Prefactor     .10000E-03    2.3097        .51102E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.900        16.662        .97088E-06   -1.5048    
   5  norm          .10000E-03    6.8933        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.117        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5647        .42090E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.378        31.428        .51107E-06   -1.4452    
   9  norm          2.3562        7.6004        .10679E-04   -1.5401    
  10  norm          .10000E-03    29.305        .10669       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12691        1.8478        .21886E-05   -1.5637    
  12  Prefactor     1.2082        1.4607        .82447E-06   -1.5488    
  13  Prefactor     18.444        24.766        .74556E-06   -1.4849    
  14  Prefactor     30.698        42.656        .57808E-06   -1.4599    
  15  Prefactor     5.6614        7.2979        .13505E-05   -1.5232    
  16  norm          .67753        2.9742        .16214E-04   -1.5543    
  17  Prefactor     .10000E-03    8.2788        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2946        1.6524        .72491E-06   -1.5405    
  19  norm          1.6843        1.4412        .74475E-06   -1.5448    
  20  Prefactor     32.626        28.128        .28061E-05   -1.4565    
  21  Normalizat    .53346        .18549        .31190E-05   -1.1089    
  22  Prefactor     1.0375        .99623E-01    .60493E-05   -.91491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05867e-13
Minuit parameter uncertainties:
  1  0.554008
  2  59.98
  3  2.20219e-07
  4  16.6687
  5  6.829e-08
  6  1.2953e-07
  7  5.62673e-08
  8  31.4408
  9  7.60354
  10  4.40237e-05
  11  0.968155
  12  1.46072
  13  24.7793
  14  42.6984
  15  7.29901
  16  2.83913
  17  4.96091e-07
  18  1.65246
  19  1.44122
  20  28.1393
  21  0.1857
  22  0.099641
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  5.627e-08  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.037e+00  9.964e-02  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  5.335e-01  1.857e-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: 4.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355089/likelihoodResults_377481601_377740801_4FGL_J0418.1-0252_daily_bin533.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) = 7479.66208582
delta logL = -0.00303702104429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7479.6590488
delta logL = -6.16455508862e-09

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.1427       1.0000          .0000       5.0000    
     3 'Normalizat'    .53346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0375       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=   7479.659     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      233 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7488        .10524E-02** at limit **
   2  alpha         2.0648        3.1118        .16678       -.22494E-08
   3  Normalizat    .53346        .17480        .38987E-03    .10090E-04
   4  Prefactor     1.0375        .93261E-01    .15123E-03    .38789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06478
  Normalizat = 0.533465
  Prefactor  = 1.03748
 **********
 **   18 **HESSE 
 **********

 FCN=   7479.659     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5697        .21048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0648        2.8732        .66713E-02   -.17498    
   3  Normalizat    .53346        .17486        .15595E-04   -1.1089    
   4  Prefactor     1.0375        .93289E-01    .60493E-05   -.91491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1035e-13
Minuit parameter uncertainties:
  1  1.64515e-06
  2  177.76
  3  0.175036
  4  0.0933031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355089': 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) = 7479.6590487
delta logL = 1.00267243397e-07

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  1.645e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.065e+00  1.778e+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.037e+00  9.330e-02  0.000e+00  1.000e+01 ( 1.000e+00)
455        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
456        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
453   Normalization:  5.335e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-08-20 10:48:57.195662', job_id='355089', GAL2='1.04', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1629481737.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='533' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:48:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 355089: <4FGL_J0418.1-0252_daily_bin533> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin533> 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) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:35:29 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:29 2021
Terminated at Fri Aug 20 10:49:00 2021
Results reported at Fri Aug 20 10:49:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin533 64.5321 -2.8795 377481601 377740801 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 :                                   797.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            812 sec.

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

