/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 230 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7395
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0416.2-4353_daily_bin1722
RA = 64.0722, Dec = -43.8879
tmin = 685670401, tmax = 685929601
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='229588', job_status='RUN', time_executed='2022-09-27 00:10:10.559413', time_epoch_executed='1664262610.56' WHERE source_name='4FGL J0416.2-4353' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229588/ft1_4FGL_J0416.2-4353_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229588/ft1_4FGL_J0416.2-4353_daily_bin1722.fits outfile=/scratch/kocevski/229588/ft1_filteredMKT_4FGL_J0416.2-4353_daily_bin1722.fits ra=64.0722 dec=-43.8879 rad=12.0 tmin=685670401.0 tmax=685929601.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.67
user 3.41
sys 0.21

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

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

Number of photons that the gtmktime cut: 535

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229588/ltcube_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.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/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits
.....................!
real 17.16
user 16.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229588/ltcube_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.fits outfile=/scratch/kocevski/229588/expmap_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.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/229588/ltcube_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.fits
.....................!
real 192.69
user 185.81
sys 5.59

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_8years/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/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits scfile=/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits outfile=/scratch/kocevski/229588/cmap_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits scfile=/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits outfile=/scratch/kocevski/229588/cmap_HighResolution_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229588/Model_4FGL_J0416.2-4353_daily_bin1722.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/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits.....................!
real 120.60
user 119.06
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits', '/scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits', expMap='/scratch/kocevski/229588/expmap_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.fits', expCube='/scratch/kocevski/229588/ltcube_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229588/Model_4FGL_J0416.2-4353_daily_bin1722.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  0.000e+00  1.000e+06 ( 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/229588/ft1_filtered_4FGL_J0416.2-4353_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229588/ft2_4FGL_J0416.2-4353_daily_bin1722.fits
Exposure map: /scratch/kocevski/229588/expmap_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229588/ltcube_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229588/Model_4FGL_J0416.2-4353_daily_bin1722.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5830.01193465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16891E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2540       1.0000          .0000       .10000E+07
     3 'norm      '    .22243E-06   1.0000          .0000       .10000E+07
     4 'norm      '    1.9561       1.0000          .0000       .10000E+07
     5 'Prefactor '    32.544       1.0000          .0000       .10000E+07
     6 'Prefactor '    33.690       1.0000          .0000       .10000E+07
     7 'norm      '    .76640       1.0000          .0000       .10000E+07
     8 'norm      '    13.957       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.9056       1.0000          .0000       .10000E+07
    10 'Prefactor '    29.664       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.5722       1.0000          .0000       .10000E+07
    12 'norm      '    1.1530       1.0000          .0000       .10000E+07
    13 'Prefactor '    .93796E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .87890       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21055E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.2936       1.0000          .0000       .10000E+07
    17 'norm      '    11.720       1.0000          .0000       .10000E+07
    18 'norm      '    1.8960       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.9715       1.0000          .0000       .10000E+07
    20 'Prefactor '    .15469E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .58398E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    48.390       1.0000          .0000       .10000E+07
    23 'Prefactor '    .16154E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    5.4562       1.0000          .0000       .10000E+07
    25 'Normalizat'    .89923       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5825.625     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1338 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53291E-08    9.1162        .17356E-07** at limit **
   2  Prefactor     3.4051        3.1314       -.17522E-07    .15165E-02
   3  norm          .22204E-09    2.7191        .76888E-07** at limit **
   4  norm          1.9563        .95390       -.81274E-08   -.91508E-03
   5  Prefactor     32.071        20.236        .19530E-07   -.30995E-01
   6  Prefactor     33.687        1.9298       -.12376E-08   -.18570E-01
   7  norm          .76723        .40097       -.21542E-07   -.21928E-01
   8  norm          13.900        9.0253        .25752E-07   -.36681E-02
   9  Prefactor     9.7254        11.622       -.22624E-08    .12496    
  10  Prefactor     30.190        22.593       -.40398E-08    .71218E-01
  11  Prefactor     9.4953        12.660        .43333E-07    .49715E-01
  12  norm          1.1607        2.9101        .21922E-07    .99108E-03
  13  Prefactor     .80508E-06    20.860        .15463E-06** at limit **
  14  norm          .87967        .53452        .37745E-09    .43873E-02
  15  Prefactor     .24021E-05    69.296       -.50043E-07** at limit **
  16  Prefactor     2.2629        4.1534       -.15501E-06   -.63773E-02
  17  norm          12.000        7.2151        .79736E-08    .15842E-01
  18  norm          1.8936        1.5196       -.21250E-07   -.62948E-02
  19  Prefactor     9.9545        4.5320       -.35362E-08   -.46354E-02
  20  Prefactor     .16098E-08    6.7434       -.90595E-07** at limit **
  21  norm          .16653E-09    1.6389       -.89833E-07** at limit **
  22  Prefactor     47.871        43.318       -.64514E-07    .66519E-01
  23  Prefactor     .56521E-06    21.917        .20340E-06** at limit **
  24  Prefactor     5.4584        2.9250       -.99415E-08    .50665E-04
  25  Normalizat    .89935        .24563        .24801E-05    .34950E-03
  26  Prefactor     1.2069        .26814        .24357E-06    .33984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.32907e-09
  Prefactor  = 3.40505
  norm       = 2.22045e-10
  norm       = 1.95627
  Prefactor  = 32.0711
  Prefactor  = 33.6866
  norm       = 0.767226
  norm       = 13.8997
  Prefactor  = 9.7254
  Prefactor  = 30.1903
  Prefactor  = 9.49529
  norm       = 1.16073
  Prefactor  = 8.05078e-07
  norm       = 0.879671
  Prefactor  = 2.40208e-06
  Prefactor  = 2.2629
  norm       = 12.0003
  norm       = 1.89361
  Prefactor  = 9.95454
  Prefactor  = 1.60982e-09
  norm       = 1.66533e-10
  Prefactor  = 47.8712
  Prefactor  = 5.65215e-07
  Prefactor  = 5.45842
  Normalizat = 0.899354
  Prefactor  = 1.20687
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.625     FROM HESSE     STATUS=OK           516 CALLS     1854 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53291E-08    9.1287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4051        15.791        .56119E-03   -1.5671    
   3  norm          .22204E-09    2.7013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9563        .95601        .74152E-03   -1.5680    
   5  Prefactor     32.071        30.744        .17532E-03   -1.5595    
   6  Prefactor     33.687        20.949        .17231E-03   -1.5592    
   7  norm          .76723        .40659        .55473E-03   -1.5690    
   8  norm          13.900        9.0251        .26785E-03   -1.5633    
   9  Prefactor     9.7254        16.749        .31814E-03   -1.5646    
  10  Prefactor     30.190        35.271        .18363E-03   -1.5598    
  11  Prefactor     9.4953        13.497        .32366E-03   -1.5646    
  12  norm          1.1607        3.0017        .10761E-02   -1.5686    
  13  Prefactor     .80508E-06    21.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .87967        .53645        .47230E-03   -1.5689    
  15  Prefactor     .24021E-05    100.40        .16968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2629        4.3166        .67746E-03   -1.5678    
  17  norm          12.000        12.321        .29237E-03   -1.5639    
  18  norm          1.8936        1.5251        .75519E-03   -1.5680    
  19  Prefactor     9.9545        4.6241        .31708E-03   -1.5645    
  20  Prefactor     .16098E-08    6.7526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .16653E-09    1.6408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.871        49.346        .14377E-03   -1.5570    
  23  Prefactor     .56521E-06    22.629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.4584        2.9329        .42993E-03   -1.5661    
  25  Normalizat    .89935        .21072        .44892E-01   -.96483    
  26  Prefactor     1.2069        .22428        .63106E-01   -.86120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30111e-06
Minuit parameter uncertainties:
  1  0.000442084
  2  14.6655
  3  4.94191e-05
  4  0.956009
  5  30.7442
  6  20.9492
  7  0.40659
  8  9.02516
  9  16.7495
  10  35.2715
  11  13.4973
  12  3.00173
  13  0.00831944
  14  0.536452
  15  0.0310598
  16  4.31662
  17  12.3208
  18  1.52512
  19  4.62407
  20  0.000208104
  21  3.22123e-05
  22  49.3466
  23  0.00715256
  24  2.93294
  25  0.210916
  26  0.224458
Done.

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

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  3.019e+01  3.527e+01  0.000e+00  1.000e+06 ( 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.207e+00  2.245e-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.994e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 64.072 -43.888
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 8.96e-06 +/- 1.05e-05

TS (Fixed Index): 1.20
Ra Dec: 64.072 -43.888
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229588/likelihoodResults_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.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) = 5825.47378038
delta logL = 0.151063164846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5825.19048127
delta logL = 0.434362275262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14378       1.0000          .0000       .10000E+07
     2 'Index     '    6.2637       1.0000          .0000       10.000    
     3 'Normalizat'    .81474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2867       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=   5825.190     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      337 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14057        1.6975        .48820E-03** at limit **
   2  Index         6.2770        2.8168        .14316        .16337E-03
   3  Normalizat    .81491        .46376E-01    .66796E-01    .35590E-04
   4  Prefactor     1.2861        .52484E-01    .61475E-01    .78882E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.140574
  Index      = 6.27704
  Normalizat = 0.814912
  Prefactor  = 1.28614
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.190     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      372 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14057        4.3383        .22269E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2770        7.6976        .53159E-02    .25827    
   3  Normalizat    .81491        .17854        .29552E-03   -.99518    
   4  Prefactor     1.2861        .19743        .27187E-03   -.83720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45068e-11
Minuit parameter uncertainties:
  1  1.56186
  2  5.92696
  3  0.178667
  4  0.197541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229588': 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) = 5825.19046556
delta logL = 0.434377986432

Extracting fit parameters...

4FGL J0416.2-4353
   Spectrum: PowerLaw
299    Prefactor:  1.406e-01  1.562e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  6.277e+00  5.927e+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:  1.286e+00  1.975e-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.149e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 64.072 -43.888
Photon Index (Free Index): 6.28 +/- 5.93
Photon Flux (Free Index): 7.97e-08 +/- 6.47e-08
Energy Flux (Free Index): 9.80e-06 +/- 9.26e-06

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/229588/cmap_HighResolution_685670401_685929601_4FGL_J0416.2-4353_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='9.80e-06', photon_flux_error='3.79e-08', dlogl='4.34e-01', energy_flux='8.96e-06', photon_flux2='7.97e-08', job_status='DONE', time_completed='2022-09-27 00:21:28.670628', photon_index_error2='5.93', photon_index2='6.28', ts='1.20', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.26e-06', EG='0.90', time_epoch_completed='1664263288.67', return_code='0', job_id='229588', GAL2='1.29', EG2='0.81', return_code2='102', energy_flux_error='1.05e-05', photon_flux_error2='6.47e-08', ts2='2.24', photon_index='2.55' WHERE bin_id='1722' AND source_name='4FGL J0416.2-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:21:28 PDT 2022

aily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:17:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 229507: <4FGL_J0416.2-4353_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:17 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:05:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:05:44 2022
Terminated at Tue Sep 27 00:17:54 2022
Results reported at Tue Sep 27 00:17:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1722 64.0722 -43.8879 685670401 685929601 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 :                                   547.00 sec.
    Max Memory :                                 782 MB
    Average Memory :                             291.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            757 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 229588: <4FGL_J0416.2-4353_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0416.2-4353_daily_bin1722> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:22 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:06:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:06:12 2022
Terminated at Tue Sep 27 00:21:29 2022
Results reported at Tue Sep 27 00:21:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.2-4353_daily_bin1722 64.0722 -43.8879 685670401 685929601 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 :                                   679.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            967 sec.

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

