/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 221 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7423
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2325.4-3559_daily_bin669
RA = 351.359, Dec = -35.9878
tmin = 412732801, tmax = 412992001
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='866596', job_status='RUN', time_executed='2021-09-29 17:39:10.577679', time_epoch_executed='1632962350.58' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866596/ft1_4FGL_J2325.4-3559_daily_bin669.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866596/ft1_4FGL_J2325.4-3559_daily_bin669.fits outfile=/scratch/kocevski/866596/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin669.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=412732801.0 tmax=412992001.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.46
user 3.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.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/866596/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin669.fits evtable="EVENTS" outfile="/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits" evtable="EVENTS" scfile=/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits sctable="SC_DATA" outfile=/scratch/kocevski/866596/ltcube_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.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/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits
.....................!
real 11.64
user 11.32
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits sctable="SC_DATA" expcube=/scratch/kocevski/866596/ltcube_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.fits outfile=/scratch/kocevski/866596/expmap_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.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/866596/ltcube_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.fits
.....................!
real 190.28
user 185.68
sys 4.30

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

Setting source of interest to:
4FGL J2325.4-3559 @ 351.359 -35.9878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits scfile=/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits outfile=/scratch/kocevski/866596/cmap_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.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.359 yref=-35.9878 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits scfile=/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits outfile=/scratch/kocevski/866596/cmap_HighResolution_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.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.359 yref=-35.9878 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866596/Model_4FGL_J2325.4-3559_daily_bin669.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/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits.......................!
real 25.86
user 24.70
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits', '/scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits', expMap='/scratch/kocevski/866596/expmap_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.fits', expCube='/scratch/kocevski/866596/ltcube_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866596/Model_4FGL_J2325.4-3559_daily_bin669.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-3559'

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  7.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.129e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/866596/ft1_filtered_4FGL_J2325.4-3559_daily_bin669.fits
Spacecraft file(s): /scratch/kocevski/866596/ft2_4FGL_J2325.4-3559_daily_bin669.fits
Exposure map: /scratch/kocevski/866596/expmap_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.fits
Exposure cube: /scratch/kocevski/866596/ltcube_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866596/Model_4FGL_J2325.4-3559_daily_bin669.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) = 2116.62580184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34496E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7450       1.0000         .10000E-03   10000.    
    12 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    119.38       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.877       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.7495       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2116.568     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3667 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    281.04        .12787E-05** at limit **
   2  Prefactor     9.6412        7.7966       -.15285E-07   -.26445E-04
   3  Prefactor     .10000E-03    26.439        .76513E-07** at limit **
   4  Prefactor     3.6255        6361.0        .13704E-04    .10190E-05
   5  Prefactor     34.135        52.093        .88886E-07   -.11971E-04
   6  Prefactor     .10000E-03    98.726       -.26071E-05** at limit **
   7  Prefactor     .10000E-03    18.445        .37350E-08** at limit **
   8  Prefactor     .10000E-03    11.548       -.11200E-06** at limit **
   9  norm          .10000E-03    3.2277       -.13137E-06** at limit **
  10  Prefactor     .10000E-03    74.410       -.86243E-05** at limit **
  11  Prefactor     8.7588        14.373       -.13740E-05    .73538E-04
  12  norm          .10000E-03    .54705       -.21197E-06** at limit **
  13  Prefactor     53.965        103.61        .48398E-07   -.16939E-04
  14  Prefactor     .10000E-03    12.212       -.74024E-08** at limit **
  15  norm          .10000E-03    30.978        .15134E-06** at limit **
  16  norm          .10000E-03    10.133        .88921E-06** at limit **
  17  norm          .10000E-03    16.354        .48402E-06** at limit **
  18  Prefactor     119.25        148.08       -.12913E-05   -.61396E-04
  19  Prefactor     .10000E-03    103.90        .25695E-06** at limit **
  20  norm          .10000E-03    14.682        .30682E-05** at limit **
  21  Prefactor     .10000E-03    253.41        .10516E-05** at limit **
  22  norm          .10000E-03    15.181        .25019E-05** at limit **
  23  Prefactor     .10000E-03    108.42       -.22397E-06** at limit **
  24  Prefactor     41.044        85.503        .10363E-06   -.33426E-04
  25  Prefactor     .10000E-03    4.7965       -.49512E-07** at limit **
  26  Prefactor     .10000E-03    25.390        .39225E-06** at limit **
  27  Prefactor     .10000E-03    32.679       -.45071E-06** at limit **
  28  Normalizat    1.7501        .39981        .20616E-06    .54761E-05
  29  Prefactor     .62970        .38273       -.11377E-05   -.51902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.64124
  Prefactor  = 0.0001
  Prefactor  = 3.62552
  Prefactor  = 34.1352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.75877
  norm       = 0.0001
  Prefactor  = 53.9646
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 119.255
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.75013
  Prefactor  = 0.629701
 **********
 **   18 **HESSE 
 **********

 FCN=   2116.568     FROM HESSE     STATUS=OK           543 CALLS     4210 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    281.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6412        7.8200        .11052E-03   -1.5087    
   3  Prefactor     .10000E-03    26.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6255        6338.2        .21463E-03   -1.5327    
   5  Prefactor     34.135        52.071        .68640E-04   -1.4539    
   6  Prefactor     .10000E-03    98.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.551        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2525        .80457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    76.138        .38550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7588        14.550        .13555E-03   -1.5116    
  12  norm          .10000E-03    .66375        .63241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.965        103.52        .27323E-03   -1.4237    
  14  Prefactor     .10000E-03    12.281        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    30.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.151        .14307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     119.25        149.44        .18415E-03   -1.3520    
  19  Prefactor     .10000E-03    104.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    14.818        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    253.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.295        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    108.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     41.044        85.265        .31348E-03   -1.4426    
  25  Prefactor     .10000E-03    4.8061        .98397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    32.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.7501        .47531        .23515E-03   -.70973    
  29  Prefactor     .62970        .45097        .36185E-03   -1.0635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78015e-10
