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

 FCN=   38124.87     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7432        18.328        .11465E-04   -1.5682    
   2  alpha         3.7742        4.0426        .14377E-01    .53482    
   3  Normalizat    1.3046        .14827        .57811E-03   -.83431    
   4  Prefactor     .94229        .25084E-01    .12478E-03   -.94679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38453e-06
Minuit parameter uncertainties:
  1  11.3047
  2  2.8928
  3  0.148316
  4  0.0250838
/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).

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656112
delta logL = 0.878346434038

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.743e+00  1.130e+01  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  3.774e+00  2.893e+00  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.423e-01  2.508e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.305e+00  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 72.319 63.495
Photon Index (Free Index): 3.77 +/- 2.89
Photon Flux (Free Index): 1.69e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.86e-05 +/- 1.37e-05

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/18852591/cmap_HighResolution_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.86e-05', photon_flux_error='2.96e-08', dlogl='8.78e-01', energy_flux='1.86e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2023-07-10 08:15:12.355042', photon_index_error2='2.89', photon_index2='3.77', ts='3.93', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.37e-05', EG='1.37', time_epoch_completed='1689002112.36', return_code='0', job_id='18852591', GAL2='0.94', EG2='1.30', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='1.24e-07', ts2='5.91', photon_index='2.24' WHERE bin_id='777' AND source_name='4FGL J0449.2+6329' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:15:12 PDT 2023

 (v3.41).

This is gtbin version HEAD
real 0.51
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18853873/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18853873/ft2_4FGL_J0449.2+6329_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18853873/Model_4FGL_J0449.2+6329_weekly_bin777.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 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/18853873/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits....................!
real 230.40
user 227.40
sys 1.61

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18853873/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits', '/lscratch/kocevski/18853873/ft2_4FGL_J0449.2+6329_weekly_bin777.fits', expMap='/lscratch/kocevski/18853873/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits', expCube='/lscratch/kocevski/18853873/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18853873/Model_4FGL_J0449.2+6329_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0449.2+6329'

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  5.077e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18853873/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18853873/ft2_4FGL_J0449.2+6329_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18853873/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18853873/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18853873/Model_4FGL_J0449.2+6329_weekly_bin777.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) = 38125.7452945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1229       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10701E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3120       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86865       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9812       1.0000          .0000       .10000E+07
     6 'Prefactor '    55.937       1.0000          .0000       .10000E+07
     7 'Prefactor '    .35127E-06   1.0000          .0000       .10000E+07
     8 'norm      '    12.289       1.0000          .0000       .10000E+07
     9 'norm      '    3.5471       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.674       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8629       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.3747       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .93855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38125.74     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      895 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1233        2.0844        .81491E-07    .14081E-02
   2  Prefactor     .55511E-10    16.091        .49526E-06** at limit **
   3  Prefactor     1.3117        1.9199        .45359E-07    .13399E-02
   4  Prefactor     .86861        .85549        .19456E-07    .17604E-02
   5  Prefactor     7.9923        1.0893       -.30197E-08    .22743E-01
   6  Prefactor     55.943        1.1430       -.24726E-08    .12007    
   7  Prefactor     .11102E-09    5.9865        .61595E-07** at limit **
   8  norm          12.298        9.1861        .10358E-07    .45752E-02
   9  norm          3.5456        1.2279       -.10169E-08    .14347E-01
  10  Prefactor      .0000        1.9971        .46611E-08** at limit **
  11  Prefactor     15.702        1.1781       -.23159E-08    .42765E-01
  12  Prefactor     4.8890        1.0394        .65308E-09    .46752E-02
  13  Normalizat    1.3747        .14476        .42233E-06    .12637E-04
  14  Prefactor     .93854        .27888E-01   -.13624E-06   -.85903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12328
  Prefactor  = 5.55112e-11
  Prefactor  = 1.31169
  Prefactor  = 0.868614
  Prefactor  = 7.99225
  Prefactor  = 55.9429
  Prefactor  = 1.11022e-10
  norm       = 12.2983
  norm       = 3.54556
  Prefactor  = 0
  Prefactor  = 15.7016
  Prefactor  = 4.88897
  Normalizat = 1.37466
  Prefactor  = 0.938543
