/sdf/group/fermi/u/kocevski/software/conda/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)

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).

/sdf/group/fermi/u/kocevski/software/conda/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 = 17346
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0416.9+0105_weekly_bin787
RA = 64.2269, Dec = 1.088
tmin = 714960001, tmax = 715564801
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='28613470', job_status='RUN', time_executed='2023-09-19 21:55:52.420886', time_epoch_executed='1695185752.42' WHERE source_name='4FGL J0416.9+0105' and cadence='weekly' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28613470

Creating custom pfile directory:
/lscratch/kocevski/28613470/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=714960001.0 && nMetStart<715564801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=714960001.0 && nMetStart<715564801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28613470/ft1_4FGL_J0416.9+0105_weekly_bin787.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=714960001.0 && nMetStart<715564801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28613470/ft1_4FGL_J0416.9+0105_weekly_bin787.fits outfile=/lscratch/kocevski/28613470/ft1_filteredMKT_4FGL_J0416.9+0105_weekly_bin787.fits ra=64.2269 dec=1.088 rad=12.0 tmin=714960001.0 tmax=715564801.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 5.25
user 4.95
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/28613470/ft1_filteredMKT_4FGL_J0416.9+0105_weekly_bin787.fits evtable="EVENTS" outfile="/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.39
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2460

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28613470/ltcube_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.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 /lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits
.....................!
real 21.10
user 20.53
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits evtable="EVENTS" scfile=/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28613470/ltcube_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.fits outfile=/lscratch/kocevski/28613470/expmap_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.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 /lscratch/kocevski/28613470/ltcube_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.fits
.....................!
real 66.50
user 62.49
sys 3.66

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=/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits scfile=/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits outfile=/lscratch/kocevski/28613470/cmap_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.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 0.40
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits scfile=/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits outfile=/lscratch/kocevski/28613470/cmap_HighResolution_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.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 0.40
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits evtable="EVENTS" scfile=/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28613470/Model_4FGL_J0416.9+0105_weekly_bin787.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...
/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits....................!
real 127.61
user 125.81
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits', '/lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits', expMap='/lscratch/kocevski/28613470/expmap_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.fits', expCube='/lscratch/kocevski/28613470/ltcube_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28613470/Model_4FGL_J0416.9+0105_weekly_bin787.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  0.000e+00  1.000e+06 ( 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): /lscratch/kocevski/28613470/ft1_filtered_4FGL_J0416.9+0105_weekly_bin787.fits
Spacecraft file(s): /lscratch/kocevski/28613470/ft2_4FGL_J0416.9+0105_weekly_bin787.fits
Exposure map: /lscratch/kocevski/28613470/expmap_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.fits
Exposure cube: /lscratch/kocevski/28613470/ltcube_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28613470/Model_4FGL_J0416.9+0105_weekly_bin787.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) = 26252.5176596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22576E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .52685       1.0000          .0000       .10000E+07
     3 'Prefactor '    32.248       1.0000          .0000       .10000E+07
     4 'norm      '    .11853E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .58915E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .18243E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25896E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .83148       1.0000          .0000       .10000E+07
     9 'norm      '    2.9470       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40778E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    53.624       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20765E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .86369       1.0000          .0000       .10000E+07
    14 'norm      '    .61411       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11875E-01   1.0000          .0000       .10000E+07
    16 'norm      '    2.3723       1.0000          .0000       .10000E+07
    17 'Prefactor '    .16542E-01   1.0000          .0000       .10000E+07
    18 'norm      '    5.3447       1.0000          .0000       .10000E+07
    19 'Normalizat'    .98496       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26249.06     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      982 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.5004       -.20734E-06** at limit **
   2  Prefactor     .18274E-06    99.494       -.14600E-07** at limit **
   3  Prefactor     32.658        9.6641        .53207E-07    .46801E-02
   4  norm          .55511E-10    5.1665       -.26407E-06** at limit **
   5  Prefactor      .0000        3.1716        .16856E-06** at limit **
   6  norm           .0000        1.0667        .17350E-06** at limit **
   7  Prefactor     .12533E-05    8.9049        .22828E-06** at limit **
   8  norm          .83760        3.0587        .82221E-07    .16248E-01
   9  norm          2.9471        .72891        .10736E-08    .31435E-02
  10  Prefactor      .0000        .31685        .60087E-07** at limit **
  11  Prefactor     53.776        1.4652        .19952E-09   -.29541E-01
  12  Prefactor     .11436E-05    8.1459        .18425E-06** at limit **
  13  Prefactor     .86525        2.0784        .25702E-07   -.23408E-01
  14  norm          .60983        1.5851        .43178E-07    .54160E-03
  15  Prefactor     .40523E-08    12.488        .78429E-07** at limit **
  16  norm          2.3736        1.2947        .57599E-07   -.15713E-02
  17  Prefactor      .0000        19.058        .67853E-08** at limit **
  18  norm          5.3443        1.5176        .97627E-08    .97556E-04
  19  Normalizat    .98482        .13891       -.33522E-05    .22855E-04
  20  Prefactor     1.0682        .54511E-01    .76879E-06   -.36551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.82743e-07
  Prefactor  = 32.658
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.25333e-06
  norm       = 0.8376
  norm       = 2.94713
  Prefactor  = 0
  Prefactor  = 53.7756
  Prefactor  = 1.14364e-06
  Prefactor  = 0.865248
  norm       = 0.609826
  Prefactor  = 4.05231e-09
  norm       = 2.37362
  Prefactor  = 0
  norm       = 5.34433
  Normalizat = 0.984818
  Prefactor  = 1.0682
 **********
 **   18 **HESSE 
 **********

 FCN=   26249.06     FROM HESSE     STATUS=OK           337 CALLS     1319 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .23888        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18274E-06    96.876        .76053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.658        10.022        .17612E-03   -1.5594    
   4  norm          .55511E-10    5.1658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.0637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12533E-05    17.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .83760        4.0034        .50617E-03   -1.5690    
   9  norm          2.9471        .73501        .59136E-03   -1.5674    
  10  Prefactor      .0000        .31425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.776        18.418        .13657E-03   -1.5561    
  12  Prefactor     .11436E-05    16.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86525        3.9407        .48304E-03   -1.5689    
  14  norm          .60983        2.0317        .67973E-03   -1.5692    
  15  Prefactor     .40523E-08    12.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3736        1.3010        .66493E-03   -1.5677    
  17  Prefactor      .0000        18.324        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3443        1.5167        .43447E-03   -1.5662    
  19  Normalizat    .98482        .12961        .93280E-01   -.93541    
  20  Prefactor     1.0682        .49570E-01    .38939E-01   -.90490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96507e-07
