/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
/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).

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

 FCN=   23900.25     FROM HESSE     STATUS=OK           455 CALLS     2457 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.364        3.9285        .31096E-03   -1.5644    
   2  Prefactor     76.567        91.673        .11408E-03   -1.5533    
   3  Prefactor     10.911        14.269        .30294E-03   -1.5642    
   4  Prefactor     4.1883        5.2473        .48776E-03   -1.5667    
   5  Prefactor     .23170E-06    26.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5263        9.0583        .32226E-03   -1.5646    
   7  norm          23.370        22.340        .20691E-03   -1.5611    
   8  norm          2.3960        3.9586        .66126E-03   -1.5677    
   9  Prefactor     1.1196        1.9746        .11122E-02   -1.5687    
  10  Prefactor     .30514E-06    27.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29036E-04    26.454        .17783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    27.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19429E-08    80.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.365        54.528        .12653E-03   -1.5550    
  15  Prefactor      .0000        5.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .73638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-08    60.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5729        .18969        .39715E-03   -1.5676    
  19  Prefactor      .0000        10.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.74        22.253        .97258E-04   -1.5502    
  21  norm          10.158        7.1469        .31401E-03   -1.5644    
  22  Prefactor     21.274        71.926        .21630E-03   -1.5616    
  23  Normalizat    1.2745        .18048        .10078       -.84331    
  24  Prefactor     1.0016        .66818E-01    .45164E-01   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2003e-07
Minuit parameter uncertainties:
  1  3.92854
  2  91.6747
  3  14.2694
  4  5.24734
  5  0.00499206
  6  9.05828
  7  22.3397
  8  3.9586
  9  1.97457
  10  0.00581127
  11  0.0554293
  12  0.000270582
  13  0.000793942
  14  54.5281
  15  8.7712e-06
  16  1.25107e-06
  17  0.0006356
  18  0.189693
  19  2.17143e-05
  20  22.2531
  21  7.14687
  22  71.9287
  23  0.180567
  24  0.066824

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)
/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).


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

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


Performing analysis on: 4FGL_J1401.7-3217_weekly_bin780
RA = 210.446, Dec = -32.2877
tmin = 710726401, tmax = 711331201
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='19659498', job_status='RUN', time_executed='2023-07-18 01:21:44.672045', time_epoch_executed='1689668504.67' WHERE source_name='4FGL J1401.7-3217' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19659498

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19659498/ft1_4FGL_J1401.7-3217_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19659498/ft1_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659498/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=710726401.0 tmax=711331201.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.65
user 3.75
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.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/19659498/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.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 1.24
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATnumber of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1401.7-3217_weekly_bin780
RA = 210.446, Dec = -32.2877
tmin = 710726401, tmax = 711331201
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='19659508', job_status='RUN', time_executed='2023-07-18 01:21:56.045894', time_epoch_executed='1689668516.05' WHERE source_name='4FGL J1401.7-3217' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19659508

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19659508/ft1_4FGL_J1401.7-3217_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19659508/ft1_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659508/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=710726401.0 tmax=711331201.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.23
user 3.50
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.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/19659508/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.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.90
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 2325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATDone.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.904e-05  5.543e-02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  6.682e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.275e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 5.53825242393e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421520443539 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19657875/likelihoodResults_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.24913
delta logL = -0.000613077532762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481959
delta logL = 0.000321022376738

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1483        3285.8        .17156E-04    .79522E-04
   2  Index         1.8056        5.8380        .50000        .10614E-04
   3  Normalizat    1.2744        .12241E-01    .44661E-03    .41014E-03
   4  Prefactor     1.0015        .46179E-02    .18632E-03    .16491E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14827
  Index      = 1.80556
  Normalizat = 1.27442
  Prefactor  = 1.00151
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1483        3298.2        .68622E-06   -1.5687    
   2  Index         1.8056        5.8341        .50000       -.69305    
   3  Normalizat    1.2744        .12318E-01    .17864E-04   -.84333    
   4  Prefactor     1.0015        .46465E-02    .37265E-04   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61334e-11
Minuit parameter uncertainties:
  1  123.148
  2  4.27982
  3  0.0123178
  4  0.00464648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481831
delta logL = 0.000333737381879

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.148e+00  1.231e+02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  1.806e+00  4.280e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  4.646e-03  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.274e+00  1.232e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 210.446 -32.288

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/19657875/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2023-07-18 01:31:17.825606', job_id='19657875', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1689669077.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='780' AND source_name='4FGL J1401.7-3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:31:18 PDT 2023

