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


Performing analysis on: 4FGL_J0144.6+2705_weekly_bin817
RA = 26.1502, Dec = 27.0899
tmin = 733104001, tmax = 733708801
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='44310321', job_status='RUN', time_executed='2024-04-19 22:05:46.561072', time_epoch_executed='1713589546.56' WHERE source_name='4FGL J0144.6+2705' and cadence='weekly' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44310321

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44310321/ft1_4FGL_J0144.6+2705_weekly_bin817.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44310321/ft1_4FGL_J0144.6+2705_weekly_bin817.fits outfile=/lscratch/kocevski/44310321/ft1_filteredMKT_4FGL_J0144.6+2705_weekly_bin817.fits ra=26.1502 dec=27.0899 rad=12.0 tmin=733104001.0 tmax=733708801.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 5.37
user 4.65
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.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/44310321/ft1_filteredMKT_4FGL_J0144.6+2705_weekly_bin817.fits evtable="EVENTS" outfile="/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.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.62
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1593

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44310321/ltcube_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.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/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits
.....................!
real 15.25
user 14.94
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits evtable="EVENTS" scfile=/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44310321/ltcube_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.fits outfile=/lscratch/kocevski/44310321/expmap_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.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/44310321/ltcube_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.fits
.....................!
real 59.27
user 55.87
sys 3.07

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

Setting source of interest to:
4FGL J0144.6+2705 @ 26.1502 27.0899

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits scfile=/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits outfile=/lscratch/kocevski/44310321/cmap_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.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.1502 yref=27.0899 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.40
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits scfile=/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits outfile=/lscratch/kocevski/44310321/cmap_HighResolution_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.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.1502 yref=27.0899 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.37
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits evtable="EVENTS" scfile=/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44310321/Model_4FGL_J0144.6+2705_weekly_bin817.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/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits.....................!
real 56.89
user 54.94
sys 0.54

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits', '/lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits', expMap='/lscratch/kocevski/44310321/expmap_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.fits', expCube='/lscratch/kocevski/44310321/ltcube_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44310321/Model_4FGL_J0144.6+2705_weekly_bin817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0144.6+2705'

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.270e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.033e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  8.399e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44310321/ft1_filtered_4FGL_J0144.6+2705_weekly_bin817.fits
Spacecraft file(s): /lscratch/kocevski/44310321/ft2_4FGL_J0144.6+2705_weekly_bin817.fits
Exposure map: /lscratch/kocevski/44310321/expmap_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.fits
Exposure cube: /lscratch/kocevski/44310321/ltcube_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44310321/Model_4FGL_J0144.6+2705_weekly_bin817.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) = 17399.9914133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85379       1.0000          .0000       .10000E+07
     2 'norm      '    1.0137       1.0000          .0000       .10000E+07
     3 'norm      '    3.1285       1.0000          .0000       .10000E+07
     4 'Prefactor '    23.665       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7933       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10424E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8290       1.0000          .0000       .10000E+07
     8 'norm      '    .60148       1.0000          .0000       .10000E+07
     9 'Prefactor '    11.874       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.4970       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11674E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .84467E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.5069       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14827E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .23537E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .45833E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12018       1.0000          .0000       .10000E+07
    18 'norm      '    1.3747       1.0000          .0000       .10000E+07
    19 'Normalizat'    .94380       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17399.97     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1562 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71715        8.7774        .41145E-05    .54988E-01
   2  norm          1.0134        .41468        .29273E-07    .69667E-03
   3  norm          3.1299        .91408        .94043E-08    .14227E-02
   4  Prefactor     23.666        4.4098        .61273E-06   -.86294E-02
   5  Prefactor     3.7870        2.9838        .65357E-06    .11833E-02
   6  Prefactor     .44009E-05    25.941       -.45730E-05** at limit **
   7  Prefactor     2.6250        5.3272        .20360E-05    .17102E-01
   8  norm          .60108        .34635       -.36108E-07   -.23329E-02
   9  Prefactor     11.891        7.2176       -.10078E-06   -.76945E-03
  10  Prefactor     3.4175        4.5838        .18357E-06    .73335E-03
  11  Prefactor     .35383E-05    22.328        .36761E-05** at limit **
  12  norm          .72164E-09    7.5561        .16710E-05** at limit **
  13  Prefactor     9.5127        4.6235        .87461E-06   -.16754E-02
  14  Prefactor      .0000        2.3217       -.31315E-06** at limit **
  15  norm           .0000        .87348E-01    .17491E-06** at limit **
  16  norm          .53846E-08    11.438       -.15709E-05** at limit **
  17  Prefactor     .77716E-09    41.834        .23061E-05** at limit **
  18  norm          1.3739        1.4108        .39099E-07   -.75303E-04
  19  Normalizat    .94414        .14403       -.83806E-05   -.11959E-03
  20  Prefactor     .97281        .83524E-01    .11243E-04   -.35997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.717151
  norm       = 1.01344
  norm       = 3.12994
  Prefactor  = 23.6659
  Prefactor  = 3.78704
  Prefactor  = 4.40087e-06
  Prefactor  = 2.62495
  norm       = 0.601076
  Prefactor  = 11.8905
  Prefactor  = 3.41749
  Prefactor  = 3.53834e-06
  norm       = 7.21645e-10
  Prefactor  = 9.5127
  Prefactor  = 0
  norm       = 0
  norm       = 5.38458e-09
  Prefactor  = 7.77156e-10
  norm       = 1.3739
  Normalizat = 0.944137
  Prefactor  = 0.972805
 **********
 **   18 **HESSE 
 **********

 FCN=   17399.97     FROM HESSE     STATUS=OK           339 CALLS     1901 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71715        22.340        .49009E-03   -1.5691    
   2  norm          1.0134        .41601        .44250E-03   -1.5688    
   3  norm          3.1299        .92284        .57294E-03   -1.5673    
   4  Prefactor     23.666        24.491        .20561E-03   -1.5611    
   5  Prefactor     3.7870        3.1735        .51804E-03   -1.5669    
   6  Prefactor     .44009E-05    33.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6250        34.893        .60437E-03   -1.5676    
   8  norm          .60108        .34984        .69096E-03   -1.5692    
   9  Prefactor     11.891        7.2357        .29047E-03   -1.5639    
  10  Prefactor     3.4175        4.5896        .54043E-03   -1.5671    
  11  Prefactor     .35383E-05    28.543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .72164E-09    7.3943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5127        4.6343        .32478E-03   -1.5646    
  14  Prefactor      .0000        2.3031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .85317E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .53846E-08    11.505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .77716E-09    41.297        .13416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3739        1.4251        .92886E-03   -1.5685    
  19  Normalizat    .94414        .12424        .70025E-01   -.94926    
  20  Prefactor     .97281        .71392E-01    .45925E-01   -.93642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04169e-07
