 **********
 **   18 **HESSE 
 **********

 FCN=   13903.79     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80466        6.7415        .20776E-04   -1.5690    
   2  Index         2.5030        1.7545        .22460E-03   -.52290    
   3  Normalizat    1.0463        .13783        .10031E-04   -.91494    
   4  Prefactor     1.1344        .14540        .10239E-04   -.88375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36847e-13
Minuit parameter uncertainties:
  1  4.65817
  2  1.80642
  3  0.137876
  4  0.145456
/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)
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) = 13903.7906735
delta logL = 0.016787900895

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  8.047e-01  4.658e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.503e+00  1.806e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.134e+00  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.046e+00  1.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 163.628 22.191

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/18996522/cmap_HighResolution_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2023-07-11 00:45:32.192553', job_id='18996522', GAL2='1.13', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1689061532.19', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.68e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='779' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 11 00:45:32 PDT 2023


WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

 outfile=/lscratch/kocevski/18996716/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits
.....................!
real 20.55
user 20.05
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits evtable="EVENTS" scfile=/lscratch/kocevski/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18996716/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996716/expmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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/18996716/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits
.....................!
real 76.37
user 71.69
sys 4.37

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

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits scfile=/lscratch/kocevski/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996716/cmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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=163.628 yref=22.1913 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.42
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits scfile=/lscratch/kocevski/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996716/cmap_HighResolution_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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=163.628 yref=22.1913 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.41
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits evtable="EVENTS" scfile=/lscratch/kocevski/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18996716/Model_4FGL_J1054.5+2211_weekly_bin779.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 sourcnumber of points = 17354
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1054.5+2211_weekly_bin779
RA = 163.628, Dec = 22.1913
tmin = 710121601, tmax = 710726401
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='18996932', job_status='RUN', time_executed='2023-07-11 00:45:33.162146', time_epoch_executed='1689061533.16' WHERE source_name='4FGL J1054.5+2211' and cadence='weekly' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18996932

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18996932/ft1_4FGL_J1054.5+2211_weekly_bin779.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18996932/ft1_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996932/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin779.fits ra=163.628 dec=22.1913 rad=12.0 tmin=710121601.0 tmax=710726401.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 4.71
user 4.26
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.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/18996932/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin779.fits evtable="EVENTS" outfile="/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.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.53
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1204

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits sctable="SC_DATA"e GAL_V02
Working on...
/lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits.....................!
real 49.01
user 47.78
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits', '/lscratch/kocevski/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits', expMap='/lscratch/kocevski/18996716/expmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits', expCube='/lscratch/kocevski/18996716/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18996716/Model_4FGL_J1054.5+2211_weekly_bin779.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18996716/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits
Spacecraft file(s): /lscratch/kocevski/18996716/ft2_4FGL_J1054.5+2211_weekly_bin779.fits
Exposure map: /lscratch/kocevski/18996716/expmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits
Exposure cube: /lscratch/kocevski/18996716/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18996716/Model_4FGL_J1054.5+2211_weekly_bin779.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) = 13904.7378396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41028E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11952E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10275E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.6478       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9559       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7680       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34440E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38875       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29390       1.0000          .0000       .10000E+07
    10 'Prefactor '    .93636E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    19.199       1.0000          .0000       .10000E+07
    12 'norm      '    .96142       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15534E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4414       1.0000          .0000       .10000E+07
    15 'norm      '    1.5522       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33085E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    24.579       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13903.81     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     1579 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.8833         .0000    ** at limit **
   2  Prefactor     .33307E-09    12.078         .0000    ** at limit **
   3  Prefactor     .19984E-08    49.400         .0000    ** at limit **
   4  Prefactor     6.6437        5.9724         .0000        .84055E-01
   5  Prefactor     1.9538        1.6152         .0000        .57117E-02
   6  Prefactor     3.7662        3.2175         .0000        .38285E-01
   7  Prefactor     .32752E-08    24.509         .0000    ** at limit **
   8  Prefactor     .48894E-02    11.563         .0000    ** at limit **
   9  Prefactor     .35824        3.1919         .0000        .60033E-02
  10  Prefactor      .0000        2.8275         .0000    ** at limit **
  11  Prefactor     19.161        11.387         .0000       -.21256E-02
  12  norm          .96046        .77633         .0000        .13984E-01
  13  Prefactor     .27756E-08    .79825         .0000    ** at limit **
  14  Prefactor     1.4416        3.5347         .0000        .19632E-01
  15  norm          1.5735        8.3986         .0000        .16192    
  16  Prefactor     .55511E-10    3.2935         .0000    ** at limit **
  17  Prefactor     24.513        15.160         .0000        .81566E-02
  18  Normalizat    1.0488        .12245         .0000        .34748E-03
  19  Prefactor     1.1340        .12397         .0000        .38377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 1.9984e-09
  Prefactor  = 6.64367
  Prefactor  = 1.95383
  Prefactor  = 3.76623
  Prefactor  = 3.27516e-09
  Prefactor  = 0.00488938
  Prefactor  = 0.358238
  Prefactor  = 0
  Prefactor  = 19.1609
  norm       = 0.960463
  Prefactor  = 2.77556e-09
  Prefactor  = 1.4416
  norm       = 1.57354
  Prefactor  = 5.55112e-11
  Prefactor  = 24.5129
  Normalizat = 1.04875
  Prefactor  = 1.13399
 **********
 **   18 **HESSE 
 **********

 FCN=   13903.81     FROM HESSE     STATUS=OK           288 CALLS     1867 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.8862        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    12.082        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19984E-08    49.452        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6437        5.9404        .77791E-04   -1.5656    
   5  Prefactor     1.9538        1.5905        .12527E-04   -1.5680    
   6  Prefactor     3.7662        3.2188        .94022E-04   -1.5669    
   7  Prefactor     .32752E-08    24.925        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .48894E-02    12.743        .11437E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35824        30.831        .37525E-03   -1.5696    
  10  Prefactor      .0000        2.8307        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.161        11.574        .91322E-05   -1.5620    
  12  norm          .96046        .77159        .89293E-05   -1.5688    
  13  Prefactor     .27756E-08    1.0035        .34617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4416        3.5176        .33444E-04   -1.5684    
  15  norm          1.5735        8.4356        .17089E-03   -1.5683    
  16  Prefactor     .55511E-10    3.3072        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.513        15.178        .80700E-05   -1.5609    
  18  Normalizat    1.0488        .14368        .25055E-03   -.91415    
  19  Prefactor     1.1340        .14594        .25605E-03   -.88387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62627e-09