A" outfile=/lscratch/kocevski/19659498/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 16.98
user 16.07
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19659498/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659498/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19659498/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 65.33
user 60.95
sys 3.49

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
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659498/cmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.01
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659498/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 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.94
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_A" outfile=/lscratch/kocevski/19659508/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 16.37
user 15.53
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19659508/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659508/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19659508/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 61.28
user 57.18
sys 3.28

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
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659508/cmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.14
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19659508/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 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.95
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1401.7-3217_weekly_bin780
RA = 210.446, Dec = -32.2877
tmin = 710726401, tmax = 711331201
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='19660595', job_status='RUN', time_executed='2023-07-18 01:29:24.441924', time_epoch_executed='1689668964.44' WHERE source_name='4FGL J1401.7-3217' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19660595

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19660595/ft1_4FGL_J1401.7-3217_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19660595/ft1_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660595/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=710726401.0 tmax=711331201.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.39
user 3.61
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.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/19660595/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.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 1.00
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 2325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATnumber of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1401.7-3217_weekly_bin780
RA = 210.446, Dec = -32.2877
tmin = 710726401, tmax = 711331201
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='19660599', job_status='RUN', time_executed='2023-07-18 01:29:25.403265', time_epoch_executed='1689668965.4' WHERE source_name='4FGL J1401.7-3217' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19660599

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19660599/ft1_4FGL_J1401.7-3217_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19660599/ft1_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660599/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=710726401.0 tmax=711331201.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.44
user 3.54
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.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/19660599/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.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 1.01
user 0.18
sys 0.16

Number of photons that the gtmktime cut: 2325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATAbin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19659508/Model_4FGL_J1401.7-3217_weekly_bin780.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits.....................!
real 138.74
user 136.40
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits', '/lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits', expMap='/lscratch/kocevski/19659508/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', expCube='/lscratch/kocevski/19659508/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19659508/Model_4FGL_J1401.7-3217_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19659508/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19659508/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19659508/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19659508/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19659508/Model_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.2615172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.366       1.0000          .0000       .10000E+07
     2 'Prefactor '    76.846       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.920       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2628       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59897E-07   1.0000          .0000       .10000E+07
     6 'norm      '    9.6551       1.0000          .0000       .10000E+07
     7 'norm      '    23.368       1.0000          .0000       .10000E+07
     8 'norm      '    2.3963       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1176       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11560E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51078       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75539E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    62.468       1.0000          .0000       .10000E+07
    15 'Prefactor '    .85167E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .55345E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97509E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.5731       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23360E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    105.73       1.0000          .0000       .10000E+07
    21 'norm      '    10.167       1.0000          .0000       .10000E+07
    22 'Prefactor '    21.387       1.0000     bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19659498/Model_4FGL_J1401.7-3217_weekly_bin780.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits.....................!
