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


Performing analysis on: 4FGL_J0614.8+6136_weekly_bin801
RA = 93.7213, Dec = 61.6079
tmin = 723427201, tmax = 724032001
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='35828933', job_status='RUN', time_executed='2023-12-12 01:15:51.332032', time_epoch_executed='1702372551.33' WHERE source_name='4FGL J0614.8+6136' and cadence='weekly' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35828933

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35828933/ft1_4FGL_J0614.8+6136_weekly_bin801.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35828933/ft1_4FGL_J0614.8+6136_weekly_bin801.fits outfile=/lscratch/kocevski/35828933/ft1_filteredMKT_4FGL_J0614.8+6136_weekly_bin801.fits ra=93.7213 dec=61.6079 rad=12.0 tmin=723427201.0 tmax=724032001.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.75
user 4.42
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.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/35828933/ft1_filteredMKT_4FGL_J0614.8+6136_weekly_bin801.fits evtable="EVENTS" outfile="/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.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.45
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1997

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35828933/ltcube_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.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/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits
.....................!
real 20.07
user 19.72
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35828933/ltcube_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.fits outfile=/lscratch/kocevski/35828933/expmap_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.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/35828933/ltcube_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.fits
.....................!
real 73.55
user 68.99
sys 4.19

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 185 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0614.8+6136 @ 93.7213 61.6079

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits scfile=/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits outfile=/lscratch/kocevski/35828933/cmap_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.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=93.7213 yref=61.6079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.41
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits scfile=/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits outfile=/lscratch/kocevski/35828933/cmap_HighResolution_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.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=93.7213 yref=61.6079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.41
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35828933/Model_4FGL_J0614.8+6136_weekly_bin801.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits.....................!
real 118.65
user 117.29
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits', '/lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits', expMap='/lscratch/kocevski/35828933/expmap_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.fits', expCube='/lscratch/kocevski/35828933/ltcube_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35828933/Model_4FGL_J0614.8+6136_weekly_bin801.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0614.8+6136'

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  3.640e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35828933/ft1_filtered_4FGL_J0614.8+6136_weekly_bin801.fits
Spacecraft file(s): /lscratch/kocevski/35828933/ft2_4FGL_J0614.8+6136_weekly_bin801.fits
Exposure map: /lscratch/kocevski/35828933/expmap_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.fits
Exposure cube: /lscratch/kocevski/35828933/ltcube_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35828933/Model_4FGL_J0614.8+6136_weekly_bin801.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) = 20995.9973405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35233E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .47953E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.304       1.0000          .0000       .10000E+07
     4 'Prefactor '    .71315E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6599       1.0000          .0000       .10000E+07
     6 'Prefactor '    13.194       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.3232       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.7011       1.0000          .0000       .10000E+07
     9 'Prefactor '    26.201       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11139E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11991E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .71609E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .49265E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .94465       1.0000          .0000       .10000E+07
    15 'Prefactor '    95.533       1.0000          .0000       .10000E+07
    16 'Normalizat'    .97022       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20995.88     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1211 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14028E-06    10.959       -.51913E-06** at limit **
   2  norm          .59952E-08    44.631       -.41955E-06** at limit **
   3  Prefactor     10.305        7.1353       -.96250E-07    .45199E-03
   4  Prefactor     .17208E-07    27.502        .80548E-06** at limit **
   5  Prefactor     2.5788        9.3143        .13408E-06   -.37391E-01
   6  Prefactor     13.194        4.6188        .79869E-07   -.10711E-01
   7  Prefactor     7.3231        7.8623        .14832E-06    .24823E-03
   8  Prefactor     2.7401        14.227       -.78701E-07    .26863E-01
   9  Prefactor     26.218        6.0005       -.88515E-08    .15972E-02
  10  Prefactor     .24258E-06    352.69       -.11276E-05** at limit **
  11  Prefactor     .83045E-07    10.020       -.10575E-06** at limit **
  12  Prefactor     .55511E-10    4.2991       -.24806E-07** at limit **
  13  Prefactor     .55511E-10    11.848        .29300E-06** at limit **
  14  norm          .94453        .42839       -.21715E-07    .11814E-02
  15  Prefactor     95.537        3.9916       -.21450E-07    .71914E-01
  16  Normalizat    .97025        .13894        .42629E-06   -.27013E-05
  17  Prefactor     1.0777        .51988E-01   -.52376E-06   -.49894E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40277e-07
  norm       = 5.9952e-09
  Prefactor  = 10.3046
  Prefactor  = 1.72085e-08
  Prefactor  = 2.57877
  Prefactor  = 13.1937
  Prefactor  = 7.32313
  Prefactor  = 2.74007
  Prefactor  = 26.218
  Prefactor  = 2.42584e-07
  Prefactor  = 8.30447e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 0.944535
  Prefactor  = 95.5373
  Normalizat = 0.970247
  Prefactor  = 1.07768
 **********
 **   18 **HESSE 
 **********

 FCN=   20995.88     FROM HESSE     STATUS=OK           255 CALLS     1466 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14028E-06    11.547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59952E-08    44.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.305        7.1400        .31190E-03   -1.5644    
   4  Prefactor     .17208E-07    27.706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5788        47.664        .62472E-03   -1.5676    
   6  Prefactor     13.194        16.263        .27550E-03   -1.5635    
   7  Prefactor     7.3231        7.8780        .37040E-03   -1.5654    
   8  Prefactor     2.7401        39.185        .61956E-03   -1.5675    
   9  Prefactor     26.218        35.089        .19540E-03   -1.5606    
  10  Prefactor     .24258E-06    347.43        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83045E-07    10.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    4.3023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    12.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .94453        .42899        .42720E-04   -1.5689    
  15  Prefactor     95.537        23.938        .10232E-03   -1.5512    
  16  Normalizat    .97025        .13605        .94145E-01   -.94034    
  17  Prefactor     1.0777        .48343E-01    .38505E-01   -.90183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33088e-07
