/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17316
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+0730_weekly_bin858
RA = 166.117, Dec = 7.51
tmin = 757900801, tmax = 758505601
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='61724405', job_status='RUN', time_executed='2025-01-14 02:51:25.752577', time_epoch_executed='1736851885.75' WHERE source_name='4FGL J1104.4+0730' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61724405

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61724405/ft1_4FGL_J1104.4+0730_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61724405/ft1_4FGL_J1104.4+0730_weekly_bin858.fits outfile=/lscratch/kocevski/61724405/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin858.fits ra=166.117 dec=7.51 rad=12.0 tmin=757900801.0 tmax=758505601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.08
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.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/61724405/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.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.52
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 828

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61724405/ltcube_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.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/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits
.....................!
real 20.96
user 20.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61724405/ltcube_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.fits outfile=/lscratch/kocevski/61724405/expmap_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.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/61724405/ltcube_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.fits
.....................!
real 64.20
user 60.12
sys 3.60

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

Setting source of interest to:
4FGL J1104.4+0730 @ 166.117 7.51

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits scfile=/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits outfile=/lscratch/kocevski/61724405/cmap_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.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.117 yref=7.51 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.22
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits scfile=/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits outfile=/lscratch/kocevski/61724405/cmap_HighResolution_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.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.117 yref=7.51 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.43
user 0.22
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61724405/Model_4FGL_J1104.4+0730_weekly_bin858.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/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits.....................!
real 31.51
user 30.25
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits', '/lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits', expMap='/lscratch/kocevski/61724405/expmap_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.fits', expCube='/lscratch/kocevski/61724405/ltcube_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61724405/Model_4FGL_J1104.4+0730_weekly_bin858.xml', optimizer='MINUIT')

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

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  5.865e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61724405/ft1_filtered_4FGL_J1104.4+0730_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61724405/ft2_4FGL_J1104.4+0730_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61724405/expmap_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61724405/ltcube_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61724405/Model_4FGL_J1104.4+0730_weekly_bin858.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) = 9332.66985819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73877E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .27141E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.431       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9052       1.0000          .0000       .10000E+07
     5 'Prefactor '    18.092       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.1066       1.0000          .0000       .10000E+07
     7 'norm      '    1.0700       1.0000          .0000       .10000E+07
     8 'norm      '    2.6727       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.656       1.0000          .0000       .10000E+07
    10 'norm      '    2.5955       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.2130       1.0000          .0000       .10000E+07
    12 'Normalizat'    .59550       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.2972       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9332.665     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      934 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61617E-08    356.52        .56854E-04** at limit **
   2  Prefactor     .14588E-06    100.74        .58044E-05** at limit **
   3  Prefactor     16.381        16.670        .24770E-05   -.50065E-02
   4  Prefactor     3.9030        3.2778        .11514E-06   -.23917E-02
   5  Prefactor     18.081        8.0741        .62655E-06    .89047E-02
   6  Prefactor     8.1033        6.7235        .16676E-06   -.18876E-02
   7  norm          1.0702        .49018        .10826E-08   -.28135E-02
   8  norm          2.6739        1.2614       -.19070E-07   -.24188E-02
   9  Prefactor     32.635        21.464       -.34728E-05   -.26762E-03
  10  norm          2.5895        5.6810        .20361E-05    .30357E-02
  11  Prefactor     5.2133        1.8952       -.57640E-07   -.43064E-02
  12  Normalizat    .59527        .18490       -.27286E-05   -.54196E-03
  13  Prefactor     1.2974        .16127        .74741E-05   -.55432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16174e-09
  Prefactor  = 1.45883e-07
  Prefactor  = 16.3814
  Prefactor  = 3.90297
  Prefactor  = 18.0807
  Prefactor  = 8.10331
  norm       = 1.07017
  norm       = 2.67395
  Prefactor  = 32.6353
  norm       = 2.58953
  Prefactor  = 5.21329
  Normalizat = 0.595265
  Prefactor  = 1.29741
 **********
 **   18 **HESSE 
 **********

 FCN=   9332.665     FROM HESSE     STATUS=OK           179 CALLS     1113 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61617E-08    354.65        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14588E-06    101.47        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.381        16.646        .24681E-03   -1.5627    
   4  Prefactor     3.9030        3.2888        .51030E-03   -1.5668    
   5  Prefactor     18.081        8.0790        .23519E-03   -1.5623    
   6  Prefactor     8.1033        6.7443        .35190E-03   -1.5651    
   7  norm          1.0702        .49288        .98304E-03   -1.5687    
   8  norm          2.6739        1.2662        .62310E-03   -1.5675    
   9  Prefactor     32.635        21.488        .17501E-03   -1.5594    
  10  norm          2.5895        5.7032        .63305E-03   -1.5676    
  11  Prefactor     5.2133        1.9004        .44003E-03   -1.5662    
  12  Normalizat    .59527        .16129        .75811E-01   -1.0819    
  13  Prefactor     1.2974        .13927        .48454E-01   -.83384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63786e-09
