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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1543
RA = 64.0722, Dec = -43.8879
tmin = 639273601, tmax = 639532801
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='334264', job_status='RUN', time_executed='2021-08-20 09:21:04.745036', time_epoch_executed='1629476464.75' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334264/ft1_4FGL_J0416.2-4353_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334264/ft1_4FGL_J0416.2-4353_daily_bin1543.fits outfile=/scratch/kocevski/334264/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1543.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=639273601.0 tmax=639532801.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 6.39
user 4.99
sys 1.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.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/334264/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1543.fits evtable="EVENTS" outfile="/scratch/kocevski/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.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.59
user 0.32
sys 1.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/334264/ltcube_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.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/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits
.....................!
real 12.68
user 11.06
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/334264/ltcube_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.fits outfile=/scratch/kocevski/334264/expmap_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.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/334264/ltcube_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.fits
.....................!
real 192.80
user 186.43
sys 5.65

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/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits scfile=/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits outfile=/scratch/kocevski/334264/cmap_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.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.62
user 0.36
sys 1.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits scfile=/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits outfile=/scratch/kocevski/334264/cmap_HighResolution_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.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.62
user 0.37
sys 1.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334264/Model_4FGL_J0416.2-4353_daily_bin1543.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/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits.....................!
real 153.01
user 149.40
sys 2.78

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits', '/scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits', expMap='/scratch/kocevski/334264/expmap_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.fits', expCube='/scratch/kocevski/334264/ltcube_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/334264/Model_4FGL_J0416.2-4353_daily_bin1543.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/334264/ft1_filtered_4FGL_J0416.2-4353_daily_bin1543.fits
Spacecraft file(s): /scratch/kocevski/334264/ft2_4FGL_J0416.2-4353_daily_bin1543.fits
Exposure map: /scratch/kocevski/334264/expmap_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.fits
Exposure cube: /scratch/kocevski/334264/ltcube_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/334264/Model_4FGL_J0416.2-4353_daily_bin1543.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) = 7223.5663202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82054       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2230       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22782E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3379       1.0000         .10000E-03   10000.    
     8 'norm      '    18.102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72234E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.956       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13367E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21688E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    36.704       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11629E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    10.118       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17472E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14726       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.805       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93983       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77518       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=   7223.440     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     2386 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3202        35.278       -.85992E-06   -.12759E-03
   2  Prefactor     .78263        15.688        .86502E-05    .37014E-03
   3  norm          2.2239        2.1205       -.10353E-06   -.19697E-03
   4  norm          1.1437        .67324       -.68474E-07   -.78049E-03
   5  Prefactor     .10000E-03    43.933        .61663E-06** at limit **
   6  Prefactor     11.641        13.425        .25058E-06    .11112E-03
   7  norm          2.3392        .45890       -.11414E-07    .85909E-03
   8  norm          18.029        8.3954        .88298E-07    .38616E-03
   9  Prefactor     .10000E-03    3.4133        .48452E-07** at limit **
  10  Prefactor     .10000E-03    15.672       -.82448E-07** at limit **
  11  Prefactor     12.049        13.665       -.69831E-07    .30034E-03
  12  norm          .10000E-03    1.6507        .11304E-06** at limit **
  13  Prefactor     .10047E-03    8.4740       -.26269E-05** at limit **
  14  norm          2.2621        .72782        .11348E-07    .36372E-02
  15  Prefactor     .10000E-03    20.672        .32138E-07** at limit **
  16  Prefactor     .10000E-03    .92394       -.39254E-07** at limit **
  17  norm          36.720        12.814       -.30452E-07    .12386E-03
  18  norm          6.3286        2.0372        .12539E-07    .31209E-03
  19  Prefactor     .10000E-03    1.7743       -.38115E-07** at limit **
  20  Prefactor     .10027E-03    10.260       -.23811E-05** at limit **
  21  norm          10.150        5.6781       -.68440E-07    .61535E-03
  22  Prefactor     .10000E-03    15.074        .27590E-07** at limit **
  23  Prefactor     .10093E-03    15.735       -.67511E-06** at limit **
  24  Prefactor     .10000E-03    9.1036        .36468E-07** at limit **
  25  Prefactor     26.792        4.3386        .10605E-07    .34679E-03
  26  Normalizat    .93995        .16307        .73126E-06    .16569E-03
  27  Prefactor     .77529        .17811       -.19056E-05    .73528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32024
  Prefactor  = 0.782627
  norm       = 2.22393
  norm       = 1.14371
  Prefactor  = 0.000100001
  Prefactor  = 11.6407
  norm       = 2.33925
  norm       = 18.0292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0494
  norm       = 0.0001
  Prefactor  = 0.000100471
  norm       = 2.26205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.7205
  norm       = 6.32859
  Prefactor  = 0.0001
  Prefactor  = 0.000100272
  norm       = 10.1503
  Prefactor  = 0.0001
  Prefactor  = 0.000100934
  Prefactor  = 0.0001
  Prefactor  = 26.7923
  Normalizat = 0.939947
  Prefactor  = 0.775294
 **********
 **   18 **HESSE 
 **********

 FCN=   7223.440     FROM HESSE     STATUS=OK           502 CALLS     2888 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3202        35.365        .22463E-03   -1.5344    
   2  Prefactor     .78263        16.483        .50065E-03   -1.5531    
   3  norm          2.2239        2.1258        .11658E-03   -1.5410    
   4  norm          1.1437        .66819        .51283E-04   -1.5494    
   5  Prefactor     .10000E-03    44.081        .20108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.641        13.433        .11660E-03   -1.5025    
   7  norm          2.3392        .46052        .23660E-04   -1.5402    
   8  norm          18.029        8.4020        .94136E-04   -1.4858    
   9  Prefactor     .10000E-03    3.4159        .15335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.714        .20962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.049        13.411        .11585E-03   -1.5014    
  12  norm          .10000E-03    1.6805        .10663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10047E-03    41.755        .35928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2621        .69508        .35944E-04   -1.5407    
  15  Prefactor     .10000E-03    20.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .93120        .79657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          36.720        12.774        .66152E-04   -1.4495    
  18  norm          6.3286        2.0351        .65338E-04   -1.5205    
  19  Prefactor     .10000E-03    1.8143        .21981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10027E-03    50.854        .44245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.150        5.3325        .12597E-03   -1.5071    
  22  Prefactor     .10000E-03    15.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10093E-03    18.450        .10603       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.1045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.792        4.3352        .68061E-04   -1.4672    
  26  Normalizat    .93995        .19045        .25034E-03   -.95070    
  27  Prefactor     .77529        .20841        .30609E-03   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75346e-08