real 144.94
user 142.18
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits', '/lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits', expMap='/lscratch/kocevski/19659498/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', expCube='/lscratch/kocevski/19659498/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19659498/Model_4FGL_J1401.7-3217_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19659498/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19659498/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19659498/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19659498/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19659498/Model_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.2615172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.366       1.0000          .0000       .10000E+07
     2 'Prefactor '    76.846       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.920       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2628       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59897E-07   1.0000          .0000       .10000E+07
     6 'norm      '    9.6551       1.0000          .0000       .10000E+07
     7 'norm      '    23.368       1.0000          .0000       .10000E+07
     8 'norm      '    2.3963       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1176       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11560E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51078       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75539E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    62.468       1.0000          .0000       .10000E+07
    15 'Prefactor '    .85167E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .55345E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97509E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.5731       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23360E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    105.73       1.0000          .0000       .10000E+07
    21 'norm      '    10.167       1.0000          .0000       .10000E+07
    22 'Prefactor '    21.387       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2002 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.364        3.9279       -.49330E-07    .27583E-04
   2  Prefactor     76.567        20.746        .33527E-06   -.71929E-02
   3  Prefactor     10.911        14.254       -.26424E-06   -.13133E-02
   4  Prefactor     4.1883        5.2330       -.78795E-07   -.36401E-04
   5  Prefactor     .23170E-06    23.564       -.98367E-06** at limit **
   6  norm          9.5263        9.0548       -.61306E-07   -.13461E-03
   7  norm          23.370        8.4487       -.16811E-06   -.80390E-01
   8  norm          2.3960        3.9225       -.19696E-06   -.24309E-03
   9  Prefactor     1.1196        1.9233       -.37186E-07    .99602E-04
  10  Prefactor     .30514E-06    17.150        .10176E-05** at limit **
  11  Prefactor     .29036E-04    1619.3        .11299E-04** at limit **
  12  Prefactor     .66613E-09    10.219        .46246E-06** at limit **
  13  Prefactor     .19429E-08    80.462       -.41054E-06** at limit **
  14  Prefactor     62.365        6.2429        .11945E-06   -.63667E-01
  15  Prefactor      .0000        5.5142       -.20456E-06** at limit **
  16  norm           .0000        .73360        .13258E-06** at limit **
  17  Prefactor     .16653E-08    60.572        .73463E-06** at limit **
  18  norm          2.5729        .18873       -.54287E-10    .49978E-02
  19  Prefactor      .0000        10.528       -.16077E-06** at limit **
  20  Prefactor     105.74        21.524       -.11604E-06   -.11788E-01
  21  norm          10.158        7.1429       -.78298E-08   -.10673E-03
  22  Prefactor     21.274        8.9069        .26038E-06   -.20021E-01
  23  Normalizat    1.2745        .21448        .90638E-05    .13578E-03
  24  Prefactor     1.0016        .79587E-01    .50420E-07    .29463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3644
  Prefactor  = 76.5666
  Prefactor  = 10.9112
  Prefactor  = 4.18826
  Prefactor  = 2.31704e-07
  norm       = 9.52631
  norm       = 23.3705
  norm       = 2.39599
  Prefactor  = 1.11958
  Prefactor  = 3.05145e-07
  Prefactor  = 2.90356e-05
  Prefactor  = 6.66134e-10
  Prefactor  = 1.94289e-09
  Prefactor  = 62.3649
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.66533e-09
  norm       = 2.57294
  Prefactor  = 0
  Prefactor  = 105.736
  norm       = 10.1578
  Prefactor  = 21.2737
  Normalizat = 1.2745
  Prefactor  = 1.00158
     .0000       .10000E+07
    23 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2002 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.364        3.9279       -.49330E-07    .27583E-04
   2  Prefactor     76.567        20.746        .33527E-06   -.71929E-02
   3  Prefactor     10.911        14.254       -.26424E-06   -.13133E-02
   4  Prefactor     4.1883        5.2330       -.78795E-07   -.36401E-04
   5  Prefactor     .23170E-06    23.564       -.98367E-06** at limit **
   6  norm          9.5263        9.0548       -.61306E-07   -.13461E-03
   7  norm          23.370        8.4487       -.16811E-06   -.80390E-01
   8  norm          2.3960        3.9225       -.19696E-06   -.24309E-03
   9  Prefactor     1.1196        1.9233       -.37186E-07    .99602E-04
  10  Prefactor     .30514E-06    17.150        .10176E-05** at limit **
  11  Prefactor     .29036E-04    1619.3        .11299E-04** at limit **
  12  Prefactor     .66613E-09    10.219        .46246E-06** at limit **
  13  Prefactor     .19429E-08    80.462       -.41054E-06** at limit **
  14  Prefactor     62.365        6.2429        .11945E-06   -.63667E-01
  15  Prefactor      .0000        5.5142       -.20456E-06** at limit **
  16  norm           .0000        .73360        .13258E-06** at limit **
  17  Prefactor     .16653E-08    60.572        .73463E-06** at limit **
  18  norm          2.5729        .18873       -.54287E-10    .49978E-02
  19  Prefactor      .0000        10.528       -.16077E-06** at limit **
  20  Prefactor     105.74        21.524       -.11604E-06   -.11788E-01
  21  norm          10.158        7.1429       -.78298E-08   -.10673E-03
  22  Prefactor     21.274        8.9069        .26038E-06   -.20021E-01
  23  Normalizat    1.2745        .21448        .90638E-05    .13578E-03
  24  Prefactor     1.0016        .79587E-01    .50420E-07    .29463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3644
  Prefactor  = 76.5666
  Prefactor  = 10.9112
  Prefactor  = 4.18826
  Prefactor  = 2.31704e-07
  norm       = 9.52631
  norm       = 23.3705
  norm       = 2.39599
  Prefactor  = 1.11958
  Prefactor  = 3.05145e-07
  Prefactor  = 2.90356e-05
  Prefactor  = 6.66134e-10
  Prefactor  = 1.94289e-09
  Prefactor  = 62.3649
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.66533e-09
  norm       = 2.57294
  Prefactor  = 0
  Prefactor  = 105.736
  norm       = 10.1578
  Prefactor  = 21.2737
  Normalizat = 1.2745
  Prefactor  = 1.00158
