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

 FCN=   7125.383     FROM HESSE     STATUS=OK           135 CALLS     1119 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7804        19.685        .75753E-04   -1.5656    
   2  Prefactor     1.6207        12.675        .34213E-04   -1.5683    
   3  Prefactor     44.084        45.048        .61464E-05   -1.5575    
   4  norm          1.0287        .76540        .58693E-05   -1.5688    
   5  Prefactor     33.224        20.249        .69338E-05   -1.5593    
   6  norm           .0000        1.8207        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2083        310.21        .23595E-04   -1.5686    
   8  Prefactor     .39812        5.0083        .19313E-03   -1.5695    
   9  norm           .0000        .37482        .50253E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.918        38.833        .64959E-05   -1.5582    
  11  Normalizat    .88424        .20600        .26886E-03   -.97016    
  12  Prefactor     1.0773        .16585        .20891E-03   -.90196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28505e-10
Minuit parameter uncertainties:
  1  19.6848
  2  9.06447
  3  45.0485
  4  0.765397
  5  20.249
  6  2.97826e-06
  7  38.7232
  8  2.82411
  9  4.27872e-06
  10  38.8335
  11  0.206181
  12  0.165931
/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).

Done.

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

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  0.000e+00  2.978e-06  0.000e+00  1.000e+06 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.077e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.842e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 136.402 13.975
Photon Flux Upper Limit: 1.68151127209e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/18893931/likelihoodResults_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7125.39092156
delta logL = -0.00827293533348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7124.79747347
delta logL = 0.585175159244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12835E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7996       1.0000          .0000       5.0000    
     3 'Normalizat'    .81440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7125.383     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      267 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .48376        .24306E-08** at limit **
   2  alpha         .18825        3.4919        .10116E-04     .0000    
   3  Normalizat    .88424        .18933       -.71530E-05   -.36673E-03
   4  Prefactor     1.0773        .16262       -.19185E-04    .60506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 0.188254
  Normalizat = 0.884236
  Prefactor  = 1.07729
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7125.383     FROM HESSE     STATUS=FAILED         9 CALLS      276 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .47880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .94706        .46553        .10116E-04   -14.528    
   3  Normalizat    .88424        1.1973       -.71530E-05   -.97016    
   4  Prefactor     1.0773        1.1256       -.19185E-04   -2.2396    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.42914e-10
Minuit parameter uncertainties:
  1  5.40144e-06
  2  0.48643
  3  1.23642
  4  1.15192
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) = 7125.38264863
delta logL = -1.04591890704e-10

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  0.000e+00  5.401e-06  0.000e+00  1.000e+06 ( 1.000e-13)
283        alpha:  1.883e-01  4.864e-01  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.283e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.077e+00  1.152e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.842e-01  1.236e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 136.402 13.975

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/18893931/cmap_HighResolution_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='1.68e-08', time_completed='2023-07-10 10:43:52.730103', job_id='18893931', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1689011032.73', return_code2='101', ts='0.00', return_code='0', GAL='1.08', dlogl='-1.05e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.59' WHERE bin_id='1814' AND source_name='4FGL J0905.6+1358' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:43:53 PDT 2023

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


Performing analysis on: 4FGL_J0905.6+1358_daily_bin1814
RA = 136.402, Dec = 13.975
tmin = 709516801, tmax = 709776001
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='18894970', job_status='RUN', time_executed='2023-07-10 10:43:39.014980', time_epoch_executed='1689011019.02' WHERE source_name='4FGL J0905.6+1358' and cadence='daily' and bin_id='1814'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18894970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18894970/ft1_4FGL_J0905.6+1358_daily_bin1814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18894970/ft1_4FGL_J0905.6+1358_daily_bin1814.fits outfile=/lscratch/kocevski/18894970/ft1_filteredMKT_4FGL_J0905.6+1358_daily_bin1814.fits ra=136.402 dec=13.975 rad=12.0 tmin=709516801.0 tmax=709776001.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 1.55
user 1.21
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.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/18894970/ft1_filteredMKT_4FGL_J0905.6+1358_daily_bin1814.fits evtable="EVENTS" outfile="/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.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.54
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 633

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18894970/ltcube_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.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/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits
.....................!
real 8.29
user 7.88
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits evtable="EVENTS" scfile=/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18894970/ltcube_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.fits outfile=/lscratch/kocevski/18894970/expmap_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.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/18894970/ltcube_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.fits
.....................!
real 68.94
user 64.38
sys 4.03

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

