 **********
 **   18 **HESSE 
 **********

 FCN=   26322.39     FROM HESSE     STATUS=OK           487 CALLS     2605 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.657        12.870        .23167E-03   -1.5622    
   2  Prefactor     1.3430        1.5338        .94502E-03   -1.5685    
   3  Prefactor      .0000        3.7680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.956        48.236        .14403E-03   -1.5568    
   5  Prefactor      .0000        1.7050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9089        .21619        .54356E-03   -1.5680    
   7  Prefactor     1.7955        1.2561        .78076E-03   -1.5681    
   8  Prefactor     32.530        9.3481        .17538E-03   -1.5594    
   9  Prefactor      .0000        2.5596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.8923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .49676        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.615        24.968        .18836E-03   -1.5601    
  13  Prefactor      .0000        2.1846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2056        1.3841        .69064E-03   -1.5678    
  15  Prefactor      .0000        1.3392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6257        22.975        .36736E-03   -1.5653    
  18  norm          1.3045        .60735        .96569E-03   -1.5685    
  19  Prefactor      .0000        4.5971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8643        2.5757        .60055E-03   -1.5674    
  21  Prefactor     23.567        20.379        .20549E-03   -1.5611    
  22  norm          18.476        1.3052        .23274E-03   -1.5622    
  23  Prefactor     4.9203        3.5059        .45316E-03   -1.5664    
  24  Normalizat    1.0423        .96221E-01    .62764E-01   -.91625    
  25  Prefactor     1.2165        .11128        .70477E-01   -.85826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57817e-08
Minuit parameter uncertainties:
  1  12.8703
  2  1.53384
  3  3.28917e-07
  4  48.2366
  5  2.24793e-08
  6  0.216194
  7  1.25608
  8  9.34806
  9  9.42453e-07
  10  1.14071e-06
  11  1.15714e-07
  12  24.9681
  13  3.53946e-08
  14  1.38412
  15  2.82985e-07
  16  9.39782e-08
  17  22.9752
  18  0.607355
  19  4.30008e-07
  20  2.57571
  21  20.3793
  22  1.30524
  23  3.50589
  24  0.0962376
  25  0.111303
/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 = 17691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.8+3618_weekly_bin777
RA = 171.964, Dec = 36.314
tmin = 708912001, tmax = 709516801
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='18871026', job_status='RUN', time_executed='2023-07-10 09:11:59.874644', time_epoch_executed='1689005519.87' WHERE source_name='4FGL J1127.8+3618' and cadence='weekly' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18871026

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18871026/ft1_4FGL_J1127.8+3618_weekly_bin777.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18871026/ft1_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871026/ft1_filteredMKT_4FGL_J1127.8+3618_weekly_bin777.fits ra=171.964 dec=36.314 rad=12.0 tmin=708912001.0 tmax=709516801.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.37
user 2.93
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.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/18871026/ft1_filteredMKT_4FGL_J1127.8+3618_weekly_bin777.fits evtable="EVENTS" outfile="/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.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.60
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2465

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits sctable="SC_DATA" oDone.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  1.157e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.216e+00  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.042e+00  9.624e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 3.46970556628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00267594419866 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18868363/likelihoodResults_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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): 102
logL (Free Index) = 26322.4108362
delta logL = -0.0160072622348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26322.3948289
delta logL = -3.281456884e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26322.39     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      276 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .26495        .29032E-02** at limit **
   2  Index         2.8664        1.0222        .28354E-04     .0000    
   3  Normalizat    1.0423        1.2150        .22270E-05    .83168E-04
   4  Prefactor     1.2165        1.0979       -.16196E-05    .14397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.86644
  Normalizat = 1.04233
  Prefactor  = 1.21646
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26322.39     FROM HESSE     STATUS=FAILED         9 CALLS      285 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .26495        .29032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .93044        1.9912        .28354E-04   -.44085    
   3  Normalizat    1.0423        1.2150        .22270E-05   -.91625    
   4  Prefactor     1.2165        1.0979       -.16196E-05   -.85826    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.6033e-12
Minuit parameter uncertainties:
  1  7.18971e-07
  2  1.0311
  3  1.24985
  4  1.11964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 26322.3948289
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  7.190e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.866e+00  1.031e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.216e+00  1.120e+00  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.042e+00  1.250e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.964 36.314

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/18868363/cmap_HighResolution_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2023-07-10 09:15:45.617180', job_id='18868363', GAL2='1.22', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1689005745.62', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='777' AND source_name='4FGL J1127.8+3618' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:15:46 PDT 2023

