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

 FCN=   16556.74     FROM HESSE     STATUS=OK           365 CALLS     1706 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10164E-04    43.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8213        .86167        .77352E-03   -1.5681    
   3  norm          16.770        7.5726        .24442E-03   -1.5626    
   4  Prefactor     .20539E-08    .81655        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20529E-05    44.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31086E-08    3.5806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .42395        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6246        4.3064        .46755E-03   -1.5665    
   9  Prefactor     .29421E-08    3.2984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .75238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8143        1.2546        .51671E-03   -1.5669    
  12  Prefactor     12.326        11.495        .28593E-03   -1.5638    
  13  norm          1.0330        .81253        .12446E-02   -1.5688    
  14  Prefactor     .22815E-07    3.6134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.3615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .69114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.342        21.515        .22411E-03   -1.5618    
  18  Prefactor     .18057E-05    33.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .44924        1.7589        .83895E-03   -1.5695    
  20  Normalizat    1.2101        .10362        .49886E-01   -.86292    
  21  Prefactor     .95853        .12395        .67358E-01   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97118e-07
Minuit parameter uncertainties:
  1  0.0419847
  2  0.861673
  3  7.57263
  4  8.21983e-05
  5  0.0192051
  6  0.000211557
  7  2.83989e-06
  8  4.30641
  9  0.000196165
  10  1.49246e-06
  11  1.25459
  12  11.4949
  13  0.812528
  14  0.000574338
  15  1.23142e-05
  16  1.54714e-07
  17  21.5153
  18  0.0156141
  19  1.75889
  20  0.103641
  21  0.123986
/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).

Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.942e-09  1.962e-04  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.585e-01  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.210e+00  1.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 2.70060555803e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00210779548738 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18870021/likelihoodResults_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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) = 16556.7480264
delta logL = -0.00399865981308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16556.7440278
delta logL = -2.52475729212e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14433E-08   1.0000          .0000       .10000E+07
     2 'Index     '    3.0312       1.0000          .0000       10.000    
     3 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16556.74     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      226 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4038        .42118E-03** at limit **
   2  Index         1.3137        .73838       -.12354E-04     .0000    
   3  Normalizat    1.2101        1.1030        .78316E-06    .14332E-04
   4  Prefactor     .95853        1.3003       -.23793E-05    .15975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.31365
  Normalizat = 1.21008
  Prefactor  = 0.958526
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16556.74     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13370        1.2691       -.12354E-04   -.82902    
   3  Normalizat    1.2101        1.1030        .78316E-06   -.86292    
   4  Prefactor     .95853        1.3003       -.23793E-05   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.11822e-13
Minuit parameter uncertainties:
  1  1.91877e-06
  2  0.74439
  3  1.12533
  4  1.34673
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) = 16556.7440277
delta logL = 4.47471393272e-10

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  0.000e+00  1.919e-06  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  1.314e+00  7.444e-01  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.585e-01  1.347e+00  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.210e+00  1.125e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/18870021/cmap_HighResolution_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-03', job_status='DONE', photon_flux_upper_limit='2.70e-08', time_completed='2023-07-10 09:16:00.826036', job_id='18870021', GAL2='0.96', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1689005760.83', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.47e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='778' AND source_name='4FGL J1228.7+4858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:16:01 PDT 2023

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


