
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7533.869     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2263 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79154        2.7325        .12939E-07    .17258E-03
   2  Prefactor     24.833        2.0577       -.19387E-08   -.21655E-03
   3  norm          .11784E-05    9.8633        .77358E-07** at limit **
   4  Prefactor     1.0005        2.9311       -.50237E-07   -.20878E-04
   5  Prefactor     .10159E-06    21.102        .89338E-07** at limit **
   6  Prefactor     .20317E-07    11.622        .11960E-06** at limit **
   7  Prefactor     2.7417        4.5680       -.28660E-06   -.18532E-03
   8  Prefactor     .16653E-08    2.9801        .94307E-07** at limit **
   9  Prefactor     16.731        1.8943        .67340E-08   -.16871E-01
  10  Prefactor     26.879        5.4482        .34233E-07    .41408E-01
  11  Prefactor     5.9476        1.6508       -.10408E-07    .59990E-02
  12  Prefactor     14.872        4.9747       -.33716E-07   -.63632E-02
  13  Prefactor     .20539E-08    3.2967        .11102E-06** at limit **
  14  norm           .0000        .65160       -.87612E-07** at limit **
  15  norm          .46022E-05    5.6110       -.21309E-06** at limit **
  16  Prefactor     .67557E-07    12.217        .44247E-06** at limit **
  17  norm          39.744        33.904        .34192E-06   -.26306E-01
  18  norm          3.7722        .75138        .22707E-07   -.16765E-02
  19  Prefactor     .31875E-06    19.041        .14332E-06** at limit **
  20  norm          1.2284        1.0850       -.50845E-07    .77513E-03
  21  Prefactor     22.138        9.8223       -.17351E-07    .75104E-03
  22  Prefactor     34.012        1.2793        .61827E-08   -.68596E-02
  23  norm          .88263E-08    6.3703       -.54545E-06** at limit **
  24  norm          .46369        .20012       -.16727E-07    .13497E-02
  25  Normalizat    .94783        .23563       -.43502E-05   -.17954E-04
  26  Prefactor     1.0529        .17529        .35641E-05   -.23646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.791537
  Prefactor  = 24.8331
  norm       = 1.17839e-06
  Prefactor  = 1.00054
  Prefactor  = 1.01585e-07
  Prefactor  = 2.03171e-08
  Prefactor  = 2.7417
  Prefactor  = 1.66533e-09
  Prefactor  = 16.7308
  Prefactor  = 26.8792
  Prefactor  = 5.94761
  Prefactor  = 14.8718
  Prefactor  = 2.05391e-09
  norm       = 0
  norm       = 4.60215e-06
  Prefactor  = 6.75571e-08
  norm       = 39.7441
  norm       = 3.77218
  Prefactor  = 3.18745e-07
  norm       = 1.22836
  Prefactor  = 22.1383
  Prefactor  = 34.0116
  norm       = 8.82627e-09
  norm       = 0.46369
  Normalizat = 0.94783
  Prefactor  = 1.05293
/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).

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

 FCN=   7533.869     FROM HESSE     STATUS=OK           526 CALLS     2789 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79154        2.7345        .54038E-03   -1.5690    
   2  Prefactor     24.833        24.266        .20302E-03   -1.5608    
   3  norm          .11784E-05    1.9697        .60357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0005        3.0556        .12620E-02   -1.5688    
   5  Prefactor     .10159E-06    27.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20317E-07    11.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7417        4.6007        .60990E-03   -1.5675    
   8  Prefactor     .16653E-08    2.9933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.731        18.302        .24422E-03   -1.5626    
  10  Prefactor     26.879        31.426        .19471E-03   -1.5604    
  11  Prefactor     5.9476        19.101        .41820E-03   -1.5659    
  12  Prefactor     14.872        23.000        .26149E-03   -1.5631    
  13  Prefactor     .20539E-08    3.3146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .65151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46022E-05    3.0786        .47363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .67557E-07    12.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          39.744        36.881        .16391E-03   -1.5582    
  18  norm          3.7722        .76371        .51884E-03   -1.5669    
  19  Prefactor     .31875E-06    25.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2284        1.0943        .10149E-02   -1.5686    
  21  Prefactor     22.138        9.8709        .21286E-03   -1.5614    
  22  Prefactor     34.012        32.851        .17161E-03   -1.5591    
  23  norm          .88263E-08    6.4195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .46369        .20854        .55611E-03   -1.5694    
  25  Normalizat    .94783        .20870        .69585E-01   -.94799    
  26  Prefactor     1.0529        .14980        .39750E-01   -.90985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37235e-07