number of points = 17691
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.8+3618_weekly_bin777
RA = 171.964, Dec = 36.314
tmin = 708912001, tmax = 709516801
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='18871696', job_status='RUN', time_executed='2023-07-10 09:13:43.131019', time_epoch_executed='1689005623.13' WHERE source_name='4FGL J1127.8+3618' and cadence='weekly' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18871696

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18871696/ft1_4FGL_J1127.8+3618_weekly_bin777.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18871696/ft1_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871696/ft1_filteredMKT_4FGL_J1127.8+3618_weekly_bin777.fits ra=171.964 dec=36.314 rad=12.0 tmin=708912001.0 tmax=709516801.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.44
user 2.98
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.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/18871696/ft1_filteredMKT_4FGL_J1127.8+3618_weekly_bin777.fits evtable="EVENTS" outfile="/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.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.57
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 2465

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18871026/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits
.....................!
real 18.51
user 17.82
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18871026/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871026/expmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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/18871026/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits
.....................!
real 67.21
user 62.56
sys 3.86

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

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits scfile=/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871026/cmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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=171.964 yref=36.314 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.63
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits scfile=/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871026/cmap_HighResolution_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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=171.964 yref=36.314 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.63
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18871026/Model_4FGL_J1127.8+3618_weekly_bin777.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 GALutfile=/lscratch/kocevski/18871696/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits
.....................!
real 18.51
user 17.96
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18871696/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871696/expmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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/18871696/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits
.....................!
real 68.18
user 63.89
sys 3.59

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

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits scfile=/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871696/cmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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=171.964 yref=36.314 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.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits scfile=/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits outfile=/lscratch/kocevski/18871696/cmap_HighResolution_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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=171.964 yref=36.314 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.58
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18871696/Model_4FGL_J1127.8+3618_weekly_bin777.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/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits.....................!
real 71.66
user 70.24
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits', '/lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits', expMap='/lscratch/kocevski/18871026/expmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits', expCube='/lscratch/kocevski/18871026/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18871026/Model_4FGL_J1127.8+3618_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18871026/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18871026/ft2_4FGL_J1127.8+3618_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18871026/expmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18871026/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18871026/Model_4FGL_J1127.8+3618_weekly_bin777.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) = 26322.4011167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.645       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.3430       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64856E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    48.216       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18831E-03   1.0000          .0000       .10000E+07
     6 'norm      '    1.9092       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.7929       1.0000          .0000       .10000E+07
     8 'Prefactor '    32.522       1.0000          .0000       .10000E+07
     9 'Prefactor '    .69010E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .20224E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12985E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    28.194       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21922E-04   1.0000          .0000       .10000E+07
    14 'norm      '    2.2158       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33700E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .91654E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.4438       1.0000          .0000       .10000E+07
    18 'norm      '    1.3055       1.0000          .0000       .10000E+07
    19 'Prefactor '    .47269E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.8629       1.0000          .0000       .10000E+07
    21 'Prefactor '    23.693       1.0000          .0000       .10000E+07
    22 'norm      '    18.475       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.9209       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0429       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26322.39     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2118 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.657        12.867        .20343E-07    .19264E-03
   2  Prefactor     1.3430        1.5241       -.93192E-08    .21533E-04
   3  Prefactor      .0000        3.7708       -.10085E-08** at limit **
   4  Prefactor     48.956        48.481        .80132E-07   -.20397E-03
   5  Prefactor      .0000        1.7069        .19491E-07** at limit **
   6  norm          1.9089        .21665       -.13859E-09    .20076E-04
   7  Prefactor     1.7955        1.2496       -.17949E-08    .20960E-05
   8  Prefactor     32.530        9.3604       -.13594E-07   -.23695E-04
   9  Prefactor      .0000        2.5617       -.63333E-07** at limit **
  10  norm           .0000        2.8971       -.67172E-07** at limit **
  11  Prefactor      .0000        2.7915       -.88801E-08** at limit **
  12  Prefactor     28.615        22.514        .39533E-07   -.11110E-02
  13  Prefactor      .0000        2.1895        .26460E-07** at limit **
  14  norm          2.2056        1.3545       -.11429E-07    .43543E-05
  15  Prefactor      .0000        1.3407        .49102E-07** at limit **
  16  Prefactor      .0000        1.0906       -.81728E-08** at limit **
  17  Prefactor     7.6257        4.3535       -.18249E-09    .46687E-02
  18  norm          1.3045        .55962        .17485E-07   -.55435E-03
  19  Prefactor      .0000        4.6074        .50083E-07** at limit **
  20  norm          2.8643        2.5827       -.25917E-07    .51522E-04
  21  Prefactor     23.567        20.184       -.40493E-07   -.12872E-02
  22  norm          18.476        1.3057       -.37251E-08    .18478E-03
  23  Prefactor     4.9203        3.5044        .14237E-07   -.42559E-04
  24  Normalizat    1.0423        .11482        .39368E-06   -.85274E-05
  25  Prefactor     1.2165        .13359       -.68816E-07   -.63090E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6567
  Prefactor  = 1.34304
  Prefactor  = 0
  Prefactor  = 48.9558
  Prefactor  = 0
  norm       = 1.90891
  Prefactor  = 1.79551
  Prefactor  = 32.5297
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 28.6153
  Prefactor  = 0
  norm       = 2.20563
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.62566
  norm       = 1.30452
  Prefactor  = 0
  norm       = 2.86432
  Prefactor  = 23.5667
  norm       = 18.4762
  Prefactor  = 4.92032
  Normalizat = 1.04233
  Prefactor  = 1.21646
 **********
 **   18 **HESSE 
 **********

 FCN=   26322.39     FROM HESSE     STATUS=OK           487 CALLS     2605 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.657        12.870        .23167E-03   -1.5622    
   2  Prefactor     1.3430        1.5338        .94502E-03   -1.5685    
   3  Prefactor      .0000        3.7680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.956        48.236        .14403E-03   -1.5568    
   5  Prefactor      .0000        1.7050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9089        .21619        .54356E-03   -1.5680    
   7  Prefactor     1.7955        1.2561        .78076E-03   -1.5681    
   8  Prefactor     32.530        9.3481        .17538E-03   -1.5594    
   9  Prefactor      .0000        2.5596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.8923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .49676        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.615        24.968        .18836E-03   -1.5601    
  13  Prefactor      .0000        2.1846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2056        1.3841        .69064E-03   -1.5678    
  15  Prefactor      .0000        1.3392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6257        22.975        .36736E-03   -1.5653    
  18  norm          1.3045        .60735        .96569E-03   -1.5685    
  19  Prefactor      .0000        4.5971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8643        2.5757        .60055E-03   -1.5674    
  21  Prefactor     23.567        20.379        .20549E-03   -1.5611    
  22  norm          18.476        1.3052        .23274E-03   -1.5622    
  23  Prefactor     4.9203        3.5059        .45316E-03   -1.5664    
  24  Normalizat    1.0423        .96221E-01    .62764E-01   -.91625    
  25  Prefactor     1.2165        .11128        .70477E-01   -.85826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57817e-08
