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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin931
RA = 64.5321, Dec = -2.8795
tmin = 480643201, tmax = 480902401
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='356720', job_status='RUN', time_executed='2021-08-20 10:43:16.782697', time_epoch_executed='1629481396.78' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356720/ft1_4FGL_J0418.1-0252_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356720/ft1_4FGL_J0418.1-0252_daily_bin931.fits outfile=/scratch/kocevski/356720/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin931.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=480643201.0 tmax=480902401.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 5.10
user 3.31
sys 1.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356720/ft1_filtered_4FGL_J0418.1-0252_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/356720/ltcube_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.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/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits
.....................!
real 14.01
user 11.92
sys 2.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356720/ft1_filtered_4FGL_J0418.1-0252_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/356720/ltcube_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.fits outfile=/scratch/kocevski/356720/expmap_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.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/356720/ltcube_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.fits
.....................!
real 191.74
user 184.41
sys 6.94

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/356720/ft1_filtered_4FGL_J0418.1-0252_daily_bin931.fits scfile=/scratch/kocevski/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits outfile=/scratch/kocevski/356720/cmap_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.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 2.02
user 0.37
sys 1.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356720/ft1_filtered_4FGL_J0418.1-0252_daily_bin931.fits scfile=/scratch/kocevski/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits outfile=/scratch/kocevski/356720/cmap_HighResolution_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.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 2.05
user 0.36
sys 1.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356720/ft1_filtered_4FGL_J0418.1-0252_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/356720/ft2_4FGL_J0418.1-0252_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356720/Model_4FGL_J0418.1-0252_daily_bin931.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/356720/ft1_filtered_4FGL_J0418.1-0252_daily_bin931.fits.....................!
real 90.24
user 86.79
sys 3.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8470       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3017       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12752E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.8922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.488       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0965       1.0000         .10000E-03   10000.    
    19 'norm      '    .38908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .59725       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1566       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.

 FCN=   6593.808     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2381 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7958        1.7094        .60832E-02    .18662E-03
   2  Prefactor     .10000E-03    29.085        .90712E-02** at limit **
   3  Prefactor     6.9149        6.3301        .38143E-02    .24726E-03
   4  Prefactor     1.8491        24.116        .76706E-02    .21152E-03
   5  norm          6.3955        10.811        .39678E-02    .38154E-04
   6  Prefactor     .10000E-03    7.1534        .90712E-02** at limit **
   7  norm          .10000E-03    1.4371        .90712E-02** at limit **
   8  Prefactor     .10000E-03    12.693        .90712E-02** at limit **
   9  norm          5.3015        12.411        .43638E-02    .12695E-03
  10  norm          .10000E-03    6.5646        .90712E-02** at limit **
  11  norm          .10000E-03    .50106        .31578E-01** at limit **
  12  Prefactor     3.0190        1.9047        .58341E-02    .48851E-03
  13  Prefactor     65.316        32.348        .12414E-02    .18518E-02
  14  Prefactor     .10000E-03    120.63        .90712E-02** at limit **
  15  Prefactor     .10000E-03    6.3697        .90712E-02** at limit **
  16  norm          8.8920        4.2071        .33603E-02    .19382E-03
  17  Prefactor     15.491        27.178        .25443E-02   -.72141E-04
  18  norm          2.0953        2.0739        .71264E-02    .37500E-03
  19  norm          .39044        1.1854        .37247E-01    .14497E-02
  20  Prefactor     .10000E-03    26.376        .90712E-02** at limit **
  21  Normalizat    .59710        .24081        .10067        .67647E-04
  22  Prefactor     1.1567        .11018        .35747E-01    .43122E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79582
  Prefactor  = 0.0001
  Prefactor  = 6.91487
  Prefactor  = 1.84915
  norm       = 6.39548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.30153
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.01897
  Prefactor  = 65.3155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.89195
  Prefactor  = 15.491
  norm       = 2.09525
  norm       = 0.390443
  Prefactor  = 0.0001
  Normalizat = 0.597095
  Prefactor  = 1.15669
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.808     FROM HESSE     STATUS=OK           348 CALLS     2729 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7958        1.7041        .78988E-04   -1.5374    
   2  Prefactor     .10000E-03    29.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9149        6.3282        .15257E-03   -1.5182    
   4  Prefactor     1.8491        24.262        .30682E-03   -1.5436    
   5  norm          6.3955        10.804        .15871E-03   -1.5202    
   6  Prefactor     .10000E-03    7.1541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4385        .95049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3015        12.378        .17455E-03   -1.5247    
  10  norm          .10000E-03    6.5680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .84332        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0190        1.8571        .82991E-04   -1.5360    
  13  Prefactor     65.316        32.306        .49655E-04   -1.4090    
  14  Prefactor     .10000E-03    121.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.8920        4.2066        .95384E-04   -1.5111    
  17  Prefactor     15.491        27.154        .10177E-03   -1.4921    
  18  norm          2.0953        2.0602        .11041E-03   -1.5418    
  19  norm          .39044        1.2668        .14778E-02   -1.5583    
  20  Prefactor     .10000E-03    26.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .59710        .25021        .44629E-03   -1.0811    
  22  Prefactor     1.1567        .11788        .16170E-03   -.87675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5412e-09
