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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin564
RA = 351.359, Dec = -35.9878
tmin = 385516801, tmax = 385776001
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='865322', job_status='RUN', time_executed='2021-09-29 17:33:02.908180', time_epoch_executed='1632961982.91' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865322

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865322/ft1_4FGL_J2325.4-3559_daily_bin564.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865322/ft1_4FGL_J2325.4-3559_daily_bin564.fits outfile=/scratch/kocevski/865322/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin564.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=385516801.0 tmax=385776001.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.59
user 4.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.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/865322/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin564.fits evtable="EVENTS" outfile="/scratch/kocevski/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.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.55
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits" evtable="EVENTS" scfile=/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits sctable="SC_DATA" outfile=/scratch/kocevski/865322/ltcube_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.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/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits
.....................!
real 11.97
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits sctable="SC_DATA" expcube=/scratch/kocevski/865322/ltcube_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.fits outfile=/scratch/kocevski/865322/expmap_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.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/865322/ltcube_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.fits
.....................!
real 189.93
user 184.75
sys 4.80

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/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits scfile=/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits outfile=/scratch/kocevski/865322/cmap_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits scfile=/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits outfile=/scratch/kocevski/865322/cmap_HighResolution_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865322/Model_4FGL_J2325.4-3559_daily_bin564.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/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits......................!
real 37.15
user 35.87
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits', '/scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits', expMap='/scratch/kocevski/865322/expmap_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.fits', expCube='/scratch/kocevski/865322/ltcube_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865322/Model_4FGL_J2325.4-3559_daily_bin564.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/865322/ft1_filtered_4FGL_J2325.4-3559_daily_bin564.fits
Spacecraft file(s): /scratch/kocevski/865322/ft2_4FGL_J2325.4-3559_daily_bin564.fits
Exposure map: /scratch/kocevski/865322/expmap_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.fits
Exposure cube: /scratch/kocevski/865322/ltcube_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865322/Model_4FGL_J2325.4-3559_daily_bin564.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) = 4278.21334798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.483       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.474       1.0000         .10000E-03   10000.    
     9 'norm      '    11.489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8912       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5364       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    81.082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.49       1.0000         .10000E-03   10000.    
    20 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2767       1.0000         .10000E-03   10000.    
    23 'Prefactor '    67.003       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .63345       1.0000         .10000E-03   10000.    
    27 'Prefactor '    55.609       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94952       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=   4278.105     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3771 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.014        .19970E-04** at limit **
   2  Prefactor     .10000E-03    7.0298       -.16473E-05** at limit **
   3  Prefactor     .10000E-03    12.394       -.36989E-05** at limit **
   4  Prefactor     .10000E-03    24.167       -.28366E-04** at limit **
   5  Prefactor     8.4093        21.790        .72719E-06    .21394E-04
   6  Prefactor     .10000E-03    98.308       -.17891E-04** at limit **
   7  Prefactor     21.481        17.125        .85269E-06    .34461E-04
   8  Prefactor     18.473        9.8259        .34415E-06    .11570E-03
   9  norm          11.489        6.9685       -.45129E-06   -.97829E-03
  10  Prefactor     18.065        20.049        .32897E-06    .58711E-04
  11  Prefactor     .10000E-03    6.2301       -.19353E-05** at limit **
  12  norm          1.8913        .97584        .63333E-07    .27463E-03
  13  Prefactor     63.242        86.616       -.18692E-04    .16490E-04
  14  Prefactor     1.5363        15.708       -.25826E-05   -.34830E-03
  15  norm          .10000E-03    4.1571       -.47268E-07** at limit **
  16  norm          .10000E-03    2.5563        .13713E-06** at limit **
  17  norm          .10000E-03    5.3497       -.34843E-06** at limit **
  18  Prefactor     81.069        52.827       -.90813E-05   -.47355E-05
  19  Prefactor     104.48        79.758       -.83920E-05    .89848E-06
  20  norm          .10000E-03    4.2302        .64924E-06** at limit **
  21  Prefactor     .10000E-03    6.0584        .27733E-05** at limit **
  22  norm          2.2768        2.8551        .31389E-06    .93221E-04
  23  Prefactor     67.074        129.87        .81078E-04   -.29664E-05
  24  Prefactor     .10000E-03    20.370        .22335E-04** at limit **
  25  Prefactor     .10000E-03    8.3624        .31145E-05** at limit **
  26  Prefactor     .61935        4.8655       -.57184E-06    .20036E-04
  27  Prefactor     55.597        64.802       -.13125E-04   -.66973E-05
  28  Normalizat    1.0513        .24454        .31997E-05   -.24714E-04
  29  Prefactor     .94906        .24253       -.17804E-05    .16854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.40926
  Prefactor  = 0.000100001
  Prefactor  = 21.4805
  Prefactor  = 18.4729
  norm       = 11.4891
  Prefactor  = 18.0645
  Prefactor  = 0.0001
  norm       = 1.89134
  Prefactor  = 63.2421
  Prefactor  = 1.53628
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 81.0688
  Prefactor  = 104.477
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.27679
  Prefactor  = 67.0743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.619352
  Prefactor  = 55.5969
  Normalizat = 1.05126
  Prefactor  = 0.949058
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.105     FROM HESSE     STATUS=OK           547 CALLS     4318 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2555        .33770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4093        21.785        .13825E-03   -1.5128    
   6  Prefactor     .10000E-03    99.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.481        17.166        .86416E-04   -1.4781    
   8  Prefactor     18.473        9.8362        .93184E-04   -1.4848    
   9  norm          11.489        6.9784        .59095E-03   -1.5030    
  10  Prefactor     18.065        20.098        .94238E-04   -1.4858    
  11  Prefactor     .10000E-03    6.2430        .15919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8913        .97661        .40406E-04   -1.5433    
  13  Prefactor     63.242        86.862        .50453E-04   -1.4116    
  14  Prefactor     1.5363        15.476        .34412E-03   -1.5460    
  15  norm          .10000E-03    4.1575        .13025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5574        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3634        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     81.069        53.157        .44604E-04   -1.3905    
  19  Prefactor     104.48        80.385        .39338E-04   -1.3660    
  20  norm          .10000E-03    4.2546        .13103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0671        .15724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2768        2.8469        .11997E-03   -1.5406    
  23  Prefactor     67.074        129.90        .24516E-03   -1.4068    
  24  Prefactor     .10000E-03    20.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .61935        21.155        .27441E-02   -1.5551    
  27  Prefactor     55.597        65.096        .53792E-04   -1.4215    
  28  Normalizat    1.0513        .30039        .25759E-03   -.91332    
  29  Prefactor     .94906        .29231        .28551E-03   -.94447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99541e-09