number of points = 17691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0449.2+6329_weekly_bin777
RA = 72.3185, Dec = 63.4945
tmin = 708912001, tmax = 709516801
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='18856047', job_status='RUN', time_executed='2023-07-10 08:15:10.754738', time_epoch_executed='1689002110.75' WHERE source_name='4FGL J0449.2+6329' and cadence='weekly' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18856047

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18856047/ft1_4FGL_J0449.2+6329_weekly_bin777.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18856047/ft1_4FGL_J0449.2+6329_weekly_bin777.fits outfile=/lscratch/kocevski/18856047/ft1_filteredMKT_4FGL_J0449.2+6329_weekly_bin777.fits ra=72.3185 dec=63.4945 rad=12.0 tmin=708912001.0 tmax=709516801.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.54
user 3.09
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.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/18856047/ft1_filteredMKT_4FGL_J0449.2+6329_weekly_bin777.fits evtable="EVENTS" outfile="/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.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.53
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 3900

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits sctable="SC_DATA" **********
 **   18 **HESSE 
 **********

 FCN=   38125.74     FROM HESSE     STATUS=OK           198 CALLS     1093 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1233        2.0811        .11065E-02   -1.5687    
   2  Prefactor     .55511E-10    15.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3117        1.9445        .96197E-03   -1.5685    
   4  Prefactor     .86861        .85555        .47952E-03   -1.5689    
   5  Prefactor     7.9923        15.071        .35467E-03   -1.5651    
   6  Prefactor     55.943        34.248        .13371E-03   -1.5558    
   7  Prefactor     .11102E-09    5.9913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.298        9.3356        .28550E-03   -1.5638    
   9  norm          3.5456        17.309        .53643E-03   -1.5670    
  10  Prefactor      .0000        1.9911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.702        15.311        .25272E-03   -1.5629    
  12  Prefactor     4.8890        14.345        .45592E-03   -1.5664    
  13  Normalizat    1.3747        .14328        .12761       -.81364    
  14  Prefactor     .93854        .27155E-01    .28295E-01   -.94807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94716e-07
Minuit parameter uncertainties:
  1  2.08113
  2  7.16307e-05
  3  1.94446
  4  0.855545
  5  15.0711
  6  34.2483
  7  5.21545e-05
  8  9.33566
  9  15.668
  10  1.72854e-06
  11  15.3108
  12  14.3453
  13  0.143326
  14  0.0271553
 outfile=/lscratch/kocevski/18856047/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits
.....................!
real 19.21
user 18.63
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18856047/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits outfile=/lscratch/kocevski/18856047/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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/18856047/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
.....................!
real 69.24
user 64.92
sys 3.74

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 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
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 174 point sources and 4 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 J0449.2+6329 @ 72.3185 63.4945

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits scfile=/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits outfile=/lscratch/kocevski/18856047/cmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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=72.3185 yref=63.4945 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.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits scfile=/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits outfile=/lscratch/kocevski/18856047/cmap_HighResolution_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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=72.3185 yref=63.4945 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 libraryDone.

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

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.230e+01  9.336e+00  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.385e-01  2.716e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.375e+00  1.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 72.319 63.495
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.41e-05

TS (Fixed Index): 3.93
Ra Dec: 72.319 63.495
Photon Flux Upper Limit: 1.0864973908e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.18385597078e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18853873/likelihoodResults_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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) = 38124.9290094
delta logL = 0.814948247571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656115
delta logL = 0.878346143021

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   38124.87     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      289 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7432        7.3605        .79365E-03    .38848E-01
   2  alpha         3.7742        1.3544        .29058        .44173E-03
   3  Normalizat    1.3046        .47604E-01    .13024        .12612E-03
   4  Prefactor     .94229        .85860E-02    .28236E-01   -.77028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74321
  alpha      = 3.77422
  Normalizat = 1.30455
  Prefactor  = 0.942289
 **********
 **   18 **HESSE 
 **********

 FCN=   38124.87     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7432        18.328        .11465E-04   -1.5682    
   2  alpha         3.7742        4.0426        .14377E-01    .53482    
   3  Normalizat    1.3046        .14827        .57811E-03   -.83431    
   4  Prefactor     .94229        .25084E-01    .12478E-03   -.94679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38453e-06
Minuit parameter uncertainties:
  1  11.3047
  2  2.8928
  3  0.148316
  4  0.0250838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656112
delta logL = 0.878346434038

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.743e+00  1.130e+01  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  3.774e+00  2.893e+00  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.423e-01  2.508e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.305e+00  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 72.319 63.495
Photon Index (Free Index): 3.77 +/- 2.89
Photon Flux (Free Index): 1.69e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.86e-05 +/- 1.37e-05

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/18853873/cmap_HighResolution_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.86e-05', photon_flux_error='2.96e-08', dlogl='8.78e-01', energy_flux='1.86e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2023-07-10 08:20:35.553242', photon_index_error2='2.89', photon_index2='3.77', ts='3.93', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.37e-05', EG='1.37', time_epoch_completed='1689002435.55', return_code='0', job_id='18853873', GAL2='0.94', EG2='1.30', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='1.24e-07', ts2='5.91', photon_index='2.24' WHERE bin_id='777' AND source_name='4FGL J0449.2+6329' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:20:35 PDT 2023

