number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
/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
Done.


Performing analysis on: 4FGL_J2324.6+3115_weekly_bin780
RA = 351.17, Dec = 31.2573
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19667822', job_status='RUN', time_executed='2023-07-18 02:11:31.644338', time_epoch_executed='1689671491.64' WHERE source_name='4FGL J2324.6+3115' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19667822

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19667822/ft1_4FGL_J2324.6+3115_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19667822/ft1_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19667822/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin780.fits ra=351.17 dec=31.2573 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.34
user 3.44
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/19667822/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2079

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" o
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).

_V02
Working on...
/lscratch/kocevski/19667393/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits.....................!
real 77.89
user 75.52
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19667393/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits', '/lscratch/kocevski/19667393/ft2_4FGL_J2324.6+3115_weekly_bin780.fits', expMap='/lscratch/kocevski/19667393/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', expCube='/lscratch/kocevski/19667393/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19667393/Model_4FGL_J2324.6+3115_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19667393/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19667393/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19667393/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19667393/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19667393/Model_4FGL_J2324.6+3115_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8351       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13217E-06   1.0000          .0000       .10000E+07
     3 'norm      '    1.7966       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3522       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14789E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77716E-09   1.0000          .0000       .10000E+07
     7 'norm      '    .17186       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.100       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2055       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30605E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .39157E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.8158       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0806       1.0000          .0000       .10000E+07
    14 'norm      '    .83211E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.8397       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77824E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30831E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22157.14     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8824        7.7262        .42079E-06    .18688E-02
   2  Prefactor      .0000        1.3077        .14683E-07** at limit **
   3  norm          1.7965        .67780        .16304E-07    .14955E-02
   4  Prefactor     4.3597        4.3823        .48139E-07    .31501E-03
   5  Prefactor     .55511E-10    9.2587       -.38627E-06** at limit **
   6  Prefactor     .27756E-09    3.8768       -.28151E-06** at limit **
   7  norm          .17193        .50360       -.28504E-06** at limit **
   8  Prefactor     25.213        12.355        .78268E-06   -.90390E-02
   9  Prefactor     3.2294        5.0763        .17101E-06   -.21750E-02
  10  Prefactor     .27756E-09    31.024        .25073E-05** at limit **
  11  norm           .0000        2.6192        .58119E-06** at limit **
  12  norm          3.8149        3.3645       -.10691E-06    .12346E-02
  13  Prefactor     5.0639        2.3543       -.22778E-06   -.29457E-01
  14  norm           .0000        4.3853       -.21301E-07** at limit **
  15  Prefactor     8.8128        1.5726       -.10486E-06    .58765E-02
  16  Prefactor     .11102E-09    25.555        .23046E-05** at limit **
  17  Prefactor     .55511E-10    1.8812       -.15078E-06** at limit **
  18  Normalizat    1.0212        .13295       -.71271E-06   -.69691E-04
  19  Prefactor     .98629        .67582E-01   -.19382E-05   -.99595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.88242
  Prefactor  = 0
  norm       = 1.79652
  Prefactor  = 4.35966
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 0.171934
  Prefactor  = 25.2126
  Prefactor  = 3.22936
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 3.81494
  Prefactor  = 5.06388
  norm       = 0
  Prefactor  = 8.81279
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.0212
  Prefactor  = 0.986295
 **********
 **   18 **HESSE 
 **********

 FCN=   22157.14     FROM HESSE     STATUS=OK           310 CALLS     1522 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8824        7.7321        .35799E-03   -1.5652    
   2  Prefactor      .0000        1.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7965        .68152        .77979E-03   -1.5681    
   4  Prefactor     4.3597        4.3861        .48258E-03   -1.5666    
   5  Prefactor     .55511E-10    8.8790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    3.9023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17193        .50480        .12300E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.213        12.683        .19964E-03   -1.5608    
   9  Prefactor     3.2294        5.1583        .56564E-03   -1.5672    
  10  Prefactor     .27756E-09    30.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.5815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8149        3.3648        .51646E-03   -1.5669    
  13  Prefactor     5.0639        8.8291        .44584E-03   -1.5663    
  14  norm           .0000        .47452        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8128        18.257        .33688E-03   -1.5649    
  16  Prefactor     .11102E-09    25.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    1.8811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0212        .11878        .74259E-01   -.92323    
  19  Prefactor     .98629        .57893E-01    .46096E-01   -.93188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32817e-07