Performing analysis on: 4FGL_J1228.7+4858_weekly_bin778
RA = 187.179, Dec = 48.9827
tmin = 709516801, tmax = 710121601
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='18871698', job_status='RUN', time_executed='2023-07-10 09:13:43.088513', time_epoch_executed='1689005623.09' WHERE source_name='4FGL J1228.7+4858' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18871698

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18871698/ft1_4FGL_J1228.7+4858_weekly_bin778.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18871698/ft1_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18871698/ft1_filteredMKT_4FGL_J1228.7+4858_weekly_bin778.fits ra=187.179 dec=48.9827 rad=12.0 tmin=709516801.0 tmax=710121601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.72
user 4.23
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.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/18871698/ft1_filteredMKT_4FGL_J1228.7+4858_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.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.54
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1495

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits sctable="SC_DATA"number of points = 17494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1228.7+4858_weekly_bin778
RA = 187.179, Dec = 48.9827
tmin = 709516801, tmax = 710121601
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='18872339', job_status='RUN', time_executed='2023-07-10 09:15:05.729628', time_epoch_executed='1689005705.73' WHERE source_name='4FGL J1228.7+4858' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18872339

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18872339/ft1_4FGL_J1228.7+4858_weekly_bin778.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18872339/ft1_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18872339/ft1_filteredMKT_4FGL_J1228.7+4858_weekly_bin778.fits ra=187.179 dec=48.9827 rad=12.0 tmin=709516801.0 tmax=710121601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.60
user 4.09
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.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/18872339/ft1_filteredMKT_4FGL_J1228.7+4858_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.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.53
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1495

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18871698/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits
.....................!
real 17.86
user 17.30
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18871698/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18871698/expmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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/18871698/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits
.....................!
real 67.81
user 63.63
sys 3.60

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

Setting source of interest to:
4FGL J1228.7+4858 @ 187.179 48.9827

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits scfile=/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18871698/cmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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=187.179 yref=48.9827 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.55
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits scfile=/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18871698/cmap_HighResolution_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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=187.179 yref=48.9827 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.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18871698/Model_4FGL_J1228.7+4858_weekly_bin778.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 sourc outfile=/lscratch/kocevski/18872339/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits
.....................!
real 17.32
user 16.82
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18872339/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18872339/expmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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/18872339/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits
.....................!
real 66.69
user 62.26
sys 3.81

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