Minuit parameter uncertainties:
  1  0.00295691
  2  0.0076947
  3  16.6465
  4  3.28885
  5  8.07896
  6  6.74429
  7  0.492882
  8  1.26625
  9  21.4885
  10  5.70317
  11  1.90044
  12  0.161422
  13  0.139315
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  3.264e+01  2.149e+01  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.297e+00  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  5.953e-01  1.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 166.117 7.510
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.42e-05

TS (Fixed Index): 3.09
Ra Dec: 166.117 7.510
Photon Flux Upper Limit: 1.35648338572e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0104409012574 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61724405/likelihoodResults_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.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) = 9331.04265414
delta logL = 1.62238565848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9331.00283944
delta logL = 1.6622003557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9869       1.0000          .0000       .10000E+07
     2 'Index     '    3.4757       1.0000          .0000       10.000    
     3 'Normalizat'    .52140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9331.003     FROM MIGRAD    STATUS=FAILED       103 CALLS      308 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9697        80.842        .59486E-04   -.10102E-02
   2  Index         3.4766        3.0331        .39879E-02    .94400E-03
   3  Normalizat    .52136        .18005        .35668E-03   -.11730E-04
   4  Prefactor     1.3455        .17018        .21074E-03   -.22226E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9331.003     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      390 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9697        80.842        .21197E-04   -.10102E-02
   2  Index         3.4766        3.0331        .66389E-03    .94400E-03
   3  Normalizat    .52136        .18005        .39227E-03   -.11730E-04
   4  Prefactor     1.3455        .17018        .20860E-03   -.22226E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9331.003     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      422 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9697        14.088        .23794E-05   -.11562E-02
   2  Index         3.4766        .90721        .79757E-03   -.28565E-04
   3  Normalizat    .52136        .18201        .14267E-04   -.11793E-04
   4  Prefactor     1.3455        .16396        .84297E-05   -.22657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.96966
  Index      = 3.47665
  Normalizat = 0.521358
  Prefactor  = 1.34546
 **********
 **   18 **HESSE 
 **********

 FCN=   9331.003     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9697        12.580        .95178E-07   -1.5652    
   2  Index         3.4766        .81101        .31903E-04   -.30959    
   3  Normalizat    .52136        .18191        .28534E-05   -1.1144    
   4  Prefactor     1.3455        .16375        .16859E-05   -.81965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25597e-12
Minuit parameter uncertainties:
  1  12.58
  2  0.814983
  3  0.182114
  4  0.163808
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) = 9331.00283822
delta logL = 1.6622015703

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  7.970e+00  1.258e+01  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  3.477e+00  8.150e-01  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.345e+00  1.638e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  5.214e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 166.117 7.510
Photon Index (Free Index): 3.48 +/- 0.81
Photon Flux (Free Index): 1.16e-07 +/- 5.54e-08
Energy Flux (Free Index): 1.95e-05 +/- 9.53e-06

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/61724405/cmap_HighResolution_757900801_758505601_4FGL_J1104.4+0730_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='1.95e-05', photon_flux_error='3.98e-08', dlogl='1.66e+00', energy_flux='2.15e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2025-01-14 02:56:29.600221', photon_index_error2='0.81', photon_index2='3.48', ts='3.09', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='9.53e-06', EG='0.60', time_epoch_completed='1736852189.6', return_code='0', job_id='61724405', GAL2='1.35', EG2='0.52', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.54e-08', ts2='6.75', photon_index='2.34' WHERE bin_id='858' AND source_name='4FGL J1104.4+0730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 02:56:29 PST 2025

