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


Performing analysis on: 4FGL_J1104.9+5748_weekly_bin780
RA = 166.24, Dec = 57.8079
tmin = 710726401, tmax = 711331201
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='19655712', job_status='RUN', time_executed='2023-07-18 00:59:31.017064', time_epoch_executed='1689667171.02' WHERE source_name='4FGL J1104.9+5748' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19655712

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19655712/ft1_4FGL_J1104.9+5748_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19655712/ft1_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19655712/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin780.fits ra=166.24 dec=57.8079 rad=12.0 tmin=710726401.0 tmax=711331201.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.29
user 3.56
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.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/19655712/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.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.77
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1534

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" o
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)
/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

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


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

Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  1.110e-09  1.676e-04  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.213e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 3.31219189112e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00259188240848 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19654083/likelihoodResults_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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): 0
logL (Free Index) = 16428.7563122
delta logL = -0.000448269707704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16428.5746931
delta logL = 0.181170907083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16654E-02   1.0000          .0000       .10000E+07
     2 'Index     '    7.2713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      340 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6787        .42118E-03** at limit **
   2  Index         1.4338        .79235       -.29988E-04     .0000    
   3  Normalizat    1.1944        1.1216        .35493E-05   -.25206E-03
   4  Prefactor     .63446        .98754       -.33691E-05   -.22821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.43379
  Normalizat = 1.1944
  Prefactor  = 0.634456
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM HESSE     STATUS=FAILED         9 CALLS      349 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17675        1.3494       -.29988E-04   -25.927    
   3  Normalizat    1.1944        1.1216        .35493E-05   -2.2738    
   4  Prefactor     .63446        .98754       -.33691E-05   -2.0800    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.88991e-11
Minuit parameter uncertainties:
  1  7.87638e-06
  2  0.799258
  3  1.14545
  4  1.01677
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) = 16428.755864
delta logL = 6.54836185277e-11

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  7.876e-06  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.434e+00  7.993e-01  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.017e+00  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.240 57.808

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/19654083/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2023-07-18 01:06:39.739730', job_id='19654083', GAL2='0.63', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1689667599.74', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='780' AND source_name='4FGL J1104.9+5748' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:06:40 PDT 2023