(v3.41).

This is gtbin version HEAD
real 0.50
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18854794/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18854794/ft2_4FGL_J0449.2+6329_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18854794/Model_4FGL_J0449.2+6329_weekly_bin777.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 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/18854794/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits....................!
real 234.80
user 232.22
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18854794/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits', '/lscratch/kocevski/18854794/ft2_4FGL_J0449.2+6329_weekly_bin777.fits', expMap='/lscratch/kocevski/18854794/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits', expCube='/lscratch/kocevski/18854794/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18854794/Model_4FGL_J0449.2+6329_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0449.2+6329'

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  5.077e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18854794/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18854794/ft2_4FGL_J0449.2+6329_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18854794/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18854794/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18854794/Model_4FGL_J0449.2+6329_weekly_bin777.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) = 38125.7452945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1229       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10701E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3120       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86865       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9812       1.0000          .0000       .10000E+07
     6 'Prefactor '    55.937       1.0000          .0000       .10000E+07
     7 'Prefactor '    .35127E-06   1.0000          .0000       .10000E+07
     8 'norm      '    12.289       1.0000          .0000       .10000E+07
     9 'norm      '    3.5471       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.674       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8629       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.3747       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .93855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38125.74     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      895 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1233        2.0844        .81491E-07    .14081E-02
   2  Prefactor     .55511E-10    16.091        .49526E-06** at limit **
   3  Prefactor     1.3117        1.9199        .45359E-07    .13399E-02
   4  Prefactor     .86861        .85549        .19456E-07    .17604E-02
   5  Prefactor     7.9923        1.0893       -.30197E-08    .22743E-01
   6  Prefactor     55.943        1.1430       -.24726E-08    .12007    
   7  Prefactor     .11102E-09    5.9865        .61595E-07** at limit **
   8  norm          12.298        9.1861        .10358E-07    .45752E-02
   9  norm          3.5456        1.2279       -.10169E-08    .14347E-01
  10  Prefactor      .0000        1.9971        .46611E-08** at limit **
  11  Prefactor     15.702        1.1781       -.23159E-08    .42765E-01
  12  Prefactor     4.8890        1.0394        .65308E-09    .46752E-02
  13  Normalizat    1.3747        .14476        .42233E-06    .12637E-04
  14  Prefactor     .93854        .27888E-01   -.13624E-06   -.85903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12328
  Prefactor  = 5.55112e-11
  Prefactor  = 1.31169
  Prefactor  = 0.868614
  Prefactor  = 7.99225
  Prefactor  = 55.9429
  Prefactor  = 1.11022e-10
  norm       = 12.2983
  norm       = 3.54556
  Prefactor  = 0
  Prefactor  = 15.7016
  Prefactor  = 4.88897
  Normalizat = 1.37466
  Prefactor  = 0.938543
 **********
 **   18 **HESSE 
 **********

 FCN=   38125.74     FROM HESSE     STATUS=OK           198 CALLS     1093 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1233        2.0811        .11065E-02   -1.5687    
   2  Prefactor     .55511E-10    15.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3117        1.9445        .96197E-03   -1.5685    
   4  Prefactor     .86861        .85555        .47952E-03   -1.5689    
   5  Prefactor     7.9923        15.071        .35467E-03   -1.5651    
   6  Prefactor     55.943        34.248        .13371E-03   -1.5558    
   7  Prefactor     .11102E-09    5.9913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.298        9.3356        .28550E-03   -1.5638    
   9  norm          3.5456        17.309        .53643E-03   -1.5670    
  10  Prefactor      .0000        1.9911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.702        15.311        .25272E-03   -1.5629    
  12  Prefactor     4.8890        14.345        .45592E-03   -1.5664    
  13  Normalizat    1.3747        .14328        .12761       -.81364    
  14  Prefactor     .93854        .27155E-01    .28295E-01   -.94807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94716e-07
Minuit parameter uncertainties:
  1  2.08113
  2  7.16307e-05
  3  1.94446
  4  0.855545
  5  15.0711
  6  34.2483
  7  5.21545e-05
  8  9.33566
  9  15.668
  10  1.72854e-06
  11  15.3108
  12  14.3453
  13  0.143326
  14  0.0271553