Setting source of interest to:
4FGL J0905.6+1358 @ 136.402 13.975

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits scfile=/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits outfile=/lscratch/kocevski/18894970/cmap_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.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=136.402 yref=13.975 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.47
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits scfile=/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits outfile=/lscratch/kocevski/18894970/cmap_HighResolution_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.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=136.402 yref=13.975 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.49
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits evtable="EVENTS" scfile=/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18894970/Model_4FGL_J0905.6+1358_daily_bin1814.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/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits.....................!
real 28.28
user 26.89
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits', '/lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits', expMap='/lscratch/kocevski/18894970/expmap_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.fits', expCube='/lscratch/kocevski/18894970/ltcube_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18894970/Model_4FGL_J0905.6+1358_daily_bin1814.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0905.6+1358'

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18894970/ft1_filtered_4FGL_J0905.6+1358_daily_bin1814.fits
Spacecraft file(s): /lscratch/kocevski/18894970/ft2_4FGL_J0905.6+1358_daily_bin1814.fits
Exposure map: /lscratch/kocevski/18894970/expmap_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.fits
Exposure cube: /lscratch/kocevski/18894970/ltcube_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18894970/Model_4FGL_J0905.6+1358_daily_bin1814.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) = 7125.47015674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0063       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.5498       1.0000          .0000       .10000E+07
     3 'Prefactor '    42.360       1.0000          .0000       .10000E+07
     4 'norm      '    1.0281       1.0000          .0000       .10000E+07
     5 'Prefactor '    33.288       1.0000          .0000       .10000E+07
     6 'norm      '    .32169E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .72139       1.0000          .0000       .10000E+07
     8 'Prefactor '    .38876       1.0000          .0000       .10000E+07
     9 'norm      '    .46768E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    37.926       1.0000          .0000       .10000E+07
    11 'Normalizat'    .88745       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7125.383     FROM MIGRAD    STATUS=CONVERGED    273 CALLS      984 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7804        19.673        .37877E-03    .84654E-02
   2  Prefactor     1.6207        12.618        .85533E-03    .44616E-02
   3  Prefactor     44.084        44.901        .15366E-03   -.13614E-02
   4  norm          1.0287        .78342        .12564E-02    .61486E-02
   5  Prefactor     33.224        20.511        .17334E-03    .11437E-02
   6  norm           .0000        1.8204        .42118E-03** at limit **
   7  norm          1.2083        312.08        .58989E-03   -.10908E-03
   8  Prefactor     .39812        1.5519        .54437E-02    .83107E-02
   9  norm           .0000        .37189        .42118E-03** at limit **
  10  Prefactor     39.918        38.679        .16240E-03   -.53624E-04
  11  Normalizat    .88424        .17781        .44741E-01    .94025E-04
  12  Prefactor     1.0773        .14222        .38552E-01   -.15372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.78037
  Prefactor  = 1.62065
  Prefactor  = 44.0844
  norm       = 1.02866
  Prefactor  = 33.224
  norm       = 0
  norm       = 1.20831
  Prefactor  = 0.398118
  norm       = 0
  Prefactor  = 39.9178
  Normalizat = 0.884236
  Prefactor  = 1.07729
 **********
 **   18 **HESSE 
 **********

 FCN=   7125.383     FROM HESSE     STATUS=OK           135 CALLS     1119 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7804        19.685        .75753E-04   -1.5656    
   2  Prefactor     1.6207        12.675        .34213E-04   -1.5683    
   3  Prefactor     44.084        45.048        .61464E-05   -1.5575    
   4  norm          1.0287        .76540        .58693E-05   -1.5688    
   5  Prefactor     33.224        20.249        .69338E-05   -1.5593    
   6  norm           .0000        1.8207        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2083        310.21        .23595E-04   -1.5686    
   8  Prefactor     .39812        5.0083        .19313E-03   -1.5695    
   9  norm           .0000        .37482        .50253E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.918        38.833        .64959E-05   -1.5582    
  11  Normalizat    .88424        .20600        .26886E-03   -.97016    
  12  Prefactor     1.0773        .16585        .20891E-03   -.90196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28505e-10
Minuit parameter uncertainties:
  1  19.6848
  2  9.06447
  3  45.0485
  4  0.765397
  5  20.249
  6  2.97826e-06
  7  38.7232
  8  2.82411
  9  4.27872e-06
  10  38.8335
  11  0.206181
  12  0.165931
Done.

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

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  0.000e+00  2.978e-06  0.000e+00  1.000e+06 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.077e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.842e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 136.402 13.975
Photon Flux Upper Limit: 1.68151127209e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/18894970/likelihoodResults_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7125.39092156
delta logL = -0.00827293533348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7124.79747347
delta logL = 0.585175159244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12835E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7996       1.0000          .0000       5.0000    
     3 'Normalizat'    .81440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7125.383     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      267 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .48376        .24306E-08** at limit **
   2  alpha         .18825        3.4919        .10116E-04     .0000    
   3  Normalizat    .88424        .18933       -.71530E-05   -.36673E-03
   4  Prefactor     1.0773        .16262       -.19185E-04    .60506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 0.188254
  Normalizat = 0.884236
  Prefactor  = 1.07729
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7125.383     FROM HESSE     STATUS=FAILED         9 CALLS      276 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .47880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .94706        .46553        .10116E-04   -14.528    
   3  Normalizat    .88424        1.1973       -.71530E-05   -.97016    
   4  Prefactor     1.0773        1.1256       -.19185E-04   -2.2396    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.42914e-10
Minuit parameter uncertainties:
  1  5.40144e-06
  2  0.48643
  3  1.23642
  4  1.15192
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) = 7125.38264863
delta logL = -1.04591890704e-10

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  0.000e+00  5.401e-06  0.000e+00  1.000e+06 ( 1.000e-13)
283        alpha:  1.883e-01  4.864e-01  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.283e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.077e+00  1.152e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.842e-01  1.236e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 136.402 13.975

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/18894970/cmap_HighResolution_709516801_709776001_4FGL_J0905.6+1358_daily_bin1814.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='1.68e-08', time_completed='2023-07-10 10:48:02.405997', job_id='18894970', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1689011282.41', return_code2='101', ts='0.00', return_code='0', GAL='1.08', dlogl='-1.05e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.59' WHERE bin_id='1814' AND source_name='4FGL J0905.6+1358' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:48:02 PDT 2023