utfile=/lscratch/kocevski/19655712/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits
.....................!
real 15.91
user 15.19
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19655712/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19655712/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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/19655712/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
.....................!
real 59.68
user 55.61
sys 3.26

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

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits scfile=/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19655712/cmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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=166.24 yref=57.8079 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.86
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits scfile=/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19655712/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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=166.24 yref=57.8079 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.78
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19655712/Model_4FGL_J1104.9+5748_weekly_bin780.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/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits.....................!
real 47.43
user 45.67
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits', '/lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits', expMap='/lscratch/kocevski/19655712/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits', expCube='/lscratch/kocevski/19655712/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19655712/Model_4FGL_J1104.9+5748_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.9+5748'

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19655712/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19655712/ft2_4FGL_J1104.9+5748_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19655712/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19655712/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19655712/Model_4FGL_J1104.9+5748_weekly_bin780.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) = 16428.91921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5751       1.0000          .0000       .10000E+07
     2 'norm      '    3.6385       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11712E-01   1.0000          .0000       .10000E+07
     4 'norm      '    1.4374       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21251E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.7098       1.0000          .0000       .10000E+07
     7 'norm      '    8.1910       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.467       1.0000          .0000       .10000E+07
     9 'norm      '    5.8693       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.839       1.0000          .0000       .10000E+07
    11 'norm      '    10.056       1.0000          .0000       .10000E+07
    12 'norm      '    2.4362       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25689E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25092E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .69453       1.0000          .0000       .10000E+07
    16 'Prefactor '    39.929       1.0000          .0000       .10000E+07
    17 'Prefactor '    .39508E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .15481E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .31748E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8575       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.034       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.8526       1.0000          .0000       .10000E+07
    23 'norm      '    4.5539       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.2607       1.0000          .0000       .10000E+07
    25 'norm      '    .52516E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.5180       1.0000          .0000       .10000E+07
    27 'Prefactor '    .16441E-02   1.0000          .0000       .10000E+07
    28 'norm      '    .56051       1.0000          .0000       .10000E+07
    29 'Prefactor '    .21483E-04   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2310 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5782        4.4580        .54124E-06    .70096E-03
   2  norm          3.6443        3.2338        .91033E-07    .27063E-02
   3  Prefactor     .40656E-06    13.082       -.55908E-05** at limit **
   4  norm          1.4370        .33266        .50202E-07   -.12641E-03
   5  Prefactor      .0000        .99788        .28925E-07** at limit **
   6  norm          1.7091        .45622        .87363E-07    .20306E-01
   7  norm          8.1900        2.0364       -.17499E-07    .88040E-03
   8  Prefactor     10.473        1.2472       -.23603E-06   -.10032E-01
   9  norm          5.8651        5.7645       -.71981E-06   -.19778E-02
  10  Prefactor     12.825        1.0272        .26504E-07    .60251E-03
  11  norm          10.055        1.8917        .15818E-06   -.10988E-01
  12  norm          2.4361        .90486       -.70582E-07   -.14740E-01
  13  Prefactor     .55511E-10    29.404        .94174E-06** at limit **
  14  Prefactor     .15643E-06    14.486        .51573E-05** at limit **
  15  norm          .69569        .76494        .49952E-07    .20089E-02
  16  Prefactor     38.049        13.660       -.13072E-05    .10422    
  17  Prefactor     .11102E-08    6.3372        .87560E-06** at limit **
  18  Prefactor     .11102E-09    10.848       -.28803E-06** at limit **
  19  norm          .16822E-05    26.821       -.17646E-06** at limit **
  20  Prefactor     4.8201        4.6410       -.67085E-07   -.35560E-02
  21  Prefactor     18.353        10.018        .25930E-05    .10090    
  22  Prefactor     4.8674        7.9260        .29136E-05    .64381E-02
  23  norm          4.5176        4.6516       -.30413E-06   -.31122E-03
  24  Prefactor     2.2601        1.6292        .71849E-07   -.19891E-03
  25  norm          .55511E-10    1.4496       -.26253E-06** at limit **
  26  Prefactor     3.5128        3.4951       -.66312E-06    .12713E-02
  27  Prefactor     .55511E-10    4.4352       -.43759E-06** at limit **
  28  norm          .55920        .91828        .19873E-06    .13938E-02
  29  Prefactor     .42188E-08    5.5901       -.12068E-05** at limit **
  30  Normalizat    1.1944        .11378        .53145E-06   -.58383E-04
  31  Prefactor     .63446        .13623       -.97131E-05   -.59076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.57823
  norm       = 3.64433
  Prefactor  = 4.06564e-07
  norm       = 1.43702
  Prefactor  = 0
  norm       = 1.70915
  norm       = 8.18995
  Prefactor  = 10.4732
  norm       = 5.86511
  Prefactor  = 12.8254
  norm       = 10.0545
  norm       = 2.43607
  Prefactor  = 5.55112e-11
  Prefactor  = 1.5643e-07
  norm       = 0.695694
  Prefactor  = 38.0487
  Prefactor  = 1.11022e-09
  Prefactor  = 1.11022e-10
  norm       = 1.68215e-06
  Prefactor  = 4.82005
  Prefactor  = 18.3534
  Prefactor  = 4.86741
  norm       = 4.5176
  Prefactor  = 2.26009
  norm       = 5.55112e-11
  Prefactor  = 3.51283
  Prefactor  = 5.55112e-11
  norm       = 0.559203
  Prefactor  = 4.21885e-09
  Normalizat = 1.1944
  Prefactor  = 0.634455
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.9+5748_weekly_bin780
RA = 166.24, Dec = 57.8079
tmin = 710726401, tmax = 711331201
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='19656697', job_status='RUN', time_executed='2023-07-18 01:06:26.529689', time_epoch_executed='1689667586.53' WHERE source_name='4FGL J1104.9+5748' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19656697

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19656697/ft1_4FGL_J1104.9+5748_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19656697/ft1_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656697/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin780.fits ra=166.24 dec=57.8079 rad=12.0 tmin=710726401.0 tmax=711331201.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.33
user 3.57
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.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/19656697/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.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.75
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1534

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" oDone.


