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

 FCN=   12516.04     FROM HESSE     STATUS=OK           668 CALLS     3548 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.253        31.949        .17834E-03   -1.5596    
   3  Prefactor     .42612E-03    8.9037        .88788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2127        2.1536        .56518E-03   -1.5672    
   5  Prefactor     .44409E-09    4.6830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.8368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18643E-05    32.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4345        .93916        .90805E-03   -1.5684    
   9  Prefactor     .12659E-05    62.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.4774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.502        43.198        .15908E-03   -1.5585    
  12  norm          15.458        1.8068        .25446E-03   -1.5629    
  13  norm          6.0251        2.4937        .40874E-03   -1.5659    
  14  Prefactor     2.6558        4.5822        .62037E-03   -1.5675    
  15  Prefactor     .13468        1.0750        .34139E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8075        1.4241        .77657E-03   -1.5681    
  17  Prefactor      .0000        1.4068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.622        4.2287        .28159E-03   -1.5637    
  19  Prefactor     1.9481        4.6578        .74394E-03   -1.5680    
  20  Prefactor     17.794        17.561        .23664E-03   -1.5624    
  21  Prefactor     2.3815        7.6042        .66376E-03   -1.5677    
  22  norm          1.4186        3.7928        .91438E-03   -1.5684    
  23  Prefactor     35.936        35.483        .16591E-03   -1.5588    
  24  Prefactor     22.275        17.446        .21234E-03   -1.5614    
  25  norm          .55511E-10    2.5761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          42.732        10.440        .15310E-03   -1.5577    
  27  norm          32.813        16.982        .17434E-03   -1.5593    
  28  Prefactor      .0000        1.7603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84966        .14789        .71798E-01   -.98252    
  30  Prefactor     1.4684        .17608        .69525E-01   -.78430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09511e-06
Minuit parameter uncertainties:
  1  7.19048e-06
  2  31.9494
  3  0.123192
  4  2.15364
  5  9.18416e-05
  6  3.74443e-07
  7  0.0154576
  8  0.939157
  9  0.0177544
  10  8.23079e-06
  11  43.1979
  12  1.80678
  13  2.49374
  14  4.58219
  15  0.761
  16  1.42405
  17  2.45238e-07
  18  4.2287
  19  4.65779
  20  17.5609
  21  7.6042
  22  3.79285
  23  35.4836
  24  17.4461
  25  2.11049e-05
  26  10.4402
  27  16.9819
  28  5.74353e-07
  29  0.147955
  30  0.176152
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.656e+00  4.582e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.497e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 5.36698257496e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0040602253577 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18905244/likelihoodResults_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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) = 12515.1991619
delta logL = 0.835875006684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 12514.6646559
delta logL = 1.37038107321

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12516.29     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      762 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1116        .42118E-03** at limit **
   2  Index         1.1982        1.2465        .26349E-04     .0000    
   3  Normalizat    .85508        1.1641       -.71154E-04    .15534E-03
   4  Prefactor     1.4714        1.0240       -.20964E-04   -.51276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.19823
  Normalizat = 0.855077
  Prefactor  = 1.47144
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12516.29     FROM HESSE     STATUS=FAILED         9 CALLS      771 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1116        .42118E-03   -20705.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2674        1.7780        .26349E-04   -.14583E+09
   3  Normalizat    .85508        1.1641       -.71154E-04   -886.91    
   4  Prefactor     1.4714        1.0240       -.20964E-04   -203.42    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.04208e-10
Minuit parameter uncertainties:
  1  2.07547e-06
  2  1.2793
  3  1.20111
  4  1.03885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 12516.2874683
