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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1539
RA = 64.1373, Dec = -18.8724
tmin = 638236801, tmax = 638496001
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='343939', job_status='RUN', time_executed='2021-08-20 09:57:32.103631', time_epoch_executed='1629478652.1' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343939

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343939/ft1_4FGL_J0416.5-1852_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343939/ft1_4FGL_J0416.5-1852_daily_bin1539.fits outfile=/scratch/kocevski/343939/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1539.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=638236801.0 tmax=638496001.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.72
user 3.37
sys 1.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.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/343939/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1539.fits evtable="EVENTS" outfile="/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.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.63
user 0.33
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/343939/ltcube_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.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/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits
.....................!
real 12.99
user 11.36
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/343939/ltcube_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.fits outfile=/scratch/kocevski/343939/expmap_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.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/343939/ltcube_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.fits
.....................!
real 190.84
user 185.04
sys 5.49

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 149 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0416.5-1852 @ 64.1373 -18.8724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits scfile=/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits outfile=/scratch/kocevski/343939/cmap_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.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.1373 yref=-18.8724 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.67
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits scfile=/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits outfile=/scratch/kocevski/343939/cmap_HighResolution_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.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.1373 yref=-18.8724 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.68
user 0.38
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343939/Model_4FGL_J0416.5-1852_daily_bin1539.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits.....................!
real 219.57
user 216.51
sys 2.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits', '/scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits', expMap='/scratch/kocevski/343939/expmap_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.fits', expCube='/scratch/kocevski/343939/ltcube_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/343939/Model_4FGL_J0416.5-1852_daily_bin1539.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.5-1852'

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.793e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/343939/ft1_filtered_4FGL_J0416.5-1852_daily_bin1539.fits
Spacecraft file(s): /scratch/kocevski/343939/ft2_4FGL_J0416.5-1852_daily_bin1539.fits
Exposure map: /scratch/kocevski/343939/expmap_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.fits
Exposure cube: /scratch/kocevski/343939/ltcube_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/343939/Model_4FGL_J0416.5-1852_daily_bin1539.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) = 9543.78270717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22969E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17476E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9820       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .18235E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2497       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9543.667     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2079 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5598        15.412       -.21731E-04   -.85510E-04
   2  Prefactor     .10001E-03    130.47        .47218E-05** at limit **
   3  Prefactor     3.4466        2.1942        .23814E-06   -.67360E-03
   4  Prefactor     6.5909        3.9086       -.42911E-06   -.70924E-03
   5  Prefactor     .10001E-03    1.3446        .58413E-06** at limit **
   6  norm          4.6813        1.1265       -.13576E-07   -.35826E-03
   7  Prefactor     .10000E-03    6.7559       -.27340E-05** at limit **
   8  norm          .10000E-03    .56913       -.54034E-08** at limit **
   9  Prefactor     .10000E-03    5.0917        .94312E-06** at limit **
  10  Prefactor     7.9825        2.6151       -.44663E-07   -.15051E-03
  11  norm          .10000E-03    2.4611       -.64102E-08** at limit **
  12  Prefactor     .10000E-03    4.8887       -.72274E-06** at limit **
  13  Prefactor     .10000E-03    2.8327       -.50798E-07** at limit **
  14  Prefactor     3.2438        2.8629       -.28715E-06   -.50674E-03
  15  Prefactor     5.6475        5.6385        .23146E-07    .13505E-03
  16  Prefactor     .10000E-03    8.2976       -.16079E-06** at limit **
  17  norm          .10000E-03    58.296        .18140E-04** at limit **
  18  Prefactor     .10000E-03    .86897       -.12519E-07** at limit **
  19  Prefactor     .10000E-03    111.50       -.14416E-04** at limit **
  20  norm          2.2498        .25439       -.71320E-08    .15785E-02
  21  Normalizat    .89334        .15416        .21822E-05   -.10820E-03
  22  Prefactor     1.0394        .11753       -.23489E-06    .14083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.55979
  Prefactor  = 0.00010001
  Prefactor  = 3.44664
  Prefactor  = 6.59093
  Prefactor  = 0.000100011
  norm       = 4.68132
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.98254
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2438
  Prefactor  = 5.64754
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24982
  Normalizat = 0.893336
  Prefactor  = 1.03939
 **********
 **   18 **HESSE 
 **********

 FCN=   9543.667     FROM HESSE     STATUS=OK           342 CALLS     2421 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5598        15.526        .18731E-03   -1.5281    
   2  Prefactor     .10001E-03    136.51        .40201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4466        2.1309        .10615E-03   -1.5337    
   4  Prefactor     6.5909        3.8266        .13590E-03   -1.5194    
   5  Prefactor     .10001E-03    6.8987        .20937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6813        1.1284        .48043E-04   -1.5275    
   7  Prefactor     .10000E-03    6.7648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1297        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9825        2.6033        .85983E-04   -1.5143    
  11  norm          .10000E-03    2.4623        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8721        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2438        2.8636        .14831E-03   -1.5348    
  15  Prefactor     5.6475        5.6430        .16905E-03   -1.5233    
  16  Prefactor     .10000E-03    8.3295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    58.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .87000        .88932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    114.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2498        .25470        .16018E-04   -1.5408    
  21  Normalizat    .89334        .17731        .29260E-03   -.96695    
  22  Prefactor     1.0394        .13550        .21950E-03   -.91428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94757e-09