Performing analysis on: 4FGL_J1104.9+5748_weekly_bin780
RA = 166.24, Dec = 57.8079
tmin = 710726401, tmax = 711331201
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='19656677', job_status='RUN', time_executed='2023-07-18 01:06:22.391855', time_epoch_executed='1689667582.39' WHERE source_name='4FGL J1104.9+5748' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19656677

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19656677/ft1_4FGL_J1104.9+5748_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19656677/ft1_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656677/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin780.fits ra=166.24 dec=57.8079 rad=12.0 tmin=710726401.0 tmax=711331201.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.27
user 3.53
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.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/19656677/ft1_filteredMKT_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.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.86
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1534

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" o **********
 **   18 **HESSE 
 **********

 FCN=   16428.76     FROM HESSE     STATUS=OK           692 CALLS     3002 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5782        4.4714        .53424E-03   -1.5670    
   2  norm          3.6443        3.2359        .52937E-03   -1.5670    
   3  Prefactor     .40656E-06    16.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4370        .33661        .77931E-03   -1.5684    
   5  Prefactor      .0000        .99785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7091        .45804        .80366E-03   -1.5682    
   7  norm          8.1900        2.0372        .35006E-03   -1.5651    
   8  Prefactor     10.473        16.749        .30945E-03   -1.5643    
   9  norm          5.8651        5.7621        .41429E-03   -1.5660    
  10  Prefactor     12.825        11.282        .27929E-03   -1.5636    
  11  norm          10.055        2.2407        .31574E-03   -1.5645    
  12  norm          2.4361        .90580        .65528E-03   -1.5677    
  13  Prefactor     .55511E-10    29.400        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15643E-06    18.193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69569        .77608        .61154E-03   -1.5691    
  16  Prefactor     38.049        27.635        .15827E-03   -1.5585    
  17  Prefactor     .11102E-08    6.3469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    10.853        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .16822E-05    33.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8201        4.7559        .45618E-03   -1.5664    
  21  Prefactor     18.353        16.321        .23557E-03   -1.5622    
  22  Prefactor     4.8674        7.9456        .45641E-03   -1.5664    
  23  norm          4.5176        4.6545        .47149E-03   -1.5665    
  24  Prefactor     2.2601        1.6382        .68293E-03   -1.5678    
  25  norm          .55511E-10    1.4416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5128        3.5056        .53874E-03   -1.5670    
  27  Prefactor     .55511E-10    4.4291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .55920        .93312        .72843E-03   -1.5693    
  29  Prefactor     .42188E-08    5.5885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1944        .10285        .35053E-01   -.86776    
  31  Prefactor     .63446        .12128        .76729E-01   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32831e-07
Minuit parameter uncertainties:
  1  4.47142
  2  3.23587
  3  0.00521768
  4  0.33661
  5  3.9414e-06
  6  0.458043
  7  2.03721
  8  16.7492
  9  5.76208
  10  11.282
  11  2.2407
  12  0.905799
  13  9.33927e-05
  14  0.00337417
  15  0.776075
  16  27.6348
  17  0.000167596
  18  6.5993e-05
  19  0.0150057
  20  4.75594
  21  16.321
  22  7.94563
  23  4.65447
  24  1.63816
  25  1.58223e-05
  26  3.50557
  27  3.28574e-05
  28  0.933117
  29  0.000306848
  30  0.102864
  31  0.121328
utfile=/lscratch/kocevski/19656697/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits
.....................!
real 15.83
user 15.12
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19656697/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656697/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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/19656697/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
.....................!
real 59.90
user 55.63
sys 3.56

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

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits scfile=/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656697/cmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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=166.24 yref=57.8079 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.72
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits scfile=/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656697/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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=166.24 yref=57.8079 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.78
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19656697/Model_4FGL_J1104.9+5748_weekly_bin780.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 GALutfile=/lscratch/kocevski/19656677/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits
.....................!
real 16.00
user 15.24
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19656677/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656677/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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/19656677/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
.....................!
real 63.04
user 58.69
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 233 point sources and 0 extended sources