Minuit parameter uncertainties:
  1  7.73206
  2  1.27634e-06
  3  0.681519
  4  4.38614
  5  4.07939e-05
  6  6.54642e-05
  7  0.504799
  8  12.6829
  9  5.15832
  10  0.000181434
  11  1.08655e-05
  12  3.36478
  13  8.82916
  14  4.39247e-06
  15  18.2574
  16  9.6799e-05
  17  1.86533e-05
  18  0.118813
  19  0.0578965
utfile=/lscratch/kocevski/19667822/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
.....................!
real 16.18
user 15.05
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19667822/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19667822/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/19667822/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
.....................!
real 59.94
user 55.42
sys 3.75

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

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits scfile=/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19667822/cmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.19
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits scfile=/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19667822/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.17 yref=31.2573 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.98
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19667822/Model_4FGL_J2324.6+3115_weekly_bin780.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALDone.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.064e+00  8.829e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.863e-01  5.790e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.021e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 7.36321830715e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00585294157 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19667393/likelihoodResults_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7832049
delta logL = 0.353453703079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482979
delta logL = 0.388360704776

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22156.75     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      286 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2342        152.03        .11263E-03   -.98479E-03
   2  Index         4.0431        6.0923        .12087E-01    .23009E-04
   3  Normalizat    .99680        .12384        .33220E-03   -.15058E-04
   4  Prefactor     .99387        .63994E-01    .16856E-03    .75538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23415
  Index      = 4.0431
  Normalizat = 0.996797
  Prefactor  = 0.993872
 **********
 **   18 **HESSE 
 **********

 FCN=   22156.75     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2342        6.6633        .45050E-05   -1.5672    
   2  Index         4.0431        1.6402        .48349E-03   -.19257    
   3  Normalizat    .99680        .13740        .13288E-04   -.93138    
   4  Prefactor     .99387        .68133E-01    .67426E-05   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20804e-11
Minuit parameter uncertainties:
  1  6.66328
  2  1.67237
  3  0.137446
  4  0.0681386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482978
delta logL = 0.388360843725

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.234e+00  6.663e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  4.043e+00  1.672e+00  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.939e-01  6.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.968e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.04 +/- 1.67
Photon Flux (Free Index): 3.39e-08 +/- 3.41e-08
Energy Flux (Free Index): 5.05e-06 +/- 5.21e-06

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/19667393/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='5.05e-06', dlogl='3.88e-01', photon_flux2='3.39e-08', job_status='DONE', time_completed='2023-07-18 02:26:32.848228', photon_index_error2='1.67', photon_index2='4.04', ts='0.37', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.36e-08', energy_flux_error2='5.21e-06', EG='1.02', time_epoch_completed='1689672392.85', return_code='0', job_id='19667393', GAL2='0.99', EG2='1.00', return_code2='0', photon_flux_error2='3.41e-08', ts2='1.21', photon_index='2.88' WHERE bin_id='780' AND source_name='4FGL J2324.6+3115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:26:33 PDT 2023

