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

 FCN=   6248.586     FROM HESSE     STATUS=OK           373 CALLS     1712 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4563        126.79        .70724E-03   -1.5684    
   2  Prefactor     .76050E-08    25.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6556        3.0616        .52715E-03   -1.5670    
   4  norm           .0000        .34426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10514E-06    16.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4991        3.1515        .47420E-03   -1.5666    
   7  Prefactor     .31086E-08    1.6537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .96312E-01    1.8517        .71694E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4499        17.032        .43190E-03   -1.5661    
  10  norm          .49140        .95358        .79900E-03   -1.5694    
  11  norm          .13566E-01    1.2151        .30313E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52478E-05    67.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .43854E-08    5.8999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .72164E-09    8.8541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7383        .53670        .53658E-03   -1.5675    
  16  norm          41.322        11.957        .15561E-03   -1.5579    
  17  Prefactor     13.275        12.184        .27469E-03   -1.5635    
  18  Prefactor     10.593        11.876        .30765E-03   -1.5643    
  19  norm          3.7375        .95267        .52217E-03   -1.5669    
  20  Normalizat    .87889        .19340        .44654E-01   -.97206    
  21  Prefactor     1.1780        .20034        .61935E-01   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74406e-07
Minuit parameter uncertainties:
  1  27.1767
  2  0.000888349
  3  3.06164
  4  3.1786e-06
  5  0.00261312
  6  3.15153
  7  0.000143519
  8  0.844606
  9  17.0319
  10  0.953582
  11  0.256783
  12  0.0377569
  13  0.000320953
  14  0.000161984
  15  0.536701
  16  11.9571
  17  12.1839
  18  11.8756
  19  0.952667
  20  0.193553
  21  0.200464
/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) = 6248.58587525

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  5.248e-06  3.776e-02  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.305e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.178e+00  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.789e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.659 -32.447
Photon Flux Upper Limit: 6.51213030575e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00499957033921 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18864200/likelihoodResults_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.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) = 6248.59291844
delta logL = -0.00704319040869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.58589941
delta logL = -2.41607904172e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16220E-02   1.0000          .0000       .10000E+07
     2 'Index     '    1.2783       1.0000          .0000       10.000    
     3 'Normalizat'    .87811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6248.586     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      249 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        51.139        .84235E-04** at limit **
   2  Index         2.6089        3.6951       -.12608E-04     .0000    
   3  Normalizat    .87889        .10268       -.22760E-09    .36309E-03
   4  Prefactor     1.1780        .11436        .11185E-09    .26315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6089
  Normalizat = 0.878892
  Prefactor  = 1.17803
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6248.586     FROM HESSE     STATUS=FAILED         9 CALLS      258 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        51.139        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .76950        3.6951       -.12608E-04   -.49863    
   3  Normalizat    .87889        .10268       -.22760E-09   -.97206    
   4  Prefactor     1.1780        .11436        .11185E-09   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.05159e-11
Minuit parameter uncertainties:
  1  1.28958e-06
  2  4.3912
  3  0.102703
  4  0.114384
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) = 6248.58587521
delta logL = 3.85516614188e-08

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.290e-06  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.609e+00  4.391e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.178e+00  1.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.789e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.659 -32.447

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/18864200/cmap_HighResolution_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2023-07-10 08:53:12.361728', job_id='18864200', GAL2='1.18', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1689004392.36', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.86e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1816' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:53:12 PDT 2023

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