Minuit parameter uncertainties:
  1  8.00531
  2  0.416008
  3  0.922837
  4  24.4908
  5  3.17349
  6  0.0244209
  7  19.1409
  8  0.349838
  9  7.23568
  10  4.58958
  11  0.0200993
  12  0.000144969
  13  4.63435
  14  1.0298e-05
  15  5.97507e-07
  16  0.000497793
  17  0.000352699
  18  1.42512
  19  0.12428
  20  0.0713992
Done.

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

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  6.011e-01  3.498e-01  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.033e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  8.399e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.728e-01  7.140e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  9.441e-01  1.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 26.150 27.090
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 9.35e-06

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) = 17399.8831761
delta logL = 0.0832391183576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17399.8816712
delta logL = 0.0847439568279

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17399.88     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60347        5.2380        .68903E-03    .20006E-01
   2  alpha         2.2301        3.6128        .41459        .48540E-04
   3  Normalizat    .93660        .45977E-01    .70270E-01    .50305E-04
   4  Prefactor     .97458        .24610E-01    .45949E-01    .52221E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.603471
  alpha      = 2.23007
  Normalizat = 0.936599
  Prefactor  = 0.97458
 **********
 **   18 **HESSE 
 **********

 FCN=   17399.88     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60347        .33807        .54260E-05   -1.5692    
   2  alpha         2.2301        .47917        .18020E-01   -.10818    
   3  Normalizat    .93660        .13908        .31090E-03   -.95186    
   4  Prefactor     .97458        .83139E-01    .18287E-03   -.93582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1707e-12
Minuit parameter uncertainties:
  1  0.338069
  2  0.482192
  3  0.139133
  4  0.0831501
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) = 17399.8816711
delta logL = 0.084744093434

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  6.035e-01  3.381e-01  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.230e+00  4.822e-01  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  8.399e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.746e-01  8.315e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  9.366e-01  1.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.02
Ra Dec: 26.150 27.090
Photon Index (Free Index): 2.23 +/- 0.48
Photon Flux (Free Index): 3.80e-08 +/- 2.64e-08
Energy Flux (Free Index): 1.50e-05 +/- 8.66e-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/44310321/cmap_HighResolution_733104001_733708801_4FGL_J0144.6+2705_weekly_bin817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='1.50e-05', photon_flux_error='1.77e-08', dlogl='8.47e-02', energy_flux='1.61e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2024-04-19 22:11:32.959816', photon_index_error2='0.48', photon_index2='2.23', ts='5.86', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='8.66e-06', EG='0.94', time_epoch_completed='1713589892.96', return_code='0', job_id='44310321', GAL2='0.97', EG2='0.94', return_code2='0', energy_flux_error='9.35e-06', photon_flux_error2='2.64e-08', ts2='6.02', photon_index='2.03' WHERE bin_id='817' AND source_name='4FGL J0144.6+2705' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Apr 19 22:11:32 PDT 2024

