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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin897
RA = 64.2269, Dec = 1.088
tmin = 471830401, tmax = 472089601
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='349385', job_status='RUN', time_executed='2021-08-20 10:17:36.175685', time_epoch_executed='1629479856.18' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349385

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349385/ft1_4FGL_J0416.9+0105_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349385/ft1_4FGL_J0416.9+0105_daily_bin897.fits outfile=/scratch/kocevski/349385/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin897.fits ra=64.2269 dec=1.088 rad=12.0 tmin=471830401.0 tmax=472089601.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 7.72
user 3.39
sys 4.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.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/349385/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.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 5.09
user 0.35
sys 4.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/349385/ltcube_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.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/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits
.....................!
real 20.09
user 15.13
sys 4.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/349385/ltcube_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.fits outfile=/scratch/kocevski/349385/expmap_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.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/349385/ltcube_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.fits
.....................!
real 200.59
user 189.40
sys 10.77

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
Added 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0416.9+0105 @ 64.2269 1.088

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits scfile=/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits outfile=/scratch/kocevski/349385/cmap_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.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.2269 yref=1.088 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 4.51
user 0.40
sys 4.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits scfile=/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits outfile=/scratch/kocevski/349385/cmap_HighResolution_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.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.2269 yref=1.088 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 4.54
user 0.41
sys 4.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349385/Model_4FGL_J0416.9+0105_daily_bin897.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 GAL_V02
Working on...
/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits.....................!
real 114.23
user 107.30
sys 6.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits', '/scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits', expMap='/scratch/kocevski/349385/expmap_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.fits', expCube='/scratch/kocevski/349385/ltcube_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/349385/Model_4FGL_J0416.9+0105_daily_bin897.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.9+0105'

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.655e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/349385/ft1_filtered_4FGL_J0416.9+0105_daily_bin897.fits
Spacecraft file(s): /scratch/kocevski/349385/ft2_4FGL_J0416.9+0105_daily_bin897.fits
Exposure map: /scratch/kocevski/349385/expmap_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.fits
Exposure cube: /scratch/kocevski/349385/ltcube_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/349385/Model_4FGL_J0416.9+0105_daily_bin897.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) = 7704.97535038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.583       1.0000         .10000E-03   10000.    
     6 'norm      '    .13923E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.452       1.0000         .10000E-03   10000.    
    10 'norm      '    .81905       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0982       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55096       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93721E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1586       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7704.880     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2102 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4504        2.0147        .67342E-07   -.45777E-04
   2  Prefactor     11.806        31.695       -.25510E-05   -.14518E-03
   3  Prefactor     .10000E-03    9.3295       -.19613E-06** at limit **
   4  norm          .10000E-03    58.756        .34571E-05** at limit **
   5  Prefactor     38.574        27.272       -.49149E-06   -.10633E-03
   6  norm          .10000E-03    3.6513        .18092E-06** at limit **
   7  Prefactor     .10000E-03    14.713       -.53900E-06** at limit **
   8  norm          .10000E-03    7.0280        .84981E-07** at limit **
   9  norm          13.447        19.945        .64883E-06   -.57459E-04
  10  norm          .81976        1.2681        .17968E-06   -.17949E-03
  11  Prefactor     1.5971        1.9273       -.83769E-07   -.25012E-03
  12  Prefactor     9.0019        18.877        .24571E-05   -.10624E-03
  13  Prefactor     .10000E-03    51.369       -.15332E-05** at limit **
  14  Prefactor     4.0962        9.0812        .14368E-06   -.86532E-04
  15  norm          6.1606        3.0141       -.21525E-06   -.14515E-03
  16  Prefactor     .10000E-03    14.596        .52536E-06** at limit **
  17  norm          .55155        2.0386        .12158E-05   -.29746E-03
  18  Prefactor     1.8046        6.9697        .14628E-05   -.83013E-04
  19  Prefactor     .10000E-03    74.489       -.16922E-05** at limit **
  20  norm          .10000E-03    1.3326        .39421E-07** at limit **
  21  Normalizat    1.1585        .24400       -.16098E-05   -.80054E-04
  22  Prefactor     .96634        .87178E-01    .10190E-06   -.23135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.45043
  Prefactor  = 11.8055
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 38.5744
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.4466
  norm       = 0.819757
  Prefactor  = 1.59714
  Prefactor  = 9.00191
  Prefactor  = 0.000100001
  Prefactor  = 4.09618
  norm       = 6.16064
  Prefactor  = 0.0001
  norm       = 0.551552
  Prefactor  = 1.80465
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.1585
  Prefactor  = 0.966342
 **********
 **   18 **HESSE 
 **********

 FCN=   7704.880     FROM HESSE     STATUS=OK           346 CALLS     2448 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4504        2.0173        .79805E-04   -1.5286    
   2  Prefactor     11.806        33.012        .11650E-03   -1.5021    
   3  Prefactor     .10000E-03    9.4117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    61.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.574        27.335        .64527E-04   -1.4465    
   6  norm          .10000E-03    9.0916        .31643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.0856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.447        19.880        .54605E-03   -1.4974    
  10  norm          .81976        1.1242        .10715E-02   -1.5527    
  11  Prefactor     1.5971        1.8647        .11917E-03   -1.5455    
  12  Prefactor     9.0019        18.972        .66786E-03   -1.5108    
  13  Prefactor     .10000E-03    51.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0962        9.0428        .19914E-03   -1.5303    
  15  norm          6.1606        3.0105        .96275E-04   -1.5212    
  16  Prefactor     .10000E-03    14.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55155        2.0646        .22534E-03   -1.5559    
  18  Prefactor     1.8046        6.9964        .31176E-03   -1.5439    
  19  Prefactor     .10000E-03    76.906        .36389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6147        .19530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1585        .27110        .38365E-03   -.87895    
  22  Prefactor     .96634        .98710E-01    .16182E-03   -.93860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50159e-09