A" outfile=/lscratch/kocevski/19660595/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 16.67
user 15.67
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19660595/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660595/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19660595/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 61.26
user 56.82
sys 3.37

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
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660595/cmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 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.99
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660595/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.11
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_" outfile=/lscratch/kocevski/19660599/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 16.16
user 15.17
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19660599/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660599/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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/19660599/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
.....................!
real 59.96
user 55.65
sys 3.39

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
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660599/cmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 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.91
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits scfile=/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits outfile=/lscratch/kocevski/19660599/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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=210.446 yref=-32.2877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.00
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_b **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=OK           455 CALLS     2457 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.364        3.9285        .31096E-03   -1.5644    
   2  Prefactor     76.567        91.673        .11408E-03   -1.5533    
   3  Prefactor     10.911        14.269        .30294E-03   -1.5642    
   4  Prefactor     4.1883        5.2473        .48776E-03   -1.5667    
   5  Prefactor     .23170E-06    26.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5263        9.0583        .32226E-03   -1.5646    
   7  norm          23.370        22.340        .20691E-03   -1.5611    
   8  norm          2.3960        3.9586        .66126E-03   -1.5677    
   9  Prefactor     1.1196        1.9746        .11122E-02   -1.5687    
  10  Prefactor     .30514E-06    27.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29036E-04    26.454        .17783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    27.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19429E-08    80.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.365        54.528        .12653E-03   -1.5550    
  15  Prefactor      .0000        5.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .73638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-08    60.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5729        .18969        .39715E-03   -1.5676    
  19  Prefactor      .0000        10.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.74        22.253        .97258E-04   -1.5502    
  21  norm          10.158        7.1469        .31401E-03   -1.5644    
  22  Prefactor     21.274        71.926        .21630E-03   -1.5616    
  23  Normalizat    1.2745        .18048        .10078       -.84331    
  24  Prefactor     1.0016        .66818E-01    .45164E-01   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2003e-07
Minuit parameter uncertainties:
  1  3.92854
  2  91.6747
  3  14.2694
  4  5.24734
  5  0.00499206
  6  9.05828
  7  22.3397
  8  3.9586
  9  1.97457
  10  0.00581127
  11  0.0554293
  12  0.000270582
  13  0.000793942
  14  54.5281
  15  8.7712e-06
  16  1.25107e-06
  17  0.0006356
  18  0.189693
  19  2.17143e-05
  20  22.2531
  21  7.14687
  22  71.9287
  23  0.180567
  24  0.066824
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=OK           455 CALLS     2457 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.364        3.9285        .31096E-03   -1.5644    
   2  Prefactor     76.567        91.673        .11408E-03   -1.5533    
   3  Prefactor     10.911        14.269        .30294E-03   -1.5642    
   4  Prefactor     4.1883        5.2473        .48776E-03   -1.5667    
   5  Prefactor     .23170E-06    26.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5263        9.0583        .32226E-03   -1.5646    
   7  norm          23.370        22.340        .20691E-03   -1.5611    
   8  norm          2.3960        3.9586        .66126E-03   -1.5677    
   9  Prefactor     1.1196        1.9746        .11122E-02   -1.5687    
  10  Prefactor     .30514E-06    27.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29036E-04    26.454        .17783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    27.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19429E-08    80.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.365        54.528        .12653E-03   -1.5550    
  15  Prefactor      .0000        5.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .73638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-08    60.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5729        .18969        .39715E-03   -1.5676    
  19  Prefactor      .0000        10.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.74        22.253        .97258E-04   -1.5502    
  21  norm          10.158        7.1469        .31401E-03   -1.5644    
  22  Prefactor     21.274        71.926        .21630E-03   -1.5616    
  23  Normalizat    1.2745        .18048        .10078       -.84331    
  24  Prefactor     1.0016        .66818E-01    .45164E-01   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2003e-07
