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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1395
RA = 64.0722, Dec = -43.8879
tmin = 600912001, tmax = 601171201
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='333005', job_status='RUN', time_executed='2021-08-20 09:16:29.540980', time_epoch_executed='1629476189.54' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333005

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333005/ft1_4FGL_J0416.2-4353_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333005/ft1_4FGL_J0416.2-4353_daily_bin1395.fits outfile=/scratch/kocevski/333005/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1395.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=600912001.0 tmax=601171201.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.41
user 3.35
sys 0.98

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.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/333005/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1395.fits evtable="EVENTS" outfile="/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.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.26
user 0.31
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/333005/ltcube_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.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/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits
.....................!
real 12.78
user 11.52
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/333005/ltcube_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.fits outfile=/scratch/kocevski/333005/expmap_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.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/333005/ltcube_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.fits
.....................!
real 192.27
user 186.06
sys 5.84

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 194 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.2-4353 @ 64.0722 -43.8879

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits scfile=/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits outfile=/scratch/kocevski/333005/cmap_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.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.0722 yref=-43.8879 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.29
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits scfile=/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits outfile=/scratch/kocevski/333005/cmap_HighResolution_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.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.0722 yref=-43.8879 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.30
user 0.37
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333005/Model_4FGL_J0416.2-4353_daily_bin1395.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/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits.....................!
real 141.11
user 138.66
sys 2.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits', '/scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits', expMap='/scratch/kocevski/333005/expmap_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.fits', expCube='/scratch/kocevski/333005/ltcube_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/333005/Model_4FGL_J0416.2-4353_daily_bin1395.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.2-4353'

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  4.485e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/333005/ft1_filtered_4FGL_J0416.2-4353_daily_bin1395.fits
Spacecraft file(s): /scratch/kocevski/333005/ft2_4FGL_J0416.2-4353_daily_bin1395.fits
Exposure map: /scratch/kocevski/333005/expmap_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.fits
Exposure cube: /scratch/kocevski/333005/ltcube_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/333005/Model_4FGL_J0416.2-4353_daily_bin1395.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) = 6842.36336645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3550       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7006       1.0000         .10000E-03   10000.    
     4 'norm      '    .10698E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0839       1.0000         .10000E-03   10000.    
    14 'norm      '    .68251       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0141       1.0000         .10000E-03   10000.    
    17 'norm      '    12.364       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.082       1.0000         .10000E-03   10000.    
    21 'norm      '    6.4894       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6452       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2881       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6842.340     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2843 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.804       -.15140E-04** at limit **
   2  Prefactor     2.3548        13.817       -.90439E-06   -.16581E-03
   3  norm          2.7006        2.1816       -.27992E-07    .53997E-04
   4  norm          .10000E-03    .37310        .33387E-07** at limit **
   5  Prefactor     .10000E-03    13.584       -.70527E-05** at limit **
   6  Prefactor     .10000E-03    14.747        .90609E-05** at limit **
   7  norm          .10000E-03    .11603        .58975E-07** at limit **
   8  norm          10.161        7.6667        .14229E-06   -.26549E-03
   9  Prefactor     .10000E-03    6.8679       -.36467E-06** at limit **
  10  Prefactor     16.492        18.767       -.51364E-07   -.14831E-04
  11  Prefactor     .10000E-03    7.5771        .92577E-06** at limit **
  12  norm          .10000E-03    1.0911        .52091E-06** at limit **
  13  Prefactor     9.0830        9.1766       -.21364E-07   -.21766E-03
  14  norm          .68250        .52222       -.32703E-07   -.59917E-03
  15  Prefactor     .10000E-03    30.325       -.80031E-05** at limit **
  16  Prefactor     3.0143        2.2125        .19466E-06   -.25022E-03
  17  norm          12.365        8.9135       -.83452E-07   -.15421E-03
  18  norm          6.7838        2.0149       -.20642E-07   -.46572E-03
  19  Prefactor     .10000E-03    1.2977        .27405E-06** at limit **
  20  Prefactor     10.082        15.425       -.18585E-06   -.91563E-04
  21  norm          6.4903        6.4018       -.17546E-05   -.46942E-03
  22  Prefactor     .10000E-03    38.472        .28162E-04** at limit **
  23  Prefactor     .10000E-03    6.6018        .22843E-06** at limit **
  24  Prefactor     .10000E-03    29.041       -.12662E-04** at limit **
  25  Prefactor     6.6452        2.4433        .18436E-06   -.20323E-03
  26  Normalizat    1.2881        .16635       -.44563E-06   -.20341E-03
  27  Prefactor     .72331        .17896       -.94110E-07   -.16038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.3548
  norm       = 2.70055
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.161
  Prefactor  = 0.0001
  Prefactor  = 16.4918
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.08299
  norm       = 0.682502
  Prefactor  = 0.0001
  Prefactor  = 3.01426
  norm       = 12.3651
  norm       = 6.78384
  Prefactor  = 0.0001
  Prefactor  = 10.0818
  norm       = 6.49029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6452
  Normalizat = 1.28812
  Prefactor  = 0.72331
 **********
 **   18 **HESSE 
 **********

 FCN=   6842.340     FROM HESSE     STATUS=OK           492 CALLS     3335 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3548        13.851        .26709E-03   -1.5401    
   3  norm          2.7006        2.1795        .10674E-03   -1.5379    
   4  norm          .10000E-03    3.5083        .97013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .29015        .53196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.161        7.5059        .12570E-03   -1.5070    
   9  Prefactor     .10000E-03    6.8925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.492        18.769        .98624E-04   -1.4896    
  11  Prefactor     .10000E-03    7.6077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1030        .84371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0830        9.1270        .13298E-03   -1.5105    
  14  norm          .68250        .51032        .45633E-04   -1.5543    
  15  Prefactor     .10000E-03    30.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0143        2.1986        .98664E-04   -1.5361    
  17  norm          12.365        8.8637        .11392E-03   -1.5005    
  18  norm          6.7838        1.9735        .59595E-04   -1.5187    
  19  Prefactor     .10000E-03    1.9040        .17346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.082        15.373        .12620E-03   -1.5073    
  21  norm          6.4903        6.3782        .15754E-03   -1.5198    
  22  Prefactor     .10000E-03    38.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.6452        2.4396        .74987E-04   -1.5192    
  26  Normalizat    1.2881        .19668        .21954E-03   -.83922    
  27  Prefactor     .72331        .21144        .31424E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80302e-10