delta logL = -0.25243130086

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  0.000e+00  2.075e-06  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  1.198e+00  1.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.551e-01  1.201e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 185.046 34.538

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/18905244/cmap_HighResolution_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2023-07-10 11:56:58.741100', job_id='18905244', GAL2='1.47', fit_tolerance='1e-08', EG2='0.86', EG='0.85', time_epoch_completed='1689015418.74', return_code2='101', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='-2.52e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1812' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:56:58 PDT 2023

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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1812
RA = 185.046, Dec = 34.5383
tmin = 708998401, tmax = 709257601
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='18906592', job_status='RUN', time_executed='2023-07-10 11:56:49.010451', time_epoch_executed='1689015409.01' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1812'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18906592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18906592/ft1_4FGL_J1220.1+3432_daily_bin1812.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18906592/ft1_4FGL_J1220.1+3432_daily_bin1812.fits outfile=/lscratch/kocevski/18906592/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1812.fits ra=185.046 dec=34.5383 rad=12.0 tmin=708998401.0 tmax=709257601.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 1.65
user 1.44
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.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/18906592/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1812.fits evtable="EVENTS" outfile="/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.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.35
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1179

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits sctable="SC_DATA" oL_V02
Working on...
/lscratch/kocevski/18906327/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits.....................!
real 33.69
user 32.73
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18906327/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits', '/lscratch/kocevski/18906327/ft2_4FGL_J1220.1+3432_daily_bin1812.fits', expMap='/lscratch/kocevski/18906327/expmap_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits', expCube='/lscratch/kocevski/18906327/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18906327/Model_4FGL_J1220.1+3432_daily_bin1812.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+3432'

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18906327/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits
Spacecraft file(s): /lscratch/kocevski/18906327/ft2_4FGL_J1220.1+3432_daily_bin1812.fits
Exposure map: /lscratch/kocevski/18906327/expmap_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits
Exposure cube: /lscratch/kocevski/18906327/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18906327/Model_4FGL_J1220.1+3432_daily_bin1812.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) = 12516.0988041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81973E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    31.451       1.0000          .0000       .10000E+07
     3 'Prefactor '    .76241E-02   1.0000          .0000       .10000E+07
     4 'norm      '    3.2105       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11620E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .85915E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16971E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.4189       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10433E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .33618E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    39.525       1.0000          .0000       .10000E+07
    12 'norm      '    15.461       1.0000          .0000       .10000E+07
    13 'norm      '    6.0274       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6946       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13194       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.8090       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12264E-03   1.0000          .0000       .10000E+07
    18 'norm      '    12.631       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.9452       1.0000          .0000       .10000E+07
    20 'Prefactor '    17.872       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.3799       1.0000          .0000       .10000E+07
    22 'norm      '    1.4051       1.0000          .0000       .10000E+07
    23 'Prefactor '    36.339       1.0000          .0000       .10000E+07
    24 'Prefactor '    22.192       1.0000          .0000       .10000E+07
    25 'norm      '    .13193E-03   1.0000          .0000       .10000E+07
    26 'norm      '    42.672       1.0000          .0000       .10000E+07
    27 'norm      '    32.908       1.0000          .0Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.656e+00  4.582e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.497e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 5.36698257496e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0040602253577 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18905947/likelihoodResults_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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) = 12515.1991619
delta logL = 0.835875006684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 12514.6646559
delta logL = 1.37038107321

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12516.29     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      762 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1116        .42118E-03** at limit **
   2  Index         1.1982        1.2465        .26349E-04     .0000    
   3  Normalizat    .85508        1.1641       -.71154E-04    .15534E-03
   4  Prefactor     1.4714        1.0240       -.20964E-04   -.51276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.19823
  Normalizat = 0.855077
  Prefactor  = 1.47144
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12516.29     FROM HESSE     STATUS=FAILED         9 CALLS      771 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1116        .42118E-03   -20705.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2674        1.7780        .26349E-04   -.14583E+09
   3  Normalizat    .85508        1.1641       -.71154E-04   -886.91    
   4  Prefactor     1.4714        1.0240       -.20964E-04   -203.42    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.04208e-10
Minuit parameter uncertainties:
  1  2.07547e-06
  2  1.2793
  3  1.20111
  4  1.03885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 12516.2874683
delta logL = -0.25243130086

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  0.000e+00  2.075e-06  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  1.198e+00  1.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.551e-01  1.201e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 185.046 34.538

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/18905947/cmap_HighResolution_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2023-07-10 11:58:34.629070', job_id='18905947', GAL2='1.47', fit_tolerance='1e-08', EG2='0.86', EG='0.85', time_epoch_completed='1689015514.63', return_code2='101', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='-2.52e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1812' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:58:34 PDT 2023