Minuit parameter uncertainties:
  1  0.00254543
  2  0.00103659
  3  7.14003
  4  0.00138199
  5  22.1737
  6  16.2631
  7  7.87806
  8  20.724
  9  35.0889
  10  0.0183616
  11  0.00184308
  12  3.57095e-05
  13  5.07951e-05
  14  0.428994
  15  23.9385
  16  0.136096
  17  0.0483453
Done.

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

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  1.319e+01  1.626e+01  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.078e+00  4.835e-02  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  9.702e-01  1.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 93.721 61.608
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 6.17e-06 +/- 7.60e-06

TS (Fixed Index): 1.01
Ra Dec: 93.721 61.608
Photon Flux Upper Limit: 8.21632557373e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00638941177663 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35828933/likelihoodResults_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.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) = 20995.8309032
delta logL = 0.0491915582534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20995.8200257
delta logL = 0.0600690845313

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20995.82     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      256 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.693        20.827        .12244E-04   -.47724E-02
   2  Index         2.8874        1.4333        .12934E-01   -.14169E-03
   3  Normalizat    .95942        .14163        .41917E-03    .31646E-03
   4  Prefactor     1.0793        .52238E-01    .15150E-03    .10498E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6926
  Index      = 2.88737
  Normalizat = 0.95942
  Prefactor  = 1.0793
 **********
 **   18 **HESSE 
 **********

 FCN=   20995.82     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.693        16.495        .48977E-06   -1.5643    
   2  Index         2.8874        1.1389        .51736E-03   -.43623    
   3  Normalizat    .95942        .14046        .16767E-04   -.94403    
   4  Prefactor     1.0793        .52085E-01    .30301E-04   -.90131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30143e-09
Minuit parameter uncertainties:
  1  16.4954
  2  1.15127
  3  0.140516
  4  0.0520875
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) = 20995.8200256
delta logL = 0.0600691903746

Extracting fit parameters...

4FGL J0614.8+6136
   Spectrum: PowerLaw
249    Prefactor:  1.069e+01  1.650e+01  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.887e+00  1.151e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  8.979e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.079e+00  5.209e-02  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  9.594e-01  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 93.721 61.608
Photon Index (Free Index): 2.89 +/- 1.15
Photon Flux (Free Index): 3.21e-08 +/- 4.38e-08
Energy Flux (Free Index): 6.80e-06 +/- 7.48e-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/35828933/cmap_HighResolution_723427201_724032001_4FGL_J0614.8+6136_weekly_bin801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='6.80e-06', photon_flux_error='2.61e-08', dlogl='6.01e-02', energy_flux='6.17e-06', photon_flux2='3.21e-08', job_status='DONE', time_completed='2023-12-12 01:26:01.131642', photon_index_error2='1.15', photon_index2='2.89', ts='1.01', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='7.48e-06', EG='0.97', time_epoch_completed='1702373161.13', return_code='0', job_id='35828933', GAL2='1.08', EG2='0.96', return_code2='0', energy_flux_error='7.60e-06', photon_flux_error2='4.38e-08', ts2='1.15', photon_index='2.50' WHERE bin_id='801' AND source_name='4FGL J0614.8+6136' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 12 01:26:01 PST 2023

