/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 2 seconds before starting...
Proceeding.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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).

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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin1750
RA = 351.575, Dec = 1.2216
tmin = 692928001, tmax = 693187201
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='29686', job_status='RUN', time_executed='2022-12-20 02:00:31.071688', time_epoch_executed='1671530431.07' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29686

Creating custom pfile directory:
/scratch/kocevski/29686/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=692928001.0 && nMetStart<693187201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=692928001.0 && nMetStart<693187201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29686/ft1_4FGL_J2326.2+0113_daily_bin1750.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=692928001.0 && nMetStart<693187201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29686/ft1_4FGL_J2326.2+0113_daily_bin1750.fits outfile=/scratch/kocevski/29686/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin1750.fits ra=351.575 dec=1.2216 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.54
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/29686/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 538

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/29686/ltcube_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.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 /scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits
.....................!
real 11.87
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/29686/ltcube_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.fits outfile=/scratch/kocevski/29686/expmap_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.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 /scratch/kocevski/29686/ltcube_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.fits
.....................!
real 193.39
user 186.89
sys 4.90

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

Setting source of interest to:
4FGL J2326.2+0113 @ 351.575 1.2216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits scfile=/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits outfile=/scratch/kocevski/29686/cmap_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.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.575 yref=1.2216 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits scfile=/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits outfile=/scratch/kocevski/29686/cmap_HighResolution_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.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.575 yref=1.2216 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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29686/Model_4FGL_J2326.2+0113_daily_bin1750.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...
/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits.....................!
real 63.93
user 62.27
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits', '/scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits', expMap='/scratch/kocevski/29686/expmap_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.fits', expCube='/scratch/kocevski/29686/ltcube_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/29686/Model_4FGL_J2326.2+0113_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.2+0113'

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.628e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/29686/ft1_filtered_4FGL_J2326.2+0113_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/29686/ft2_4FGL_J2326.2+0113_daily_bin1750.fits
Exposure map: /scratch/kocevski/29686/expmap_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.fits
Exposure cube: /scratch/kocevski/29686/ltcube_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/29686/Model_4FGL_J2326.2+0113_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6079.69447094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54068E-03   1.0000          .0000       .10000E+07
     2 'norm      '    10.317       1.0000          .0000       .10000E+07
     3 'Prefactor '    56.113       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5238       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20953E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .48772E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .43904E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .13553E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20434E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    110.91       1.0000          .0000       .10000E+07
    11 'norm      '    21.503       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.1609       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.3671       1.0000          .0000       .10000E+07
    14 'norm      '    151.36       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29037E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    88.037       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.295       1.0000          .0000       .10000E+07
    18 'Normalizat'    .73759       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6075.479     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      955 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-09    10.774       -.91237E-07** at limit **
   2  norm          9.8448        14.471        .12359E-09   -.41570E-02
   3  Prefactor     56.808        8.5206        .29105E-07    .52573E-03
   4  Prefactor     .11007E-04    515.37       -.11112E-05** at limit **
   5  Prefactor      .0000        19.945        .10620E-06** at limit **
   6  Prefactor     .16653E-09    6.8269       -.34376E-07** at limit **
   7  norm           .0000        .37208        .27321E-07** at limit **
   8  norm          .20206E-07    12.329       -.23860E-06** at limit **
   9  Prefactor     .49960E-09    7.5995       -.49697E-07** at limit **
  10  Prefactor     112.47        61.499        .13682E-06    .11796    
  11  norm          21.698        13.669        .86783E-07    .27834E-02
  12  Prefactor     1.1887        16.411       -.10836E-06   -.47228E-03
  13  Prefactor     .25429E-02    592.60       -.93052E-06** at limit **
  14  norm          147.63        36.511        .21125E-08   -.10712    
  15  Prefactor     .55511E-10    4.8831        .11749E-07** at limit **
  16  Prefactor     87.123        11.910       -.35335E-08   -.15679E-01
  17  Prefactor     13.789        23.399       -.53324E-07   -.38195E-02
  18  Normalizat    .74402        .23843        .19854E-06    .37128E-04
  19  Prefactor     1.0057        .15972        .12953E-06    .54571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66134e-10
  norm       = 9.84482
  Prefactor  = 56.8077
  Prefactor  = 1.10067e-05
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 2.02061e-08
  Prefactor  = 4.996e-10
  Prefactor  = 112.469
  norm       = 21.6975
  Prefactor  = 1.18866
  Prefactor  = 0.00254289
  norm       = 147.627
  Prefactor  = 5.55112e-11
  Prefactor  = 87.1234
  Prefactor  = 13.7886
  Normalizat = 0.744016
  Prefactor  = 1.00574
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.479     FROM HESSE     STATUS=OK           316 CALLS     1271 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66613E-09    10.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.8448        14.516        .31170E-03   -1.5645    
   3  Prefactor     56.808        49.380        .13350E-03   -1.5557    
   4  Prefactor     .11007E-04    23.434        .10758E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        19.824        .16975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    6.8182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .37017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20206E-07    12.149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .49960E-09    7.6293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     112.47        74.685        .94961E-04   -1.5496    
  11  norm          21.698        15.717        .21571E-03   -1.5615    
  12  Prefactor     1.1887        19.690        .10689E-02   -1.5686    
  13  Prefactor     .25429E-02    53.013        .94635E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          147.63        39.774        .81290E-04   -1.5465    
  15  Prefactor     .55511E-10    4.8688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.123        54.653        .10658E-03   -1.5521    
  17  Prefactor     13.789        23.775        .26465E-03   -1.5634    
  18  Normalizat    .74402        .21384        .75597E-01   -1.0218    
  19  Prefactor     1.0057        .13878        .44175E-01   -.92538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88816e-06