Minuit parameter uncertainties:
  1  2.07095e-06
  2  0.00841537
  3  10.022
  4  3.3421e-05
  5  4.45491e-06
  6  6.11647e-06
  7  0.00927596
  8  3.66238
  9  0.735011
  10  1.25097e-06
  11  18.4177
  12  0.00861476
  13  3.69308
  14  2.03171
  15  0.000450725
  16  1.30102
  17  1.20998e-05
  18  1.51667
  19  0.129655
  20  0.0495718
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  0.000e+00  4.455e-06  0.000e+00  1.000e+06 ( 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:  1.068e+00  4.957e-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:  9.848e-01  1.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 1.80957732953e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00134271613907 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28613470/likelihoodResults_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.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) = 26249.0636341
delta logL = -0.000151267297042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26249.0634832
delta logL = -3.31863702741e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48372E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .24962       1.0000          .0000       10.000    
     3 'Normalizat'    .98476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0682       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26249.06     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      246 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4257        .42118E-03** at limit **
   2  Index         2.1285        1.4432        .13450E-04     .0000    
   3  Normalizat    .98482        1.3154        .32141E-05   -.14041E-04
   4  Prefactor     1.0682        1.1727       -.14121E-05   -.18458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.12846
  Normalizat = 0.984818
  Prefactor  = 1.0682
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26249.06     FROM HESSE     STATUS=FAILED         9 CALLS      255 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49567        1.8172        .13450E-04   -.61176    
   3  Normalizat    .98482        1.3154        .32141E-05   -.93541    
   4  Prefactor     1.0682        1.1727       -.14121E-05   -.90490    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.07289e-13
Minuit parameter uncertainties:
  1  6.618e-07
  2  1.47491
  3  1.36294
  4  1.20291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 26249.0634828
delta logL = 0.0

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  0.000e+00  6.618e-07  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  2.128e+00  1.475e+00  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:  1.068e+00  1.203e+00  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:  9.848e-01  1.363e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 64.227 1.088

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 /lscratch/kocevski/28613470/cmap_HighResolution_714960001_715564801_4FGL_J0416.9+0105_weekly_bin787.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-03', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2023-09-19 22:05:12.192406', job_id='28613470', GAL2='1.07', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1695186312.19', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='787' AND source_name='4FGL J0416.9+0105' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 19 22:05:12 PDT 2023

