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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1300
RA = 64.0722, Dec = -43.8879
tmin = 576288001, tmax = 576547201
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='332815', job_status='RUN', time_executed='2021-08-20 09:16:42.021860', time_epoch_executed='1629476202.02' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332815

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332815/ft1_4FGL_J0416.2-4353_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332815/ft1_4FGL_J0416.2-4353_daily_bin1300.fits outfile=/scratch/kocevski/332815/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1300.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=576288001.0 tmax=576547201.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 3.28
user 3.06
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.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/332815/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/332815/ltcube_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.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/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits
.....................!
real 10.51
user 10.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/332815/ltcube_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.fits outfile=/scratch/kocevski/332815/expmap_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.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/332815/ltcube_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.fits
.....................!
real 191.67
user 185.87
sys 5.48

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/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.fits scfile=/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits outfile=/scratch/kocevski/332815/cmap_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.fits scfile=/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits outfile=/scratch/kocevski/332815/cmap_HighResolution_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/332815/ft2_4FGL_J0416.2-4353_daily_bin1300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332815/Model_4FGL_J0416.2-4353_daily_bin1300.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/332815/ft1_filtered_4FGL_J0416.2-4353_daily_bin1300.fits.....................!
real 97.43
user 95.99
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   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      '    1.4201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9630       1.0000         .10000E-03   10000.    
     8 'norm      '    39.654       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4116       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14657E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.317       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    240.72       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76728       1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8512       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1287       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3791       1.0000         .10000E-03   10000.    
    21 'norm      '    17.295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.795       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.903       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5771       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91074       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1607       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=   4603.249     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3343 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.950        .65917E-05** at limit **
   2  Prefactor     .10000E-03    5.7113       -.19857E-07** at limit **
   3  norm          .10000E-03    1.6542       -.24791E-06** at limit **
   4  norm          1.4201        .87453       -.38573E-08   -.26677E-03
   5  Prefactor     65.270        54.907        .41217E-05   -.11010E-05
   6  Prefactor     .10000E-03    34.517        .35374E-04** at limit **
   7  norm          1.9628        .65355       -.52728E-08   -.17982E-02
   8  norm          39.654        14.286        .19472E-06   -.10828E-03
   9  Prefactor     5.3891        25.382        .21057E-04    .36122E-04
  10  Prefactor     .10000E-03    30.713       -.36287E-04** at limit **
  11  Prefactor     .10000E-03    10.583        .52777E-05** at limit **
  12  norm          .10000E-03    3.9373       -.11283E-05** at limit **
  13  Prefactor     13.317        16.058       -.25454E-06   -.22268E-04
  14  norm          1.5760        1.0120        .53106E-07   -.32583E-03
  15  Prefactor     240.72        115.25       -.44396E-05    .59527E-04
  16  Prefactor     .76191        3.4699       -.28952E-06   -.68458E-03
  17  norm          .10000E-03    11.762       -.78742E-05** at limit **
  18  norm          7.8471        3.7527        .29469E-06    .64426E-03
  19  Prefactor     1.1356        6.6423       -.92297E-06   -.66196E-03
  20  Prefactor     9.3759        24.281        .12424E-05    .30529E-04
  21  norm          17.292        10.826        .19119E-06    .15046E-03
  22  Prefactor     .10000E-03    175.27       -.27945E-04** at limit **
  23  Prefactor     50.797        37.180        .41549E-06    .12107E-04
  24  Prefactor     13.902        41.345       -.23774E-05    .34057E-05
  25  Prefactor     3.5762        4.0698        .41162E-07   -.29651E-03
  26  Normalizat    .91062        .24778       -.12117E-05    .60491E-04
  27  Prefactor     1.1607        .26216       -.68592E-06    .84791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.4201
  Prefactor  = 65.2705
  Prefactor  = 0.0001
  norm       = 1.96284
  norm       = 39.6535
  Prefactor  = 5.38905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 13.3174
  norm       = 1.576
  Prefactor  = 240.716
  Prefactor  = 0.761914
  norm       = 0.0001
  norm       = 7.84712
  Prefactor  = 1.13558
  Prefactor  = 9.37593
  norm       = 17.292
  Prefactor  = 0.0001
  Prefactor  = 50.7966
  Prefactor  = 13.9017
  Prefactor  = 3.57623
  Normalizat = 0.910623
  Prefactor  = 1.16069
 **********
 **   18 **HESSE 
 **********

 FCN=   4603.249     FROM HESSE     STATUS=OK           488 CALLS     3831 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7123        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6661        .85210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4201        .87126        .48346E-04   -1.5470    
   5  Prefactor     65.270        54.936        .24839E-03   -1.4090    
   6  Prefactor     .10000E-03    34.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9628        .65447        .29538E-04   -1.5428    
   8  norm          39.654        14.309        .31826E-03   -1.4448    
   9  Prefactor     5.3891        24.792        .17274E-03   -1.5244    
  10  Prefactor     .10000E-03    30.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.0999        .25549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.317        16.432        .10976E-03   -1.4978    
  14  norm          1.5760        1.0287        .45241E-04   -1.5457    
  15  Prefactor     240.72        114.86        .26097E-04   -1.2592    
  16  Prefactor     .76191        3.0584        .22090E-03   -1.5533    
  17  norm          .10000E-03    11.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8471        3.5598        .70498E-04   -1.5148    
  19  Prefactor     1.1356        5.4439        .23815E-03   -1.5495    
  20  Prefactor     9.3759        24.204        .13086E-03   -1.5095    
  21  norm          17.292        10.750        .96307E-04   -1.4876    
  22  Prefactor     .10000E-03    175.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.797        37.170        .56270E-04   -1.4281    
  24  Prefactor     13.902        41.400        .10742E-03   -1.4962    
  25  Prefactor     3.5762        4.0500        .13706E-03   -1.5330    
  26  Normalizat    .91062        .30100        .30000E-03   -.96088    
  27  Prefactor     1.1607        .31947        .29966E-03   -.87550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03158e-09