Setting source of interest to:
4FGL J1104.9+5748 @ 166.24 57.8079

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits scfile=/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656677/cmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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=166.24 yref=57.8079 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.83
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits scfile=/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits outfile=/lscratch/kocevski/19656677/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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=166.24 yref=57.8079 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.74
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19656677/Model_4FGL_J1104.9+5748_weekly_bin780.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 GALDone.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  1.110e-09  1.676e-04  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.213e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 3.31219189112e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00259188240848 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19655712/likelihoodResults_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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): 0
logL (Free Index) = 16428.7563122
delta logL = -0.000448269707704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16428.5746931
delta logL = 0.181170907083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16654E-02   1.0000          .0000       .10000E+07
     2 'Index     '    7.2713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      340 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6787        .42118E-03** at limit **
   2  Index         1.4338        .79235       -.29988E-04     .0000    
   3  Normalizat    1.1944        1.1216        .35493E-05   -.25206E-03
   4  Prefactor     .63446        .98754       -.33691E-05   -.22821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.43379
  Normalizat = 1.1944
  Prefactor  = 0.634456
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM HESSE     STATUS=FAILED         9 CALLS      349 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17675        1.3494       -.29988E-04   -25.927    
   3  Normalizat    1.1944        1.1216        .35493E-05   -2.2738    
   4  Prefactor     .63446        .98754       -.33691E-05   -2.0800    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.88991e-11
Minuit parameter uncertainties:
  1  7.87638e-06
  2  0.799258
  3  1.14545
  4  1.01677
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) = 16428.755864
delta logL = 6.54836185277e-11

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  7.876e-06  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.434e+00  7.993e-01  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.017e+00  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.240 57.808

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/19655712/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2023-07-18 01:16:30.316034', job_id='19655712', GAL2='0.63', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1689668190.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='780' AND source_name='4FGL J1104.9+5748' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:16:30 PDT 2023

_V02
Working on...
/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits.....................!
real 47.46
user 46.06
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits', '/lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits', expMap='/lscratch/kocevski/19656697/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits', expCube='/lscratch/kocevski/19656697/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19656697/Model_4FGL_J1104.9+5748_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.9+5748'

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19656697/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19656697/ft2_4FGL_J1104.9+5748_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19656697/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19656697/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19656697/Model_4FGL_J1104.9+5748_weekly_bin780.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) = 16428.91921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5751       1.0000          .0000       .10000E+07
     2 'norm      '    3.6385       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11712E-01   1.0000          .0000       .10000E+07
     4 'norm      '    1.4374       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21251E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.7098       1.0000          .0000       .10000E+07
     7 'norm      '    8.1910       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.467       1.0000          .0000       .10000E+07
     9 'norm      '    5.8693       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.839       1.0000          .0000       .10000E+07
    11 'norm      '    10.056       1.0000          .0000       .10000E+07
    12 'norm      '    2.4362       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25689E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25092E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .69453       1.0000          .0000       .10000E+07
    16 'Prefactor '    39.929       1.0000          .0000       .10000E+07
    17 'Prefactor '    .39508E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .15481E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .31748E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8575       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.034       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.8526       1.0000          .0000       .10000E+07
    23 'norm      '    4.5539       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.2607       1.0000          .0000       .10000E+07
    25 'norm      '    .52516E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.5180       1.0000          .0000       .10000E+07
    27 'Prefactor '    .16441E-02   1.0000          .0000_V02