000       .10000E+07
    28 'Prefactor '    .54850E-04   1.0000          .0000       .10000E+07
    29 'Normalizat'    .84916       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12516.04     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     2880 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5510       -.31047E-06** at limit **
   2  Prefactor     31.253        2.3578       -.22615E-07   -.36622E-01
   3  Prefactor     .42612E-03    100.57       -.33895E-05** at limit **
   4  norm          3.2127        2.0347        .27229E-07   -.30276E-03
   5  Prefactor     .44409E-09    4.6654       -.39697E-07** at limit **
   6  Prefactor      .0000        1.8398       -.17729E-06** at limit **
   7  Prefactor     .18643E-05    31.582       -.17876E-05** at limit **
   8  norm          1.4345        .88485       -.84372E-07   -.12536E-02
   9  Prefactor     .12659E-05    61.723       -.95488E-06** at limit **
  10  norm           .0000        3.4615       -.10463E-06** at limit **
  11  Prefactor     37.502        28.387       -.67750E-06   -.25541    
  12  norm          15.458        1.8075        .81865E-08    .13825E-02
  13  norm          6.0251        2.4574        .11527E-06   -.18044E-02
  14  Prefactor     2.6558        4.5655       -.28375E-07   -.15353E-03
  15  Prefactor     .13468        3.3813       -.21961E-06** at limit **
  16  Prefactor     1.8075        1.4125        .10164E-06   -.23237E-02
  17  Prefactor      .0000        1.4085        .22144E-06** at limit **
  18  norm          12.622        4.2220       -.66384E-07   -.58585E-03
  19  Prefactor     1.9481        4.6066       -.79152E-08   -.24941E-03
  20  Prefactor     17.794        15.551       -.24034E-07   -.46844E-01
  21  Prefactor     2.3815        6.8298       -.19194E-06    .39496E-02
  22  norm          1.4186        3.4035       -.54098E-07    .23796E-03
  23  Prefactor     35.936        4.8358       -.29182E-07   -.69979E-02
  24  Prefactor     22.275        14.941        .19927E-06   -.24928E-01
  25  norm          .55511E-10    2.5715       -.77445E-07** at limit **
  26  norm          42.732        7.2162        .11732E-07   -.49653E-02
  27  norm          32.813        10.398       -.10932E-06    .27572E-02
  28  Prefactor      .0000        1.7641       -.17401E-06** at limit **
  29  Normalizat    .84966        .17577        .41575E-05   -.60293E-06
  30  Prefactor     1.4684        .21135       -.35585E-05    .43917E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 31.2535
  Prefactor  = 0.000426119
  norm       = 3.21274
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 1.86429e-06
  norm       = 1.4345
  Prefactor  = 1.26588e-06
  norm       = 0
  Prefactor  = 37.5021
  norm       = 15.4579
  norm       = 6.02506
  Prefactor  = 2.65584
  Prefactor  = 0.134675
  Prefactor  = 1.80751
  Prefactor  = 0
  norm       = 12.6218
  Prefactor  = 1.94811
  Prefactor  = 17.7941
  Prefactor  = 2.38153
  norm       = 1.41861
  Prefactor  = 35.9356
  Prefactor  = 22.2746
  norm       = 5.55112e-11
  norm       = 42.7324
  norm       = 32.8129
  Prefactor  = 0
  Normalizat = 0.849664
  Prefactor  = 1.46835
utfile=/lscratch/kocevski/18906592/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits
.....................!
real 8.35
user 7.97
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits evtable="EVENTS" scfile=/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18906592/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits outfile=/lscratch/kocevski/18906592/expmap_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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/18906592/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits
.....................!
real 65.75
user 61.75
sys 3.57

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1220.1+3432 @ 185.046 34.5383

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits scfile=/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits outfile=/lscratch/kocevski/18906592/cmap_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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=185.046 yref=34.5383 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.39
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits scfile=/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits outfile=/lscratch/kocevski/18906592/cmap_HighResolution_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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=185.046 yref=34.5383 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.37
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits evtable="EVENTS" scfile=/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18906592/Model_4FGL_J1220.1+3432_daily_bin1812.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GA **********
 **   18 **HESSE 
 **********

 FCN=   12516.04     FROM HESSE     STATUS=OK           668 CALLS     3548 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.253        31.949        .17834E-03   -1.5596    
   3  Prefactor     .42612E-03    8.9037        .88788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2127        2.1536        .56518E-03   -1.5672    
   5  Prefactor     .44409E-09    4.6830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.8368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18643E-05    32.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4345        .93916        .90805E-03   -1.5684    
   9  Prefactor     .12659E-05    62.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.4774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.502        43.198        .15908E-03   -1.5585    
  12  norm          15.458        1.8068        .25446E-03   -1.5629    
  13  norm          6.0251        2.4937        .40874E-03   -1.5659    
  14  Prefactor     2.6558        4.5822        .62037E-03   -1.5675    
  15  Prefactor     .13468        1.0750        .34139E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8075        1.4241        .77657E-03   -1.5681    
  17  Prefactor      .0000        1.4068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.622        4.2287        .28159E-03   -1.5637    
  19  Prefactor     1.9481        4.6578        .74394E-03   -1.5680    
  20  Prefactor     17.794        17.561        .23664E-03   -1.5624    
  21  Prefactor     2.3815        7.6042        .66376E-03   -1.5677    
  22  norm          1.4186        3.7928        .91438E-03   -1.5684    
  23  Prefactor     35.936        35.483        .16591E-03   -1.5588    
  24  Prefactor     22.275        17.446        .21234E-03   -1.5614    
  25  norm          .55511E-10    2.5761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          42.732        10.440        .15310E-03   -1.5577    
  27  norm          32.813        16.982        .17434E-03   -1.5593    
  28  Prefactor      .0000        1.7603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84966        .14789        .71798E-01   -.98252    
  30  Prefactor     1.4684        .17608        .69525E-01   -.78430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09511e-06