Minuit parameter uncertainties:
  1  2.73453
  2  24.2659
  3  0.00304697
  4  3.05556
  5  0.00332805
  6  0.000974584
  7  4.60066
  8  0.000141989
  9  18.3021
  10  31.4261
  11  19.1011
  12  22.9998
  13  0.00016613
  14  2.88827e-06
  15  0.0075281
  16  0.00184019
  17  36.8812
  18  0.763712
  19  0.00567814
  20  1.09429
  21  9.87094
  22  32.8508
  23  0.000475692
  24  0.208536
  25  0.208874
  26  0.149855
number of points = 7479
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1218.0-0028_daily_bin1817
RA = 184.514, Dec = -0.4832
tmin = 710294401, tmax = 710553601
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='18906587', job_status='RUN', time_executed='2023-07-10 11:56:49.010526', time_epoch_executed='1689015409.01' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='1817'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18906587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18906587/ft1_4FGL_J1218.0-0028_daily_bin1817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18906587/ft1_4FGL_J1218.0-0028_daily_bin1817.fits outfile=/lscratch/kocevski/18906587/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin1817.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=710294401.0 tmax=710553601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.14
user 1.91
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.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/18906587/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin1817.fits evtable="EVENTS" outfile="/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.36
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 697

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits sctable="SC_DATA" ouDone.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.054e-09  1.661e-04  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.053e+00  1.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.478e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 5.98014365023e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00459622595015 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18906320/likelihoodResults_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.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) = 7533.86966212
delta logL = -0.000261649768618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7533.86940054
delta logL = -7.09187588654e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7533.869     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      254 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2847        .42118E-03** at limit **
   2  Index         2.3407        1.6331        .40418E-04     .0000    
   3  Normalizat    .94783        1.2807       -.51739E-05    .28104E-06
   4  Prefactor     1.0529        1.1879        .96526E-05    .70810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34069
  Normalizat = 0.947829
  Prefactor  = 1.05293
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7533.869     FROM HESSE     STATUS=FAILED         9 CALLS      263 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61208        1.9344        .40418E-04   -.56080    
   3  Normalizat    .94783        1.2807       -.51739E-05   -.94799    
   4  Prefactor     1.0529        1.1879        .96526E-05   -.90985    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.25762e-11
Minuit parameter uncertainties:
  1  1.23037e-05
  2  1.67654
  3  1.32601
  4  1.21978
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) = 7533.86940047
delta logL = 3.0286173569e-10

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  1.230e-05  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.341e+00  1.677e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.053e+00  1.220e+00  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.478e-01  1.326e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.514 -0.483

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/18906320/cmap_HighResolution_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2023-07-10 11:57:42.084849', job_id='18906320', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1689015462.08', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.03e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1817' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:57:42 PDT 2023

tfile=/lscratch/kocevski/18906587/ltcube_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.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/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits
.....................!
real 8.07
user 7.76
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits evtable="EVENTS" scfile=/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18906587/ltcube_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.fits outfile=/lscratch/kocevski/18906587/expmap_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.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/18906587/ltcube_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.fits
.....................!
real 68.34
user 64.14
sys 3.78

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

