/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_J0242.3+1102_weekly_bin853
RA = 40.5951, Dec = 11.0477
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='59976448', job_status='RUN', time_executed='2024-12-10 00:02:19.209871', time_epoch_executed='1733817739.21' WHERE source_name='4FGL J0242.3+1102' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976448

Creating custom pfile directory:
/lscratch/kocevski/59976448/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/59976448/ft1_4FGL_J0242.3+1102_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/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976448/ft1_4FGL_J0242.3+1102_weekly_bin853.fits outfile=/lscratch/kocevski/59976448/ft1_filteredMKT_4FGL_J0242.3+1102_weekly_bin853.fits ra=40.5951 dec=11.0477 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 3.96
user 3.20
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_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/59976448/ft1_filteredMKT_4FGL_J0242.3+1102_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_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.98
user 0.27
sys 0.16

Number of photons that the gtmktime cut: 499

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976448/ltcube_754876801_755481601_4FGL_J0242.3+1102_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/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits
.....................!
real 47.97
user 46.63
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976448/ltcube_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.fits outfile=/lscratch/kocevski/59976448/expmap_754876801_755481601_4FGL_J0242.3+1102_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/59976448/ltcube_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.fits
.....................!
real 74.17
user 68.41
sys 4.26

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

Setting source of interest to:
4FGL J0242.3+1102 @ 40.5951 11.0477

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits scfile=/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits outfile=/lscratch/kocevski/59976448/cmap_754876801_755481601_4FGL_J0242.3+1102_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=40.5951 yref=11.0477 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.71
user 0.28
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits scfile=/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits outfile=/lscratch/kocevski/59976448/cmap_HighResolution_754876801_755481601_4FGL_J0242.3+1102_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=40.5951 yref=11.0477 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.88
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976448/Model_4FGL_J0242.3+1102_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/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits.....................!
real 36.64
user 33.28
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits', '/lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits', expMap='/lscratch/kocevski/59976448/expmap_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.fits', expCube='/lscratch/kocevski/59976448/ltcube_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976448/Model_4FGL_J0242.3+1102_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0242.3+1102'

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  4.106e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
255        alpha:  2.435e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  2.435e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976448/ft1_filtered_4FGL_J0242.3+1102_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976448/ft2_4FGL_J0242.3+1102_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976448/expmap_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976448/ltcube_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976448/Model_4FGL_J0242.3+1102_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) = 5591.72682286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13545E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.4755       1.0000          .0000       .10000E+07
     3 'norm      '    26.535       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.8304       1.0000          .0000       .10000E+07
     5 'norm      '    .32196E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .45368E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    41.879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17767       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56752E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .47098E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .71460E-03   1.0000          .0000       .10000E+07
    12 'norm      '    1.0674       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24046E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .75159E-02   1.0000          .0000       .10000E+07
    15 'norm      '    18.511       1.0000          .0000       .10000E+07
    16 'Prefactor '    .63328E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11827E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.189       1.0000          .0000       .10000E+07
    19 'Prefactor '    .50430E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .39842E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .77023E-03   1.0000          .0000       .10000E+07
    22 'norm      '    11.066       1.0000          .0000       .10000E+07
    23 'Prefactor '    .14730E-02   1.0000          .0000       .10000E+07
    24 'norm      '    17.799       1.0000          .0000       .10000E+07
    25 'Prefactor '    .12409E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .12377E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1477       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5591.717     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2498 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1104        .42984E-07** at limit **
   2  Prefactor     9.4791        3.9058        .33906E-08   -.26434E-03
   3  norm          26.511        8.1060        .25851E-07    .11033E-03
   4  Prefactor     6.8362        3.5179        .96073E-08    .16818E-03
   5  norm           .0000        .25646        .85260E-08** at limit **
   6  Prefactor     .20499E-04    28.047        .70850E-06** at limit **
   7  Prefactor     41.860        2.7423        .55137E-08    .23697E-01
   8  Prefactor     .44314E-05    7.9228        .89449E-07** at limit **
   9  Prefactor     .22760E-08    8.3516       -.22062E-07** at limit **
  10  Prefactor     .37884E-05    40.600        .40483E-06** at limit **
  11  Prefactor     .55511E-10    6.7269        .15017E-06** at limit **
  12  norm          1.0682        .79531       -.30045E-07   -.34170E-03
  13  Prefactor      .0000        32.565        .52426E-09** at limit **
  14  Prefactor     .32147E-06    22.090        .51416E-07** at limit **
  15  norm          18.542        1.8925       -.99514E-09   -.23971E-01
  16  Prefactor     .75271E-05    68.811        .84755E-06** at limit **
  17  Prefactor     .52625E-07    20.700       -.47815E-08** at limit **
  18  Prefactor     13.195        2.1706       -.62389E-08    .36203E-02
  19  Prefactor      .0000        3.6262       -.61231E-07** at limit **
  20  norm          .45475E-06    9.8704        .63736E-08** at limit **
  21  norm           .0000        4.7533        .91103E-07** at limit **
  22  norm          11.196        6.9870       -.19733E-07    .22435E-03
  23  Prefactor     .34417E-08    9.2106        .44626E-07** at limit **
  24  norm          17.824        1.3757       -.24285E-09    .36069E-03
  25  Prefactor     .33307E-09    7.2962        .67609E-07** at limit **
  26  Prefactor     .55511E-09    14.223        .17253E-06** at limit **
  27  Normalizat    1.1476        .26994        .32130E-06    .42587E-05
  28  Prefactor     .85125        .11993       -.12108E-06    .55354E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 9.4791
  norm       = 26.5114
  Prefactor  = 6.83617
  norm       = 0
  Prefactor  = 2.04992e-05
  Prefactor  = 41.8602
  Prefactor  = 4.4314e-06
  Prefactor  = 2.27596e-09
  Prefactor  = 3.78836e-06
  Prefactor  = 5.55112e-11
  norm       = 1.06823
  Prefactor  = 0
  Prefactor  = 3.21465e-07
  norm       = 18.5417
  Prefactor  = 7.52709e-06
  Prefactor  = 5.26246e-08
  Prefactor  = 13.1947
  Prefactor  = 0
  norm       = 4.54747e-07
  norm       = 0
  norm       = 11.1965
  Prefactor  = 3.44169e-09
  norm       = 17.8243
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-10
  Normalizat = 1.14762
  Prefactor  = 0.851255
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.717     FROM HESSE     STATUS=OK           567 CALLS     3065 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4791        3.9105        .32532E-03   -1.5646    
   3  norm          26.511        8.1098        .19417E-03   -1.5605    
   4  Prefactor     6.8362        3.5191        .38366E-03   -1.5656    
   5  norm           .0000        .25580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20499E-04    69.794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.860        59.416        .15454E-03   -1.5579    
   8  Prefactor     .44314E-05    348.99        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22760E-08    8.3513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37884E-05    50.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    6.7282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0682        .83272        .11782E-02   -1.5687    
  13  Prefactor      .0000        32.510        .16784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32147E-06    24.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.542        17.378        .23251E-03   -1.5622    
  16  Prefactor     .75271E-05    84.767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .52625E-07    29.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.195        23.426        .27556E-03   -1.5635    
  19  Prefactor      .0000        3.6316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .45475E-06    27.942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        4.7595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.196        7.0195        .30091E-03   -1.5641    
  23  Prefactor     .34417E-08    9.2099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.824        14.405        .23713E-03   -1.5624    
  25  Prefactor     .33307E-09    7.2855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-09    14.231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1476        .25047        .81779E-01   -.88237    
  28  Prefactor     .85125        .10945        .44384E-01   -.97866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54429e-07