Setting source of interest to:
4FGL J1228.7+4858 @ 187.179 48.9827

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits scfile=/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18872339/cmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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=187.179 yref=48.9827 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.87
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits scfile=/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits outfile=/lscratch/kocevski/18872339/cmap_HighResolution_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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=187.179 yref=48.9827 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18872339/Model_4FGL_J1228.7+4858_weekly_bin778.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/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits.....................!
real 47.44
user 46.25
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits', '/lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits', expMap='/lscratch/kocevski/18871698/expmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits', expCube='/lscratch/kocevski/18871698/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18871698/Model_4FGL_J1228.7+4858_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.7+4858'

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.350e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18871698/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18871698/ft2_4FGL_J1228.7+4858_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18871698/expmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18871698/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18871698/Model_4FGL_J1228.7+4858_weekly_bin778.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) = 16556.8399994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18825E-03   1.0000          .0000       .10000E+07
     2 'norm      '    1.8209       1.0000          .0000       .10000E+07
     3 'norm      '    16.754       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26636E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .71636E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71627E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .13010E-05   1.0000          .0000       .10000E+07
     8 'norm      '    4.6291       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75716E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32901E-06   1.0000          .0000       .10000E+07
    11 'norm      '    3.8123       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.252       1.0000          .0000       .10000E+07
    13 'norm      '    1.0328       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20638E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .95857E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .14901E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    19.924       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10665E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .45012       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16556.74     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1341 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10164E-04    13.541        .39833E-06** at limit **
   2  norm          1.8213        .85615        .59747E-08    .63844E-03
   3  norm          16.770        7.5729        .93818E-07    .32088E-02
   4  Prefactor     .20539E-08    5.2607       -.10967E-07** at limit **
   5  Prefactor     .20529E-05    39.235        .62327E-06** at limit **
   6  Prefactor     .31086E-08    3.5391       -.82170E-07** at limit **
   7  norm           .0000        2.5702        .21509E-06** at limit **
   8  norm          4.6246        4.3000       -.19395E-09    .77503E-03
   9  Prefactor     .29421E-08    3.2643        .41885E-06** at limit **
  10  Prefactor      .0000        .75385       -.22364E-06** at limit **
  11  norm          3.8143        1.2554        .12879E-06    .64189E-03
  12  Prefactor     12.326        3.7843        .14159E-06   -.59391E-01
  13  norm          1.0330        .80209       -.98768E-07   -.12519E-02
  14  Prefactor     .22815E-07    3.3844        .72748E-06** at limit **
  15  norm           .0000        2.3624        .10771E-06** at limit **
  16  norm           .0000        .68902       -.14885E-06** at limit **
  17  Prefactor     20.342        21.216       -.18100E-06   -.14532E-01
  18  Prefactor     .18057E-05    28.480       -.12808E-06** at limit **
  19  norm          .44924        1.7487       -.61209E-07   -.41169E-04
  20  Normalizat    1.2101        .12355        .15548E-05    .39721E-05
  21  Prefactor     .95853        .14951        .24275E-06    .25431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01639e-05
  norm       = 1.82134
  norm       = 16.7697
  Prefactor  = 2.05391e-09
  Prefactor  = 2.05286e-06
  Prefactor  = 3.10862e-09
  norm       = 0
  norm       = 4.62465
  Prefactor  = 2.94209e-09
  Prefactor  = 0
  norm       = 3.81426
  Prefactor  = 12.3265
  norm       = 1.03297
  Prefactor  = 2.28151e-08
  norm       = 0
  norm       = 0
  Prefactor  = 20.3423
  Prefactor  = 1.80572e-06
  norm       = 0.449236
  Normalizat = 1.21008
  Prefactor  = 0.958526
 **********
 **   18 **HESSE 
 **********

 FCN=   16556.74     FROM HESSE     STATUS=OK           365 CALLS     1706 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10164E-04    43.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8213        .86167        .77352E-03   -1.5681    
   3  norm          16.770        7.5726        .24442E-03   -1.5626    
   4  Prefactor     .20539E-08    .81655        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20529E-05    44.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31086E-08    3.5806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .42395        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6246        4.3064        .46755E-03   -1.5665    
   9  Prefactor     .29421E-08    3.2984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .75238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8143        1.2546        .51671E-03   -1.5669    
  12  Prefactor     12.326        11.495        .28593E-03   -1.5638    
  13  norm          1.0330        .81253        .12446E-02   -1.5688    
  14  Prefactor     .22815E-07    3.6134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.3615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .69114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.342        21.515        .22411E-03   -1.5618    
  18  Prefactor     .18057E-05    33.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .44924        1.7589        .83895E-03   -1.5695    
  20  Normalizat    1.2101        .10362        .49886E-01   -.86292    
  21  Prefactor     .95853        .12395        .67358E-01   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97118e-07
Minuit parameter uncertainties:
  1  0.0419847
  2  0.861673
  3  7.57263
  4  8.21983e-05
  5  0.0192051
  6  0.000211557
  7  2.83989e-06
  8  4.30641
  9  0.000196165
  10  1.49246e-06
  11  1.25459
  12  11.4949
  13  0.812528
  14  0.000574338
  15  1.23142e-05
  16  1.54714e-07
  17  21.5153
  18  0.0156141
  19  1.75889
  20  0.103641
  21  0.123986
