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


Performing analysis on: 4FGL_J1150.4+2418_weekly_bin855
RA = 177.603, Dec = 24.3016
tmin = 756086401, tmax = 756691201
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='60729033', job_status='RUN', time_executed='2024-12-24 03:36:11.425849', time_epoch_executed='1735040171.43' WHERE source_name='4FGL J1150.4+2418' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60729033

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60729033/ft1_4FGL_J1150.4+2418_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60729033/ft1_4FGL_J1150.4+2418_weekly_bin855.fits outfile=/lscratch/kocevski/60729033/ft1_filteredMKT_4FGL_J1150.4+2418_weekly_bin855.fits ra=177.603 dec=24.3016 rad=12.0 tmin=756086401.0 tmax=756691201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.47
user 2.22
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.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/60729033/ft1_filteredMKT_4FGL_J1150.4+2418_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.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.36
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 885

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60729033/ltcube_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.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/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits
.....................!
real 9.66
user 9.36
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60729033/ltcube_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.fits outfile=/lscratch/kocevski/60729033/expmap_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.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/60729033/ltcube_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.fits
.....................!
real 59.14
user 55.46
sys 3.38

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

Setting source of interest to:
4FGL J1150.4+2418 @ 177.603 24.3016

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits scfile=/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits outfile=/lscratch/kocevski/60729033/cmap_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.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=177.603 yref=24.3016 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.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits scfile=/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits outfile=/lscratch/kocevski/60729033/cmap_HighResolution_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.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=177.603 yref=24.3016 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.38
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60729033/Model_4FGL_J1150.4+2418_weekly_bin855.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/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits.....................!
real 29.26
user 28.24
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits', '/lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits', expMap='/lscratch/kocevski/60729033/expmap_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.fits', expCube='/lscratch/kocevski/60729033/ltcube_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60729033/Model_4FGL_J1150.4+2418_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.4+2418'

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.344e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60729033/ft1_filtered_4FGL_J1150.4+2418_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60729033/ft2_4FGL_J1150.4+2418_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60729033/expmap_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60729033/ltcube_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60729033/Model_4FGL_J1150.4+2418_weekly_bin855.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) = 9650.25472328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58955E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.8410       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20043E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    8.7325       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37545E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88596E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17074E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.346       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9139       1.0000          .0000       .10000E+07
    10 'norm      '    8.0710       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44719E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45033E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.0752       1.0000          .0000       .10000E+07
    14 'norm      '    11.921       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6275       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.4432       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.0657       1.0000          .0000       .10000E+07
    18 'norm      '    .46161E-02   1.0000          .0000       .10000E+07
    19 'norm      '    3.1185       1.0000          .0000       .10000E+07
    20 'Prefactor '    .48855E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76959       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9650.253     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1864 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1703        .12664E-06** at limit **
   2  Prefactor     5.8460        5.0984       -.23500E-06   -.20826E-02
   3  Prefactor      .0000        3.9969       -.20099E-07** at limit **
   4  Prefactor     8.8443        4.3697       -.63347E-08   -.53495E-02
   5  Prefactor     .55511E-10    9.7160        .17188E-06** at limit **
   6  Prefactor      .0000        .70875       -.43926E-07** at limit **
   7  Prefactor      .0000        5.9546        .10225E-06** at limit **
   8  Prefactor     18.358        1.2292       -.17163E-07    .16502E-01
   9  Prefactor     1.9133        1.2442       -.75359E-08   -.37382E-02
  10  norm          8.0711        1.3951       -.51202E-08    .17206E-02
  11  Prefactor      .0000        1.8770       -.64848E-07** at limit **
  12  Prefactor     .46463E-01    12.133       -.11270E-06** at limit **
  13  Prefactor     2.0757        1.8207       -.17715E-07   -.10970E-02
  14  norm          11.913        3.7005       -.16569E-07   -.21673E-02
  15  Prefactor     3.6303        2.4102        .10404E-07    .87947E-03
  16  Prefactor     1.4429        1.1148       -.15954E-08    .47222E-02
  17  Prefactor     3.0552        3.2597        .15570E-06   -.11717E-02
  18  norm          .42402E-02    .77717        .13382E-06** at limit **
  19  norm          3.1208        2.3862       -.62549E-07   -.35332E-04
  20  Prefactor      .0000        2.9967       -.66663E-07** at limit **
  21  Normalizat    1.1593        .15961       -.27468E-06   -.59323E-04
  22  Prefactor     .76971        .16823        .27977E-06   -.10228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.84598
  Prefactor  = 0
  Prefactor  = 8.84435
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 18.3583
  Prefactor  = 1.91332
  norm       = 8.07108
  Prefactor  = 0
  Prefactor  = 0.0464628
  Prefactor  = 2.07572
  norm       = 11.9134
  Prefactor  = 3.6303
  Prefactor  = 1.44295
  Prefactor  = 3.05522
  norm       = 0.0042402
  norm       = 3.12083
  Prefactor  = 0
  Normalizat = 1.15931
  Prefactor  = 0.769708
 **********
 **   18 **HESSE 
 **********

 FCN=   9650.253     FROM HESSE     STATUS=OK           406 CALLS     2270 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8460        5.1078        .41531E-03   -1.5660    
   3  Prefactor      .0000        4.0126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8443        13.629        .33896E-03   -1.5648    
   5  Prefactor     .55511E-10    10.339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .72891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.1303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.358        9.4465        .23356E-03   -1.5622    
   9  Prefactor     1.9133        1.2614        .75104E-03   -1.5680    
  10  norm          8.0711        1.4010        .35268E-03   -1.5651    
  11  Prefactor      .0000        1.8776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .46463E-01    .79936        .49736E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0757        1.8351        .71671E-03   -1.5679    
  14  norm          11.913        3.6915        .28989E-03   -1.5639    
  15  Prefactor     3.6303        2.4126        .53021E-03   -1.5670    
  16  Prefactor     1.4429        1.1269        .89732E-03   -1.5684    
  17  Prefactor     3.0552        3.2725        .57911E-03   -1.5673    
  18  norm          .42402E-02    .60231E-01    .14126E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1208        2.3922        .57391E-03   -1.5673    
  20  Prefactor      .0000        3.0131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1593        .13857        .52136E-01   -.87870    
  22  Prefactor     .76971        .14441        .67492E-01   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67926e-08