_V02
Working on...
/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits.....................!
real 74.84
user 72.95
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits', '/lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits', expMap='/lscratch/kocevski/19667822/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', expCube='/lscratch/kocevski/19667822/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19667822/Model_4FGL_J2324.6+3115_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19667822/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19667822/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19667822/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19667822/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19667822/Model_4FGL_J2324.6+3115_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8351       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13217E-06   1.0000          .0000       .10000E+07
     3 'norm      '    1.7966       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3522       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14789E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77716E-09   1.0000          .0000       .10000E+07
     7 'norm      '    .17186       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.100       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2055       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30605E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .39157E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.8158       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0806       1.0000          .0000       .10000E+07
    14 'norm      '    .83211E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.8397       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77824E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30831E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22157.14     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8824        7.7262        .42079E-06    .18688E-02
   2  Prefactor      .0000        1.3077        .14683E-07** at limit **
   3  norm          1.7965        .67780        .16304E-07    .14955E-02
   4  Prefactor     4.3597        4.3823        .48139E-07    .31501E-03
   5  Prefactor     .55511E-10    9.2587       -.38627E-06** at limit **
   6  Prefactor     .27756E-09    3.8768       -.28151E-06** at limit **
   7  norm          .17193        .50360       -.28504E-06** at limit **
   8  Prefactor     25.213        12.355        .78268E-06   -.90390E-02
   9  Prefactor     3.2294        5.0763        .17101E-06   -.21750E-02
  10  Prefactor     .27756E-09    31.024        .25073E-05** at limit **
  11  norm           .0000        2.6192        .58119E-06** at limit **
  12  norm          3.8149        3.3645       -.10691E-06    .12346E-02
  13  Prefactor     5.0639        2.3543       -.22778E-06   -.29457E-01
  14  norm           .0000        4.3853       -.21301E-07** at limit **
  15  Prefactor     8.8128        1.5726       -.10486E-06    .58765E-02
  16  Prefactor     .11102E-09    25.555        .23046E-05** at limit **
  17  Prefactor     .55511E-10    1.8812       -.15078E-06** at limit **
  18  Normalizat    1.0212        .13295       -.71271E-06   -.69691E-04
  19  Prefactor     .98629        .67582E-01   -.19382E-05   -.99595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.88242
  Prefactor  = 0
  norm       = 1.79652
  Prefactor  = 4.35966
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 0.171934
  Prefactor  = 25.2126
  Prefactor  = 3.22936
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 3.81494
  Prefactor  = 5.06388
  norm       = 0
  Prefactor  = 8.81279
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.0212
  Prefactor  = 0.986295
 **********
 **   18 **HESSE 
 **********

 FCN=   22157.14     FROM HESSE     STATUS=OK           310 CALLS     1522 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8824        7.7321        .35799E-03   -1.5652    
   2  Prefactor      .0000        1.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7965        .68152        .77979E-03   -1.5681    
   4  Prefactor     4.3597        4.3861        .48258E-03   -1.5666    
   5  Prefactor     .55511E-10    8.8790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    3.9023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17193        .50480        .12300E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.213        12.683        .19964E-03   -1.5608    
   9  Prefactor     3.2294        5.1583        .56564E-03   -1.5672    
  10  Prefactor     .27756E-09    30.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.5815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8149        3.3648        .51646E-03   -1.5669    
  13  Prefactor     5.0639        8.8291        .44584E-03   -1.5663    
  14  norm           .0000        .47452        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8128        18.257        .33688E-03   -1.5649    
  16  Prefactor     .11102E-09    25.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    1.8811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0212        .11878        .74259E-01   -.92323    
  19  Prefactor     .98629        .57893E-01    .46096E-01   -.93188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32817e-07
Minuit parameter uncertainties:
  1  7.73206
  2  1.27634e-06
  3  0.681519
  4  4.38614
  5  4.07939e-05
  6  6.54642e-05
  7  0.504799
  8  12.6829
  9  5.15832
  10  0.000181434
  11  1.08655e-05
  12  3.36478
  13  8.82916
  14  4.39247e-06
  15  18.2574
  16  9.6799e-05
  17  1.86533e-05
  18  0.118813
  19  0.0578965
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.064e+00  8.829e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.863e-01  5.790e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.021e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 7.36321830715e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00585294157 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19667822/likelihoodResults_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7832049
delta logL = 0.353453703079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482979
delta logL = 0.388360704776

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22156.75     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      286 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2342        152.03        .11263E-03   -.98479E-03
   2  Index         4.0431        6.0923        .12087E-01    .23009E-04
   3  Normalizat    .99680        .12384        .33220E-03   -.15058E-04
   4  Prefactor     .99387        .63994E-01    .16856E-03    .75538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23415
  Index      = 4.0431
  Normalizat = 0.996797
  Prefactor  = 0.993872
 **********
 **   18 **HESSE 
 **********

 FCN=   22156.75     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2342        6.6633        .45050E-05   -1.5672    
   2  Index         4.0431        1.6402        .48349E-03   -.19257    
   3  Normalizat    .99680        .13740        .13288E-04   -.93138    
   4  Prefactor     .99387        .68133E-01    .67426E-05   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20804e-11