Minuit parameter uncertainties:
  1  1.70416
  2  7.59105e-05
  3  6.32882
  4  13.4023
  5  10.8075
  6  2.44045e-06
  7  2.65139e-07
  8  2.20278e-07
  9  12.3837
  10  6.06637e-06
  11  4.92508e-07
  12  1.85714
  13  32.3151
  14  0.000373483
  15  2.63244e-07
  16  4.20674
  17  27.1758
  18  2.06027
  19  1.26686
  20  4.92388e-05
  21  0.250681
  22  0.117906
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  2.651e-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.157e+00  1.179e-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:  5.971e-01  2.507e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356720/likelihoodResults_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.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) = 6593.81167185
delta logL = -0.00323029324318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6593.80844156
delta logL = -3.71528585674e-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.1451       1.0000          .0000       5.0000    
     3 'Normalizat'    .59710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1567       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=   6592.964     FROM MIGRAD    STATUS=CONVERGED    197 CALLS      340 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15388        4.3640        .53308E-02    .26216E-02
   2  alpha         5.0000        3.9433        .50000    ** at limit **
   3  Normalizat    .45088        .24595        .44629E-02    .95425E-05
   4  Prefactor     1.1956        .71725E-01    .16170E-03    .15608E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.153878
  alpha      = 5
  Normalizat = 0.450885
  Prefactor  = 1.19563
 **********
 **   18 **HESSE 
 **********

 FCN=   6592.964     FROM HESSE     STATUS=OK            29 CALLS      369 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15388        .13119        .24106E-04   -1.5630    
   2  alpha         5.0000        .62468        .47652E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .45088        .25600        .17851E-03   -1.1475    
   4  Prefactor     1.1956        .11918        .64682E-05   -.86466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17791e-13
Minuit parameter uncertainties:
  1  0.131194
  2  2.25167e-08
  3  0.25667
  4  0.119208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356720': 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) = 6592.96367072
delta logL = 0.844770832934

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.539e-01  1.312e-01  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  5.000e+00  2.252e-08  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.196e+00  1.192e-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.509e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 64.532 -2.880
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.20e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.69e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/356720/cmap_HighResolution_480643201_480902401_4FGL_J0418.1-0252_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='8.45e-01', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-08-20 10:53:57.366470', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='5.18e-08', energy_flux_error2='1.44e-05', EG='0.60', time_epoch_completed='1629482037.37', return_code='0', job_id='356720', GAL2='1.20', EG2='0.45', return_code2='0', photon_flux_error2='1.02e-07', ts2='2.05', photon_index='2.14' WHERE bin_id='931' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:53:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 356720: <4FGL_J0418.1-0252_daily_bin931> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin931 64.5321 -2.8795 480643201 480902401 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 :                                   664.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