Minuit parameter uncertainties:
  1  0.000167449
  2  14.5156
  3  49.3801
  4  0.0321203
  5  4.22214e-05
  6  6.93461e-05
  7  1.56243e-06
  8  0.000990738
  9  0.00012103
  10  74.6852
  11  15.7171
  12  9.67581
  13  0.734324
  14  39.7739
  15  3.76236e-05
  16  54.6538
  17  23.7747
  18  0.214079
  19  0.138825
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.125e+02  7.469e+01  0.000e+00  1.000e+06 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.006e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.440e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 351.575 1.222
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.84e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 2.39e-05

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) = 6073.21608528
delta logL = 2.26258527345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6073.18866167
delta logL = 2.29000888539

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6073.189     FROM MIGRAD    STATUS=FAILED        99 CALLS      313 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.214        70.319        .43386E-04   -.73161E-03
   2  Index         3.2305        1.3597        .25121E-02    .83657E-03
   3  Normalizat    .61329        .25538        .36435E-03   -.22279E-04
   4  Prefactor     1.0572        .16948        .19510E-03   -.32841E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6073.189     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      392 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.214        70.319        .27007E-04   -1.5616    
   2  Index         3.2305        1.3597        .55484E-03   -.36174    
   3  Normalizat    .61329        .25538        .40021E-03   -1.0742    
   4  Prefactor     1.0572        .16948        .19202E-03   -.90847    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6073.189     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      430 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.214        30.991        .17354E-05   -.52155E-03
   2  Index         3.2305        .60569        .50241E-03   -.21338E-04
   3  Normalizat    .61329        .24214        .14574E-04   -.13573E-04
   4  Prefactor     1.0572        .16253        .39021E-04   -.20045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2142
  Index      = 3.23048
  Normalizat = 0.613295
  Prefactor  = 1.05718
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.189     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.214        28.897        .37231E-06   -1.5616    
   2  Index         3.2305        .56480        .20097E-04   -.36174    
   3  Normalizat    .61329        .24185        .29148E-05   -1.0742    
   4  Prefactor     1.0572        .16238        .78042E-05   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3123e-12
Minuit parameter uncertainties:
  1  28.8971
  2  0.566177
  3  0.242267
  4  0.162451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29686': No such file or directory
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) = 6073.18865814
delta logL = 2.29001241449

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  2.121e+01  2.890e+01  0.000e+00  1.000e+06 ( 1.000e-14)
407        Index:  3.230e+00  5.662e-01  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.057e+00  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.133e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.06
Ra Dec: 351.575 1.222
Photon Index (Free Index): 3.23 +/- 0.57
Photon Flux (Free Index): 1.98e-07 +/- 9.38e-08
Energy Flux (Free Index): 3.58e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/29686/cmap_HighResolution_692928001_693187201_4FGL_J2326.2+0113_daily_bin1750.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/29686

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.84e-08', energy_flux2='3.58e-05', photon_flux_error='4.54e-08', dlogl='2.29e+00', energy_flux='3.60e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2022-12-20 02:08:25.255979', photon_index_error2='0.57', photon_index2='3.23', ts='4.06', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.74', time_epoch_completed='1671530905.26', return_code='0', job_id='29686', GAL2='1.06', EG2='0.61', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='9.38e-08', ts2='9.06', photon_index='2.12' WHERE bin_id='1750' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 02:08:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 29686: <4FGL_J2326.2+0113_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin1750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 20 02:00:19 2022
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 02:00:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 02:00:20 2022
Terminated at Tue Dec 20 02:08:26 2022
Results reported at Tue Dec 20 02:08:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin1750 351.575 1.2216 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.2+0113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   474.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   485 sec.
    Turnaround time :                            487 sec.

The output (if any) is above this job summary.