Minuit parameter uncertainties:
  1  2.01731
  2  33.0627
  3  5.74183e-06
  4  0.000856863
  5  27.3439
  6  9.58686e-05
  7  8.6974e-05
  8  5.35815e-06
  9  19.8894
  10  1.12423
  11  1.86482
  12  18.9844
  13  0.000476091
  14  9.04579
  15  3.01056
  16  8.87753e-05
  17  2.06486
  18  6.9996
  19  0.000564709
  20  8.20033e-06
  21  0.271425
  22  0.0987288
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.857e+01  2.734e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.663e-01  9.873e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.159e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 3.75e-05 +/- 2.66e-05

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): 0
logL (Free Index) = 7704.86911693
delta logL = 0.0107672480717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7704.85961101
delta logL = 0.0202731666786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.716       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7785       1.0000          .0000       10.000    
     3 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+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=   7704.860     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.707        40.834        .60634E-04    .55799E-04
   2  Index         1.7792        .49138        .70037E-02    .20159E-04
   3  Normalizat    1.1618        .24618        .38320E-03    .75267E-04
   4  Prefactor     .96589        .96388E-01    .16185E-03    .12646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.7067
  Index      = 1.77915
  Normalizat = 1.16181
  Prefactor  = 0.965886
 **********
 **   18 **HESSE 
 **********

 FCN=   7704.860     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.707        39.238        .12127E-04   -1.4385    
   2  Index         1.7792        .47224        .28015E-03   -.69994    
   3  Normalizat    1.1618        .24621        .15328E-04   -.87791    
   4  Prefactor     .96589        .96428E-01    .32370E-04   -.93875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14326e-11
Minuit parameter uncertainties:
  1  39.2612
  2  0.47345
  3  0.246451
  4  0.096445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349385': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7704.85960983
delta logL = 0.0202743457603

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.371e+01  3.926e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.779e+00  4.734e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.659e-01  9.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.162e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.78 +/- 0.47
Photon Flux (Free Index): 3.50e-08 +/- 3.16e-08
Energy Flux (Free Index): 4.46e-05 +/- 5.02e-05

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/349385/cmap_HighResolution_471830401_472089601_4FGL_J0416.9+0105_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='4.46e-05', photon_flux_error='2.77e-08', dlogl='2.03e-02', energy_flux='3.75e-05', photon_flux2='3.50e-08', job_status='DONE', time_completed='2021-08-20 10:28:55.339524', photon_index_error2='0.47', photon_index2='1.78', ts='4.20', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.02e-05', EG='1.16', time_epoch_completed='1629480535.34', return_code='0', job_id='349385', GAL2='0.97', EG2='1.16', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='3.16e-08', ts2='4.24', photon_index='1.88' WHERE bin_id='897' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 349385: <4FGL_J0416.9+0105_daily_bin897> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin897> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:19 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:15:21 2021
Terminated at Fri Aug 20 10:28:56 2021
Results reported at Fri Aug 20 10:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin897 64.2269 1.088 471830401 472089601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.9+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             343.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