Minuit parameter uncertainties:
  1  3.39296e-06
  2  0.000122981
  3  0.000626945
  4  5.94045
  5  1.59049
  6  3.21884
  7  0.000573299
  8  0.499218
  9  6.64677
  10  6.84498e-07
  11  11.5743
  12  0.771591
  13  0.000105959
  14  3.51758
  15  7.28663
  16  2.91241e-05
  17  15.178
  18  0.143732
  19  0.145987
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.582e-01  6.647e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.134e+00  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.049e+00  1.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 4.44294491602e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00336847214442 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18996716/likelihoodResults_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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) = 13903.7958414
delta logL = 0.0116199430686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13903.790676
delta logL = 0.016785423315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81341       1.0000          .0000       .10000E+07
     2 'Index     '    2.5034       1.0000          .0000       10.000    
     3 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1344       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13903.79     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      292 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80466        7.5856        .10388E-03    .49994E-02
   2  Index         2.5030        1.8533        .56150E-02   -.10164E-05
   3  Normalizat    1.0463        .13766        .25078E-03   -.34453E-05
   4  Prefactor     1.1344        .14527        .25599E-03   -.10659E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.804659
  Index      = 2.50303
  Normalizat = 1.04632
  Prefactor  = 1.13437
 **********
 **   18 **HESSE 
 **********

 FCN=   13903.79     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80466        6.7415        .20776E-04   -1.5690    
   2  Index         2.5030        1.7545        .22460E-03   -.52290    
   3  Normalizat    1.0463        .13783        .10031E-04   -.91494    
   4  Prefactor     1.1344        .14540        .10239E-04   -.88375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36847e-13