Performing analysis on: 4FGL_J0350.6-3226_daily_bin1816
RA = 57.6594, Dec = -32.4473
tmin = 710035201, tmax = 710294401
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='18865672', job_status='RUN', time_executed='2023-07-10 08:52:58.200518', time_epoch_executed='1689004378.2' WHERE source_name='4FGL J0350.6-3226' and cadence='daily' and bin_id='1816'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18865672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18865672/ft1_4FGL_J0350.6-3226_daily_bin1816.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18865672/ft1_4FGL_J0350.6-3226_daily_bin1816.fits outfile=/lscratch/kocevski/18865672/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1816.fits ra=57.6594 dec=-32.4473 rad=12.0 tmin=710035201.0 tmax=710294401.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 2.44
user 2.01
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.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/18865672/ft1_filteredMKT_4FGL_J0350.6-3226_daily_bin1816.fits evtable="EVENTS" outfile="/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.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.69
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 579

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18865672/ltcube_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.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/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits
.....................!
real 8.29
user 7.75
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18865672/ltcube_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.fits outfile=/lscratch/kocevski/18865672/expmap_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.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/18865672/ltcube_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.fits
.....................!
real 63.87
user 59.49
sys 3.76

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 Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 172 point sources and 1 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 J0350.6-3226 @ 57.6594 -32.4473

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits scfile=/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits outfile=/lscratch/kocevski/18865672/cmap_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.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=57.6594 yref=-32.4473 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.56
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits scfile=/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits outfile=/lscratch/kocevski/18865672/cmap_HighResolution_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.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=57.6594 yref=-32.4473 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.64
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18865672/Model_4FGL_J0350.6-3226_daily_bin1816.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits.....................!
real 50.47
user 48.90
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits', '/lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits', expMap='/lscratch/kocevski/18865672/expmap_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.fits', expCube='/lscratch/kocevski/18865672/ltcube_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18865672/Model_4FGL_J0350.6-3226_daily_bin1816.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0350.6-3226'

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  9.696e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.305e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18865672/ft1_filtered_4FGL_J0350.6-3226_daily_bin1816.fits
Spacecraft file(s): /lscratch/kocevski/18865672/ft2_4FGL_J0350.6-3226_daily_bin1816.fits
Exposure map: /lscratch/kocevski/18865672/expmap_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.fits
Exposure cube: /lscratch/kocevski/18865672/ltcube_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18865672/Model_4FGL_J0350.6-3226_daily_bin1816.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) = 6248.73911067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58344       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11748E-02   1.0000          .0000       .10000E+07
     3 'norm      '    3.6681       1.0000          .0000       .10000E+07
     4 'norm      '    .15332E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .78663E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.5033       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12995E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .75555E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.4076       1.0000          .0000       .10000E+07
    10 'norm      '    .48825       1.0000          .0000       .10000E+07
    11 'norm      '    .96123E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .23783E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .20421E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .45958E-05   1.0000          .0000       .10000E+07
    15 'norm      '    2.7375       1.0000          .0000       .10000E+07
    16 'norm      '    41.304       1.0000          .0000       .10000E+07
    17 'Prefactor '    13.272       1.0000          .0000       .10000E+07
    18 'Prefactor '    10.589       1.0000          .0000       .10000E+07
    19 'norm      '    3.7357       1.0000          .0000       .10000E+07
    20 'Normalizat'    .88063       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6248.586     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1339 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4563        30.401       -.12272E-04    .30950E-01
   2  Prefactor     .76050E-08    25.708        .67628E-06** at limit **
   3  norm          3.6556        3.0233        .68427E-07    .18703E-02
   4  norm           .0000        .35062       -.41498E-07** at limit **
   5  Prefactor     .10514E-06    16.064       -.23355E-05** at limit **
   6  Prefactor     4.4991        3.0969        .29301E-08    .33929E-02
   7  Prefactor     .31086E-08    1.6377        .36319E-06** at limit **
   8  Prefactor     .96312E-01    30.074       -.39653E-05** at limit **
   9  Prefactor     5.4499        11.690        .56200E-05    .59099E-01
  10  norm          .49140        .94392       -.53051E-08    .32923E-02
  11  norm          .13566E-01    10.884       -.76049E-05** at limit **
  12  Prefactor     .52478E-05    60.676        .43080E-05** at limit **
  13  norm          .43854E-08    5.8695        .12550E-06** at limit **
  14  Prefactor     .72164E-09    8.8283       -.80312E-07** at limit **
  15  norm          2.7383        .52820       -.13128E-07    .91285E-02
  16  norm          41.322        4.8444       -.32117E-06   -.28669E-03
  17  Prefactor     13.275        7.6206       -.17378E-05   -.77323E-01
  18  Prefactor     10.593        7.9778        .42468E-06    .79982E-01
  19  norm          3.7375        .93566       -.17626E-07   -.51132E-03
  20  Normalizat    .87889        .21900        .42794E-05    .14408E-03
  21  Prefactor     1.1780        .23587       -.57824E-05    .17622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45625
  Prefactor  = 7.60503e-09
  norm       = 3.65563
  norm       = 0
  Prefactor  = 1.05138e-07
  Prefactor  = 4.49912
  Prefactor  = 3.10862e-09
  Prefactor  = 0.0963122
  Prefactor  = 5.44986
  norm       = 0.491402
  norm       = 0.0135661
  Prefactor  = 5.2478e-06
  norm       = 4.38538e-09
  Prefactor  = 7.21645e-10
  norm       = 2.73829
  norm       = 41.3218
  Prefactor  = 13.2749
  Prefactor  = 10.5926
  norm       = 3.73749
  Normalizat = 0.87889
  Prefactor  = 1.17803
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.586     FROM HESSE     STATUS=OK           373 CALLS     1712 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4563        126.79        .70724E-03   -1.5684    
   2  Prefactor     .76050E-08    25.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6556        3.0616        .52715E-03   -1.5670    
   4  norm           .0000        .34426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10514E-06    16.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4991        3.1515        .47420E-03   -1.5666    
   7  Prefactor     .31086E-08    1.6537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .96312E-01    1.8517        .71694E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4499        17.032        .43190E-03   -1.5661    
  10  norm          .49140        .95358        .79900E-03   -1.5694    
  11  norm          .13566E-01    1.2151        .30313E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52478E-05    67.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .43854E-08    5.8999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .72164E-09    8.8541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7383        .53670        .53658E-03   -1.5675    
  16  norm          41.322        11.957        .15561E-03   -1.5579    
  17  Prefactor     13.275        12.184        .27469E-03   -1.5635    
  18  Prefactor     10.593        11.876        .30765E-03   -1.5643    
  19  norm          3.7375        .95267        .52217E-03   -1.5669    
  20  Normalizat    .87889        .19340        .44654E-01   -.97206    
  21  Prefactor     1.1780        .20034        .61935E-01   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74406e-07