Minuit parameter uncertainties:
  1  6.66328
  2  1.67237
  3  0.137446
  4  0.0681386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482978
delta logL = 0.388360843725

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.234e+00  6.663e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  4.043e+00  1.672e+00  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.939e-01  6.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.968e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.04 +/- 1.67
Photon Flux (Free Index): 3.39e-08 +/- 3.41e-08
Energy Flux (Free Index): 5.05e-06 +/- 5.21e-06

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/19667822/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='5.05e-06', dlogl='3.88e-01', photon_flux2='3.39e-08', job_status='DONE', time_completed='2023-07-18 02:29:45.812881', photon_index_error2='1.67', photon_index2='4.04', ts='0.37', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.36e-08', energy_flux_error2='5.21e-06', EG='1.02', time_epoch_completed='1689672585.81', return_code='0', job_id='19667822', GAL2='0.99', EG2='1.00', return_code2='0', photon_flux_error2='3.41e-08', ts2='1.21', photon_index='2.88' WHERE bin_id='780' AND source_name='4FGL J2324.6+3115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:29:46 PDT 2023

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


Performing analysis on: 4FGL_J2324.6+3115_weekly_bin780
RA = 351.17, Dec = 31.2573
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19668933', job_status='RUN', time_executed='2023-07-18 02:19:44.340499', time_epoch_executed='1689671984.34' WHERE source_name='4FGL J2324.6+3115' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19668933

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19668933/ft1_4FGL_J2324.6+3115_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19668933/ft1_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19668933/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin780.fits ra=351.17 dec=31.2573 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.45
user 3.58
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/19668933/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2079

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19668933/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
.....................!
real 16.16
user 15.16
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19668933/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19668933/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/19668933/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
.....................!
real 59.89
user 55.78
sys 3.32

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

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits scfile=/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19668933/cmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.24
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits scfile=/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19668933/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.12
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19668933/Model_4FGL_J2324.6+3115_weekly_bin780.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

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


