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

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

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

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

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

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

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


Performing analysis on: 4FGL_J0153.9+0823_weekly_bin854
RA = 28.4972, Dec = 8.3931
tmin = 755481601, tmax = 756086401
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='60350660', job_status='RUN', time_executed='2024-12-17 00:03:03.324531', time_epoch_executed='1734422583.32' WHERE source_name='4FGL J0153.9+0823' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60350660

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60350660/ft1_4FGL_J0153.9+0823_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60350660/ft1_4FGL_J0153.9+0823_weekly_bin854.fits outfile=/lscratch/kocevski/60350660/ft1_filteredMKT_4FGL_J0153.9+0823_weekly_bin854.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=755481601.0 tmax=756086401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.25
user 3.79
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.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/60350660/ft1_filteredMKT_4FGL_J0153.9+0823_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 1186

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60350660/ltcube_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.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/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits
.....................!
real 18.77
user 18.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60350660/ltcube_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.fits outfile=/lscratch/kocevski/60350660/expmap_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.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/60350660/ltcube_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.fits
.....................!
real 59.39
user 55.34
sys 3.49

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

Setting source of interest to:
4FGL J0153.9+0823 @ 28.4972 8.3931

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits scfile=/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits outfile=/lscratch/kocevski/60350660/cmap_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.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=28.4972 yref=8.3931 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.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits scfile=/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits outfile=/lscratch/kocevski/60350660/cmap_HighResolution_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.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=28.4972 yref=8.3931 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.45
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60350660/Model_4FGL_J0153.9+0823_weekly_bin854.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/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits.....................!
real 46.77
user 45.50
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits', '/lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits', expMap='/lscratch/kocevski/60350660/expmap_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.fits', expCube='/lscratch/kocevski/60350660/ltcube_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60350660/Model_4FGL_J0153.9+0823_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0153.9+0823'

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  7.272e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
237        alpha:  1.822e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  7.988e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60350660/ft1_filtered_4FGL_J0153.9+0823_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60350660/ft2_4FGL_J0153.9+0823_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60350660/expmap_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60350660/ltcube_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60350660/Model_4FGL_J0153.9+0823_weekly_bin854.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) = 13056.5208966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22760E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15198E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .67189       1.0000          .0000       .10000E+07
     4 'norm      '    7.7237       1.0000          .0000       .10000E+07
     5 'Prefactor '    .67352E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.8572       1.0000          .0000       .10000E+07
     7 'norm      '    27.837       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.8840       1.0000          .0000       .10000E+07
     9 'norm      '    .51342       1.0000          .0000       .10000E+07
    10 'Prefactor '    .47040E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .79984E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.3722       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0715       1.0000          .0000       .10000E+07
    14 'Normalizat'    .91988       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13056.46     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      807 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4382        .90381E-07** at limit **
   2  Prefactor      .0000        13.895        .65791E-06** at limit **
   3  Prefactor     .66697        1.9620        .12172E-06    .13018E-02
   4  norm          7.7215        8.8789       -.19463E-05   -.76787E-03
   5  Prefactor      .0000        2.7919        .23394E-06** at limit **
   6  Prefactor     3.8570        1.9948       -.10910E-06   -.25815E-02
   7  norm          27.836        5.7004        .33281E-07    .29385E-02
   8  Prefactor     6.8838        2.3206       -.24060E-07   -.13486E-02
   9  norm          .51345        .62421       -.65499E-07    .38136E-03
  10  Prefactor      .0000        5.4747       -.17429E-07** at limit **
  11  Prefactor     .11102E-09    14.916       -.56865E-06** at limit **
  12  Prefactor     1.3786        4.1785        .27430E-06    .55599E-03
  13  Prefactor     5.0871        1.7697       -.38486E-06    .57543E-02
  14  Normalizat    .91991        .15435        .29630E-05   -.76444E-04
  15  Prefactor     1.1490        .10936       -.18063E-06   -.18346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.666975
  norm       = 7.72152
  Prefactor  = 0
  Prefactor  = 3.85704
  norm       = 27.8365
  Prefactor  = 6.88377
  norm       = 0.513446
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 1.37864
  Prefactor  = 5.08706
  Normalizat = 0.919907
  Prefactor  = 1.14901
 **********
 **   18 **HESSE 
 **********

 FCN=   13056.46     FROM HESSE     STATUS=OK           214 CALLS     1021 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        13.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66697        1.9808        .63020E-03   -1.5692    
   4  norm          7.7215        8.9642        .36058E-03   -1.5652    
   5  Prefactor      .0000        2.7744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8570        1.9975        .51358E-03   -1.5669    
   7  norm          27.836        5.6909        .18957E-03   -1.5602    
   8  Prefactor     6.8838        2.3292        .38215E-03   -1.5655    
   9  norm          .51345        .63739        .77370E-03   -1.5694    
  10  Prefactor      .0000        5.4935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    14.896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3786        4.1906        .93014E-03   -1.5684    
  13  Prefactor     5.0871        9.7881        .44625E-03   -1.5663    
  14  Normalizat    .91991        .13808        .72037E-01   -.95764    
  15  Prefactor     1.1490        .97452E-01    .35964E-01   -.87915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14816e-08