Minuit parameter uncertainties:
  1  27.1767
  2  0.000888349
  3  3.06164
  4  3.1786e-06
  5  0.00261312
  6  3.15153
  7  0.000143519
  8  0.844606
  9  17.0319
  10  0.953582
  11  0.256783
  12  0.0377569
  13  0.000320953
  14  0.000161984
  15  0.536701
  16  11.9571
  17  12.1839
  18  11.8756
  19  0.952667
  20  0.193553
  21  0.200464
Done.

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

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  5.248e-06  3.776e-02  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.305e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.178e+00  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.789e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.659 -32.447
Photon Flux Upper Limit: 6.51213030575e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00499957033921 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18865672/likelihoodResults_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.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) = 6248.59291844
delta logL = -0.00704319040869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.58589941
delta logL = -2.41607904172e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16220E-02   1.0000          .0000       .10000E+07
     2 'Index     '    1.2783       1.0000          .0000       10.000    
     3 'Normalizat'    .87811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6248.586     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      249 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        51.139        .84235E-04** at limit **
   2  Index         2.6089        3.6951       -.12608E-04     .0000    
   3  Normalizat    .87889        .10268       -.22760E-09    .36309E-03
   4  Prefactor     1.1780        .11436        .11185E-09    .26315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6089
  Normalizat = 0.878892
  Prefactor  = 1.17803
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6248.586     FROM HESSE     STATUS=FAILED         9 CALLS      258 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        51.139        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .76950        3.6951       -.12608E-04   -.49863    
   3  Normalizat    .87889        .10268       -.22760E-09   -.97206    
   4  Prefactor     1.1780        .11436        .11185E-09   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.05159e-11
Minuit parameter uncertainties:
  1  1.28958e-06
  2  4.3912
  3  0.102703
  4  0.114384
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) = 6248.58587521
delta logL = 3.85516614188e-08

Extracting fit parameters...

4FGL J0350.6-3226
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  1.290e-06  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.609e+00  4.391e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.178e+00  1.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.789e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.659 -32.447

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/18865672/cmap_HighResolution_710035201_710294401_4FGL_J0350.6-3226_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2023-07-10 08:58:40.675285', job_id='18865672', GAL2='1.18', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1689004720.68', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.86e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1816' AND source_name='4FGL J0350.6-3226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:58:40 PDT 2023