Minuit parameter uncertainties:
  1  4.65817
  2  1.80642
  3  0.137876
  4  0.145456
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) = 13903.7906735
delta logL = 0.016787900895

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  8.047e-01  4.658e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.503e+00  1.806e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.134e+00  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.046e+00  1.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 163.628 22.191

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/18996716/cmap_HighResolution_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2023-07-11 00:50:04.448434', job_id='18996716', GAL2='1.13', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1689061804.45', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.68e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='779' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 11 00:50:04 PDT 2023

 outfile=/lscratch/kocevski/18996932/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits
.....................!
real 18.46
user 17.94
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits evtable="EVENTS" scfile=/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18996932/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996932/expmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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/18996932/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits
.....................!
real 65.55
user 61.63
sys 3.49

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

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits scfile=/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996932/cmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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=163.628 yref=22.1913 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.46
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits scfile=/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits outfile=/lscratch/kocevski/18996932/cmap_HighResolution_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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=163.628 yref=22.1913 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.41
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits evtable="EVENTS" scfile=/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18996932/Model_4FGL_J1054.5+2211_weekly_bin779.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/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits.....................!
real 39.94
user 38.62
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits', '/lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits', expMap='/lscratch/kocevski/18996932/expmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits', expCube='/lscratch/kocevski/18996932/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18996932/Model_4FGL_J1054.5+2211_weekly_bin779.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18996932/ft1_filtered_4FGL_J1054.5+2211_weekly_bin779.fits
Spacecraft file(s): /lscratch/kocevski/18996932/ft2_4FGL_J1054.5+2211_weekly_bin779.fits
Exposure map: /lscratch/kocevski/18996932/expmap_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits
Exposure cube: /lscratch/kocevski/18996932/ltcube_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18996932/Model_4FGL_J1054.5+2211_weekly_bin779.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) = 13904.7378396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41028E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11952E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10275E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.6478       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9559       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7680       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34440E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38875       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29390       1.0000          .0000       .10000E+07
    10 'Prefactor '    .93636E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    19.199       1.0000          .0000       .10000E+07
    12 'norm      '    .96142       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15534E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4414       1.0000          .0000       .10000E+07
    15 'norm      '    1.5522       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33085E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    24.579       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13903.81     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     1579 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.8833         .0000    ** at limit **
   2  Prefactor     .33307E-09    12.078         .0000    ** at limit **
   3  Prefactor     .19984E-08    49.400         .0000    ** at limit **
   4  Prefactor     6.6437        5.9724         .0000        .84055E-01
   5  Prefactor     1.9538        1.6152         .0000        .57117E-02
   6  Prefactor     3.7662        3.2175         .0000        .38285E-01
   7  Prefactor     .32752E-08    24.509         .0000    ** at limit **
   8  Prefactor     .48894E-02    11.563         .0000    ** at limit **
   9  Prefactor     .35824        3.1919         .0000        .60033E-02
  10  Prefactor      .0000        2.8275         .0000    ** at limit **
  11  Prefactor     19.161        11.387         .0000       -.21256E-02
  12  norm          .96046        .77633         .0000        .13984E-01
  13  Prefactor     .27756E-08    .79825         .0000    ** at limit **
  14  Prefactor     1.4416        3.5347         .0000        .19632E-01
  15  norm          1.5735        8.3986         .0000        .16192    
  16  Prefactor     .55511E-10    3.2935         .0000    ** at limit **
  17  Prefactor     24.513        15.160         .0000        .81566E-02
  18  Normalizat    1.0488        .12245         .0000        .34748E-03
  19  Prefactor     1.1340        .12397         .0000        .38377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 1.9984e-09
  Prefactor  = 6.64367
  Prefactor  = 1.95383
  Prefactor  = 3.76623
  Prefactor  = 3.27516e-09
  Prefactor  = 0.00488938
  Prefactor  = 0.358238
  Prefactor  = 0
  Prefactor  = 19.1609
  norm       = 0.960463
  Prefactor  = 2.77556e-09
  Prefactor  = 1.4416
  norm       = 1.57354
  Prefactor  = 5.55112e-11
  Prefactor  = 24.5129
  Normalizat = 1.04875
  Prefactor  = 1.13399
 **********
 **   18 **HESSE 
 **********

 FCN=   13903.81     FROM HESSE     STATUS=OK           288 CALLS     1867 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.8862        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    12.082        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19984E-08    49.452        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6437        5.9404        .77791E-04   -1.5656    
   5  Prefactor     1.9538        1.5905        .12527E-04   -1.5680    
   6  Prefactor     3.7662        3.2188        .94022E-04   -1.5669    
   7  Prefactor     .32752E-08    24.925        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .48894E-02    12.743        .11437E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35824        30.831        .37525E-03   -1.5696    
  10  Prefactor      .0000        2.8307        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.161        11.574        .91322E-05   -1.5620    
  12  norm          .96046        .77159        .89293E-05   -1.5688    
  13  Prefactor     .27756E-08    1.0035        .34617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4416        3.5176        .33444E-04   -1.5684    
  15  norm          1.5735        8.4356        .17089E-03   -1.5683    
  16  Prefactor     .55511E-10    3.3072        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.513        15.178        .80700E-05   -1.5609    
  18  Normalizat    1.0488        .14368        .25055E-03   -.91415    
  19  Prefactor     1.1340        .14594        .25605E-03   -.88387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62627e-09
