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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1535
RA = 64.0722, Dec = -43.8879
tmin = 637200001, tmax = 637459201
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='334253', job_status='RUN', time_executed='2021-08-20 09:22:05.971200', time_epoch_executed='1629476525.97' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334253/ft1_4FGL_J0416.2-4353_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334253/ft1_4FGL_J0416.2-4353_daily_bin1535.fits outfile=/scratch/kocevski/334253/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1535.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=637200001.0 tmax=637459201.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.11
user 3.77
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.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/334253/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1535.fits evtable="EVENTS" outfile="/scratch/kocevski/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.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 0.53
user 0.25
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/334253/ltcube_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.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/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits
.....................!
real 8.70
user 8.27
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/334253/ltcube_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.fits outfile=/scratch/kocevski/334253/expmap_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.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/334253/ltcube_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.fits
.....................!
real 140.49
user 137.02
sys 3.25

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/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.fits scfile=/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits outfile=/scratch/kocevski/334253/cmap_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.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 0.56
user 0.29
sys 0.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.fits scfile=/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits outfile=/scratch/kocevski/334253/cmap_HighResolution_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.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 0.55
user 0.29
sys 0.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/334253/ft2_4FGL_J0416.2-4353_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334253/Model_4FGL_J0416.2-4353_daily_bin1535.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/334253/ft1_filtered_4FGL_J0416.2-4353_daily_bin1535.fits.....................!
real 102.64
user 101.37
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4393       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4960       1.0000         .10000E-03   10000.    
     8 'norm      '    30.062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0419       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.077       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    117.63       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96580       1.0000         .10000E-03   10000.    
    17 'norm      '    83.578       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .40360E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13162E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.494       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.7054       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86077       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94794       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=   6783.543     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3338 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.589        32.641        .10926E-06    .11647E-04
   2  Prefactor     .10000E-03    14.632        .39099E-06** at limit **
   3  norm          .10000E-03    1.1154       -.54843E-08** at limit **
   4  norm          .10000E-03    .22095       -.57809E-08** at limit **
   5  Prefactor     29.060        36.590        .24021E-06    .11443E-04
   6  Prefactor     7.4396        8.9563        .60185E-08    .18473E-07
   7  norm          2.4961        .53663        .84795E-08   -.35078E-04
   8  norm          30.062        10.700       -.10128E-07   -.93900E-05
   9  Prefactor     .10000E-03    4.2768        .92320E-07** at limit **
  10  Prefactor     .10000E-03    13.441       -.35609E-06** at limit **
  11  Prefactor     9.0419        12.272        .51999E-07   -.29061E-05
  12  norm          .10000E-03    3.3979        .68795E-06** at limit **
  13  Prefactor     14.078        13.108        .21697E-06   -.18673E-04
  14  norm          2.4118        .89716       -.19503E-07   -.34877E-04
  15  Prefactor     117.66        71.136        .33456E-06    .42229E-04
  16  Prefactor     .96292        3.5833        .17913E-05    .23077E-04
  17  norm          83.564        19.399       -.72532E-08   -.33048E-03
  18  norm          4.2175        1.8478        .20280E-06   -.68962E-05
  19  Prefactor     .10003E-03    1.1949        .75253E-07** at limit **
  20  Prefactor     .10000E-03    6.9552       -.33029E-07** at limit **
  21  norm          .10000E-03    2.5453       -.59840E-07** at limit **
  22  Prefactor     .10000E-03    30.399        .10442E-06** at limit **
  23  Prefactor     .10000E-03    32.454       -.86904E-06** at limit **
  24  Prefactor     27.493        29.346        .83504E-07   -.30655E-05
  25  Prefactor     8.7044        2.7554        .69144E-07    .14823E-05
  26  Normalizat    .86069        .18926       -.10166E-05   -.38821E-04
  27  Prefactor     .94792        .19845        .10083E-05   -.77754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5887
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.0602
  Prefactor  = 7.43959
  norm       = 2.49605
  norm       = 30.0624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.04187
  norm       = 0.0001
  Prefactor  = 14.0776
  norm       = 2.41178
  Prefactor  = 117.658
  Prefactor  = 0.96292
  norm       = 83.5643
  norm       = 4.21754
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4934
  Prefactor  = 8.70435
  Normalizat = 0.860685
  Prefactor  = 0.947922
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.543     FROM HESSE     STATUS=OK           492 CALLS     3830 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.589        32.624        .72447E-04   -1.4601    
   2  Prefactor     .10000E-03    14.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1211        .84930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .22391        .37760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.060        36.590        .74324E-04   -1.4629    
   6  Prefactor     7.4396        8.9557        .14704E-03   -1.5162    
   7  norm          2.4961        .53873        .25993E-04   -1.5392    
   8  norm          30.062        10.725        .73075E-04   -1.4611    
   9  Prefactor     .10000E-03    4.2794        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0419        12.270        .13329E-03   -1.5106    
  12  norm          .10000E-03    3.4710        .29386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.078        13.372        .10675E-03   -1.4957    
  14  norm          2.4118        .91615        .38832E-04   -1.5397    
  15  Prefactor     117.66        71.387        .18550E-03   -1.3534    
  16  Prefactor     .96292        3.4898        .25073E-03   -1.5512    
  17  norm          83.564        18.545        .43939E-04   -1.3877    
  18  norm          4.2175        1.8363        .70295E-04   -1.5297    
  19  Prefactor     .10003E-03    6.5805        .16768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6165        .25655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.493        29.353        .76403E-04   -1.4659    
  25  Prefactor     8.7044        2.7540        .73974E-04   -1.5118    
  26  Normalizat    .86069        .21923        .27996E-03   -.97856    
  27  Prefactor     .94792        .23053        .29779E-03   -.94486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21256e-09