Performing analysis on: 4FGL_J2324.6+3115_weekly_bin780
RA = 351.17, Dec = 31.2573
tmin = 710726401, tmax = 711331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='19669372', job_status='RUN', time_executed='2023-07-18 02:23:08.332975', time_epoch_executed='1689672188.33' WHERE source_name='4FGL J2324.6+3115' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19669372

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19669372/ft1_4FGL_J2324.6+3115_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19669372/ft1_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19669372/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin780.fits ra=351.17 dec=31.2573 rad=12.0 tmin=710726401.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.36
user 3.51
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/19669372/ft1_filteredMKT_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2079

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" o_V02
Working on...
/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits.....................!
real 75.95
user 74.08
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits', '/lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits', expMap='/lscratch/kocevski/19668933/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', expCube='/lscratch/kocevski/19668933/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19668933/Model_4FGL_J2324.6+3115_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19668933/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19668933/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19668933/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19668933/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19668933/Model_4FGL_J2324.6+3115_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8351       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13217E-06   1.0000          .0000       .10000E+07
     3 'norm      '    1.7966       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3522       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14789E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77716E-09   1.0000          .0000       .10000E+07
     7 'norm      '    .17186       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.100       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2055       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30605E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .39157E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.8158       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0806       1.0000          .0000       .10000E+07
    14 'norm      '    .83211E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.8397       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77824E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30831E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22157.14     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8824        7.7262        .42079E-06    .18688E-02
   2  Prefactor      .0000        1.3077        .14683E-07** at limit **
   3  norm          1.7965        .67780        .16304E-07    .14955E-02
   4  Prefactor     4.3597        4.3823        .48139E-07    .31501E-03
   5  Prefactor     .55511E-10    9.2587       -.38627E-06** at limit **
   6  Prefactor     .27756E-09    3.8768       -.28151E-06** at limit **
   7  norm          .17193        .50360       -.28504E-06** at limit **
   8  Prefactor     25.213        12.355        .78268E-06   -.90390E-02
   9  Prefactor     3.2294        5.0763        .17101E-06   -.21750E-02
  10  Prefactor     .27756E-09    31.024        .25073E-05** at limit **
  11  norm           .0000        2.6192        .58119E-06** at limit **
  12  norm          3.8149        3.3645       -.10691E-06    .12346E-02
  13  Prefactor     5.0639        2.3543       -.22778E-06   -.29457E-01
  14  norm           .0000        4.3853       -.21301E-07** at limit **
  15  Prefactor     8.8128        1.5726       -.10486E-06    .58765E-02
  16  Prefactor     .11102E-09    25.555        .23046E-05** at limit **
  17  Prefactor     .55511E-10    1.8812       -.15078E-06** at limit **
  18  Normalizat    1.0212        .13295       -.71271E-06   -.69691E-04
  19  Prefactor     .98629        .67582E-01   -.19382E-05   -.99595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.88242
  Prefactor  = 0
  norm       = 1.79652
  Prefactor  = 4.35966
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 0.171934
  Prefactor  = 25.2126
  Prefactor  = 3.22936
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 3.81494
  Prefactor  = 5.06388
  norm       = 0
  Prefactor  = 8.81279
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.0212
  Prefactor  = 0.986295
 **********
 **   18 **HESSE 
 **********

 FCN=   22157.14     FROM HESSE     STATUS=OK           310 CALLS     1522 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8824        7.7321        .35799E-03   -1.5652    
   2  Prefactor      .0000        1.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7965        .68152        .77979E-03   -1.5681    
   4  Prefactor     4.3597        4.3861        .48258E-03   -1.5666    
   5  Prefactor     .55511E-10    8.8790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    3.9023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17193        .50480        .12300E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.213        12.683        .19964E-03   -1.5608    
   9  Prefactor     3.2294        5.1583        .56564E-03   -1.5672    
  10  Prefactor     .27756E-09    30.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.5815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8149        3.3648        .51646E-03   -1.5669    
  13  Prefactor     5.0639        8.8291        .44584E-03   -1.5663    
  14  norm           .0000        .47452        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8128        18.257        .33688E-03   -1.5649    
  16  Prefactor     .11102E-09    25.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    1.8811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0212        .11878        .74259E-01   -.92323    
  19  Prefactor     .98629        .57893E-01    .46096E-01   -.93188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32817e-07
Minuit parameter uncertainties:
  1  7.73206
  2  1.27634e-06
  3  0.681519
  4  4.38614
  5  4.07939e-05
  6  6.54642e-05
  7  0.504799
  8  12.6829
  9  5.15832
  10  0.000181434
  11  1.08655e-05
  12  3.36478
  13  8.82916
  14  4.39247e-06
  15  18.2574
  16  9.6799e-05
  17  1.86533e-05
  18  0.118813
  19  0.0578965
utfile=/lscratch/kocevski/19669372/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
.....................!
real 15.86
user 14.97
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19669372/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19669372/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/19669372/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
.....................!
real 59.99
user 55.59
sys 3.55

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

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits scfile=/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19669372/cmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.04
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits scfile=/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits outfile=/lscratch/kocevski/19669372/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.18
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19669372/Model_4FGL_J2324.6+3115_weekly_bin780.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GALDone.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.064e+00  8.829e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.863e-01  5.790e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.021e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 7.36321830715e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00585294157 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19668933/likelihoodResults_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7832049
delta logL = 0.353453703079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482979
delta logL = 0.388360704776

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22156.75     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      286 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2342        152.03        .11263E-03   -.98479E-03
   2  Index         4.0431        6.0923        .12087E-01    .23009E-04
   3  Normalizat    .99680        .12384        .33220E-03   -.15058E-04
   4  Prefactor     .99387        .63994E-01    .16856E-03    .75538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23415
  Index      = 4.0431
  Normalizat = 0.996797
  Prefactor  = 0.993872
 **********
 **   18 **HESSE 
 **********

 FCN=   22156.75     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2342        6.6633        .45050E-05   -1.5672    
   2  Index         4.0431        1.6402        .48349E-03   -.19257    
   3  Normalizat    .99680        .13740        .13288E-04   -.93138    
   4  Prefactor     .99387        .68133E-01    .67426E-05   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20804e-11
