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


Performing analysis on: 4FGL_J0418.1-0252_daily_bin375
RA = 64.5321, Dec = -2.8795
tmin = 336528001, tmax = 336787201
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='353860', job_status='RUN', time_executed='2021-08-20 10:31:41.427799', time_epoch_executed='1629480701.43' WHERE source_name='4FGL J0418.1-0252' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353860/ft1_4FGL_J0418.1-0252_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353860/ft1_4FGL_J0418.1-0252_daily_bin375.fits outfile=/scratch/kocevski/353860/ft1_filteredMKT_4FGL_J0418.1-0252_daily_bin375.fits ra=64.5321 dec=-2.8795 rad=12.0 tmin=336528001.0 tmax=336787201.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.32
user 5.50
sys 1.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353860/ft1_filtered_4FGL_J0418.1-0252_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/353860/ltcube_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.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/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits
.....................!
real 13.71
user 11.64
sys 1.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353860/ft1_filtered_4FGL_J0418.1-0252_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/353860/ltcube_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.fits outfile=/scratch/kocevski/353860/expmap_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.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/353860/ltcube_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.fits
.....................!
real 192.88
user 185.23
sys 6.98

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/353860/ft1_filtered_4FGL_J0418.1-0252_daily_bin375.fits scfile=/scratch/kocevski/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits outfile=/scratch/kocevski/353860/cmap_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.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.97
user 0.35
sys 1.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353860/ft1_filtered_4FGL_J0418.1-0252_daily_bin375.fits scfile=/scratch/kocevski/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits outfile=/scratch/kocevski/353860/cmap_HighResolution_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.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.00
user 0.37
sys 1.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353860/ft1_filtered_4FGL_J0418.1-0252_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/353860/ft2_4FGL_J0418.1-0252_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353860/Model_4FGL_J0418.1-0252_daily_bin375.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/353860/ft1_filtered_4FGL_J0418.1-0252_daily_bin375.fits.....................!
real 113.87
user 110.66
sys 2.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4932       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6918       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19185       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.847       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0242       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0521       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64289       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1311       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=   8372.660     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2430 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4720        1.5938        .30176E-07    .27730E-04
   2  Prefactor     33.542        36.313        .73701E-06   -.15949E-04
   3  Prefactor     .10000E-03    1.9451        .47566E-07** at limit **
   4  Prefactor     .10000E-03    6.5018       -.51169E-07** at limit **
   5  norm          15.250        12.848        .25391E-07   -.59213E-05
   6  Prefactor     .10000E-03    9.8570        .23183E-06** at limit **
   7  norm          .10000E-03    1.8292        .30488E-06** at limit **
   8  Prefactor     4.4910        31.064        .69520E-06    .13071E-04
   9  norm          .10000E-03    3.3842        .15526E-06** at limit **
  10  norm          6.6704        20.893       -.75613E-07    .10057E-04
  11  norm          2.3773        1.2625       -.26485E-06   -.22413E-03
  12  Prefactor     .18681        4.6197        .44592E-05   -.38003E-04
  13  Prefactor     .10000E-03    5.6354        .82889E-07** at limit **
  14  Prefactor     46.527        49.842       -.22338E-05    .88240E-06
  15  Prefactor     20.847        9.5906        .40741E-07    .73823E-04
  16  norm          1.3610        2.0887       -.23921E-07    .21088E-03
  17  Prefactor     .10000E-03    5.3382        .14856E-06** at limit **
  18  norm          4.0240        2.4971       -.11830E-07    .18493E-03
  19  norm          3.0513        1.7639        .31304E-07    .98983E-04
  20  Prefactor     .10000E-03    29.554       -.38609E-07** at limit **
  21  Normalizat    .64264        .19067       -.40133E-06   -.68199E-04
  22  Prefactor     1.1312        .96611E-01   -.36379E-06    .45625E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.472
  Prefactor  = 33.5418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.49102
  norm       = 0.0001
  norm       = 6.67044
  norm       = 2.3773
  Prefactor  = 0.186807
  Prefactor  = 0.0001
  Prefactor  = 46.5267
  Prefactor  = 20.8473
  norm       = 1.36101
  Prefactor  = 0.0001
  norm       = 4.02398
  norm       = 3.0513
  Prefactor  = 0.0001
  Normalizat = 0.642639
  Prefactor  = 1.13119
 **********
 **   18 **HESSE 
 **********

 FCN=   8372.660     FROM HESSE     STATUS=OK           350 CALLS     2780 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4720        1.5910        .74840E-04   -1.5335    
   2  Prefactor     33.542        36.319        .69184E-04   -1.4549    
   3  Prefactor     .10000E-03    1.9520        .12461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.250        12.850        .10256E-03   -1.4927    
   6  Prefactor     .10000E-03    9.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8603        .12126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4910        31.043        .18994E-03   -1.5284    
   9  norm          .10000E-03    3.4209        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6704        20.972        .15512E-03   -1.5191    
  11  norm          2.3773        1.2580        .67293E-04   -1.5400    
  12  Prefactor     .18681        4.9464        .15564E-02   -1.5622    
  13  Prefactor     .10000E-03    5.6450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.527        50.697        .58762E-04   -1.4343    
  15  Prefactor     20.847        9.5804        .87723E-04   -1.4794    
  16  norm          1.3610        2.0632        .15603E-03   -1.5475    
  17  Prefactor     .10000E-03    5.3454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0240        2.4855        .10664E-03   -1.5307    
  19  norm          3.0513        1.7620        .89348E-04   -1.5359    
  20  Prefactor     .10000E-03    29.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64264        .20448        .41547E-03   -1.0620    
  22  Prefactor     1.1312        .10487        .16338E-03   -.88476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18737e-08