Minuit parameter uncertainties:
  1  12.8703
  2  1.53384
  3  3.28917e-07
  4  48.2366
  5  2.24793e-08
  6  0.216194
  7  1.25608
  8  9.34806
  9  9.42453e-07
  10  1.14071e-06
  11  1.15714e-07
  12  24.9681
  13  3.53946e-08
  14  1.38412
  15  2.82985e-07
  16  9.39782e-08
  17  22.9752
  18  0.607355
  19  4.30008e-07
  20  2.57571
  21  20.3793
  22  1.30524
  23  3.50589
  24  0.0962376
  25  0.111303
_V02
Working on...
/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits.....................!
real 73.62
user 72.01
sys 0.86

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits', '/lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits', expMap='/lscratch/kocevski/18871696/expmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits', expCube='/lscratch/kocevski/18871696/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18871696/Model_4FGL_J1127.8+3618_weekly_bin777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18871696/ft1_filtered_4FGL_J1127.8+3618_weekly_bin777.fits
Spacecraft file(s): /lscratch/kocevski/18871696/ft2_4FGL_J1127.8+3618_weekly_bin777.fits
Exposure map: /lscratch/kocevski/18871696/expmap_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits
Exposure cube: /lscratch/kocevski/18871696/ltcube_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18871696/Model_4FGL_J1127.8+3618_weekly_bin777.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) = 26322.4011167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.645       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.3430       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64856E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    48.216       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18831E-03   1.0000          .0000       .10000E+07
     6 'norm      '    1.9092       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.7929       1.0000          .0000       .10000E+07
     8 'Prefactor '    32.522       1.0000          .0000       .10000E+07
     9 'Prefactor '    .69010E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .20224E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12985E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    28.194       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21922E-04   1.0000          .0000       .10000E+07
    14 'norm      '    2.2158       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33700E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .91654E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.4438       1.0000          .0000       .10000E+07
    18 'norm      '    1.3055       1.0000          .0000       .10000E+07
    19 'Prefactor '    .47269E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.8629       1.0000          .0000       .10000E+07
    21 'Prefactor '    23.693       1.0000          .0000       .10000E+07
    22 'norm      '    18.475       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.9209       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0429       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26322.39     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2118 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.657        12.867        .20343E-07    .19264E-03
   2  Prefactor     1.3430        1.5241       -.93192E-08    .21533E-04
   3  Prefactor      .0000        3.7708       -.10085E-08** at limit **
   4  Prefactor     48.956        48.481        .80132E-07   -.20397E-03
   5  Prefactor      .0000        1.7069        .19491E-07** at limit **
   6  norm          1.9089        .21665       -.13859E-09    .20076E-04
   7  Prefactor     1.7955        1.2496       -.17949E-08    .20960E-05
   8  Prefactor     32.530        9.3604       -.13594E-07   -.23695E-04
   9  Prefactor      .0000        2.5617       -.63333E-07** at limit **
  10  norm           .0000        2.8971       -.67172E-07** at limit **
  11  Prefactor      .0000        2.7915       -.88801E-08** at limit **
  12  Prefactor     28.615        22.514        .39533E-07   -.11110E-02
  13  Prefactor      .0000        2.1895        .26460E-07** at limit **
  14  norm          2.2056        1.3545       -.11429E-07    .43543E-05
  15  Prefactor      .0000        1.3407        .49102E-07** at limit **
  16  Prefactor      .0000        1.0906       -.81728E-08** at limit **
  17  Prefactor     7.6257        4.3535       -.18249E-09    .46687E-02
  18  norm          1.3045        .55962        .17485E-07   -.55435E-03
  19  Prefactor      .0000        4.6074        .50083E-07** at limit **
  20  norm          2.8643        2.5827       -.25917E-07    .51522E-04
  21  Prefactor     23.567        20.184       -.40493E-07   -.12872E-02
  22  norm          18.476        1.3057       -.37251E-08    .18478E-03
  23  Prefactor     4.9203        3.5044        .14237E-07   -.42559E-04
  24  Normalizat    1.0423        .11482        .39368E-06   -.85274E-05
  25  Prefactor     1.2165        .13359       -.68816E-07   -.63090E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6567
  Prefactor  = 1.34304
  Prefactor  = 0
  Prefactor  = 48.9558
  Prefactor  = 0
  norm       = 1.90891
  Prefactor  = 1.79551
  Prefactor  = 32.5297
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 28.6153
  Prefactor  = 0
  norm       = 2.20563
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.62566
  norm       = 1.30452
  Prefactor  = 0
  norm       = 2.86432
  Prefactor  = 23.5667
  norm       = 18.4762
  Prefactor  = 4.92032
  Normalizat = 1.04233
  Prefactor  = 1.21646
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  1.157e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.216e+00  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.042e+00  9.624e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 3.46970556628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00267594419866 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18871026/likelihoodResults_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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): 102
logL (Free Index) = 26322.4108362
delta logL = -0.0160072622348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26322.3948289
delta logL = -3.281456884e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26322.39     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      276 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .26495        .29032E-02** at limit **
   2  Index         2.8664        1.0222        .28354E-04     .0000    
   3  Normalizat    1.0423        1.2150        .22270E-05    .83168E-04
   4  Prefactor     1.2165        1.0979       -.16196E-05    .14397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.86644
  Normalizat = 1.04233
  Prefactor  = 1.21646
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26322.39     FROM HESSE     STATUS=FAILED         9 CALLS      285 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .26495        .29032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .93044        1.9912        .28354E-04   -.44085    
   3  Normalizat    1.0423        1.2150        .22270E-05   -.91625    
   4  Prefactor     1.2165        1.0979       -.16196E-05   -.85826    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.6033e-12