Working on...
/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits.....................!
real 46.87
user 45.34
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits', '/lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits', expMap='/lscratch/kocevski/19656677/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits', expCube='/lscratch/kocevski/19656677/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19656677/Model_4FGL_J1104.9+5748_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.9+5748'

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  2.714e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19656677/ft1_filtered_4FGL_J1104.9+5748_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19656677/ft2_4FGL_J1104.9+5748_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19656677/expmap_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19656677/ltcube_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19656677/Model_4FGL_J1104.9+5748_weekly_bin780.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) = 16428.91921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5751       1.0000          .0000       .10000E+07
     2 'norm      '    3.6385       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11712E-01   1.0000          .0000       .10000E+07
     4 'norm      '    1.4374       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21251E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.7098       1.0000          .0000       .10000E+07
     7 'norm      '    8.1910       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.467       1.0000          .0000       .10000E+07
     9 'norm      '    5.8693       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.839       1.0000          .0000       .10000E+07
    11 'norm      '    10.056       1.0000          .0000       .10000E+07
    12 'norm      '    2.4362       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25689E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25092E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .69453       1.0000          .0000       .10000E+07
    16 'Prefactor '    39.929       1.0000          .0000       .10000E+07
    17 'Prefactor '    .39508E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .15481E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .31748E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8575       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.034       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.8526       1.0000          .0000       .10000E+07
    23 'norm      '    4.5539       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.2607       1.0000          .0000       .10000E+07
    25 'norm      '    .52516E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.5180       1.0000          .0000       .10000E+07
    27 'Prefactor '    .16441E-02   1.0000          .0000       .10000E+07
    28 'norm      '    .56051       1.0000          .0000       .10000E+07
    29 'Prefactor '    .21483E-04   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2310 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5782        4.4580        .54124E-06    .70096E-03
   2  norm          3.6443        3.2338        .91033E-07    .27063E-02
   3  Prefactor     .40656E-06    13.082       -.55908E-05** at limit **
   4  norm          1.4370        .33266        .50202E-07   -.12641E-03
   5  Prefactor      .0000        .99788        .28925E-07** at limit **
   6  norm          1.7091        .45622        .87363E-07    .20306E-01
   7  norm          8.1900        2.0364       -.17499E-07    .88040E-03
   8  Prefactor     10.473        1.2472       -.23603E-06   -.10032E-01
   9  norm          5.8651        5.7645       -.71981E-06   -.19778E-02
  10  Prefactor     12.825        1.0272        .26504E-07    .60251E-03
  11  norm          10.055        1.8917        .15818E-06   -.10988E-01
  12  norm          2.4361        .90486       -.70582E-07   -.14740E-01
  13  Prefactor     .55511E-10    29.404        .94174E-06** at limit **
  14  Prefactor     .15643E-06    14.486        .51573E-05** at limit **
  15  norm          .69569        .76494        .49952E-07    .20089E-02
  16  Prefactor     38.049        13.660       -.13072E-05    .10422    
  17  Prefactor     .11102E-08    6.3372        .87560E-06** at limit **
  18  Prefactor     .11102E-09    10.848       -.28803E-06** at limit **
  19  norm          .16822E-05    26.821       -.17646E-06** at limit **
  20  Prefactor     4.8201        4.6410       -.67085E-07   -.35560E-02
  21  Prefactor     18.353        10.018        .25930E-05    .10090    
  22  Prefactor     4.8674        7.9260        .29136E-05    .64381E-02
  23  norm          4.5176        4.6516       -.30413E-06   -.31122E-03
  24  Prefactor     2.2601        1.6292        .71849E-07   -.19891E-03
  25  norm          .55511E-10    1.4496       -.26253E-06** at limit **
  26  Prefactor     3.5128        3.4951       -.66312E-06    .12713E-02
  27  Prefactor     .55511E-10    4.4352       -.43759E-06** at limit **
  28  norm          .55920        .91828        .19873E-06    .13938E-02
  29  Prefactor     .42188E-08    5.5901       -.12068E-05** at limit **
  30  Normalizat    1.1944        .11378        .53145E-06   -.58383E-04
  31  Prefactor     .63446        .13623       -.97131E-05   -.59076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.57823
  norm       = 3.64433
  Prefactor  = 4.06564e-07
  norm       = 1.43702
  Prefactor  = 0
  norm       = 1.70915
  norm       = 8.18995
  Prefactor  = 10.4732
  norm       = 5.86511
  Prefactor  = 12.8254
  norm       = 10.0545
  norm       = 2.43607
  Prefactor  = 5.55112e-11
  Prefactor  = 1.5643e-07
  norm       = 0.695694
  Prefactor  = 38.0487
  Prefactor  = 1.11022e-09
  Prefactor  = 1.11022e-10
  norm       = 1.68215e-06
  Prefactor  = 4.82005
  Prefactor  = 18.3534
  Prefactor  = 4.86741
  norm       = 4.5176
  Prefactor  = 2.26009
  norm       = 5.55112e-11
  Prefactor  = 3.51283
  Prefactor  = 5.55112e-11
  norm       = 0.559203
  Prefactor  = 4.21885e-09
  Normalizat = 1.1944
  Prefactor  = 0.634455
       .10000E+07
    28 'norm      '    .56051       1.0000          .0000       .10000E+07
    29 'Prefactor '    .21483E-04   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2310 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5782        4.4580        .54124E-06    .70096E-03
   2  norm          3.6443        3.2338        .91033E-07    .27063E-02
   3  Prefactor     .40656E-06    13.082       -.55908E-05** at limit **
   4  norm          1.4370        .33266        .50202E-07   -.12641E-03
   5  Prefactor      .0000        .99788        .28925E-07** at limit **
   6  norm          1.7091        .45622        .87363E-07    .20306E-01
   7  norm          8.1900        2.0364       -.17499E-07    .88040E-03
   8  Prefactor     10.473        1.2472       -.23603E-06   -.10032E-01
   9  norm          5.8651        5.7645       -.71981E-06   -.19778E-02
  10  Prefactor     12.825        1.0272        .26504E-07    .60251E-03
  11  norm          10.055        1.8917        .15818E-06   -.10988E-01
  12  norm          2.4361        .90486       -.70582E-07   -.14740E-01
  13  Prefactor     .55511E-10    29.404        .94174E-06** at limit **
  14  Prefactor     .15643E-06    14.486        .51573E-05** at limit **
  15  norm          .69569        .76494        .49952E-07    .20089E-02
  16  Prefactor     38.049        13.660       -.13072E-05    .10422    
  17  Prefactor     .11102E-08    6.3372        .87560E-06** at limit **
  18  Prefactor     .11102E-09    10.848       -.28803E-06** at limit **
  19  norm          .16822E-05    26.821       -.17646E-06** at limit **
  20  Prefactor     4.8201        4.6410       -.67085E-07   -.35560E-02
  21  Prefactor     18.353        10.018        .25930E-05    .10090    
  22  Prefactor     4.8674        7.9260        .29136E-05    .64381E-02
  23  norm          4.5176        4.6516       -.30413E-06   -.31122E-03
  24  Prefactor     2.2601        1.6292        .71849E-07   -.19891E-03
  25  norm          .55511E-10    1.4496       -.26253E-06** at limit **
  26  Prefactor     3.5128        3.4951       -.66312E-06    .12713E-02
  27  Prefactor     .55511E-10    4.4352       -.43759E-06** at limit **
  28  norm          .55920        .91828        .19873E-06    .13938E-02
  29  Prefactor     .42188E-08    5.5901       -.12068E-05** at limit **
  30  Normalizat    1.1944        .11378        .53145E-06   -.58383E-04
  31  Prefactor     .63446        .13623       -.97131E-05   -.59076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.57823
  norm       = 3.64433
  Prefactor  = 4.06564e-07
  norm       = 1.43702
  Prefactor  = 0
  norm       = 1.70915
  norm       = 8.18995
  Prefactor  = 10.4732
  norm       = 5.86511
  Prefactor  = 12.8254
  norm       = 10.0545
  norm       = 2.43607
  Prefactor  = 5.55112e-11
  Prefactor  = 1.5643e-07
  norm       = 0.695694
  Prefactor  = 38.0487
  Prefactor  = 1.11022e-09
  Prefactor  = 1.11022e-10
  norm       = 1.68215e-06
  Prefactor  = 4.82005
  Prefactor  = 18.3534
  Prefactor  = 4.86741
  norm       = 4.5176
  Prefactor  = 2.26009
  norm       = 5.55112e-11
  Prefactor  = 3.51283
  Prefactor  = 5.55112e-11
  norm       = 0.559203
  Prefactor  = 4.21885e-09
  Normalizat = 1.1944
  Prefactor  = 0.634455
 **********
 **   18 **HESSE 
 **********

 FCN=   16428.76     FROM HESSE     STATUS=OK           692 CALLS     3002 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5782        4.4714        .53424E-03   -1.5670    
   2  norm          3.6443        3.2359        .52937E-03   -1.5670    
   3  Prefactor     .40656E-06    16.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4370        .33661        .77931E-03   -1.5684    
   5  Prefactor      .0000        .99785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7091        .45804        .80366E-03   -1.5682    
   7  norm          8.1900        2.0372        .35006E-03   -1.5651    
   8  Prefactor     10.473        16.749        .30945E-03   -1.5643    
   9  norm          5.8651        5.7621        .41429E-03   -1.5660    
  10  Prefactor     12.825        11.282        .27929E-03   -1.5636    
  11  norm          10.055        2.2407        .31574E-03   -1.5645    
  12  norm          2.4361        .90580        .65528E-03   -1.5677    
  13  Prefactor     .55511E-10    29.400        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15643E-06    18.193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69569        .77608        .61154E-03   -1.5691    
  16  Prefactor     38.049        27.635        .15827E-03   -1.5585    
  17  Prefactor     .11102E-08    6.3469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    10.853        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .16822E-05    33.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8201        4.7559        .45618E-03   -1.5664    
  21  Prefactor     18.353        16.321        .23557E-03   -1.5622    
  22  Prefactor     4.8674        7.9456        .45641E-03   -1.5664    
  23  norm          4.5176        4.6545        .47149E-03   -1.5665    
  24  Prefactor     2.2601        1.6382        .68293E-03   -1.5678    
  25  norm          .55511E-10    1.4416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5128        3.5056        .53874E-03   -1.5670    
  27  Prefactor     .55511E-10    4.4291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .55920        .93312        .72843E-03   -1.5693    
  29  Prefactor     .42188E-08    5.5885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1944        .10285        .35053E-01   -.86776    
  31  Prefactor     .63446        .12128        .76729E-01   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32831e-07