Minuit parameter uncertainties:
  1  3.92854
  2  91.6747
  3  14.2694
  4  5.24734
  5  0.00499206
  6  9.05828
  7  22.3397
  8  3.9586
  9  1.97457
  10  0.00581127
  11  0.0554293
  12  0.000270582
  13  0.000793942
  14  54.5281
  15  8.7712e-06
  16  1.25107e-06
  17  0.0006356
  18  0.189693
  19  2.17143e-05
  20  22.2531
  21  7.14687
  22  71.9287
  23  0.180567
  24  0.066824
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.904e-05  5.543e-02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  6.682e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.275e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 5.53825242393e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421520443539 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19659508/likelihoodResults_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.24913
delta logL = -0.000613077532762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481959
delta logL = 0.000321022376738

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1483        3285.8        .17156E-04    .79522E-04
   2  Index         1.8056        5.8380        .50000        .10614E-04
   3  Normalizat    1.2744        .12241E-01    .44661E-03    .41014E-03
   4  Prefactor     1.0015        .46179E-02    .18632E-03    .16491E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14827
  Index      = 1.80556
  Normalizat = 1.27442
  Prefactor  = 1.00151
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1483        3298.2        .68622E-06   -1.5687    
   2  Index         1.8056        5.8341        .50000       -.69305    
   3  Normalizat    1.2744        .12318E-01    .17864E-04   -.84333    
   4  Prefactor     1.0015        .46465E-02    .37265E-04   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61334e-11
Minuit parameter uncertainties:
  1  123.148
  2  4.27982
  3  0.0123178
  4  0.00464648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481831
delta logL = 0.000333737381879

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.148e+00  1.231e+02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  1.806e+00  4.280e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  4.646e-03  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.274e+00  1.232e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 210.446 -32.288

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/19659508/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2023-07-18 01:42:26.958430', job_id='19659508', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1689669746.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='780' AND source_name='4FGL J1401.7-3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:42:27 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.904e-05  5.543e-02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  6.682e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.275e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 5.53825242393e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421520443539 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19659498/likelihoodResults_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.24913
delta logL = -0.000613077532762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481959
delta logL = 0.000321022376738

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1483        3285.8        .17156E-04    .79522E-04
   2  Index         1.8056        5.8380        .50000        .10614E-04
   3  Normalizat    1.2744        .12241E-01    .44661E-03    .41014E-03
   4  Prefactor     1.0015        .46179E-02    .18632E-03    .16491E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14827
  Index      = 1.80556
  Normalizat = 1.27442
  Prefactor  = 1.00151
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1483        3298.2        .68622E-06   -1.5687    
   2  Index         1.8056        5.8341        .50000       -.69305    
   3  Normalizat    1.2744        .12318E-01    .17864E-04   -.84333    
   4  Prefactor     1.0015        .46465E-02    .37265E-04   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61334e-11
Minuit parameter uncertainties:
  1  123.148
  2  4.27982
  3  0.0123178
  4  0.00464648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481831
delta logL = 0.000333737381879

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.148e+00  1.231e+02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  1.806e+00  4.280e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  4.646e-03  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.274e+00  1.232e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 210.446 -32.288

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/19659498/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2023-07-18 01:42:53.200498', job_id='19659498', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1689669773.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='780' AND source_name='4FGL J1401.7-3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:42:53 PDT 2023

bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19660595/Model_4FGL_J1401.7-3217_weekly_bin780.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits.....................!
real 134.82
user 132.49
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits', '/lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits', expMap='/lscratch/kocevski/19660595/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', expCube='/lscratch/kocevski/19660595/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19660595/Model_4FGL_J1401.7-3217_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19660595/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19660595/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19660595/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19660595/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19660595/Model_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.2615172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.366       1.0000          .0000       .10000E+07
     2 'Prefactor '    76.846       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.920       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2628       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59897E-07   1.0000          .0000       .10000E+07
     6 'norm      '    9.6551       1.0000          .0000       .10000E+07
     7 'norm      '    23.368       1.0000          .0000       .10000E+07
     8 'norm      '    2.3963       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1176       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11560E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51078       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75539E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    62.468       1.0000          .0000       .10000E+07
    15 'Prefactor '    .85167E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .55345E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97509E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.5731       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23360E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    105.73       1.0000          .0000       .10000E+07
    21 'norm      '    10.167       1.0000          .0000       .10000E+07
    22 'Prefactor '    21.387       1.0000     in780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19660599/Model_4FGL_J1401.7-3217_weekly_bin780.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits.....................!
