/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 140 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.4-3559_daily_bin144
RA = 351.359, Dec = -35.9878
tmin = 276652801, tmax = 276912001
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='864161', job_status='RUN', time_executed='2021-09-29 17:27:55.645818', time_epoch_executed='1632961675.65' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864161/ft1_4FGL_J2325.4-3559_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864161/ft1_4FGL_J2325.4-3559_daily_bin144.fits outfile=/scratch/kocevski/864161/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin144.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=276652801.0 tmax=276912001.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.66
user 4.35
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.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/864161/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/864161/ltcube_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.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/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits
.....................!
real 11.68
user 11.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/864161/ltcube_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.fits outfile=/scratch/kocevski/864161/expmap_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.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/864161/ltcube_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.fits
.....................!
real 190.98
user 184.96
sys 5.59

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/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.fits scfile=/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits outfile=/scratch/kocevski/864161/cmap_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.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/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.fits scfile=/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits outfile=/scratch/kocevski/864161/cmap_HighResolution_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/864161/ft2_4FGL_J2325.4-3559_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864161/Model_4FGL_J2325.4-3559_daily_bin144.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/864161/ft1_filtered_4FGL_J2325.4-3559_daily_bin144.fits.....................!
real 48.66
user 47.22
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6969       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9595       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2044       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0199       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.271       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5580       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54414       1.0000         .10000E-03   10000.    
    22 'norm      '    .10088E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.653       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4492       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6996       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10972E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0436       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67543       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=   6487.105     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3768 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.139        .36187E-05** at limit **
   2  Prefactor     .10000E-03    1.2799       -.11560E-07** at limit **
   3  Prefactor     4.2247        14.337       -.68905E-06   -.14538E-04
   4  Prefactor     .10000E-03    17.399       -.88586E-05** at limit **
   5  Prefactor     9.1474        12.349       -.46730E-06   -.25687E-04
   6  Prefactor     .10000E-03    19.463        .76522E-05** at limit **
   7  Prefactor     .23048E-01    4.8662       -.24685E-06    .28981E-04
   8  Prefactor     9.6949        6.6099       -.57975E-06   -.58616E-04
   9  norm          3.0205        2.8204       -.15174E-06   -.25088E-04
  10  Prefactor     .10000E-03    4.3698       -.63221E-07** at limit **
  11  Prefactor     2.9557        3.1250        .95336E-06   -.21609E-02
  12  norm          1.2044        .51115       -.53601E-07    .18430E-03
  13  Prefactor     .10000E-03    15.501       -.80811E-06** at limit **
  14  Prefactor     .10000E-03    4.1908       -.26452E-06** at limit **
  15  norm          2.0200        6.7608       -.33765E-05   -.13041E-03
  16  norm          .10000E-03    1.0918        .61876E-07** at limit **
  17  norm          16.237        8.3008        .26158E-06    .34228E-04
  18  Prefactor     .10000E-03    26.949       -.21283E-05** at limit **
  19  Prefactor     36.250        35.115       -.42498E-05   -.30751E-04
  20  norm          1.5584        2.3032        .21775E-07    .56110E-04
  21  Prefactor     .55027        6.4397        .21652E-06   -.83715E-04
  22  norm          .10000E-03    1.5018       -.14504E-06** at limit **
  23  Prefactor     53.639        55.602       -.10840E-04   -.56655E-04
  24  Prefactor     8.4219        28.663        .80599E-05    .26620E-04
  25  Prefactor     .10000E-03    3.0927       -.42281E-07** at limit **
  26  Prefactor     3.6983        3.6770       -.48375E-07   -.13592E-04
  27  Prefactor     .10000E-03    60.234        .49601E-06** at limit **
  28  Normalizat    1.0441        .15061        .45436E-06    .22344E-04
  29  Prefactor     .67501        .15951        .36254E-06    .27219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.2247
  Prefactor  = 0.0001
  Prefactor  = 9.14739
  Prefactor  = 0.0001
  Prefactor  = 0.0230479
  Prefactor  = 9.69486
  norm       = 3.02049
  Prefactor  = 0.0001
  Prefactor  = 2.95566
  norm       = 1.20443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01998
  norm       = 0.0001
  norm       = 16.2369
  Prefactor  = 0.0001
  Prefactor  = 36.2499
  norm       = 1.55843
  Prefactor  = 0.550269
  norm       = 0.000100002
  Prefactor  = 53.6391
  Prefactor  = 8.42195
  Prefactor  = 0.0001
  Prefactor  = 3.69826
  Prefactor  = 0.0001
  Normalizat = 1.0441
  Prefactor  = 0.675014
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.105     FROM HESSE     STATUS=OK           571 CALLS     4339 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.2916        .88551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2247        14.265        .19577E-03   -1.5297    
   4  Prefactor     .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1474        12.347        .13253E-03   -1.5103    
   6  Prefactor     .10000E-03    19.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23048E-01    11.795        .53904E-01   -1.5678    
   8  Prefactor     9.6949        6.6147        .12869E-03   -1.5085    
   9  norm          3.0205        2.8636        .12434E-03   -1.5360    
  10  Prefactor     .10000E-03    4.3761        .16437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9557        7.6241        .11802E-02   -1.5364    
  12  norm          1.2044        .58335        .34576E-04   -1.5488    
  13  Prefactor     .10000E-03    15.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2235        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0200        6.7496        .29119E-03   -1.5424    
  16  norm          .10000E-03    1.0920        .82173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.237        8.3122        .99387E-04   -1.4902    
  18  Prefactor     .10000E-03    27.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.250        35.210        .66544E-04   -1.4503    
  20  norm          1.5584        2.2474        .14139E-03   -1.5458    
  21  Prefactor     .55027        45.036        .39451E-02   -1.5560    
  22  norm          .10000E-03    14.439        .18809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.639        55.689        .54758E-04   -1.4242    
  24  Prefactor     8.4219        28.667        .13791E-03   -1.5127    
  25  Prefactor     .10000E-03    6.2402        .27086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6983        3.6782        .14912E-03   -1.5323    
  27  Prefactor     .10000E-03    61.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0441        .18056        .20211E-03   -.91567    
  29  Prefactor     .67501        .19023        .27103E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84802e-08