Setting source of interest to:
4FGL J1218.0-0028 @ 184.514 -0.4832

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits scfile=/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits outfile=/lscratch/kocevski/18906587/cmap_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.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=184.514 yref=-0.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.38
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits scfile=/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits outfile=/lscratch/kocevski/18906587/cmap_HighResolution_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.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=184.514 yref=-0.4832 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.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits evtable="EVENTS" scfile=/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18906587/Model_4FGL_J1218.0-0028_daily_bin1817.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits.....................!
real 26.17
user 24.99
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits', '/lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits', expMap='/lscratch/kocevski/18906587/expmap_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.fits', expCube='/lscratch/kocevski/18906587/ltcube_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18906587/Model_4FGL_J1218.0-0028_daily_bin1817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.0-0028'

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.373e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18906587/ft1_filtered_4FGL_J1218.0-0028_daily_bin1817.fits
Spacecraft file(s): /lscratch/kocevski/18906587/ft2_4FGL_J1218.0-0028_daily_bin1817.fits
Exposure map: /lscratch/kocevski/18906587/expmap_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.fits
Exposure cube: /lscratch/kocevski/18906587/ltcube_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18906587/Model_4FGL_J1218.0-0028_daily_bin1817.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) = 7533.93362939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78528       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.272       1.0000          .0000       .10000E+07
     3 'norm      '    .40532E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0260       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10051E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16753E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7813       1.0000          .0000       .10000E+07
     8 'Prefactor '    .56213E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    16.781       1.0000          .0000       .10000E+07
    10 'Prefactor '    26.387       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.7615       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.642       1.0000          .0000       .10000E+07
    13 'Prefactor '    .77394E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    15 'norm      '    .16495E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .63648E-03   1.0000          .0000       .10000E+07
    17 'norm      '    37.229       1.0000          .0000       .10000E+07
    18 'norm      '    3.7821       1.0000          .0000       .10000E+07
    19 'Prefactor '    .70587E-03   1.0000          .0000       .10000E+07
    20 'norm      '    1.2284       1.0000          .0000       .10000E+07
    21 'Prefactor '    22.082       1.0000          .0000       .10000E+07
    22 'Prefactor '    33.964       1.0000          .0000       .10000E+07
    23 'norm      '    .12812E-06   1.0000          .0000       .10000E+07
    24 'norm      '    .46347       1.0000          .0000       .10000E+07
    25 'Normalizat'    .94941       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7533.869     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2263 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79154        2.7325        .12939E-07    .17258E-03
   2  Prefactor     24.833        2.0577       -.19387E-08   -.21655E-03
   3  norm          .11784E-05    9.8633        .77358E-07** at limit **
   4  Prefactor     1.0005        2.9311       -.50237E-07   -.20878E-04
   5  Prefactor     .10159E-06    21.102        .89338E-07** at limit **
   6  Prefactor     .20317E-07    11.622        .11960E-06** at limit **
   7  Prefactor     2.7417        4.5680       -.28660E-06   -.18532E-03
   8  Prefactor     .16653E-08    2.9801        .94307E-07** at limit **
   9  Prefactor     16.731        1.8943        .67340E-08   -.16871E-01
  10  Prefactor     26.879        5.4482        .34233E-07    .41408E-01
  11  Prefactor     5.9476        1.6508       -.10408E-07    .59990E-02
  12  Prefactor     14.872        4.9747       -.33716E-07   -.63632E-02
  13  Prefactor     .20539E-08    3.2967        .11102E-06** at limit **
  14  norm           .0000        .65160       -.87612E-07** at limit **
  15  norm          .46022E-05    5.6110       -.21309E-06** at limit **
  16  Prefactor     .67557E-07    12.217        .44247E-06** at limit **
  17  norm          39.744        33.904        .34192E-06   -.26306E-01
  18  norm          3.7722        .75138        .22707E-07   -.16765E-02
  19  Prefactor     .31875E-06    19.041        .14332E-06** at limit **
  20  norm          1.2284        1.0850       -.50845E-07    .77513E-03
  21  Prefactor     22.138        9.8223       -.17351E-07    .75104E-03
  22  Prefactor     34.012        1.2793        .61827E-08   -.68596E-02
  23  norm          .88263E-08    6.3703       -.54545E-06** at limit **
  24  norm          .46369        .20012       -.16727E-07    .13497E-02
  25  Normalizat    .94783        .23563       -.43502E-05   -.17954E-04
  26  Prefactor     1.0529        .17529        .35641E-05   -.23646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.791537
  Prefactor  = 24.8331
  norm       = 1.17839e-06
  Prefactor  = 1.00054
  Prefactor  = 1.01585e-07
  Prefactor  = 2.03171e-08
  Prefactor  = 2.7417
  Prefactor  = 1.66533e-09
  Prefactor  = 16.7308
  Prefactor  = 26.8792
  Prefactor  = 5.94761
  Prefactor  = 14.8718
  Prefactor  = 2.05391e-09
  norm       = 0
  norm       = 4.60215e-06
  Prefactor  = 6.75571e-08
  norm       = 39.7441
  norm       = 3.77218
  Prefactor  = 3.18745e-07
  norm       = 1.22836
  Prefactor  = 22.1383
  Prefactor  = 34.0116
  norm       = 8.82627e-09
  norm       = 0.46369
  Normalizat = 0.94783
  Prefactor  = 1.05293
 **********
 **   18 **HESSE 
 **********

 FCN=   7533.869     FROM HESSE     STATUS=OK           526 CALLS     2789 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79154        2.7345        .54038E-03   -1.5690    
   2  Prefactor     24.833        24.266        .20302E-03   -1.5608    
   3  norm          .11784E-05    1.9697        .60357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0005        3.0556        .12620E-02   -1.5688    
   5  Prefactor     .10159E-06    27.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20317E-07    11.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7417        4.6007        .60990E-03   -1.5675    
   8  Prefactor     .16653E-08    2.9933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.731        18.302        .24422E-03   -1.5626    
  10  Prefactor     26.879        31.426        .19471E-03   -1.5604    
  11  Prefactor     5.9476        19.101        .41820E-03   -1.5659    
  12  Prefactor     14.872        23.000        .26149E-03   -1.5631    
  13  Prefactor     .20539E-08    3.3146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .65151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46022E-05    3.0786        .47363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .67557E-07    12.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          39.744        36.881        .16391E-03   -1.5582    
  18  norm          3.7722        .76371        .51884E-03   -1.5669    
  19  Prefactor     .31875E-06    25.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2284        1.0943        .10149E-02   -1.5686    
  21  Prefactor     22.138        9.8709        .21286E-03   -1.5614    
  22  Prefactor     34.012        32.851        .17161E-03   -1.5591    
  23  norm          .88263E-08    6.4195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .46369        .20854        .55611E-03   -1.5694    
  25  Normalizat    .94783        .20870        .69585E-01   -.94799    
  26  Prefactor     1.0529        .14980        .39750E-01   -.90985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37235e-07