Minuit parameter uncertainties:
  1  4.47142
  2  3.23587
  3  0.00521768
  4  0.33661
  5  3.9414e-06
  6  0.458043
  7  2.03721
  8  16.7492
  9  5.76208
  10  11.282
  11  2.2407
  12  0.905799
  13  9.33927e-05
  14  0.00337417
  15  0.776075
  16  27.6348
  17  0.000167596
  18  6.5993e-05
  19  0.0150057
  20  4.75594
  21  16.321
  22  7.94563
  23  4.65447
  24  1.63816
  25  1.58223e-05
  26  3.50557
  27  3.28574e-05
  28  0.933117
  29  0.000306848
  30  0.102864
  31  0.121328
 **********
 **   18 **HESSE 
 **********

 FCN=   16428.76     FROM HESSE     STATUS=OK           692 CALLS     3002 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5782        4.4714        .53424E-03   -1.5670    
   2  norm          3.6443        3.2359        .52937E-03   -1.5670    
   3  Prefactor     .40656E-06    16.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4370        .33661        .77931E-03   -1.5684    
   5  Prefactor      .0000        .99785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7091        .45804        .80366E-03   -1.5682    
   7  norm          8.1900        2.0372        .35006E-03   -1.5651    
   8  Prefactor     10.473        16.749        .30945E-03   -1.5643    
   9  norm          5.8651        5.7621        .41429E-03   -1.5660    
  10  Prefactor     12.825        11.282        .27929E-03   -1.5636    
  11  norm          10.055        2.2407        .31574E-03   -1.5645    
  12  norm          2.4361        .90580        .65528E-03   -1.5677    
  13  Prefactor     .55511E-10    29.400        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15643E-06    18.193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69569        .77608        .61154E-03   -1.5691    
  16  Prefactor     38.049        27.635        .15827E-03   -1.5585    
  17  Prefactor     .11102E-08    6.3469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    10.853        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .16822E-05    33.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8201        4.7559        .45618E-03   -1.5664    
  21  Prefactor     18.353        16.321        .23557E-03   -1.5622    
  22  Prefactor     4.8674        7.9456        .45641E-03   -1.5664    
  23  norm          4.5176        4.6545        .47149E-03   -1.5665    
  24  Prefactor     2.2601        1.6382        .68293E-03   -1.5678    
  25  norm          .55511E-10    1.4416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5128        3.5056        .53874E-03   -1.5670    
  27  Prefactor     .55511E-10    4.4291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .55920        .93312        .72843E-03   -1.5693    
  29  Prefactor     .42188E-08    5.5885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1944        .10285        .35053E-01   -.86776    
  31  Prefactor     .63446        .12128        .76729E-01   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32831e-07
