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


Performing analysis on: 4FGL_J0218.9+3643_weekly_bin853
RA = 34.7473, Dec = 36.7176
tmin = 754876801, tmax = 755481601
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='59976411', job_status='RUN', time_executed='2024-12-10 00:02:11.424254', time_epoch_executed='1733817731.42' WHERE source_name='4FGL J0218.9+3643' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976411

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59976411/ft1_4FGL_J0218.9+3643_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976411/ft1_4FGL_J0218.9+3643_weekly_bin853.fits outfile=/lscratch/kocevski/59976411/ft1_filteredMKT_4FGL_J0218.9+3643_weekly_bin853.fits ra=34.7473 dec=36.7176 rad=12.0 tmin=754876801.0 tmax=755481601.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.34
user 3.29
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.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/59976411/ft1_filteredMKT_4FGL_J0218.9+3643_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.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.87
user 0.27
sys 0.16

Number of photons that the gtmktime cut: 422

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976411/ltcube_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.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/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits
.....................!
real 45.08
user 43.81
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976411/ltcube_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.fits outfile=/lscratch/kocevski/59976411/expmap_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.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/59976411/ltcube_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.fits
.....................!
real 73.66
user 68.35
sys 4.20

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

Setting source of interest to:
4FGL J0218.9+3643 @ 34.7473 36.7176

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits scfile=/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits outfile=/lscratch/kocevski/59976411/cmap_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.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=34.7473 yref=36.7176 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.61
user 0.28
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits scfile=/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits outfile=/lscratch/kocevski/59976411/cmap_HighResolution_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.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=34.7473 yref=36.7176 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 1.33
user 0.27
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976411/Model_4FGL_J0218.9+3643_weekly_bin853.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/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits.....................!
real 28.00
user 25.72
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits', '/lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits', expMap='/lscratch/kocevski/59976411/expmap_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.fits', expCube='/lscratch/kocevski/59976411/ltcube_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976411/Model_4FGL_J0218.9+3643_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9+3643'

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.139e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976411/ft1_filtered_4FGL_J0218.9+3643_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976411/ft2_4FGL_J0218.9+3643_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976411/expmap_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976411/ltcube_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976411/Model_4FGL_J0218.9+3643_weekly_bin853.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) = 4663.17442404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8010       1.0000          .0000       .10000E+07
     2 'Prefactor '    30.759       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34441E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16803E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    147.35       1.0000          .0000       .10000E+07
     6 'norm      '    10.565       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.818       1.0000          .0000       .10000E+07
     8 'norm      '    9.1975       1.0000          .0000       .10000E+07
     9 'norm      '    .20297       1.0000          .0000       .10000E+07
    10 'norm      '    .30159       1.0000          .0000       .10000E+07
    11 'norm      '    .29543E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.0644       1.0000          .0000       .10000E+07
    13 'norm      '    19.669       1.0000          .0000       .10000E+07
    14 'norm      '    12.493       1.0000          .0000       .10000E+07
    15 'Prefactor '    .54858       1.0000          .0000       .10000E+07
    16 'norm      '    .10505       1.0000          .0000       .10000E+07
    17 'Prefactor '    .47793E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    .54089       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4663.163     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1528 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8027        1.8288       -.91644E-07    .11506E-02
   2  Prefactor     29.522        19.096        .17610E-06    .10091E-01
   3  Prefactor     .55511E-10    4.1785       -.11958E-06** at limit **
   4  Prefactor     .11926E-05    60.031       -.12848E-05** at limit **
   5  Prefactor     147.09        14.626       -.73485E-08    .41403    
   6  norm          10.528        7.2740        .13071E-06   -.32744E-02
   7  Prefactor     10.787        12.249        .26402E-06    .90720E-02
   8  norm          9.1373        8.3108       -.98891E-07   -.33630E-03
   9  norm          .21022        1.4898        .23243E-06** at limit **
  10  norm          .99842E-06    131.09       -.12646E-05** at limit **
  11  norm           .0000        .44070        .94303E-07** at limit **
  12  Prefactor     4.9571        8.1556       -.40872E-06   -.43958E-03
  13  norm          19.755        5.1551       -.11310E-06    .50551E-02
  14  norm          12.484        4.0024       -.40910E-08    .90123E-03
  15  Prefactor     .56314E-04    248.79       -.42802E-06** at limit **
  16  norm          .35805E-07    86.974        .21464E-05** at limit **
  17  Prefactor     .33307E-08    82.203       -.14446E-05** at limit **
  18  Normalizat    .54571        .29090       -.48830E-05    .83972E-05
  19  Prefactor     .95187        .14522        .24299E-06    .17586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.80273
  Prefactor  = 29.5219
  Prefactor  = 5.55112e-11
  Prefactor  = 1.1926e-06
  Prefactor  = 147.086
  norm       = 10.5282
  Prefactor  = 10.7867
  norm       = 9.13726
  norm       = 0.210225
  norm       = 9.98424e-07
  norm       = 0
  Prefactor  = 4.95715
  norm       = 19.7552
  norm       = 12.4842
  Prefactor  = 5.63141e-05
  norm       = 3.58047e-08
  Prefactor  = 3.33067e-09
  Normalizat = 0.545712
  Prefactor  = 0.951867
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.163     FROM HESSE     STATUS=OK           318 CALLS     1846 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8027        1.8290        .45891E-03   -1.5664    
   2  Prefactor     29.522        19.178        .18033E-03   -1.5599    
   3  Prefactor     .55511E-10    4.1649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11926E-05    59.846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     147.09        103.05        .82387E-04   -1.5465    
   6  norm          10.528        7.2977        .30801E-03   -1.5643    
   7  Prefactor     10.787        12.288        .30437E-03   -1.5642    
   8  norm          9.1373        10.177        .33023E-03   -1.5648    
   9  norm          .21022        2.2173        .11723E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .99842E-06    131.40        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .25812        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9571        14.017        .44656E-03   -1.5663    
  13  norm          19.755        20.243        .22555E-03   -1.5619    
  14  norm          12.484        4.0082        .28315E-03   -1.5637    
  15  Prefactor     .56314E-04    252.73        .73966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .35805E-07    85.369        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-08    20.276        .10663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .54571        .27502        .97204E-01   -1.1034    
  19  Prefactor     .95187        .13412        .45672E-01   -.94352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25839e-05