Minuit parameter uncertainties:
  1  7.19048e-06
  2  31.9494
  3  0.123192
  4  2.15364
  5  9.18416e-05
  6  3.74443e-07
  7  0.0154576
  8  0.939157
  9  0.0177544
  10  8.23079e-06
  11  43.1979
  12  1.80678
  13  2.49374
  14  4.58219
  15  0.761
  16  1.42405
  17  2.45238e-07
  18  4.2287
  19  4.65779
  20  17.5609
  21  7.6042
  22  3.79285
  23  35.4836
  24  17.4461
  25  2.11049e-05
  26  10.4402
  27  16.9819
  28  5.74353e-07
  29  0.147955
  30  0.176152
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.656e+00  4.582e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.497e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 5.36698257496e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0040602253577 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18906327/likelihoodResults_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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) = 12515.1991619
delta logL = 0.835875006684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 12514.6646559
delta logL = 1.37038107321

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12516.29     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      762 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1116        .42118E-03** at limit **
   2  Index         1.1982        1.2465        .26349E-04     .0000    
   3  Normalizat    .85508        1.1641       -.71154E-04    .15534E-03
   4  Prefactor     1.4714        1.0240       -.20964E-04   -.51276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.19823
  Normalizat = 0.855077
  Prefactor  = 1.47144
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12516.29     FROM HESSE     STATUS=FAILED         9 CALLS      771 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1116        .42118E-03   -20705.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2674        1.7780        .26349E-04   -.14583E+09
   3  Normalizat    .85508        1.1641       -.71154E-04   -886.91    
   4  Prefactor     1.4714        1.0240       -.20964E-04   -203.42    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.04208e-10
Minuit parameter uncertainties:
  1  2.07547e-06
  2  1.2793
  3  1.20111
  4  1.03885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 12516.2874683
delta logL = -0.25243130086

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  0.000e+00  2.075e-06  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  1.198e+00  1.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.551e-01  1.201e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 185.046 34.538

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/18906327/cmap_HighResolution_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2023-07-10 12:01:10.600695', job_id='18906327', GAL2='1.47', fit_tolerance='1e-08', EG2='0.86', EG='0.85', time_epoch_completed='1689015670.6', return_code2='101', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='-2.52e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1812' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 12:01:10 PDT 2023