Minuit parameter uncertainties:
  1  4.47142
  2  3.23587
  3  0.00521768
  4  0.33661
  5  3.9414e-06
  6  0.458043
  7  2.03721
  8  16.7492
  9  5.76208
  10  11.282
  11  2.2407
  12  0.905799
  13  9.33927e-05
  14  0.00337417
  15  0.776075
  16  27.6348
  17  0.000167596
  18  6.5993e-05
  19  0.0150057
  20  4.75594
  21  16.321
  22  7.94563
  23  4.65447
  24  1.63816
  25  1.58223e-05
  26  3.50557
  27  3.28574e-05
  28  0.933117
  29  0.000306848
  30  0.102864
  31  0.121328
Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  1.110e-09  1.676e-04  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.213e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 3.31219189112e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00259188240848 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19656697/likelihoodResults_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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): 0
logL (Free Index) = 16428.7563122
delta logL = -0.000448269707704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16428.5746931
delta logL = 0.181170907083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16654E-02   1.0000          .0000       .10000E+07
     2 'Index     '    7.2713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      340 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6787        .42118E-03** at limit **
   2  Index         1.4338        .79235       -.29988E-04     .0000    
   3  Normalizat    1.1944        1.1216        .35493E-05   -.25206E-03
   4  Prefactor     .63446        .98754       -.33691E-05   -.22821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.43379
  Normalizat = 1.1944
  Prefactor  = 0.634456
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM HESSE     STATUS=FAILED         9 CALLS      349 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17675        1.3494       -.29988E-04   -25.927    
   3  Normalizat    1.1944        1.1216        .35493E-05   -2.2738    
   4  Prefactor     .63446        .98754       -.33691E-05   -2.0800    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.88991e-11
