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


Performing analysis on: 4FGL_J0144.6+2705_weekly_bin823
RA = 26.1502, Dec = 27.0899
tmin = 736732801, tmax = 737337601
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='47868499', job_status='RUN', time_executed='2024-05-14 00:01:15.936259', time_epoch_executed='1715670075.94' WHERE source_name='4FGL J0144.6+2705' and cadence='weekly' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/47868499

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/47868499/ft1_4FGL_J0144.6+2705_weekly_bin823.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/47868499/ft1_4FGL_J0144.6+2705_weekly_bin823.fits outfile=/lscratch/kocevski/47868499/ft1_filteredMKT_4FGL_J0144.6+2705_weekly_bin823.fits ra=26.1502 dec=27.0899 rad=12.0 tmin=736732801.0 tmax=737337601.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.10
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.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/47868499/ft1_filteredMKT_4FGL_J0144.6+2705_weekly_bin823.fits evtable="EVENTS" outfile="/lscratch/kocevski/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.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.48
user 0.23
sys 0.15

Number of photons that the gtmktime cut: 405

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.fits" evtable="EVENTS" scfile=/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits sctable="SC_DATA" outfile=/lscratch/kocevski/47868499/ltcube_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.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/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits
.....................!
real 28.45
user 27.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.fits evtable="EVENTS" scfile=/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits sctable="SC_DATA" expcube=/lscratch/kocevski/47868499/ltcube_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.fits outfile=/lscratch/kocevski/47868499/expmap_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.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/47868499/ltcube_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.fits
.....................!
real 67.83
user 63.64
sys 3.55

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/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.fits scfile=/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits outfile=/lscratch/kocevski/47868499/cmap_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.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.47
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.fits scfile=/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits outfile=/lscratch/kocevski/47868499/cmap_HighResolution_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.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.91
user 0.25
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.fits', '/lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits', expMap='/lscratch/kocevski/47868499/expmap_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.fits', expCube='/lscratch/kocevski/47868499/ltcube_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/47868499/Model_4FGL_J0144.6+2705_weekly_bin823.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/47868499/ft1_filtered_4FGL_J0144.6+2705_weekly_bin823.fits
Spacecraft file(s): /lscratch/kocevski/47868499/ft2_4FGL_J0144.6+2705_weekly_bin823.fits
Exposure map: /lscratch/kocevski/47868499/expmap_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.fits
Exposure cube: /lscratch/kocevski/47868499/ltcube_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/47868499/Model_4FGL_J0144.6+2705_weekly_bin823.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) = 4612.55332562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39157E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .84041       1.0000          .0000       .10000E+07
     3 'norm      '    3.0578       1.0000          .0000       .10000E+07
     4 'Prefactor '    .57857E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1306       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.571       1.0000          .0000       .10000E+07
     7 'Prefactor '    .36403E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .73486       1.0000          .0000       .10000E+07
     9 'Prefactor '    45.484       1.0000          .0000       .10000E+07
    10 'Prefactor '    .66159E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20547       1.0000          .0000       .10000E+07
    12 'norm      '    .69322E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .66034E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .71369E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .18529E-05   1.0000          .0000       .10000E+07
    16 'norm      '    1.1687       1.0000          .0000       .10000E+07
    17 'Prefactor '    .59312       1.0000          .0000       .10000E+07
    18 'norm      '    174.41       1.0000          .0000       .10000E+07
    19 'Normalizat'    .54943       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2243       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=   4612.453     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     1562 TOTAL
                     EDM=   .13E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.3540        .51891E-08** at limit **
   2  norm          .84182        .53895       -.63205E-08   -.28953E-04
   3  norm          3.0646        1.6184        .99547E-08   -.85707E-05
   4  Prefactor      .0000        21.417        .83533E-07** at limit **
   5  Prefactor     3.1598        4.3756       -.22197E-08   -.37736E-04
   6  Prefactor     10.647        12.993        .16856E-06   -.30486E-05
   7  Prefactor      .0000        133.80       -.74895E-07** at limit **
   8  norm          .73641        .65324       -.98900E-08    .66715E-05
   9  Prefactor     45.625        23.519        .50333E-07   -.95975E-05
  10  Prefactor      .0000        19.287       -.95781E-07** at limit **
  11  Prefactor      .0000        51.856       -.15407E-06** at limit **
  12  norm           .0000        4.1213       -.27508E-07** at limit **
  13  Prefactor      .0000        12.439       -.11128E-06** at limit **
  14  Prefactor      .0000        9.7829        .83551E-07** at limit **
  15  norm           .0000        2.7237        .48982E-07** at limit **
  16  norm          141.13        354.01        .26054E-06    .15204E-05
  17  Prefactor      .0000        130.39       -.33986E-06** at limit **
  18  norm          173.24        81.495        .12087E-06   -.34063E-05
  19  Normalizat    .55969        .27300       -.69962E-06   -.73002E-06
  20  Prefactor     1.2146        .17480        .14289E-05   -.16316E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.841823
  norm       = 3.06458
  Prefactor  = 0
  Prefactor  = 3.15979
  Prefactor  = 10.6473
  Prefactor  = 0
  norm       = 0.736405
  Prefactor  = 45.6253
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 141.134
  Prefactor  = 0
  norm       = 173.238
  Normalizat = 0.55969
  Prefactor  = 1.21461
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.453     FROM HESSE     STATUS=OK           329 CALLS     1891 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.3255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .84182        .54044        .49970E-03   -1.5690    
   3  norm          3.0646        1.6241        .57990E-03   -1.5673    
   4  Prefactor      .0000        21.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1598        4.4019        .57273E-03   -1.5672    
   6  Prefactor     10.647        13.019        .30792E-03   -1.5643    
   7  Prefactor      .0000        133.38        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73641        .64894        .57922E-03   -1.5691    
   9  Prefactor     45.625        23.537        .14829E-03   -1.5573    
  10  Prefactor      .0000        19.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        51.768        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.1163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        12.433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        9.7839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.7202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          141.13        353.01        .10619E-02   -1.5470    
  17  Prefactor      .0000        130.48        .69847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          173.24        81.520        .75728E-04   -1.5445    
  19  Normalizat    .55969        .25591        .91220E-01   -1.0972    
  20  Prefactor     1.2146        .16110        .34080E-01   -.85883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2394e-09