real 132.34
user 129.79
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits', '/lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits', expMap='/lscratch/kocevski/19660599/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', expCube='/lscratch/kocevski/19660599/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19660599/Model_4FGL_J1401.7-3217_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19660599/ft1_filtered_4FGL_J1401.7-3217_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19660599/ft2_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19660599/expmap_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19660599/ltcube_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19660599/Model_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.2615172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.366       1.0000          .0000       .10000E+07
     2 'Prefactor '    76.846       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.920       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2628       1.0000          .0000       .10000E+07
     5 'Prefactor '    .59897E-07   1.0000          .0000       .10000E+07
     6 'norm      '    9.6551       1.0000          .0000       .10000E+07
     7 'norm      '    23.368       1.0000          .0000       .10000E+07
     8 'norm      '    2.3963       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1176       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11560E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51078       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75539E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34940E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    62.468       1.0000          .0000       .10000E+07
    15 'Prefactor '    .85167E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .55345E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97509E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.5731       1.0000          .0000       .10000E+07
    19 'Prefactor '    .23360E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    105.73       1.0000          .0000       .10000E+07
    21 'norm      '    10.167       1.0000          .0000       .10000E+07
    22 'Prefactor '    21.387       1.0000           .0000       .10000E+07
    23 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2002 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.364        3.9279       -.49330E-07    .27583E-04
   2  Prefactor     76.567        20.746        .33527E-06   -.71929E-02
   3  Prefactor     10.911        14.254       -.26424E-06   -.13133E-02
   4  Prefactor     4.1883        5.2330       -.78795E-07   -.36401E-04
   5  Prefactor     .23170E-06    23.564       -.98367E-06** at limit **
   6  norm          9.5263        9.0548       -.61306E-07   -.13461E-03
   7  norm          23.370        8.4487       -.16811E-06   -.80390E-01
   8  norm          2.3960        3.9225       -.19696E-06   -.24309E-03
   9  Prefactor     1.1196        1.9233       -.37186E-07    .99602E-04
  10  Prefactor     .30514E-06    17.150        .10176E-05** at limit **
  11  Prefactor     .29036E-04    1619.3        .11299E-04** at limit **
  12  Prefactor     .66613E-09    10.219        .46246E-06** at limit **
  13  Prefactor     .19429E-08    80.462       -.41054E-06** at limit **
  14  Prefactor     62.365        6.2429        .11945E-06   -.63667E-01
  15  Prefactor      .0000        5.5142       -.20456E-06** at limit **
  16  norm           .0000        .73360        .13258E-06** at limit **
  17  Prefactor     .16653E-08    60.572        .73463E-06** at limit **
  18  norm          2.5729        .18873       -.54287E-10    .49978E-02
  19  Prefactor      .0000        10.528       -.16077E-06** at limit **
  20  Prefactor     105.74        21.524       -.11604E-06   -.11788E-01
  21  norm          10.158        7.1429       -.78298E-08   -.10673E-03
  22  Prefactor     21.274        8.9069        .26038E-06   -.20021E-01
  23  Normalizat    1.2745        .21448        .90638E-05    .13578E-03
  24  Prefactor     1.0016        .79587E-01    .50420E-07    .29463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3644
  Prefactor  = 76.5666
  Prefactor  = 10.9112
  Prefactor  = 4.18826
  Prefactor  = 2.31704e-07
  norm       = 9.52631
  norm       = 23.3705
  norm       = 2.39599
  Prefactor  = 1.11958
  Prefactor  = 3.05145e-07
  Prefactor  = 2.90356e-05
  Prefactor  = 6.66134e-10
  Prefactor  = 1.94289e-09
  Prefactor  = 62.3649
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.66533e-09
  norm       = 2.57294
  Prefactor  = 0
  Prefactor  = 105.736
  norm       = 10.1578
  Prefactor  = 21.2737
  Normalizat = 1.2745
  Prefactor  = 1.00158
    .0000       .10000E+07
    23 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2002 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.364        3.9279       -.49330E-07    .27583E-04
   2  Prefactor     76.567        20.746        .33527E-06   -.71929E-02
   3  Prefactor     10.911        14.254       -.26424E-06   -.13133E-02
   4  Prefactor     4.1883        5.2330       -.78795E-07   -.36401E-04
   5  Prefactor     .23170E-06    23.564       -.98367E-06** at limit **
   6  norm          9.5263        9.0548       -.61306E-07   -.13461E-03
   7  norm          23.370        8.4487       -.16811E-06   -.80390E-01
   8  norm          2.3960        3.9225       -.19696E-06   -.24309E-03
   9  Prefactor     1.1196        1.9233       -.37186E-07    .99602E-04
  10  Prefactor     .30514E-06    17.150        .10176E-05** at limit **
  11  Prefactor     .29036E-04    1619.3        .11299E-04** at limit **
  12  Prefactor     .66613E-09    10.219        .46246E-06** at limit **
  13  Prefactor     .19429E-08    80.462       -.41054E-06** at limit **
  14  Prefactor     62.365        6.2429        .11945E-06   -.63667E-01
  15  Prefactor      .0000        5.5142       -.20456E-06** at limit **
  16  norm           .0000        .73360        .13258E-06** at limit **
  17  Prefactor     .16653E-08    60.572        .73463E-06** at limit **
  18  norm          2.5729        .18873       -.54287E-10    .49978E-02
  19  Prefactor      .0000        10.528       -.16077E-06** at limit **
  20  Prefactor     105.74        21.524       -.11604E-06   -.11788E-01
  21  norm          10.158        7.1429       -.78298E-08   -.10673E-03
  22  Prefactor     21.274        8.9069        .26038E-06   -.20021E-01
  23  Normalizat    1.2745        .21448        .90638E-05    .13578E-03
  24  Prefactor     1.0016        .79587E-01    .50420E-07    .29463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3644
  Prefactor  = 76.5666
  Prefactor  = 10.9112
  Prefactor  = 4.18826
  Prefactor  = 2.31704e-07
  norm       = 9.52631
  norm       = 23.3705
  norm       = 2.39599
  Prefactor  = 1.11958
  Prefactor  = 3.05145e-07
  Prefactor  = 2.90356e-05
  Prefactor  = 6.66134e-10
  Prefactor  = 1.94289e-09
  Prefactor  = 62.3649
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.66533e-09
  norm       = 2.57294
  Prefactor  = 0
  Prefactor  = 105.736
  norm       = 10.1578
  Prefactor  = 21.2737
  Normalizat = 1.2745
  Prefactor  = 1.00158
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=OK           455 CALLS     2457 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.364        3.9285        .31096E-03   -1.5644    
   2  Prefactor     76.567        91.673        .11408E-03   -1.5533    
   3  Prefactor     10.911        14.269        .30294E-03   -1.5642    
   4  Prefactor     4.1883        5.2473        .48776E-03   -1.5667    
   5  Prefactor     .23170E-06    26.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5263        9.0583        .32226E-03   -1.5646    
   7  norm          23.370        22.340        .20691E-03   -1.5611    
   8  norm          2.3960        3.9586        .66126E-03   -1.5677    
   9  Prefactor     1.1196        1.9746        .11122E-02   -1.5687    
  10  Prefactor     .30514E-06    27.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29036E-04    26.454        .17783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    27.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19429E-08    80.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.365        54.528        .12653E-03   -1.5550    
  15  Prefactor      .0000        5.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .73638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-08    60.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5729        .18969        .39715E-03   -1.5676    
  19  Prefactor      .0000        10.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.74        22.253        .97258E-04   -1.5502    
  21  norm          10.158        7.1469        .31401E-03   -1.5644    
  22  Prefactor     21.274        71.926        .21630E-03   -1.5616    
  23  Normalizat    1.2745        .18048        .10078       -.84331    
  24  Prefactor     1.0016        .66818E-01    .45164E-01   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2003e-07
