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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1871
RA = 26.2585, Dec = -27.5363
tmin = 724291201, tmax = 724550401
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='36554670', job_status='RUN', time_executed='2023-12-18 00:56:05.294265', time_epoch_executed='1702889765.29' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1871'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36554670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36554670/ft1_4FGL_J0145.0-2732_daily_bin1871.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36554670/ft1_4FGL_J0145.0-2732_daily_bin1871.fits outfile=/lscratch/kocevski/36554670/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1871.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=724291201.0 tmax=724550401.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.17
user 1.96
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.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/36554670/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1871.fits evtable="EVENTS" outfile="/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.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.39
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 438

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36554670/ltcube_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.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/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits
.....................!
real 12.18
user 11.76
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits evtable="EVENTS" scfile=/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36554670/ltcube_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.fits outfile=/lscratch/kocevski/36554670/expmap_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.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/36554670/ltcube_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.fits
.....................!
real 69.57
user 65.36
sys 3.81

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

Setting source of interest to:
4FGL J0145.0-2732 @ 26.2585 -27.5363

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits scfile=/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits outfile=/lscratch/kocevski/36554670/cmap_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.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=26.2585 yref=-27.5363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.41
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits scfile=/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits outfile=/lscratch/kocevski/36554670/cmap_HighResolution_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.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=26.2585 yref=-27.5363 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.39
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits evtable="EVENTS" scfile=/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36554670/Model_4FGL_J0145.0-2732_daily_bin1871.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/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits.....................!
real 19.42
user 17.88
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits', '/lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits', expMap='/lscratch/kocevski/36554670/expmap_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.fits', expCube='/lscratch/kocevski/36554670/ltcube_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36554670/Model_4FGL_J0145.0-2732_daily_bin1871.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0145.0-2732'

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.960e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
291        alpha:  2.480e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  9.678e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36554670/ft1_filtered_4FGL_J0145.0-2732_daily_bin1871.fits
Spacecraft file(s): /lscratch/kocevski/36554670/ft2_4FGL_J0145.0-2732_daily_bin1871.fits
Exposure map: /lscratch/kocevski/36554670/expmap_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.fits
Exposure cube: /lscratch/kocevski/36554670/ltcube_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36554670/Model_4FGL_J0145.0-2732_daily_bin1871.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) = 4855.4245315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14129E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14046E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .85459E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8734       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15111E-02   1.0000          .0000       .10000E+07
     6 'norm      '    3.4302       1.0000          .0000       .10000E+07
     7 'norm      '    .19901E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .80453E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14459E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .35594E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6883       1.0000          .0000       .10000E+07
    12 'norm      '    .40487E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.5718       1.0000          .0000       .10000E+07
    14 'norm      '    4.1081       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22591E-02   1.0000          .0000       .10000E+07
    16 'norm      '    2.1452       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.173       1.0000          .0000       .10000E+07
    18 'Prefactor '    .95099E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .92140E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    104.75       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12012E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1135       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4855.422     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1959 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0150       -.43291E-06** at limit **
   2  Prefactor     .44409E-09    7.5420       -.11456E-06** at limit **
   3  Prefactor     .59175E-07    2.6957       -.32606E-06** at limit **
   4  Prefactor     1.8273        3.9156        .22296E-06    .77240E-03
   5  Prefactor      .0000        7.1602        .15994E-05** at limit **
   6  norm          3.4320        2.3132       -.14350E-06    .77331E-03
   7  norm           .0000        1.1934       -.79378E-07** at limit **
   8  Prefactor     .57565E-07    2.6221        .62609E-06** at limit **
   9  Prefactor      .0000        3.3622       -.83295E-07** at limit **
  10  norm           .0000        .68802       -.34001E-06** at limit **
  11  Prefactor     1.8902        11.384       -.29100E-05    .21255E-01
  12  norm           .0000        .78497        .19165E-06** at limit **
  13  Prefactor     9.5607        4.6989        .20853E-07   -.10298E-02
  14  norm          4.0862        3.4660       -.26049E-06   -.11301E-02
  15  Prefactor     .53235E-07    12.554        .19363E-05** at limit **
  16  norm          2.1428        2.7909       -.10457E-06   -.13946E-03
  17  Prefactor     19.194        1.2392        .73558E-08    .23960E-03
  18  Prefactor      .0000        3.0137        .44843E-06** at limit **
  19  Prefactor     .52180E-08    9.5304        .20894E-05** at limit **
  20  Prefactor     105.50        69.588        .73382E-06   -.10155E-01
  21  Prefactor     .54790E-07    11.933       -.21082E-05** at limit **
  22  Normalizat    1.1137        .21003        .12210E-05    .60956E-04
  23  Prefactor     .84147        .23377        .75112E-06    .36358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 5.91749e-08
  Prefactor  = 1.82729
  Prefactor  = 0
  norm       = 3.43204
  norm       = 0
  Prefactor  = 5.75651e-08
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.89018
  norm       = 0
  Prefactor  = 9.56068
  norm       = 4.0862
  Prefactor  = 5.32352e-08
  norm       = 2.14276
  Prefactor  = 19.1936
  Prefactor  = 0
  Prefactor  = 5.21805e-09
  Prefactor  = 105.503
  Prefactor  = 5.47895e-08
  Normalizat = 1.11368
  Prefactor  = 0.841472
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.422     FROM HESSE     STATUS=OK           410 CALLS     2369 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44409E-09    7.7630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .59175E-07    4.8830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8273        3.9424        .76056E-03   -1.5681    
   5  Prefactor      .0000        7.2306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4320        2.3149        .54590E-03   -1.5671    
   7  norm           .0000        1.1893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57565E-07    4.8759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.3537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .67980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8902        133.01        .80996E-03   -1.5680    
  12  norm           .0000        .78376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5607        4.7868        .32367E-03   -1.5646    
  14  norm          4.0862        3.4727        .49713E-03   -1.5668    
  15  Prefactor     .53235E-07    13.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1428        2.7993        .70333E-03   -1.5679    
  17  Prefactor     19.194        13.218        .22846E-03   -1.5620    
  18  Prefactor      .0000        3.0053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .52180E-08    9.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.50        69.723        .97712E-04   -1.5503    
  21  Prefactor     .54790E-07    12.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1137        .18149        .37477E-01   -.89314    
  23  Prefactor     .84147        .20188        .63444E-01   -.98217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82891e-07