Minuit parameter uncertainties:
  1  1.10819e-06
  2  3.91048
  3  8.10983
  4  3.51906
  5  4.20333e-08
  6  0.0756507
  7  59.4173
  8  0.0786565
  9  0.000275045
  10  0.0276308
  11  2.87061e-05
  12  0.832721
  13  3.69e-06
  14  0.00562763
  15  17.3784
  16  0.0505202
  17  0.00248969
  18  23.4261
  19  1.97889e-06
  20  0.00712922
  21  1.97142e-06
  22  7.01955
  23  0.000356859
  24  14.405
  25  0.000101181
  26  0.000175499
  27  0.250735
  28  0.109478
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.854e+01  1.738e+01  0.000e+00  1.000e+06 ( 1.000e-12)
255        alpha:  2.435e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  2.435e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  8.513e-01  1.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.148e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.31
Ra Dec: 40.595 11.048
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.74e-05

TS (Fixed Index): 2.31
Ra Dec: 40.595 11.048
Photon Flux Upper Limit: 1.98546369189e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.9744194912e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59976448/likelihoodResults_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.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) = 5591.68382436
delta logL = 0.033613619572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.68191218
delta logL = 0.035525797256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.628       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0739       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84950       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+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=   5591.682     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      262 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.625        18.987        .95309E-05   -.33160E-03
   2  alpha         2.0738        1.3055        .31078E-01    .24610E-04
   3  Normalizat    1.1608        .26526        .36034E-03    .49051E-03
   4  Prefactor     .84960        .11900        .18662E-03    .80310E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.6248
  alpha      = 2.07377
  Normalizat = 1.16077
  Prefactor  = 0.849595
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.682     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.625        19.473        .38124E-06   -1.5624    
   2  alpha         2.0738        1.3351        .12431E-02   -.17133    
   3  Normalizat    1.1608        .26538        .72068E-04   -.87824    
   4  Prefactor     .84960        .11903        .37325E-04   -.97925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89926e-10
Minuit parameter uncertainties:
  1  19.4727
  2  1.41098
  3  0.265692
  4  0.119069
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) = 5591.68191188
delta logL = 0.0355261013156

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.762e+01  1.947e+01  0.000e+00  1.000e+06 ( 1.000e-12)
255        alpha:  2.074e+00  1.411e+00  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  2.435e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  8.496e-01  1.191e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.161e+00  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 40.595 11.048
Photon Index (Free Index): 2.07 +/- 1.41
Photon Flux (Free Index): 4.33e-08 +/- 7.90e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.77e-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/59976448/cmap_HighResolution_754876801_755481601_4FGL_J0242.3+1102_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-05', comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='1.75e-05', photon_flux_error='5.79e-08', dlogl='3.55e-02', energy_flux='1.86e-05', photon_flux2='4.33e-08', job_status='DONE', time_completed='2024-12-10 00:09:55.836611', photon_index_error2='1.41', photon_index2='2.07', ts='2.31', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.77e-05', EG='1.15', time_epoch_completed='1733818195.84', return_code='0', job_id='59976448', GAL2='0.85', EG2='1.16', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.90e-08', ts2='2.37', photon_index='2.44' WHERE bin_id='853' AND source_name='4FGL J0242.3+1102' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:09:55 PST 2024