Minuit parameter uncertainties:
  1  3.92854
  2  91.6747
  3  14.2694
  4  5.24734
  5  0.00499206
  6  9.05828
  7  22.3397
  8  3.9586
  9  1.97457
  10  0.00581127
  11  0.0554293
  12  0.000270582
  13  0.000793942
  14  54.5281
  15  8.7712e-06
  16  1.25107e-06
  17  0.0006356
  18  0.189693
  19  2.17143e-05
  20  22.2531
  21  7.14687
  22  71.9287
  23  0.180567
  24  0.066824
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=OK           455 CALLS     2457 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.364        3.9285        .31096E-03   -1.5644    
   2  Prefactor     76.567        91.673        .11408E-03   -1.5533    
   3  Prefactor     10.911        14.269        .30294E-03   -1.5642    
   4  Prefactor     4.1883        5.2473        .48776E-03   -1.5667    
   5  Prefactor     .23170E-06    26.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5263        9.0583        .32226E-03   -1.5646    
   7  norm          23.370        22.340        .20691E-03   -1.5611    
   8  norm          2.3960        3.9586        .66126E-03   -1.5677    
   9  Prefactor     1.1196        1.9746        .11122E-02   -1.5687    
  10  Prefactor     .30514E-06    27.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29036E-04    26.454        .17783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    27.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19429E-08    80.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.365        54.528        .12653E-03   -1.5550    
  15  Prefactor      .0000        5.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .73638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-08    60.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5729        .18969        .39715E-03   -1.5676    
  19  Prefactor      .0000        10.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.74        22.253        .97258E-04   -1.5502    
  21  norm          10.158        7.1469        .31401E-03   -1.5644    
  22  Prefactor     21.274        71.926        .21630E-03   -1.5616    
  23  Normalizat    1.2745        .18048        .10078       -.84331    
  24  Prefactor     1.0016        .66818E-01    .45164E-01   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2003e-07