Minuit parameter uncertainties:
  1  7.18971e-07
  2  1.0311
  3  1.24985
  4  1.11964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 26322.3948289
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  7.190e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.866e+00  1.031e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.216e+00  1.120e+00  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.042e+00  1.250e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.964 36.314

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/18871026/cmap_HighResolution_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2023-07-10 09:28:08.759179', job_id='18871026', GAL2='1.22', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1689006488.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='777' AND source_name='4FGL J1127.8+3618' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:28:09 PDT 2023

 **********
 **   18 **HESSE 
 **********

 FCN=   26322.39     FROM HESSE     STATUS=OK           487 CALLS     2605 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.657        12.870        .23167E-03   -1.5622    
   2  Prefactor     1.3430        1.5338        .94502E-03   -1.5685    
   3  Prefactor      .0000        3.7680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.956        48.236        .14403E-03   -1.5568    
   5  Prefactor      .0000        1.7050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9089        .21619        .54356E-03   -1.5680    
   7  Prefactor     1.7955        1.2561        .78076E-03   -1.5681    
   8  Prefactor     32.530        9.3481        .17538E-03   -1.5594    
   9  Prefactor      .0000        2.5596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.8923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .49676        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.615        24.968        .18836E-03   -1.5601    
  13  Prefactor      .0000        2.1846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2056        1.3841        .69064E-03   -1.5678    
  15  Prefactor      .0000        1.3392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6257        22.975        .36736E-03   -1.5653    
  18  norm          1.3045        .60735        .96569E-03   -1.5685    
  19  Prefactor      .0000        4.5971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8643        2.5757        .60055E-03   -1.5674    
  21  Prefactor     23.567        20.379        .20549E-03   -1.5611    
  22  norm          18.476        1.3052        .23274E-03   -1.5622    
  23  Prefactor     4.9203        3.5059        .45316E-03   -1.5664    
  24  Normalizat    1.0423        .96221E-01    .62764E-01   -.91625    
  25  Prefactor     1.2165        .11128        .70477E-01   -.85826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57817e-08