Minuit parameter uncertainties:
  1  2.99982e-06
  2  0.000114976
  3  0.0010749
  4  3.94239
  5  1.70631e-05
  6  2.31489
  7  7.89016e-07
  8  0.00105945
  9  8.05665e-06
  10  2.95455e-06
  11  31.7123
  12  1.63101e-06
  13  4.78678
  14  3.47266
  15  0.00166775
  16  2.79927
  17  13.2183
  18  3.75232e-06
  19  0.000446887
  20  69.7237
  21  0.00165662
  22  0.181593
  23  0.20206
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  4.086e+00  3.473e+00  0.000e+00  1.000e+06 ( 1.000e-11)
291        alpha:  2.480e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  9.678e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.415e-01  2.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.114e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 26.259 -27.536
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.09e-05

TS (Fixed Index): 2.06
Ra Dec: 26.259 -27.536
Photon Flux Upper Limit: 1.36492473543e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.58568966279e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36554670/likelihoodResults_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.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) = 4855.36370484
delta logL = 0.0582707620533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4855.36269145
delta logL = 0.0592841510024

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4855.363     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1772        4.1264        .49288E-03    .59649E-01
   2  alpha         2.2527        .65086        .38853       -.17030E-04
   3  Normalizat    1.1203        .17450        .37229E-01    .35587E-05
   4  Prefactor     .83464        .20240        .63665E-01    .13345E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17723
  alpha      = 2.2527
  Normalizat = 1.12031
  Prefactor  = 0.834644
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.363     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1772        3.4829        .56463E-04   -1.5667    
   2  alpha         2.2527        .62570        .15130E-01   -.99083E-01
   3  Normalizat    1.1203        .20305        .21378E-03   -.89103    
   4  Prefactor     .83464        .23383        .28160E-03   -.98464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5359e-11
Minuit parameter uncertainties:
  1  3.48293
  2  0.632492
  3  0.203193
  4  0.234106
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) = 4855.36269145
delta logL = 0.0592841533817

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  4.177e+00  3.483e+00  0.000e+00  1.000e+06 ( 1.000e-11)
291        alpha:  2.253e+00  6.325e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  9.678e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.346e-01  2.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.120e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 26.259 -27.536
Photon Index (Free Index): 2.25 +/- 0.63
Photon Flux (Free Index): 4.48e-08 +/- 3.98e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.27e-05

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/36554670/cmap_HighResolution_724291201_724550401_4FGL_J0145.0-2732_daily_bin1871.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='1.43e-05', photon_flux_error='4.13e-08', dlogl='5.93e-02', energy_flux='1.28e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2023-12-18 01:00:07.386278', photon_index_error2='0.63', photon_index2='2.25', ts='2.06', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.27e-05', EG='1.11', time_epoch_completed='1702890007.39', return_code='0', job_id='36554670', GAL2='0.83', EG2='1.12', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.98e-08', ts2='2.16', photon_index='2.48' WHERE bin_id='1871' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 18 01:00:07 PST 2023