Done.

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

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.230e+01  9.336e+00  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.385e-01  2.716e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.375e+00  1.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 72.319 63.495
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.41e-05

TS (Fixed Index): 3.93
Ra Dec: 72.319 63.495
Photon Flux Upper Limit: 1.0864973908e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.18385597078e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18854794/likelihoodResults_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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) = 38124.9290094
delta logL = 0.814948247571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656115
delta logL = 0.878346143021

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   38124.87     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      289 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7432        7.3605        .79365E-03    .38848E-01
   2  alpha         3.7742        1.3544        .29058        .44173E-03
   3  Normalizat    1.3046        .47604E-01    .13024        .12612E-03
   4  Prefactor     .94229        .85860E-02    .28236E-01   -.77028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74321
  alpha      = 3.77422
  Normalizat = 1.30455
  Prefactor  = 0.942289
 **********
 **   18 **HESSE 
 **********

 FCN=   38124.87     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7432        18.328        .11465E-04   -1.5682    
   2  alpha         3.7742        4.0426        .14377E-01    .53482    
   3  Normalizat    1.3046        .14827        .57811E-03   -.83431    
   4  Prefactor     .94229        .25084E-01    .12478E-03   -.94679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38453e-06
Minuit parameter uncertainties:
  1  11.3047
  2  2.8928
  3  0.148316
  4  0.0250838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656112
delta logL = 0.878346434038

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.743e+00  1.130e+01  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  3.774e+00  2.893e+00  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.423e-01  2.508e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.305e+00  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 72.319 63.495
Photon Index (Free Index): 3.77 +/- 2.89
Photon Flux (Free Index): 1.69e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.86e-05 +/- 1.37e-05

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/18854794/cmap_HighResolution_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.86e-05', photon_flux_error='2.96e-08', dlogl='8.78e-01', energy_flux='1.86e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2023-07-10 08:24:39.537494', photon_index_error2='2.89', photon_index2='3.77', ts='3.93', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.37e-05', EG='1.37', time_epoch_completed='1689002679.54', return_code='0', job_id='18854794', GAL2='0.94', EG2='1.30', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='1.24e-07', ts2='5.91', photon_index='2.24' WHERE bin_id='777' AND source_name='4FGL J0449.2+6329' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:24:39 PDT 2023

 (v3.41).

This is gtbin version HEAD
real 0.48
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18856047/Model_4FGL_J0449.2+6329_weekly_bin777.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 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits....................!
real 251.09
user 248.58
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits', '/lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits', expMap='/lscratch/kocevski/18856047/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits', expCube='/lscratch/kocevski/18856047/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18856047/Model_4FGL_J0449.2+6329_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0449.2+6329'

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  5.077e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18856047/ft1_filtered_4FGL_J0449.2+6329_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18856047/ft2_4FGL_J0449.2+6329_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18856047/expmap_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18856047/ltcube_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18856047/Model_4FGL_J0449.2+6329_weekly_bin777.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) = 38125.7452945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1229       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10701E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3120       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86865       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9812       1.0000          .0000       .10000E+07
     6 'Prefactor '    55.937       1.0000          .0000       .10000E+07
     7 'Prefactor '    .35127E-06   1.0000          .0000       .10000E+07
     8 'norm      '    12.289       1.0000          .0000       .10000E+07
     9 'norm      '    3.5471       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23648E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.674       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8629       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.3747       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .93855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38125.74     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      895 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1233        2.0844        .81491E-07    .14081E-02
   2  Prefactor     .55511E-10    16.091        .49526E-06** at limit **
   3  Prefactor     1.3117        1.9199        .45359E-07    .13399E-02
   4  Prefactor     .86861        .85549        .19456E-07    .17604E-02
   5  Prefactor     7.9923        1.0893       -.30197E-08    .22743E-01
   6  Prefactor     55.943        1.1430       -.24726E-08    .12007    
   7  Prefactor     .11102E-09    5.9865        .61595E-07** at limit **
   8  norm          12.298        9.1861        .10358E-07    .45752E-02
   9  norm          3.5456        1.2279       -.10169E-08    .14347E-01
  10  Prefactor      .0000        1.9971        .46611E-08** at limit **
  11  Prefactor     15.702        1.1781       -.23159E-08    .42765E-01
  12  Prefactor     4.8890        1.0394        .65308E-09    .46752E-02
  13  Normalizat    1.3747        .14476        .42233E-06    .12637E-04
  14  Prefactor     .93854        .27888E-01   -.13624E-06   -.85903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12328
  Prefactor  = 5.55112e-11
  Prefactor  = 1.31169
  Prefactor  = 0.868614
  Prefactor  = 7.99225
  Prefactor  = 55.9429
  Prefactor  = 1.11022e-10
  norm       = 12.2983
  norm       = 3.54556
  Prefactor  = 0
  Prefactor  = 15.7016
  Prefactor  = 4.88897
  Normalizat = 1.37466
  Prefactor  = 0.938543
 **********
 **   18 **HESSE 
 **********

 FCN=   38125.74     FROM HESSE     STATUS=OK           198 CALLS     1093 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1233        2.0811        .11065E-02   -1.5687    
   2  Prefactor     .55511E-10    15.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3117        1.9445        .96197E-03   -1.5685    
   4  Prefactor     .86861        .85555        .47952E-03   -1.5689    
   5  Prefactor     7.9923        15.071        .35467E-03   -1.5651    
   6  Prefactor     55.943        34.248        .13371E-03   -1.5558    
   7  Prefactor     .11102E-09    5.9913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.298        9.3356        .28550E-03   -1.5638    
   9  norm          3.5456        17.309        .53643E-03   -1.5670    
  10  Prefactor      .0000        1.9911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.702        15.311        .25272E-03   -1.5629    
  12  Prefactor     4.8890        14.345        .45592E-03   -1.5664    
  13  Normalizat    1.3747        .14328        .12761       -.81364    
  14  Prefactor     .93854        .27155E-01    .28295E-01   -.94807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94716e-07