Minuit parameter uncertainties:
  1  21.6881
  2  7.18514
  3  2.12585
  4  0.668192
  5  0.000321392
  6  13.437
  7  0.460521
  8  8.40254
  9  3.71182e-06
  10  4.17695e-05
  11  13.4144
  12  6.42434e-06
  13  0.00888015
  14  0.69508
  15  1.3917e-05
  16  1.34657e-06
  17  12.7752
  18  2.03515
  19  7.79261e-06
  20  0.00744877
  21  5.3327
  22  7.08792e-06
  23  0.00830609
  24  8.81951e-06
  25  4.3353
  26  0.190582
  27  0.208624
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  4.177e-05  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.753e-01  2.086e-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:  9.399e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/334264/likelihoodResults_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.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) = 7223.44013012
delta logL = -0.000303238300148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7223.4398271
delta logL = -2.1373580239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4411       1.0000          .0000       10.000    
     3 'Normalizat'    .93995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77530       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=   7223.440     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6232.1        .90712E-02** at limit **
   2  Index         2.4540        6.2167        .50000       -.78260E-05
   3  Normalizat    .93995        .75525E-01    .45410E-01    .16418E-04
   4  Prefactor     .77529        .84752E-01    .69179E-01    .23695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45399
  Normalizat = 0.939946
  Prefactor  = 0.775295
 **********
 **   18 **HESSE 
 **********

 FCN=   7223.440     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4540        6.2168        .50000       -.53426    
   3  Normalizat    .93995        .18227        .25034E-03   -.95070    
   4  Prefactor     .77529        .20497        .30609E-03   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19279e-11
Minuit parameter uncertainties:
  1  1.43515e-05
  2  4.8488
  3  0.182388
  4  0.205172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334264': 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) = 7223.43982706
delta logL = -1.77923539013e-07

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.435e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.454e+00  4.849e+00  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.753e-01  2.052e-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:  9.399e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.072 -43.888

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/334264/cmap_HighResolution_639273601_639532801_4FGL_J0416.2-4353_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-08-20 09:36:20.301656', job_id='334264', GAL2='0.78', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629477380.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1543' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 334264: <4FGL_J0416.2-4353_daily_bin1543> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1543> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 09:20:29 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:20:30 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:20:30 2021
Terminated at Fri Aug 20 09:36:21 2021
Results reported at Fri Aug 20 09:36:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1543 64.0722 -43.8879 639273601 639532801 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 :                                   930.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