Minuit parameter uncertainties:
  1  1.79767e-06
  2  0.000123432
  3  3.236e-05
  4  8.40005e-06
  5  21.8056
  6  0.000540216
  7  17.1698
  8  9.83711
  9  6.97891
  10  20.1056
  11  7.50997e-06
  12  0.976622
  13  87.0372
  14  9.75492
  15  1.72991e-06
  16  1.95262e-05
  17  2.70109e-05
  18  53.1878
  19  80.4685
  20  0.00010984
  21  2.4286e-06
  22  2.84706
  23  130.459
  24  1.80065e-05
  25  8.32806e-05
  26  7.24163
  27  65.1798
  28  0.30088
  29  0.292796
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.000e-04  2.701e-05  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:  9.491e-01  2.928e-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.051e+00  3.009e-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: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865322/likelihoodResults_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.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) = 4278.10542166
delta logL = -0.000885899037712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4278.10453577
delta logL = -9.46874934016e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1345       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94902       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=   4277.496     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      294 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81805        1.1356        .11719E-01    .82306E-03
   2  alpha         5.0000        3.2198        .16689    ** at limit **
   3  Normalizat    .92206        .30159        .25759E-02   -.13461E-04
   4  Prefactor     1.0379        .30075        .28551E-02   -.33528E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.818051
  alpha      = 5
  Normalizat = 0.922064
  Prefactor  = 1.03793
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.496     FROM HESSE     STATUS=OK            31 CALLS      325 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81805        .80954        .52762E-04   -1.5527    
   2  alpha         5.0000        .85604        .53150E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92206        .29266        .10303E-03   -.95689    
   4  Prefactor     1.0379        .29941        .11420E-03   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34087e-12
Minuit parameter uncertainties:
  1  0.809554
  2  1.22776e-06
  3  0.293171
  4  0.299892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865322': 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) = 4277.49582195
delta logL = 0.608713812498

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  8.181e-01  8.096e-01  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  5.000e+00  1.228e-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:  1.038e+00  2.999e-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:  9.221e-01  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.06e-07 +/- 1.04e-07
Energy Flux (Free Index): 1.46e-05 +/- 1.45e-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/865322/cmap_HighResolution_385516801_385776001_4FGL_J2325.4-3559_daily_bin564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='6.09e-01', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 17:44:09.214705', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.23e-08', energy_flux_error2='1.45e-05', EG='1.05', time_epoch_completed='1632962649.21', return_code='0', job_id='865322', GAL2='1.04', EG2='0.92', return_code2='0', photon_flux_error2='1.04e-07', ts2='1.38', photon_index='2.13' WHERE bin_id='564' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:44:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 865322: <4FGL_J2325.4-3559_daily_bin564> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin564> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 17:30:36 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:30:37 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:30:37 2021
Terminated at Wed Sep 29 17:44:09 2021
Results reported at Wed Sep 29 17:44:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin564 351.359 -35.9878 385516801 385776001 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 :                                   666.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