Minuit parameter uncertainties:
  1  15.5397
  2  0.00239829
  3  2.13091
  4  3.82672
  5  0.000549689
  6  1.12842
  7  1.1762e-05
  8  1.28186e-07
  9  1.45805e-06
  10  2.60336
  11  1.04055e-06
  12  3.28944e-06
  13  7.14952e-06
  14  2.86375
  15  5.6435
  16  1.6323e-05
  17  6.88796e-06
  18  8.48246e-07
  19  0.000117851
  20  0.254701
  21  0.177427
  22  0.135548
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  3.244e+00  2.864e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.039e+00  1.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  8.933e-01  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 64.137 -18.872
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 9.84e-06 +/- 8.69e-06

TS (Fixed Index): 2.12
Ra Dec: 64.137 -18.872
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/343939/likelihoodResults_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.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) = 9543.57185644
delta logL = 0.0953061634555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9543.56839982
delta logL = 0.0987627883133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4993       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0455       1.0000          .0000       10.000    
     3 'Normalizat'    .90685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9543.568     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5013        119.66        .54034E-02    .32301E-03
   2  Index         2.0452        5.3939        .25533       -.30505E-04
   3  Normalizat    .90688        .10192        .65689E-01    .25716E-04
   4  Prefactor     1.0326        .60547E-01    .41058E-01    .47191E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50134
  Index      = 2.0452
  Normalizat = 0.906876
  Prefactor  = 1.03257
 **********
 **   18 **HESSE 
 **********

 FCN=   9543.568     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5013        3.1789        .16002E-03   -1.5334    
   2  Index         2.0452        .72776        .12073E-01   -.63225    
   3  Normalizat    .90688        .16807        .29057E-03   -.96219    
   4  Prefactor     1.0326        .13419        .22009E-03   -.91651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3253e-13
Minuit parameter uncertainties:
  1  3.17907
  2  0.731767
  3  0.168169
  4  0.134234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343939': 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) = 9543.56839947
delta logL = 0.0987631374755

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  3.501e+00  3.179e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.045e+00  7.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.033e+00  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  9.069e-01  1.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 64.137 -18.872
Photon Index (Free Index): 2.05 +/- 0.73
Photon Flux (Free Index): 2.11e-08 +/- 2.64e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.61e-05

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/343939/cmap_HighResolution_638236801_638496001_4FGL_J0416.5-1852_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='1.31e-05', photon_flux_error='2.63e-08', dlogl='9.88e-02', energy_flux='9.84e-06', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-08-20 10:11:56.493715', photon_index_error2='0.73', photon_index2='2.05', ts='2.12', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.80e-08', energy_flux_error2='1.61e-05', EG='0.89', time_epoch_completed='1629479516.49', return_code='0', job_id='343939', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='8.69e-06', photon_flux_error2='2.64e-08', ts2='2.30', photon_index='2.39' WHERE bin_id='1539' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:11:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 343939: <4FGL_J0416.5-1852_daily_bin1539> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1539> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 09:55:47 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 09:55:49 2021
Terminated at Fri Aug 20 10:11:57 2021
Results reported at Fri Aug 20 10:11:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1539 64.1373 -18.8724 638236801 638496001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.5-1852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