e GAL_V02
Working on...
/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits.....................!
real 46.89
user 45.48
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits', '/lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits', expMap='/lscratch/kocevski/18872339/expmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits', expCube='/lscratch/kocevski/18872339/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18872339/Model_4FGL_J1228.7+4858_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.7+4858'

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.350e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18872339/ft1_filtered_4FGL_J1228.7+4858_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18872339/ft2_4FGL_J1228.7+4858_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18872339/expmap_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18872339/ltcube_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18872339/Model_4FGL_J1228.7+4858_weekly_bin778.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) = 16556.8399994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18825E-03   1.0000          .0000       .10000E+07
     2 'norm      '    1.8209       1.0000          .0000       .10000E+07
     3 'norm      '    16.754       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26636E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .71636E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71627E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .13010E-05   1.0000          .0000       .10000E+07
     8 'norm      '    4.6291       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75716E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32901E-06   1.0000          .0000       .10000E+07
    11 'norm      '    3.8123       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.252       1.0000          .0000       .10000E+07
    13 'norm      '    1.0328       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20638E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .95857E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .14901E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    19.924       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10665E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .45012       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16556.74     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1341 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10164E-04    13.541        .39833E-06** at limit **
   2  norm          1.8213        .85615        .59747E-08    .63844E-03
   3  norm          16.770        7.5729        .93818E-07    .32088E-02
   4  Prefactor     .20539E-08    5.2607       -.10967E-07** at limit **
   5  Prefactor     .20529E-05    39.235        .62327E-06** at limit **
   6  Prefactor     .31086E-08    3.5391       -.82170E-07** at limit **
   7  norm           .0000        2.5702        .21509E-06** at limit **
   8  norm          4.6246        4.3000       -.19395E-09    .77503E-03
   9  Prefactor     .29421E-08    3.2643        .41885E-06** at limit **
  10  Prefactor      .0000        .75385       -.22364E-06** at limit **
  11  norm          3.8143        1.2554        .12879E-06    .64189E-03
  12  Prefactor     12.326        3.7843        .14159E-06   -.59391E-01
  13  norm          1.0330        .80209       -.98768E-07   -.12519E-02
  14  Prefactor     .22815E-07    3.3844        .72748E-06** at limit **
  15  norm           .0000        2.3624        .10771E-06** at limit **
  16  norm           .0000        .68902       -.14885E-06** at limit **
  17  Prefactor     20.342        21.216       -.18100E-06   -.14532E-01
  18  Prefactor     .18057E-05    28.480       -.12808E-06** at limit **
  19  norm          .44924        1.7487       -.61209E-07   -.41169E-04
  20  Normalizat    1.2101        .12355        .15548E-05    .39721E-05
  21  Prefactor     .95853        .14951        .24275E-06    .25431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01639e-05
  norm       = 1.82134
  norm       = 16.7697
  Prefactor  = 2.05391e-09
  Prefactor  = 2.05286e-06
  Prefactor  = 3.10862e-09
  norm       = 0
  norm       = 4.62465
  Prefactor  = 2.94209e-09
  Prefactor  = 0
  norm       = 3.81426
  Prefactor  = 12.3265
  norm       = 1.03297
  Prefactor  = 2.28151e-08
  norm       = 0
  norm       = 0
  Prefactor  = 20.3423
  Prefactor  = 1.80572e-06
  norm       = 0.449236
  Normalizat = 1.21008
  Prefactor  = 0.958526
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.942e-09  1.962e-04  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.585e-01  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.210e+00  1.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 2.70060555803e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00210779548738 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18871698/likelihoodResults_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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) = 16556.7480264
delta logL = -0.00399865981308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16556.7440278
delta logL = -2.52475729212e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14433E-08   1.0000          .0000       .10000E+07
     2 'Index     '    3.0312       1.0000          .0000       10.000    
     3 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16556.74     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      226 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4038        .42118E-03** at limit **
   2  Index         1.3137        .73838       -.12354E-04     .0000    
   3  Normalizat    1.2101        1.1030        .78316E-06    .14332E-04
   4  Prefactor     .95853        1.3003       -.23793E-05    .15975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.31365
  Normalizat = 1.21008
  Prefactor  = 0.958526
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16556.74     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13370        1.2691       -.12354E-04   -.82902    
   3  Normalizat    1.2101        1.1030        .78316E-06   -.86292    
   4  Prefactor     .95853        1.3003       -.23793E-05   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.11822e-13
