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


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1156
RA = 64.0722, Dec = -43.8879
tmin = 538963201, tmax = 539222401
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='330785', job_status='RUN', time_executed='2021-08-20 09:12:27.436212', time_epoch_executed='1629475947.44' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330785/ft1_4FGL_J0416.2-4353_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330785/ft1_4FGL_J0416.2-4353_daily_bin1156.fits outfile=/scratch/kocevski/330785/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1156.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=538963201.0 tmax=539222401.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.06
user 4.32
sys 1.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.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/330785/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.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 2.00
user 0.34
sys 1.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/330785/ltcube_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.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/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits
.....................!
real 13.27
user 11.23
sys 2.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/330785/ltcube_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.fits outfile=/scratch/kocevski/330785/expmap_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.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/330785/ltcube_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.fits
.....................!
real 192.49
user 186.07
sys 6.09

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/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.fits scfile=/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits outfile=/scratch/kocevski/330785/cmap_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.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.97
user 0.38
sys 1.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.fits scfile=/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits outfile=/scratch/kocevski/330785/cmap_HighResolution_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.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.99
user 0.41
sys 1.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/330785/ft2_4FGL_J0416.2-4353_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330785/Model_4FGL_J0416.2-4353_daily_bin1156.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/330785/ft1_filtered_4FGL_J0416.2-4353_daily_bin1156.fits.....................!
real 119.61
user 116.29
sys 3.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.064       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.969       1.0000         .10000E-03   10000.    
     3 'norm      '    9.6437       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.326       1.0000         .10000E-03   10000.    
     7 'norm      '    .37912E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.740       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6234       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9832       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1742       1.0000         .10000E-03   10000.    
    17 'norm      '    12.751       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9476       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6461       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.130       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1631       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2605       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .56318       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=   5727.626     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3312 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.094        36.004       -.83239E-05   -.16387E-04
   2  Prefactor     10.972        11.848       -.42623E-06    .59806E-04
   3  norm          9.6425        3.9657        .27665E-06   -.11139E-03
   4  norm          1.3005        .79093        .14492E-06    .30807E-03
   5  Prefactor     1.2014        379.17       -.47365E-04   -.11323E-04
   6  Prefactor     18.336        13.994       -.48200E-05   -.37791E-03
   7  norm          .10032E-03    .26685        .64858E-06** at limit **
   8  norm          .10000E-03    4.8115        .28095E-06** at limit **
   9  Prefactor     7.7541        16.512        .52565E-05   -.33743E-04
  10  Prefactor     .10000E-03    10.838       -.18142E-05** at limit **
  11  Prefactor     15.758        14.564       -.16435E-04   -.52541E-03
  12  norm          .10000E-03    1.9447       -.18703E-06** at limit **
  13  Prefactor     1.6127        23.350        .14421E-04   -.17729E-03
  14  norm          1.9836        .92482        .78674E-07   -.31184E-02
  15  Prefactor     27.176        57.262        .28209E-05   -.16675E-05
  16  Prefactor     7.1714        4.0347       -.22879E-06   -.21631E-03
  17  norm          12.751        10.595       -.19131E-06   -.84326E-04
  18  norm          1.9481        1.8871       -.86919E-08   -.13182E-03
  19  Prefactor     7.6425        3.9602       -.22370E-06   -.27966E-03
  20  Prefactor     .10000E-03    19.831        .25257E-06** at limit **
  21  norm          .10000E-03    7.9156       -.27554E-06** at limit **
  22  Prefactor     .10000E-03    32.251       -.64593E-05** at limit **
  23  Prefactor     .10000E-03    9.6584        .16525E-05** at limit **
  24  Prefactor     47.130        45.997       -.39891E-05   -.47707E-05
  25  Prefactor     7.1623        3.0226       -.12473E-06   -.70768E-04
  26  Normalizat    1.2607        .19334        .96629E-06   -.56820E-03
  27  Prefactor     .56320        .20634        .21705E-05   -.21988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.0937
  Prefactor  = 10.9725
  norm       = 9.6425
  norm       = 1.30054
  Prefactor  = 1.20137
  Prefactor  = 18.3359
  norm       = 0.000100318
  norm       = 0.0001
  Prefactor  = 7.7541
  Prefactor  = 0.0001
  Prefactor  = 15.7584
  norm       = 0.0001
  Prefactor  = 1.61269
  norm       = 1.98357
  Prefactor  = 27.1765
  Prefactor  = 7.17142
  norm       = 12.7511
  norm       = 1.94806
  Prefactor  = 7.64252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.1298
  Prefactor  = 7.16228
  Normalizat = 1.26067
  Prefactor  = 0.563201
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.626     FROM HESSE     STATUS=OK           498 CALLS     3810 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.094        35.933        .53105E-04   -1.4195    
   2  Prefactor     10.972        11.848        .12096E-03   -1.5045    
   3  norm          9.6425        3.9631        .92989E-04   -1.5087    
   4  norm          1.3005        .78216        .50240E-04   -1.5480    
   5  Prefactor     1.2014        389.44        .36696E-03   -1.5489    
   6  Prefactor     18.336        14.065        .93560E-04   -1.4851    
   7  norm          .10032E-03    .36769        .10157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9360        .32399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7541        16.495        .14393E-03   -1.5151    
  10  Prefactor     .10000E-03    10.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.758        14.563        .10095E-03   -1.4914    
  12  norm          .10000E-03    1.9625        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6127        22.030        .33210E-03   -1.5454    
  14  norm          1.9836        .91463        .38120E-04   -1.5426    
  15  Prefactor     27.176        57.397        .76862E-04   -1.4665    
  16  Prefactor     7.1714        4.0292        .10272E-03   -1.5172    
  17  norm          12.751        10.569        .11218E-03   -1.4994    
  18  norm          1.9481        1.8816        .91232E-04   -1.5429    
  19  Prefactor     7.6425        3.9515        .91555E-04   -1.5155    
  20  Prefactor     .10000E-03    19.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.0989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.130        45.975        .58407E-04   -1.4334    
  25  Prefactor     7.1623        3.0195        .81976E-04   -1.5173    
  26  Normalizat    1.2607        .22992        .22239E-03   -.84748    
  27  Prefactor     .56320        .23991        .35322E-03   -1.0916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76486e-10