L_V02
Working on...
/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits.....................!
real 36.06
user 34.85
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits', '/lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits', expMap='/lscratch/kocevski/18906592/expmap_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits', expCube='/lscratch/kocevski/18906592/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18906592/Model_4FGL_J1220.1+3432_daily_bin1812.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+3432'

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18906592/ft1_filtered_4FGL_J1220.1+3432_daily_bin1812.fits
Spacecraft file(s): /lscratch/kocevski/18906592/ft2_4FGL_J1220.1+3432_daily_bin1812.fits
Exposure map: /lscratch/kocevski/18906592/expmap_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits
Exposure cube: /lscratch/kocevski/18906592/ltcube_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18906592/Model_4FGL_J1220.1+3432_daily_bin1812.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) = 12516.0988041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81973E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    31.451       1.0000          .0000       .10000E+07
     3 'Prefactor '    .76241E-02   1.0000          .0000       .10000E+07
     4 'norm      '    3.2105       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11620E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .85915E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16971E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.4189       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10433E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .33618E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    39.525       1.0000          .0000       .10000E+07
    12 'norm      '    15.461       1.0000          .0000       .10000E+07
    13 'norm      '    6.0274       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.6946       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13194       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.8090       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12264E-03   1.0000          .0000       .10000E+07
    18 'norm      '    12.631       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.9452       1.0000          .0000       .10000E+07
    20 'Prefactor '    17.872       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.3799       1.0000          .0000       .10000E+07
    22 'norm      '    1.4051       1.0000          .0000       .10000E+07
    23 'Prefactor '    36.339       1.0000          .0000       .10000E+07
    24 'Prefactor '    22.192       1.0000          .0000       .10000E+07
    25 'norm      '    .13193E-03   1.0000          .0000       .10000E+07
    26 'norm      '    42.672       1.0000          .0000       .10000E+07
    27 'norm      '    32.908       1.0000          .0000       .10000E+07
    28 'Prefactor '    .54850E-04   1.0000          .0000       .10000E+07
    29 'Normalizat'    .84916       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12516.04     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     2880 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5510       -.31047E-06** at limit **
   2  Prefactor     31.253        2.3578       -.22615E-07   -.36622E-01
   3  Prefactor     .42612E-03    100.57       -.33895E-05** at limit **
   4  norm          3.2127        2.0347        .27229E-07   -.30276E-03
   5  Prefactor     .44409E-09    4.6654       -.39697E-07** at limit **
   6  Prefactor      .0000        1.8398       -.17729E-06** at limit **
   7  Prefactor     .18643E-05    31.582       -.17876E-05** at limit **
   8  norm          1.4345        .88485       -.84372E-07   -.12536E-02
   9  Prefactor     .12659E-05    61.723       -.95488E-06** at limit **
  10  norm           .0000        3.4615       -.10463E-06** at limit **
  11  Prefactor     37.502        28.387       -.67750E-06   -.25541    
  12  norm          15.458        1.8075        .81865E-08    .13825E-02
  13  norm          6.0251        2.4574        .11527E-06   -.18044E-02
  14  Prefactor     2.6558        4.5655       -.28375E-07   -.15353E-03
  15  Prefactor     .13468        3.3813       -.21961E-06** at limit **
  16  Prefactor     1.8075        1.4125        .10164E-06   -.23237E-02
  17  Prefactor      .0000        1.4085        .22144E-06** at limit **
  18  norm          12.622        4.2220       -.66384E-07   -.58585E-03
  19  Prefactor     1.9481        4.6066       -.79152E-08   -.24941E-03
  20  Prefactor     17.794        15.551       -.24034E-07   -.46844E-01
  21  Prefactor     2.3815        6.8298       -.19194E-06    .39496E-02
  22  norm          1.4186        3.4035       -.54098E-07    .23796E-03
  23  Prefactor     35.936        4.8358       -.29182E-07   -.69979E-02
  24  Prefactor     22.275        14.941        .19927E-06   -.24928E-01
  25  norm          .55511E-10    2.5715       -.77445E-07** at limit **
  26  norm          42.732        7.2162        .11732E-07   -.49653E-02
  27  norm          32.813        10.398       -.10932E-06    .27572E-02
  28  Prefactor      .0000        1.7641       -.17401E-06** at limit **
  29  Normalizat    .84966        .17577        .41575E-05   -.60293E-06
  30  Prefactor     1.4684        .21135       -.35585E-05    .43917E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 31.2535
  Prefactor  = 0.000426119
  norm       = 3.21274
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 1.86429e-06
  norm       = 1.4345
  Prefactor  = 1.26588e-06
  norm       = 0
  Prefactor  = 37.5021
  norm       = 15.4579
  norm       = 6.02506
  Prefactor  = 2.65584
  Prefactor  = 0.134675
  Prefactor  = 1.80751
  Prefactor  = 0
  norm       = 12.6218
  Prefactor  = 1.94811
  Prefactor  = 17.7941
  Prefactor  = 2.38153
  norm       = 1.41861
  Prefactor  = 35.9356
  Prefactor  = 22.2746
  norm       = 5.55112e-11
  norm       = 42.7324
  norm       = 32.8129
  Prefactor  = 0
  Normalizat = 0.849664
  Prefactor  = 1.46835
 **********
 **   18 **HESSE 
 **********

 FCN=   12516.04     FROM HESSE     STATUS=OK           668 CALLS     3548 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.253        31.949        .17834E-03   -1.5596    
   3  Prefactor     .42612E-03    8.9037        .88788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2127        2.1536        .56518E-03   -1.5672    
   5  Prefactor     .44409E-09    4.6830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.8368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18643E-05    32.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4345        .93916        .90805E-03   -1.5684    
   9  Prefactor     .12659E-05    62.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.4774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.502        43.198        .15908E-03   -1.5585    
  12  norm          15.458        1.8068        .25446E-03   -1.5629    
  13  norm          6.0251        2.4937        .40874E-03   -1.5659    
  14  Prefactor     2.6558        4.5822        .62037E-03   -1.5675    
  15  Prefactor     .13468        1.0750        .34139E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8075        1.4241        .77657E-03   -1.5681    
  17  Prefactor      .0000        1.4068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.622        4.2287        .28159E-03   -1.5637    
  19  Prefactor     1.9481        4.6578        .74394E-03   -1.5680    
  20  Prefactor     17.794        17.561        .23664E-03   -1.5624    
  21  Prefactor     2.3815        7.6042        .66376E-03   -1.5677    
  22  norm          1.4186        3.7928        .91438E-03   -1.5684    
  23  Prefactor     35.936        35.483        .16591E-03   -1.5588    
  24  Prefactor     22.275        17.446        .21234E-03   -1.5614    
  25  norm          .55511E-10    2.5761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          42.732        10.440        .15310E-03   -1.5577    
  27  norm          32.813        16.982        .17434E-03   -1.5593    
  28  Prefactor      .0000        1.7603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84966        .14789        .71798E-01   -.98252    
  30  Prefactor     1.4684        .17608        .69525E-01   -.78430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09511e-06