Minuit parameter uncertainties:
  1  2.06441e-06
  2  5.10785
  3  1.36256e-05
  4  13.6294
  5  5.71524e-05
  6  5.69396e-07
  7  1.64361e-07
  8  9.44649
  9  1.26144
  10  1.40096
  11  3.46801e-06
  12  0.385436
  13  1.83512
  14  3.69152
  15  2.41263
  16  1.1269
  17  3.27249
  18  0.031962
  19  2.39219
  20  1.09011e-05
  21  0.138609
  22  0.144482
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.913e+00  1.261e+00  0.000e+00  1.000e+06 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.697e-01  1.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.159e+00  1.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 9.31e-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) = 9650.04796059
delta logL = 0.204912464169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9650.04777577
delta logL = 0.205097279286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3099       1.0000          .0000       .10000E+07
     2 'Index     '    1.9483       1.0000          .0000       10.000    
     3 'Normalizat'    1.1677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76392       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9650.048     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      273 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3089        37.067        .67480E-03    .22653E-02
   2  Index         1.9479        3.3060        .22411        .42320E-04
   3  Normalizat    1.1678        .63831E-01    .51972E-01   -.87354E-05
   4  Prefactor     .76379        .59727E-01    .67723E-01    .27118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30889
  Index      = 1.94788
  Normalizat = 1.16777
  Prefactor  = 0.763793
 **********
 **   18 **HESSE 
 **********

 FCN=   9650.048     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3089        1.5627        .95455E-05   -1.5678    
   2  Index         1.9479        .42241        .77272E-02   -.65660    
   3  Normalizat    1.1678        .15659        .22978E-03   -.87605    
   4  Prefactor     .76379        .16915        .29964E-03   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23248e-12
Minuit parameter uncertainties:
  1  1.56272
  2  0.423213
  3  0.156649
  4  0.169266
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) = 9650.04777455
delta logL = 0.205098497723

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.309e+00  1.563e+00  0.000e+00  1.000e+06 ( 1.000e-12)
287        Index:  1.948e+00  4.232e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.638e-01  1.693e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.168e+00  1.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.95 +/- 0.42
Photon Flux (Free Index): 2.63e-08 +/- 2.07e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.97e-05

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/60729033/cmap_HighResolution_756086401_756691201_4FGL_J1150.4+2418_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.08e-05', photon_flux_error='2.18e-08', dlogl='2.05e-01', energy_flux='1.41e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2024-12-24 03:40:49.827694', photon_index_error2='0.42', photon_index2='1.95', ts='5.19', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.16', time_epoch_completed='1735040449.83', return_code='0', job_id='60729033', GAL2='0.76', EG2='1.17', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='2.07e-08', ts2='5.60', photon_index='2.23' WHERE bin_id='855' AND source_name='4FGL J1150.4+2418' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:40:49 PST 2024