Minuit parameter uncertainties:
  1  9.53154e-06
  2  5.71392e-06
  3  1.98075
  4  8.96426
  5  1.03028e-06
  6  1.99751
  7  5.69091
  8  2.32916
  9  0.637391
  10  7.64889e-06
  11  7.23278e-05
  12  4.19064
  13  9.78812
  14  0.138138
  15  0.0974676
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  7.722e+00  8.964e+00  0.000e+00  1.000e+06 ( 1.000e-13)
237        alpha:  1.822e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  7.988e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.149e+00  9.747e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.199e-01  1.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 9.78e-09 +/- 1.14e-08
Energy Flux (Fixed Index): 9.80e-06 +/- 1.14e-05

TS (Fixed Index): 1.27
Ra Dec: 28.497 8.393
Photon Flux Upper Limit: 4.02981984427e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.034821908e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60350660/likelihoodResults_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.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) = 13056.3442084
delta logL = 0.113185733764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13056.3098619
delta logL = 0.147532207202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4536       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8853       1.0000          .0000       5.0000    
     3 'Normalizat'    .89551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13056.31     FROM MIGRAD    STATUS=FAILED        82 CALLS      252 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4523        156.33        .19893E-04   -.49908E-01
   2  alpha         2.8852        2.8509        .15152E-01   -.62407E-03
   3  Normalizat    .89553        .23453        .32260E-03   -.85764E-03
   4  Prefactor     1.1582        .11715        .20246E-03   -.13759E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13056.31     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      338 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4523        156.33        .27735E-04   -.49908E-01
   2  alpha         2.8852        2.8509        .38974E-02   -.62407E-03
   3  Normalizat    .89553        .23453        .25933E-03   -.85764E-03
   4  Prefactor     1.1582        .11715        .16262E-03   -.13759E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13056.31     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      370 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4404        58.325        .79572E-06    .12478E-01
   2  alpha         2.8877        3.7407        .60609E-03    .93524E-04
   3  Normalizat    .89546        .22532        .64521E-04    .64081E-03
   4  Prefactor     1.1582        .13385        .40492E-04    .53120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4404
  alpha      = 2.8877
  Normalizat = 0.895464
  Prefactor  = 1.1582
 **********
 **   18 **HESSE 
 **********

 FCN=   13056.31     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4404        39.973        .37362E-06   -1.5671    
   2  alpha         2.8877        3.9233        .24244E-04    .15571    
   3  Normalizat    .89546        .20568        .12904E-04   -.96620    
   4  Prefactor     1.1582        .12627        .80985E-05   -.87627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46068e-09
Minuit parameter uncertainties:
  1  23.4541
  2  4.71254
  3  0.205856
  4  0.126306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13056.3098615
delta logL = 0.147532585715

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  3.440e+00  2.345e+01  0.000e+00  1.000e+06 ( 1.000e-13)
237        alpha:  2.888e+00  4.713e+00  0.000e+00  5.000e+00 ( 1.000e+00)
238         beta:  7.988e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.158e+00  1.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.955e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 28.497 8.393
Photon Index (Free Index): 2.89 +/- 4.71
Photon Flux (Free Index): 3.01e-08 +/- 9.78e-08
Energy Flux (Free Index): 7.12e-06 +/- 7.03e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/60350660/cmap_HighResolution_755481601_756086401_4FGL_J0153.9+0823_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-05', comment='SUCCESS', photon_flux='9.78e-09', energy_flux2='7.12e-06', photon_flux_error='1.14e-08', dlogl='1.48e-01', energy_flux='9.80e-06', photon_flux2='3.01e-08', job_status='DONE', time_completed='2024-12-17 00:08:42.626297', photon_index_error2='4.71', photon_index2='2.89', ts='1.27', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='4.03e-08', energy_flux_error2='7.03e-06', EG='0.92', time_epoch_completed='1734422922.63', return_code='0', job_id='60350660', GAL2='1.16', EG2='0.90', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='9.78e-08', ts2='1.57', photon_index='1.82' WHERE bin_id='854' AND source_name='4FGL J0153.9+0823' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:08:42 PST 2024