Minuit parameter uncertainties:
  1  1.82902
  2  19.1779
  3  2.26135e-05
  4  0.0168965
  5  103.049
  6  7.29771
  7  12.288
  8  10.1772
  9  1.36547
  10  0.0229083
  11  6.89663e-07
  12  14.0168
  13  20.2433
  14  4.00823
  15  0.238608
  16  0.00349791
  17  0.000521645
  18  0.275704
  19  0.134166
Done.

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

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  9.137e+00  1.018e+01  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.519e-01  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  5.457e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.23
Ra Dec: 34.747 36.718
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 1.22e-07
Energy Flux (Fixed Index): 3.77e-05 +/- 4.20e-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) = 4663.15061633
delta logL = 0.0123618867092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4663.14382806
delta logL = 0.0191501522113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8950       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3294       1.0000          .0000       5.0000    
     3 'Normalizat'    .55777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94812       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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.

 FCN=   4663.144     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8951        7.2483        .12732E-04   -.99915E-03
   2  alpha         2.3297        .74692        .13800E-01   -.22472E-04
   3  Normalizat    .55771        .27563        .42659E-03    .17163E-04
   4  Prefactor     .94824        .14405        .17606E-03    .75565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.89511
  alpha      = 2.3297
  Normalizat = 0.557705
  Prefactor  = 0.948244
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.144     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8951        7.0461        .50930E-06   -1.5645    
   2  alpha         2.3297        .72553        .55199E-03   -.68173E-01
   3  Normalizat    .55771        .27514        .17064E-04   -1.0981    
   4  Prefactor     .94824        .14395        .35211E-04   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22307e-11
Minuit parameter uncertainties:
  1  7.04607
  2  0.736174
  3  0.275816
  4  0.144008
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) = 4663.14382715
delta logL = 0.0191510639861

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  9.895e+00  7.046e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.330e+00  7.362e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.482e-01  1.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  5.577e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 34.747 36.718
Photon Index (Free Index): 2.33 +/- 0.74
Photon Flux (Free Index): 9.69e-08 +/- 8.93e-08
Energy Flux (Free Index): 3.83e-05 +/- 2.44e-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/59976411/cmap_HighResolution_754876801_755481601_4FGL_J0218.9+3643_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.83e-05', photon_flux_error='1.22e-07', dlogl='1.92e-02', energy_flux='3.77e-05', photon_flux2='9.69e-08', job_status='DONE', time_completed='2024-12-10 00:08:43.966799', photon_index_error2='0.74', photon_index2='2.33', ts='5.23', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.55', time_epoch_completed='1733818123.97', return_code='0', job_id='59976411', GAL2='0.95', EG2='0.56', return_code2='0', energy_flux_error='4.20e-05', photon_flux_error2='8.93e-08', ts2='5.28', photon_index='2.47' WHERE bin_id='853' AND source_name='4FGL J0218.9+3643' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:08:44 PST 2024