Minuit parameter uncertainties:
  1  7.87638e-06
  2  0.799258
  3  1.14545
  4  1.01677
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) = 16428.755864
delta logL = 6.54836185277e-11

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  7.876e-06  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.434e+00  7.993e-01  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.017e+00  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.240 57.808

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/19656697/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2023-07-18 01:24:08.207550', job_id='19656697', GAL2='0.63', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1689668648.21', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='780' AND source_name='4FGL J1104.9+5748' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:24:08 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  1.110e-09  1.676e-04  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  2.598e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.213e-01  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.240 57.808
Photon Flux Upper Limit: 3.31219189112e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00259188240848 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19656677/likelihoodResults_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.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): 0
logL (Free Index) = 16428.7563122
delta logL = -0.000448269707704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16428.5746931
delta logL = 0.181170907083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16654E-02   1.0000          .0000       .10000E+07
     2 'Index     '    7.2713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      340 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6787        .42118E-03** at limit **
   2  Index         1.4338        .79235       -.29988E-04     .0000    
   3  Normalizat    1.1944        1.1216        .35493E-05   -.25206E-03
   4  Prefactor     .63446        .98754       -.33691E-05   -.22821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.43379
  Normalizat = 1.1944
  Prefactor  = 0.634456
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16428.76     FROM HESSE     STATUS=FAILED         9 CALLS      349 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17675        1.3494       -.29988E-04   -25.927    
   3  Normalizat    1.1944        1.1216        .35493E-05   -2.2738    
   4  Prefactor     .63446        .98754       -.33691E-05   -2.0800    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.88991e-11
Minuit parameter uncertainties:
  1  7.87638e-06
  2  0.799258
  3  1.14545
  4  1.01677
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) = 16428.755864
delta logL = 6.54836185277e-11

Extracting fit parameters...

4FGL J1104.9+5748
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  7.876e-06  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.434e+00  7.993e-01  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
740    Prefactor:  6.345e-01  1.017e+00  0.000e+00  1.000e+01 ( 1.000e+00)
741        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
742        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
739   Normalization:  1.194e+00  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.240 57.808

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/19656677/cmap_HighResolution_710726401_711331201_4FGL_J1104.9+5748_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.31e-08', time_completed='2023-07-18 01:24:40.566890', job_id='19656677', GAL2='0.63', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1689668680.57', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='780' AND source_name='4FGL J1104.9+5748' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:24:41 PDT 2023