Minuit parameter uncertainties:
  1  3.93061e-05
  2  1.10864e-07
  3  14.2768
  4  0.000112187
  5  12.3501
  6  5.3206e-05
  7  1.04074
  8  6.61516
  9  2.86376
  10  1.36276e-06
  11  7.62658
  12  0.583348
  13  1.16694e-05
  14  4.15238e-06
  15  6.75218
  16  1.24593e-07
  17  8.31279
  18  3.87262e-05
  19  35.23
  20  2.24748
  21  9.96313
  22  0.000314173
  23  55.7433
  24  28.7143
  25  6.5718e-05
  26  3.67839
  27  0.000205094
  28  0.180668
  29  0.190415
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.624e+01  8.313e+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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.750e-01  1.904e-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.044e+00  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.16
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.04e-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) = 6484.98877991
delta logL = 2.11669547761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6484.96639415
delta logL = 2.1390812462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2318       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9780       1.0000          .0000       5.0000    
     3 'Normalizat'    .88787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79596       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=   6484.966     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      276 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2326        7.6677        .60383E-04   -.22533E-02
   2  alpha         3.9780        1.0765        .99655E-03   -.16262E-03
   3  Normalizat    .88784        .18719        .21649E-03   -.50466E-04
   4  Prefactor     .79597        .20068        .25136E-03    .29557E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.23258
  alpha      = 3.978
  Normalizat = 0.887835
  Prefactor  = 0.795972
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.966     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2326        7.1044        .24153E-05   -1.5250    
   2  alpha         3.9780        1.0050        .39862E-04    .63254    
   3  Normalizat    .88784        .18643        .86596E-05   -.96889    
   4  Prefactor     .79597        .19990        .10054E-04   -.99877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64639e-10
Minuit parameter uncertainties:
  1  7.1055
  2  1.05206
  3  0.186562
  4  0.200082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864161': 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) = 6484.96639406
delta logL = 2.13908133414

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  5.233e+00  7.106e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  3.978e+00  1.052e+00  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:  7.960e-01  2.001e-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:  8.878e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.10
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 3.98 +/- 1.05
Photon Flux (Free Index): 1.51e-07 +/- 5.98e-08
Energy Flux (Free Index): 2.41e-05 +/- 8.66e-06

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/864161/cmap_HighResolution_276652801_276912001_4FGL_J2325.4-3559_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='2.41e-05', photon_flux_error='2.59e-08', dlogl='2.14e+00', energy_flux='2.03e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-09-29 17:40:40.236665', photon_index_error2='1.05', photon_index2='3.98', ts='8.16', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='8.66e-06', EG='1.04', time_epoch_completed='1632962440.24', return_code='0', job_id='864161', GAL2='0.80', EG2='0.89', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='5.98e-08', ts2='13.10', photon_index='2.13' WHERE bin_id='144' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 864161: <4FGL_J2325.4-3559_daily_bin144> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin144> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 17:25:27 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:25:28 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:25:28 2021
Terminated at Wed Sep 29 17:40:40 2021
Results reported at Wed Sep 29 17:40:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin144 351.359 -35.9878 276652801 276912001 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 :                                   761.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