Minuit parameter uncertainties:
  1  2.08113
  2  7.16307e-05
  3  1.94446
  4  0.855545
  5  15.0711
  6  34.2483
  7  5.21545e-05
  8  9.33566
  9  15.668
  10  1.72854e-06
  11  15.3108
  12  14.3453
  13  0.143326
  14  0.0271553
Done.

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

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.230e+01  9.336e+00  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.385e-01  2.716e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.375e+00  1.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 72.319 63.495
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.41e-05

TS (Fixed Index): 3.93
Ra Dec: 72.319 63.495
Photon Flux Upper Limit: 1.0864973908e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.18385597078e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18856047/likelihoodResults_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.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) = 38124.9290094
delta logL = 0.814948247571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656115
delta logL = 0.878346143021

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   38124.87     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      289 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7432        7.3605        .79365E-03    .38848E-01
   2  alpha         3.7742        1.3544        .29058        .44173E-03
   3  Normalizat    1.3046        .47604E-01    .13024        .12612E-03
   4  Prefactor     .94229        .85860E-02    .28236E-01   -.77028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74321
  alpha      = 3.77422
  Normalizat = 1.30455
  Prefactor  = 0.942289
 **********
 **   18 **HESSE 
 **********

 FCN=   38124.87     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7432        18.328        .11465E-04   -1.5682    
   2  alpha         3.7742        4.0426        .14377E-01    .53482    
   3  Normalizat    1.3046        .14827        .57811E-03   -.83431    
   4  Prefactor     .94229        .25084E-01    .12478E-03   -.94679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38453e-06
Minuit parameter uncertainties:
  1  11.3047
  2  2.8928
  3  0.148316
  4  0.0250838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38124.8656112
delta logL = 0.878346434038

Extracting fit parameters...

4FGL J0449.2+6329
   Spectrum: LogParabola
288         norm:  1.743e+00  1.130e+01  0.000e+00  1.000e+06 ( 1.000e-13)
289        alpha:  3.774e+00  2.893e+00  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  9.085e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.733e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.423e-01  2.508e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  1.305e+00  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 72.319 63.495
Photon Index (Free Index): 3.77 +/- 2.89
Photon Flux (Free Index): 1.69e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.86e-05 +/- 1.37e-05

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/18856047/cmap_HighResolution_708912001_709516801_4FGL_J0449.2+6329_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='2.86e-05', photon_flux_error='2.96e-08', dlogl='8.78e-01', energy_flux='1.86e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2023-07-10 08:30:31.802774', photon_index_error2='2.89', photon_index2='3.77', ts='3.93', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.37e-05', EG='1.37', time_epoch_completed='1689003031.8', return_code='0', job_id='18856047', GAL2='0.94', EG2='1.30', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='1.24e-07', ts2='5.91', photon_index='2.24' WHERE bin_id='777' AND source_name='4FGL J0449.2+6329' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:30:31 PDT 2023