Minuit parameter uncertainties:
  1  32.6426
  2  8.92152e-05
  3  1.96469e-08
  4  2.08448e-08
  5  36.6179
  6  8.95731
  7  0.538735
  8  10.7259
  9  1.7049e-06
  10  9.13617e-05
  11  12.273
  12  4.37233e-06
  13  13.3746
  14  0.916152
  15  71.4391
  16  3.49058
  17  18.5465
  18  1.8363
  19  0.000847072
  20  1.91312e-05
  21  1.28868e-05
  22  0.000125222
  23  0.00022944
  24  29.3687
  25  2.75405
  26  0.219457
  27  0.230766
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  9.136e-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:  9.479e-01  2.308e-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:  8.607e-01  2.195e-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: 6.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334253/likelihoodResults_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.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) = 6783.54338581
delta logL = -0.000353038132744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6783.54303277
delta logL = 2.94585333904e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5432       1.0000          .0000       10.000    
     3 'Normalizat'    .86069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94793       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6783.543     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    553.63        .18142E-02** at limit **
   2  Index         2.4737        5.5857        .50000        .26363E-05
   3  Normalizat    .86068        .29125E-01    .27996E-03   -.48324E-05
   4  Prefactor     .94792        .32521E-01    .29779E-03    .76354E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100526
  Index      = 2.47371
  Normalizat = 0.860685
  Prefactor  = 0.947923
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.543     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    1920.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4737        8.7488        .50000       -.52968    
   3  Normalizat    .86068        .68560E-01    .11198E-04   -.97856    
   4  Prefactor     .94792        .76534E-01    .11911E-04   -.94486    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66686e-08
Minuit parameter uncertainties:
  1  0.0657865
  2  3949.6
  3  0.0685674
  4  0.076543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334253': 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) = 6783.54303274
delta logL = 3.42161001754e-08

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.005e-04  6.579e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.474e+00  3.950e+03  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:  9.479e-01  7.654e-02  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:  8.607e-01  6.857e-02  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/334253/cmap_HighResolution_637200001_637459201_4FGL_J0416.2-4353_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2021-08-20 09:33:45.217248', job_id='334253', GAL2='0.95', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629477225.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1535' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:33:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 334253: <4FGL_J0416.2-4353_daily_bin1535> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1535> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 09:20:28 2021
Job was executed on host(s) <bullet0189>, 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:33:45 2021
Results reported at Fri Aug 20 09:33:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1535 64.0722 -43.8879 637200001 637459201 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 :                                   697.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