Minuit parameter uncertainties:
  1  2.73453
  2  24.2659
  3  0.00304697
  4  3.05556
  5  0.00332805
  6  0.000974584
  7  4.60066
  8  0.000141989
  9  18.3021
  10  31.4261
  11  19.1011
  12  22.9998
  13  0.00016613
  14  2.88827e-06
  15  0.0075281
  16  0.00184019
  17  36.8812
  18  0.763712
  19  0.00567814
  20  1.09429
  21  9.87094
  22  32.8508
  23  0.000475692
  24  0.208536
  25  0.208874
  26  0.149855
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.054e-09  1.661e-04  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.053e+00  1.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.478e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 5.98014365023e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00459622595015 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18906587/likelihoodResults_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.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) = 7533.86966212
delta logL = -0.000261649768618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7533.86940054
delta logL = -7.09187588654e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7533.869     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      254 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2847        .42118E-03** at limit **
   2  Index         2.3407        1.6331        .40418E-04     .0000    
   3  Normalizat    .94783        1.2807       -.51739E-05    .28104E-06
   4  Prefactor     1.0529        1.1879        .96526E-05    .70810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34069
  Normalizat = 0.947829
  Prefactor  = 1.05293
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7533.869     FROM HESSE     STATUS=FAILED         9 CALLS      263 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61208        1.9344        .40418E-04   -.56080    
   3  Normalizat    .94783        1.2807       -.51739E-05   -.94799    
   4  Prefactor     1.0529        1.1879        .96526E-05   -.90985    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.25762e-11
Minuit parameter uncertainties:
  1  1.23037e-05
  2  1.67654
  3  1.32601
  4  1.21978
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) = 7533.86940047
delta logL = 3.0286173569e-10

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  1.230e-05  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.341e+00  1.677e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.053e+00  1.220e+00  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.478e-01  1.326e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.514 -0.483

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/18906587/cmap_HighResolution_710294401_710553601_4FGL_J1218.0-0028_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2023-07-10 12:02:18.512865', job_id='18906587', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1689015738.51', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.03e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1817' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 12:02:18 PDT 2023