Minuit parameter uncertainties:
  1  1.91877e-06
  2  0.74439
  3  1.12533
  4  1.34673
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) = 16556.7440277
delta logL = 4.47471393272e-10

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  0.000e+00  1.919e-06  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  1.314e+00  7.444e-01  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.585e-01  1.347e+00  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.210e+00  1.125e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/18871698/cmap_HighResolution_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-03', job_status='DONE', photon_flux_upper_limit='2.70e-08', time_completed='2023-07-10 09:24:40.806065', job_id='18871698', GAL2='0.96', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1689006280.81', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.47e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='778' AND source_name='4FGL J1228.7+4858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:24:41 PDT 2023

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

 FCN=   16556.74     FROM HESSE     STATUS=OK           365 CALLS     1706 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10164E-04    43.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8213        .86167        .77352E-03   -1.5681    
   3  norm          16.770        7.5726        .24442E-03   -1.5626    
   4  Prefactor     .20539E-08    .81655        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20529E-05    44.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31086E-08    3.5806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .42395        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6246        4.3064        .46755E-03   -1.5665    
   9  Prefactor     .29421E-08    3.2984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        .75238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8143        1.2546        .51671E-03   -1.5669    
  12  Prefactor     12.326        11.495        .28593E-03   -1.5638    
  13  norm          1.0330        .81253        .12446E-02   -1.5688    
  14  Prefactor     .22815E-07    3.6134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.3615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .69114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.342        21.515        .22411E-03   -1.5618    
  18  Prefactor     .18057E-05    33.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .44924        1.7589        .83895E-03   -1.5695    
  20  Normalizat    1.2101        .10362        .49886E-01   -.86292    
  21  Prefactor     .95853        .12395        .67358E-01   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97118e-07
Minuit parameter uncertainties:
  1  0.0419847
  2  0.861673
  3  7.57263
  4  8.21983e-05
  5  0.0192051
  6  0.000211557
  7  2.83989e-06
  8  4.30641
  9  0.000196165
  10  1.49246e-06
  11  1.25459
  12  11.4949
  13  0.812528
  14  0.000574338
  15  1.23142e-05
  16  1.54714e-07
  17  21.5153
  18  0.0156141
  19  1.75889
  20  0.103641
  21  0.123986
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.942e-09  1.962e-04  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.585e-01  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.210e+00  1.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 2.70060555803e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00210779548738 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18872339/likelihoodResults_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.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) = 16556.7480264
delta logL = -0.00399865981308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16556.7440278
delta logL = -2.52475729212e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14433E-08   1.0000          .0000       .10000E+07
     2 'Index     '    3.0312       1.0000          .0000       10.000    
     3 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16556.74     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      226 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4038        .42118E-03** at limit **
   2  Index         1.3137        .73838       -.12354E-04     .0000    
   3  Normalizat    1.2101        1.1030        .78316E-06    .14332E-04
   4  Prefactor     .95853        1.3003       -.23793E-05    .15975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.31365
  Normalizat = 1.21008
  Prefactor  = 0.958526
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16556.74     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13370        1.2691       -.12354E-04   -.82902    
   3  Normalizat    1.2101        1.1030        .78316E-06   -.86292    
   4  Prefactor     .95853        1.3003       -.23793E-05   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.11822e-13
Minuit parameter uncertainties:
  1  1.91877e-06
  2  0.74439
  3  1.12533
  4  1.34673
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) = 16556.7440277
delta logL = 4.47471393272e-10

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  0.000e+00  1.919e-06  0.000e+00  1.000e+06 ( 1.000e-13)
360        Index:  1.314e+00  7.444e-01  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.585e-01  1.347e+00  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.210e+00  1.125e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/18872339/cmap_HighResolution_709516801_710121601_4FGL_J1228.7+4858_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-03', job_status='DONE', photon_flux_upper_limit='2.70e-08', time_completed='2023-07-10 09:25:58.722855', job_id='18872339', GAL2='0.96', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1689006358.72', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.47e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='778' AND source_name='4FGL J1228.7+4858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 09:25:58 PDT 2023