Minuit parameter uncertainties:
  1  3.46028e-07
  2  0.540442
  3  1.62407
  4  3.46768e-06
  5  4.40188
  6  13.0192
  7  4.97344e-06
  8  0.648937
  9  23.5372
  10  1.42249e-06
  11  2.64172e-06
  12  1.06505e-07
  13  1.17064e-06
  14  1.98674e-07
  15  2.01309e-08
  16  353.058
  17  4.51531e-07
  18  81.5205
  19  0.256453
  20  0.161164
Done.

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

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  7.364e-01  6.489e-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:  1.215e+00  1.612e-01  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:  5.597e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.18
Ra Dec: 26.150 27.090
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.73e-05

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) = 4612.19110655
delta logL = 0.26213325905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4612.13609395
delta logL = 0.317145862882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51632       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3821       1.0000          .0000       5.0000    
     3 'Normalizat'    .57423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2126       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=   4612.136     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51606        .46946        .77084E-03   -.24625E-02
   2  alpha         1.3820        .51620        .38066       -.28489E-04
   3  Normalizat    .57426        .24542        .90141E-01    .27591E-04
   4  Prefactor     1.2126        .15909        .34340E-01   -.29112E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.516063
  alpha      = 1.382
  Normalizat = 0.574259
  Prefactor  = 1.21258
 **********
 **   18 **HESSE 
 **********

 FCN=   4612.136     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51606        .58424        .41990E-05   -1.5694    
   2  alpha         1.3820        .70099        .14968E-01   -.46363    
   3  Normalizat    .57426        .26522        .39941E-03   -1.0909    
   4  Prefactor     1.2126        .17265        .18276E-03   -.85945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32762e-09
Minuit parameter uncertainties:
  1  0.584236
  2  0.713008
  3  0.265807
  4  0.172734
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) = 4612.13609384
delta logL = 0.317145970786

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  5.161e-01  5.842e-01  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  1.382e+00  7.130e-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:  1.213e+00  1.727e-01  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:  5.743e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 26.150 27.090
Photon Index (Free Index): 1.38 +/- 0.71
Photon Flux (Free Index): 1.70e-08 +/- 2.07e-08
Energy Flux (Free Index): 3.85e-05 +/- 5.49e-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/47868499/cmap_HighResolution_736732801_737337601_4FGL_J0144.6+2705_weekly_bin823.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='3.85e-05', photon_flux_error='3.29e-08', dlogl='3.17e-01', energy_flux='1.97e-05', photon_flux2='1.70e-08', job_status='DONE', time_completed='2024-05-14 00:08:27.673010', photon_index_error2='0.71', photon_index2='1.38', ts='6.18', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='5.49e-05', EG='0.56', time_epoch_completed='1715670507.67', return_code='0', job_id='47868499', GAL2='1.21', EG2='0.57', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='2.07e-08', ts2='6.82', photon_index='2.03' WHERE bin_id='823' AND source_name='4FGL J0144.6+2705' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 14 00:08:27 PDT 2024