Minuit parameter uncertainties:
  1  3.92854
  2  91.6747
  3  14.2694
  4  5.24734
  5  0.00499206
  6  9.05828
  7  22.3397
  8  3.9586
  9  1.97457
  10  0.00581127
  11  0.0554293
  12  0.000270582
  13  0.000793942
  14  54.5281
  15  8.7712e-06
  16  1.25107e-06
  17  0.0006356
  18  0.189693
  19  2.17143e-05
  20  22.2531
  21  7.14687
  22  71.9287
  23  0.180567
  24  0.066824
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.904e-05  5.543e-02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  6.682e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.275e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 5.53825242393e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421520443539 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19660595/likelihoodResults_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.24913
delta logL = -0.000613077532762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481959
delta logL = 0.000321022376738

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1483        3285.8        .17156E-04    .79522E-04
   2  Index         1.8056        5.8380        .50000        .10614E-04
   3  Normalizat    1.2744        .12241E-01    .44661E-03    .41014E-03
   4  Prefactor     1.0015        .46179E-02    .18632E-03    .16491E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14827
  Index      = 1.80556
  Normalizat = 1.27442
  Prefactor  = 1.00151
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.904e-05  5.543e-02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  6.682e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.275e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 5.53825242393e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00421520443539 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19660599/likelihoodResults_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.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) = 23900.24913
delta logL = -0.000613077532762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481959
delta logL = 0.000321022376738

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23900.25     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      261 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1483        3285.8        .17156E-04    .79522E-04
   2  Index         1.8056        5.8380        .50000        .10614E-04
   3  Normalizat    1.2744        .12241E-01    .44661E-03    .41014E-03
   4  Prefactor     1.0015        .46179E-02    .18632E-03    .16491E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14827
  Index      = 1.80556
  Normalizat = 1.27442
  Prefactor  = 1.00151
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1483        3298.2        .68622E-06   -1.5687    
   2  Index         1.8056        5.8341        .50000       -.69305    
   3  Normalizat    1.2744        .12318E-01    .17864E-04   -.84333    
   4  Prefactor     1.0015        .46465E-02    .37265E-04   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61334e-11
Minuit parameter uncertainties:
  1  123.148
  2  4.27982
  3  0.0123178
  4  0.00464648
 **********
 **   18 **HESSE 
 **********

 FCN=   23900.25     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1483        3298.2        .68622E-06   -1.5687    
   2  Index         1.8056        5.8341        .50000       -.69305    
   3  Normalizat    1.2744        .12318E-01    .17864E-04   -.84333    
   4  Prefactor     1.0015        .46465E-02    .37265E-04   -.92679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61334e-11
Minuit parameter uncertainties:
  1  123.148
  2  4.27982
  3  0.0123178
  4  0.00464648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481831
delta logL = 0.000333737381879

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.148e+00  1.231e+02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  1.806e+00  4.280e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  4.646e-03  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.274e+00  1.232e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 210.446 -32.288

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/19660595/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2023-07-18 01:49:59.439231', job_id='19660595', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1689670199.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='780' AND source_name='4FGL J1401.7-3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:50:00 PDT 2023

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23900.2481831
delta logL = 0.000333737381879

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.148e+00  1.231e+02  0.000e+00  1.000e+06 ( 1.000e-14)
318        Index:  1.806e+00  4.280e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.002e+00  4.646e-03  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.274e+00  1.232e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 210.446 -32.288

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/19660599/cmap_HighResolution_710726401_711331201_4FGL_J1401.7-3217_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2023-07-18 01:50:02.444480', job_id='19660599', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1689670202.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='780' AND source_name='4FGL J1401.7-3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:50:03 PDT 2023