Minuit parameter uncertainties:
  1  7.19048e-06
  2  31.9494
  3  0.123192
  4  2.15364
  5  9.18416e-05
  6  3.74443e-07
  7  0.0154576
  8  0.939157
  9  0.0177544
  10  8.23079e-06
  11  43.1979
  12  1.80678
  13  2.49374
  14  4.58219
  15  0.761
  16  1.42405
  17  2.45238e-07
  18  4.2287
  19  4.65779
  20  17.5609
  21  7.6042
  22  3.79285
  23  35.4836
  24  17.4461
  25  2.11049e-05
  26  10.4402
  27  16.9819
  28  5.74353e-07
  29  0.147955
  30  0.176152
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.656e+00  4.582e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.497e-01  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 5.36698257496e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0040602253577 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18906592/likelihoodResults_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.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) = 12515.1991619
delta logL = 0.835875006684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 12514.6646559
delta logL = 1.37038107321

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12516.29     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      762 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1116        .42118E-03** at limit **
   2  Index         1.1982        1.2465        .26349E-04     .0000    
   3  Normalizat    .85508        1.1641       -.71154E-04    .15534E-03
   4  Prefactor     1.4714        1.0240       -.20964E-04   -.51276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.19823
  Normalizat = 0.855077
  Prefactor  = 1.47144
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12516.29     FROM HESSE     STATUS=FAILED         9 CALLS      771 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1116        .42118E-03   -20705.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2674        1.7780        .26349E-04   -.14583E+09
   3  Normalizat    .85508        1.1641       -.71154E-04   -886.91    
   4  Prefactor     1.4714        1.0240       -.20964E-04   -203.42    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.04208e-10
Minuit parameter uncertainties:
  1  2.07547e-06
  2  1.2793
  3  1.20111
  4  1.03885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 12516.2874683
delta logL = -0.25243130086

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  0.000e+00  2.075e-06  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  1.198e+00  1.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.551e-01  1.201e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 185.046 34.538

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/18906592/cmap_HighResolution_708998401_709257601_4FGL_J1220.1+3432_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2023-07-10 12:06:03.681559', job_id='18906592', GAL2='1.47', fit_tolerance='1e-08', EG2='0.86', EG='0.85', time_epoch_completed='1689015963.68', return_code2='101', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='-2.52e-01', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1812' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 12:06:03 PDT 2023