Minuit parameter uncertainties:
  1  0.000196659
  2  11.4259
  3  2.17956
  4  4.1311e-05
  5  3.84778e-06
  6  5.28355e-05
  7  5.44588e-06
  8  7.50662
  9  3.96603e-06
  10  18.7756
  11  2.95011e-06
  12  3.55284e-07
  13  9.12841
  14  0.510326
  15  2.27515e-05
  16  2.19869
  17  8.86466
  18  1.97352
  19  5.69202e-05
  20  15.3792
  21  6.37884
  22  1.81656e-07
  23  6.74051e-06
  24  1.97044e-05
  25  2.43959
  26  0.196795
  27  0.211676
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.649e+01  1.878e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  7.233e-01  2.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.288e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 64.072 -43.888
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 4.89e-06 +/- 5.57e-06

TS (Fixed Index): 1.70
Ra Dec: 64.072 -43.888
Photon Flux Upper Limit: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333005/likelihoodResults_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.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) = 6841.88708581
delta logL = 0.452916272999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6841.85200993
delta logL = 0.487992156769

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6841.852     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      222 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.537        31.887        .21107E-02   -.21329E-05
   2  Index         1.8020        .68767        .27074       -.32505E-04
   3  Normalizat    1.2984        .16098        .49489E-01   -.29605E-04
   4  Prefactor     .71539        .17851        .71338E-01   -.45113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5372
  Index      = 1.80203
  Normalizat = 1.29839
  Prefactor  = 0.715387
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.852     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.537        24.760        .84429E-04   -1.4758    
   2  Index         1.8020        .67075        .10911E-01   -.69397    
   3  Normalizat    1.2984        .18993        .21878E-03   -.83614    
   4  Prefactor     .71539        .21039        .31571E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4611e-12
Minuit parameter uncertainties:
  1  24.7712
  2  0.674206
  3  0.190036
  4  0.210624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333005': 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) = 6841.85200799
delta logL = 0.487994094799

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  2.254e+01  2.477e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.802e+00  6.742e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  7.154e-01  2.106e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.298e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 64.072 -43.888
Photon Index (Free Index): 1.80 +/- 0.67
Photon Flux (Free Index): 1.04e-08 +/- 1.39e-08
Energy Flux (Free Index): 1.24e-05 +/- 2.02e-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/333005/cmap_HighResolution_600912001_601171201_4FGL_J0416.2-4353_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='1.24e-05', photon_flux_error='2.02e-08', dlogl='4.88e-01', energy_flux='4.89e-06', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-08-20 09:31:36.777086', photon_index_error2='0.67', photon_index2='1.80', ts='1.70', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='7.49e-08', energy_flux_error2='2.02e-05', EG='1.29', time_epoch_completed='1629477096.78', return_code='0', job_id='333005', GAL2='0.72', EG2='1.30', return_code2='0', energy_flux_error='5.57e-06', photon_flux_error2='1.39e-08', ts2='2.67', photon_index='2.55' WHERE bin_id='1395' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 333005: <4FGL_J0416.2-4353_daily_bin1395> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1395> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 09:15:41 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:15:43 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:15:43 2021
Terminated at Fri Aug 20 09:31:37 2021
Results reported at Fri Aug 20 09:31:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1395 64.0722 -43.8879 600912001 601171201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.2-4353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   917.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