Minuit parameter uncertainties:
  1  6.66328
  2  1.67237
  3  0.137446
  4  0.0681386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482978
delta logL = 0.388360843725

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.234e+00  6.663e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  4.043e+00  1.672e+00  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.939e-01  6.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.968e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.04 +/- 1.67
Photon Flux (Free Index): 3.39e-08 +/- 3.41e-08
Energy Flux (Free Index): 5.05e-06 +/- 5.21e-06

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/19668933/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='5.05e-06', dlogl='3.88e-01', photon_flux2='3.39e-08', job_status='DONE', time_completed='2023-07-18 02:39:13.560611', photon_index_error2='1.67', photon_index2='4.04', ts='0.37', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.36e-08', energy_flux_error2='5.21e-06', EG='1.02', time_epoch_completed='1689673153.56', return_code='0', job_id='19668933', GAL2='0.99', EG2='1.00', return_code2='0', photon_flux_error2='3.41e-08', ts2='1.21', photon_index='2.88' WHERE bin_id='780' AND source_name='4FGL J2324.6+3115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:39:14 PDT 2023

_V02
Working on...
/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits.....................!
real 74.51
user 72.28
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits', '/lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits', expMap='/lscratch/kocevski/19669372/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', expCube='/lscratch/kocevski/19669372/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19669372/Model_4FGL_J2324.6+3115_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19669372/ft1_filtered_4FGL_J2324.6+3115_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19669372/ft2_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19669372/expmap_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19669372/ltcube_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19669372/Model_4FGL_J2324.6+3115_weekly_bin780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8351       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13217E-06   1.0000          .0000       .10000E+07
     3 'norm      '    1.7966       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.3522       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14789E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77716E-09   1.0000          .0000       .10000E+07
     7 'norm      '    .17186       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.100       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2055       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30605E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .39157E-04   1.0000          .0000       .10000E+07
    12 'norm      '    3.8158       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0806       1.0000          .0000       .10000E+07
    14 'norm      '    .83211E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.8397       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77824E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30831E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22157.14     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1212 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8824        7.7262        .42079E-06    .18688E-02
   2  Prefactor      .0000        1.3077        .14683E-07** at limit **
   3  norm          1.7965        .67780        .16304E-07    .14955E-02
   4  Prefactor     4.3597        4.3823        .48139E-07    .31501E-03
   5  Prefactor     .55511E-10    9.2587       -.38627E-06** at limit **
   6  Prefactor     .27756E-09    3.8768       -.28151E-06** at limit **
   7  norm          .17193        .50360       -.28504E-06** at limit **
   8  Prefactor     25.213        12.355        .78268E-06   -.90390E-02
   9  Prefactor     3.2294        5.0763        .17101E-06   -.21750E-02
  10  Prefactor     .27756E-09    31.024        .25073E-05** at limit **
  11  norm           .0000        2.6192        .58119E-06** at limit **
  12  norm          3.8149        3.3645       -.10691E-06    .12346E-02
  13  Prefactor     5.0639        2.3543       -.22778E-06   -.29457E-01
  14  norm           .0000        4.3853       -.21301E-07** at limit **
  15  Prefactor     8.8128        1.5726       -.10486E-06    .58765E-02
  16  Prefactor     .11102E-09    25.555        .23046E-05** at limit **
  17  Prefactor     .55511E-10    1.8812       -.15078E-06** at limit **
  18  Normalizat    1.0212        .13295       -.71271E-06   -.69691E-04
  19  Prefactor     .98629        .67582E-01   -.19382E-05   -.99595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.88242
  Prefactor  = 0
  norm       = 1.79652
  Prefactor  = 4.35966
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 0.171934
  Prefactor  = 25.2126
  Prefactor  = 3.22936
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 3.81494
  Prefactor  = 5.06388
  norm       = 0
  Prefactor  = 8.81279
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Normalizat = 1.0212
  Prefactor  = 0.986295
 **********
 **   18 **HESSE 
 **********

 FCN=   22157.14     FROM HESSE     STATUS=OK           310 CALLS     1522 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8824        7.7321        .35799E-03   -1.5652    
   2  Prefactor      .0000        1.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7965        .68152        .77979E-03   -1.5681    
   4  Prefactor     4.3597        4.3861        .48258E-03   -1.5666    
   5  Prefactor     .55511E-10    8.8790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    3.9023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17193        .50480        .12300E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.213        12.683        .19964E-03   -1.5608    
   9  Prefactor     3.2294        5.1583        .56564E-03   -1.5672    
  10  Prefactor     .27756E-09    30.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.5815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8149        3.3648        .51646E-03   -1.5669    
  13  Prefactor     5.0639        8.8291        .44584E-03   -1.5663    
  14  norm           .0000        .47452        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8128        18.257        .33688E-03   -1.5649    
  16  Prefactor     .11102E-09    25.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    1.8811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0212        .11878        .74259E-01   -.92323    
  19  Prefactor     .98629        .57893E-01    .46096E-01   -.93188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32817e-07