Minuit parameter uncertainties:
  1  12.8703
  2  1.53384
  3  3.28917e-07
  4  48.2366
  5  2.24793e-08
  6  0.216194
  7  1.25608
  8  9.34806
  9  9.42453e-07
  10  1.14071e-06
  11  1.15714e-07
  12  24.9681
  13  3.53946e-08
  14  1.38412
  15  2.82985e-07
  16  9.39782e-08
  17  22.9752
  18  0.607355
  19  4.30008e-07
  20  2.57571
  21  20.3793
  22  1.30524
  23  3.50589
  24  0.0962376
  25  0.111303
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  1.157e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.216e+00  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.042e+00  9.624e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 3.46970556628e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00267594419866 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18871696/likelihoodResults_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.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): 102
logL (Free Index) = 26322.4108362
delta logL = -0.0160072622348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26322.3948289
delta logL = -3.281456884e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26322.39     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      276 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .26495        .29032E-02** at limit **
   2  Index         2.8664        1.0222        .28354E-04     .0000    
   3  Normalizat    1.0423        1.2150        .22270E-05    .83168E-04
   4  Prefactor     1.2165        1.0979       -.16196E-05    .14397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.86644
  Normalizat = 1.04233
  Prefactor  = 1.21646
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26322.39     FROM HESSE     STATUS=FAILED         9 CALLS      285 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .26495        .29032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .93044        1.9912        .28354E-04   -.44085    
   3  Normalizat    1.0423        1.2150        .22270E-05   -.91625    
   4  Prefactor     1.2165        1.0979       -.16196E-05   -.85826    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.6033e-12
Minuit parameter uncertainties:
  1  7.18971e-07
  2  1.0311
  3  1.24985
  4  1.11964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 26322.3948289
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  7.190e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.866e+00  1.031e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.216e+00  1.120e+00  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.042e+00  1.250e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.964 36.314

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/18871696/cmap_HighResolution_708912001_709516801_4FGL_J1127.8+3618_weekly_bin777.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2023-07-10 09:31:14.321594', job_id='18871696', GAL2='1.22', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1689006674.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='777' AND source_name='4FGL J1127.8+3618' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:31:14 PDT 2023