Minuit parameter uncertainties:
  1  0.000214107
  2  7.82085
  3  6.98178e-06
  4  214.427
  5  52.14
  6  0.000162805
  7  2.44469e-05
  8  2.63568e-06
  9  2.98408e-06
  10  0.000282132
  11  14.5556
  12  9.06283e-06
  13  103.863
  14  1.88293e-05
  15  1.24127e-05
  16  9.58017e-06
  17  5.1801e-06
  18  149.918
  19  7.78045e-05
  20  5.37358e-05
  21  0.000194276
  22  3.98474e-05
  23  7.03919e-05
  24  85.5196
  25  2.89094e-06
  26  2.34077e-05
  27  1.18198e-07
  28  0.47657
  29  0.4536
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.000e-04  5.180e-06  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  2.129e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.297e-01  4.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.750e+00  4.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.359 -35.988
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866596/likelihoodResults_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2116.56877715
delta logL = -0.00028898672781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2116.5684886
delta logL = -4.43128556071e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9715       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2116.422     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      342 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59185        111.01        .15569E-01    .41276E-03
   2  alpha         5.0000        4.4960        .50000    ** at limit **
   3  Normalizat    1.6751        .25838        .23514E-03    .20224E-04
   4  Prefactor     .67980        .17147        .36187E-02    .18259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.591848
  alpha      = 5
  Normalizat = 1.67512
  Prefactor  = 0.679797
 **********
 **   18 **HESSE 
 **********

 FCN=   2116.422     FROM HESSE     STATUS=OK            31 CALLS      373 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59185        1.2526        .72746E-03   -1.5554    
   2  alpha         5.0000        4.3587        .79899E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6751        .47240        .47029E-04   -.72969    
   4  Prefactor     .67980        .45365        .14475E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55651e-10
Minuit parameter uncertainties:
  1  1.25261
  2  2.78843e-06
  3  0.473681
  4  0.456138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866596': 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) = 2116.42165226
delta logL = 0.146835899523

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  5.918e-01  1.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  5.000e+00  2.788e-06  0.000e+00  5.000e+00 ( 1.000e+00)
427         beta:  1.815e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
428           Eb:  6.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.798e-01  4.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.675e+00  4.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.359 -35.988

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/866596/cmap_HighResolution_412732801_412992001_4FGL_J2325.4-3559_daily_bin669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-05', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-29 17:47:08.477678', job_id='866596', GAL2='0.68', fit_tolerance='1e-08', EG2='1.68', EG='1.75', time_epoch_completed='1632962828.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.47e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='669' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 866596: <4FGL_J2325.4-3559_daily_bin669> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin669> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:35:19 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:35:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 17:35:21 2021
Terminated at Wed Sep 29 17:47:09 2021
Results reported at Wed Sep 29 17:47:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin669 351.359 -35.9878 412732801 412992001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.4-3559 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   477.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            710 sec.

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