Minuit parameter uncertainties:
  1  3.39296e-06
  2  0.000122981
  3  0.000626945
  4  5.94045
  5  1.59049
  6  3.21884
  7  0.000573299
  8  0.499218
  9  6.64677
  10  6.84498e-07
  11  11.5743
  12  0.771591
  13  0.000105959
  14  3.51758
  15  7.28663
  16  2.91241e-05
  17  15.178
  18  0.143732
  19  0.145987
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.582e-01  6.647e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.134e+00  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.049e+00  1.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 4.44294491602e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00336847214442 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18996932/likelihoodResults_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.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) = 13903.7958414
delta logL = 0.0116199430686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13903.790676
delta logL = 0.016785423315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81341       1.0000          .0000       .10000E+07
     2 'Index     '    2.5034       1.0000          .0000       10.000    
     3 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1344       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13903.79     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      292 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80466        7.5856        .10388E-03    .49994E-02
   2  Index         2.5030        1.8533        .56150E-02   -.10164E-05
   3  Normalizat    1.0463        .13766        .25078E-03   -.34453E-05
   4  Prefactor     1.1344        .14527        .25599E-03   -.10659E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.804659
  Index      = 2.50303
  Normalizat = 1.04632
  Prefactor  = 1.13437
 **********
 **   18 **HESSE 
 **********

 FCN=   13903.79     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80466        6.7415        .20776E-04   -1.5690    
   2  Index         2.5030        1.7545        .22460E-03   -.52290    
   3  Normalizat    1.0463        .13783        .10031E-04   -.91494    
   4  Prefactor     1.1344        .14540        .10239E-04   -.88375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36847e-13
Minuit parameter uncertainties:
  1  4.65817
  2  1.80642
  3  0.137876
  4  0.145456
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) = 13903.7906735
delta logL = 0.016787900895

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  8.047e-01  4.658e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.503e+00  1.806e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.134e+00  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.046e+00  1.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 163.628 22.191

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/18996932/cmap_HighResolution_710121601_710726401_4FGL_J1054.5+2211_weekly_bin779.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2023-07-11 00:53:49.641679', job_id='18996932', GAL2='1.13', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1689062029.64', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.68e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='779' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 11 00:53:49 PDT 2023