Minuit parameter uncertainties:
  1  1.27462e-06
  2  1.31055e-06
  3  5.49731e-08
  4  0.871272
  5  54.9783
  6  0.000123742
  7  0.654473
  8  14.3103
  9  23.1333
  10  8.55811e-05
  11  4.15714e-06
  12  0.000239777
  13  16.4377
  14  1.02869
  15  114.971
  16  3.0531
  17  5.22598e-05
  18  3.55988
  19  4.97321
  20  24.2295
  21  10.7513
  22  0.000536178
  23  37.1869
  24  41.4855
  25  4.05028
  26  0.301554
  27  0.32
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  8.558e-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:  1.161e+00  3.200e-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.106e-01  3.016e-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: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332815/likelihoodResults_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.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) = 4603.24897317
delta logL = -0.000155625501975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4603.24881887
delta logL = -1.32134573505e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9379       1.0000          .0000       10.000    
     3 'Normalizat'    .91062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1607       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=   4603.249     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10617E-03    18.949        .18142E-01** at limit **
   2  Index         2.8122        8.5313        .50000        .12915E-04
   3  Normalizat    .91062        .52643E-02    .30000E-03    .42064E-05
   4  Prefactor     1.1607        .58893E-02    .29966E-03   -.29972E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106166
  Index      = 2.81218
  Normalizat = 0.910624
  Prefactor  = 1.16069
 **********
 **   18 **HESSE 
 **********

 FCN=   4603.249     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10617E-03    124.68        .31697E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8122        5.5226        .50000       -.45289    
   3  Normalizat    .91062        .13490E-01    .12000E-04   -.96088    
   4  Prefactor     1.1607        .15091E-01    .11986E-04   -.87550    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6015e-09
Minuit parameter uncertainties:
  1  0.055572
  2  406.535
  3  0.0134897
  4  0.0150912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332815': 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) = 4603.2488182
delta logL = -6.52172275295e-07

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.062e-04  5.557e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.812e+00  4.065e+02  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:  1.161e+00  1.509e-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:  9.106e-01  1.349e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/332815/cmap_HighResolution_576288001_576547201_4FGL_J0416.2-4353_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-08-20 09:28:53.801392', job_id='332815', GAL2='1.16', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629476933.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-6.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1300' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:28:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 332815: <4FGL_J0416.2-4353_daily_bin1300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1300 64.0722 -43.8879 576288001 576547201 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            807 sec.

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