Minuit parameter uncertainties:
  1  7.73206
  2  1.27634e-06
  3  0.681519
  4  4.38614
  5  4.07939e-05
  6  6.54642e-05
  7  0.504799
  8  12.6829
  9  5.15832
  10  0.000181434
  11  1.08655e-05
  12  3.36478
  13  8.82916
  14  4.39247e-06
  15  18.2574
  16  9.6799e-05
  17  1.86533e-05
  18  0.118813
  19  0.0578965
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  5.064e+00  8.829e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.863e-01  5.790e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.021e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 7.36321830715e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00585294157 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19669372/likelihoodResults_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7832049
delta logL = 0.353453703079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482979
delta logL = 0.388360704776

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22156.75     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      286 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2342        152.03        .11263E-03   -.98479E-03
   2  Index         4.0431        6.0923        .12087E-01    .23009E-04
   3  Normalizat    .99680        .12384        .33220E-03   -.15058E-04
   4  Prefactor     .99387        .63994E-01    .16856E-03    .75538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23415
  Index      = 4.0431
  Normalizat = 0.996797
  Prefactor  = 0.993872
 **********
 **   18 **HESSE 
 **********

 FCN=   22156.75     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2342        6.6633        .45050E-05   -1.5672    
   2  Index         4.0431        1.6402        .48349E-03   -.19257    
   3  Normalizat    .99680        .13740        .13288E-04   -.93138    
   4  Prefactor     .99387        .68133E-01    .67426E-05   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20804e-11
Minuit parameter uncertainties:
  1  6.66328
  2  1.67237
  3  0.137446
  4  0.0681386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22156.7482978
delta logL = 0.388360843725

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.234e+00  6.663e+00  0.000e+00  1.000e+06 ( 1.000e-12)
451        Index:  4.043e+00  1.672e+00  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.939e-01  6.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.968e-01  1.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.04 +/- 1.67
Photon Flux (Free Index): 3.39e-08 +/- 3.41e-08
Energy Flux (Free Index): 5.05e-06 +/- 5.21e-06

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/19669372/cmap_HighResolution_710726401_711331201_4FGL_J2324.6+3115_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='5.05e-06', dlogl='3.88e-01', photon_flux2='3.39e-08', job_status='DONE', time_completed='2023-07-18 02:42:07.525813', photon_index_error2='1.67', photon_index2='4.04', ts='0.37', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.36e-08', energy_flux_error2='5.21e-06', EG='1.02', time_epoch_completed='1689673327.53', return_code='0', job_id='19669372', GAL2='0.99', EG2='1.00', return_code2='0', photon_flux_error2='3.41e-08', ts2='1.21', photon_index='2.88' WHERE bin_id='780' AND source_name='4FGL J2324.6+3115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:42:08 PDT 2023