Minuit parameter uncertainties:
  1  1.59101
  2  36.343
  3  7.013e-06
  4  1.50915e-06
  5  12.8523
  6  8.22901e-06
  7  2.81307e-05
  8  23.6319
  9  2.50296e-05
  10  20.9951
  11  1.25806
  12  1.92218
  13  2.35697e-06
  14  50.7441
  15  9.58107
  16  2.06334
  17  8.87144e-06
  18  2.48559
  19  1.76203
  20  0.000106296
  21  0.204726
  22  0.104891
Done.

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

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.000e-04  2.813e-05  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  1.899e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  9.152e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
454    Prefactor:  1.131e+00  1.049e-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:  6.426e-01  2.047e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/353860/likelihoodResults_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.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) = 8372.66233451
delta logL = -0.0025511577096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8372.65976218
delta logL = 2.11657516047e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5376       1.0000          .0000       5.0000    
     3 'Normalizat'    .64263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1312       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=   8372.660     FROM MIGRAD    STATUS=FAILED       112 CALLS      314 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11201E-03    37.820        .15877E-01** at limit **
   2  alpha         3.6537        2.5699        .50000       -.80040E-04
   3  Normalizat    .64264        .35250E-01    .41547E-03    .10035E-02
   4  Prefactor     1.1312        .17281E-01    .16338E-03    .24965E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8372.660     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      415 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11201E-03    37.820        .81968E-03** at limit **
   2  alpha         3.6537        2.5699        .16983E-02   -.80040E-04
   3  Normalizat    .64264        .35250E-01    .42302E-04    .10035E-02
   4  Prefactor     1.1312        .17281E-01    .20604E-04    .24965E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8372.660     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      458 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10251E-03    15.818        .21484E-01** at limit **
   2  alpha         3.6495        3.1718        .50000       -.72995E-04
   3  Normalizat    .64263        .27429E-01    .83095E-04   -.32535E-03
   4  Prefactor     1.1312        .13798E-01    .32675E-04   -.65480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102512
  alpha      = 3.64948
  Normalizat = 0.642633
  Prefactor  = 1.13119
 **********
 **   18 **HESSE 
 **********

 FCN=   8372.660     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      497 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10251E-03    22.148        .19072E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6495        3.1135        .50000        .47776    
   3  Normalizat    .64263        .30031E-01    .16619E-04   -1.0620    
   4  Prefactor     1.1312        .14991E-01    .65350E-05   -.88476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30306e-09
Minuit parameter uncertainties:
  1  0.0149222
  2  12.2235
  3  0.0300316
  4  0.0149909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353860': 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): 102
logL (Free Index) = 8372.65975886
delta logL = 2.44917591772e-05

Extracting fit parameters...

4FGL J0418.1-0252
   Spectrum: LogParabola
219         norm:  1.025e-04  1.492e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        alpha:  3.649e+00  1.222e+01  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.131e+00  1.499e-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:  6.426e-01  3.003e-02  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/353860/cmap_HighResolution_336528001_336787201_4FGL_J0418.1-0252_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-08-20 10:44:13.510694', job_id='353860', GAL2='1.13', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1629481453.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.45e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='375' AND source_name='4FGL J0418.1-0252' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:44:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 353860: <4FGL_J0418.1-0252_daily_bin375> in cluster <slac> Done

Job <4FGL_J0418.1-0252_daily_bin375> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 10:30:59 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:31:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:31:01 2021
Terminated at Fri Aug 20 10:44:14 2021
Results reported at Fri Aug 20 10:44:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0418.1-0252_daily_bin375 64.5321 -2.8795 336528001 336787201 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 :                                   772.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