Minuit parameter uncertainties:
  1  35.9471
  2  11.8502
  3  3.96316
  4  0.782168
  5  43.5469
  6  14.068
  7  0.000683886
  8  5.97312e-05
  9  16.5048
  10  6.27775e-06
  11  14.566
  12  2.76487e-05
  13  11.9258
  14  0.914638
  15  57.5135
  16  4.02937
  17  10.5703
  18  1.88169
  19  3.95165
  20  2.83813e-05
  21  9.98477e-06
  22  1.56906e-05
  23  7.88564e-06
  24  46.0097
  25  3.01953
  26  0.230106
  27  0.240345
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.278e-06  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:  5.632e-01  2.403e-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.261e+00  2.301e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330785/likelihoodResults_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.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) = 5727.62620648
delta logL = -0.000436345334492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5727.62577007
delta logL = 6.18183548795e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5276       1.0000          .0000       10.000    
     3 'Normalizat'    1.2607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56320       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=   5727.626     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      262 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.098        .18142E-01** at limit **
   2  Index         2.0228        5.6727        .50000        .10787E-06
   3  Normalizat    1.2607        .70840E-02    .22239E-03   -.11778E-03
   4  Prefactor     .56320        .78282E-02    .35322E-03   -.72064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02275
  Normalizat = 1.26068
  Prefactor  = 0.563199
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    230.38        .27546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0228        5.0514        .50000       -.63782    
   3  Normalizat    1.2607        .18472E-01    .44478E-04   -.84748    
   4  Prefactor     .56320        .20413E-01    .14129E-04   -1.0916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44555e-10
Minuit parameter uncertainties:
  1  0.00015022
  2  782.318
  3  0.0184725
  4  0.0204131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330785': 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) = 5727.62576912
delta logL = 1.01366003946e-06

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.502e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.023e+00  7.823e+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:  5.632e-01  2.041e-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:  1.261e+00  1.847e-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/330785/cmap_HighResolution_538963201_539222401_4FGL_J0416.2-4353_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-08-20 09:26:50.263746', job_id='330785', GAL2='0.56', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1629476810.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1156' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 09:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 330785: <4FGL_J0416.2-4353_daily_bin1156> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1156> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 09:10:45 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:10:46 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:10:46 2021
Terminated at Fri Aug 20 09:26:51 2021
Results reported at Fri Aug 20 09:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1156 64.0722 -43.8879 538963201 539222401 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 :                                   885.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

