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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin313
RA = 351.359, Dec = -35.9878
tmin = 320457601, tmax = 320716801
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='864412', job_status='RUN', time_executed='2021-09-29 17:28:58.141462', time_epoch_executed='1632961738.14' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864412

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864412/ft1_4FGL_J2325.4-3559_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864412/ft2_4FGL_J2325.4-3559_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864412/ft1_4FGL_J2325.4-3559_daily_bin313.fits outfile=/scratch/kocevski/864412/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin313.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=320457601.0 tmax=320716801.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.78
user 3.54
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864412/ft1_filtered_4FGL_J2325.4-3559_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/864412/ft2_4FGL_J2325.4-3559_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/864412/ltcube_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.fits outfile=/scratch/kocevski/864412/expmap_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.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/864412/ltcube_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.fits
.....................!
real 190.33
user 184.97
sys 4.99

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/864412/ft1_filtered_4FGL_J2325.4-3559_daily_bin313.fits scfile=/scratch/kocevski/864412/ft2_4FGL_J2325.4-3559_daily_bin313.fits outfile=/scratch/kocevski/864412/cmap_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864412/ft1_filtered_4FGL_J2325.4-3559_daily_bin313.fits scfile=/scratch/kocevski/864412/ft2_4FGL_J2325.4-3559_daily_bin313.fits outfile=/scratch/kocevski/864412/cmap_HighResolution_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.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/864412/ft1_filtered_4FGL_J2325.4-3559_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/864412/ft2_4FGL_J2325.4-3559_daily_bin313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864412/Model_4FGL_J2325.4-3559_daily_bin313.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/864412/ft1_filtered_4FGL_J2325.4-3559_daily_bin313.fits.....................!
real 35.06
user 33.69
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8562       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1188       1.0000         .10000E-03   10000.    
     9 'norm      '    .45474       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.153       1.0000         .10000E-03   10000.    
    12 'norm      '    .64605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2298       1.0000         .10000E-03   10000.    
    15 'norm      '    6.5268       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0324       1.0000         .10000E-03   10000.    
    17 'norm      '    9.6345       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.077       1.0000         .10000E-03   10000.    
    20 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9015       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.028       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86778       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=   4036.628     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3676 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7041        282.69       -.15703E-03    .63793E-05
   2  Prefactor     2.1253        4.1615       -.22005E-05   -.49369E-03
   3  Prefactor     .10000E-03    13.349       -.27401E-05** at limit **
   4  Prefactor     .10000E-03    64.526       -.34906E-06** at limit **
   5  Prefactor     .10000E-03    16.318        .15798E-04** at limit **
   6  Prefactor     30.277        23.740        .41418E-05   -.22135E-04
   7  Prefactor     2.8529        13.483        .16746E-05   -.15335E-03
   8  Prefactor     7.1170        7.0047       -.25308E-05    .22851E-04
   9  norm          .45583        5.4631       -.16415E-05   -.10697E-02
  10  Prefactor     .10000E-03    13.169        .46287E-05** at limit **
  11  Prefactor     38.148        20.202       -.55883E-05   -.35174E-03
  12  norm          .64533        1.0012        .70598E-06   -.63025E-03
  13  Prefactor     .10000E-03    17.377       -.51194E-05** at limit **
  14  Prefactor     2.2104        31.646        .12929E-04   -.99645E-04
  15  norm          6.5265        11.465       -.84520E-06   -.25128E-04
  16  norm          3.0316        5.1084       -.12126E-06   -.12507E-03
  17  norm          9.6345        10.637       -.33663E-06   -.53615E-04
  18  Prefactor     .10000E-03    14.191       -.56000E-05** at limit **
  19  Prefactor     16.912        81.949        .10469E-04   -.17168E-05
  20  norm          .10000E-03    2.4213        .26943E-07** at limit **
  21  Prefactor     .10000E-03    17.492       -.98480E-05** at limit **
  22  norm          .10000E-03    1.5861        .54129E-07** at limit **
  23  Prefactor     .10000E-03    40.305       -.10106E-05** at limit **
  24  Prefactor     .10000E-03    21.272        .30533E-05** at limit **
  25  Prefactor     .10000E-03    4.1119       -.31698E-06** at limit **
  26  Prefactor     3.8999        7.0434        .23445E-05   -.15675E-03
  27  Prefactor     24.982        59.259        .35965E-04    .19210E-04
  28  Normalizat    1.1578        .23272        .31728E-05   -.11735E-03
  29  Prefactor     .86735        .23788       -.13853E-05    .81158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.70415
  Prefactor  = 2.1253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2769
  Prefactor  = 2.85292
  Prefactor  = 7.117
  norm       = 0.455835
  Prefactor  = 0.0001
  Prefactor  = 38.1475
  norm       = 0.64533
  Prefactor  = 0.0001
  Prefactor  = 2.2104
  norm       = 6.52647
  norm       = 3.03162
  norm       = 9.63452
  Prefactor  = 0.0001
  Prefactor  = 16.9121
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89991
  Prefactor  = 24.9816
  Normalizat = 1.15783
  Prefactor  = 0.86735
 **********
 **   18 **HESSE 
 **********

 FCN=   4036.628     FROM HESSE     STATUS=OK           555 CALLS     4231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7041        285.84        .15304E-03   -1.5190    
   2  Prefactor     2.1253        4.1402        .17278E-03   -1.5416    
   3  Prefactor     .10000E-03    13.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.277        23.731        .72807E-04   -1.4607    
   7  Prefactor     2.8529        13.472        .24055E-03   -1.5370    
   8  Prefactor     7.1170        7.0064        .15035E-03   -1.5174    
   9  norm          .45583        5.5353        .28524E-03   -1.5573    
  10  Prefactor     .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.148        19.508        .64888E-04   -1.4472    
  12  norm          .64533        .91616        .61448E-03   -1.5547    
  13  Prefactor     .10000E-03    17.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2104        29.799        .27532E-03   -1.5411    
  15  norm          6.5265        11.460        .15709E-03   -1.5197    
  16  norm          3.0316        5.0866        .18044E-03   -1.5360    
  17  norm          9.6345        10.642        .12911E-03   -1.5087    
  18  Prefactor     .10000E-03    14.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.912        82.522        .96920E-04   -1.4885    
  20  norm          .10000E-03    2.4390        .96287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5927        .78136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1267        .12578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.8999        7.0442        .20426E-03   -1.5313    
  27  Prefactor     24.982        59.295        .80071E-04   -1.4708    
  28  Normalizat    1.1578        .28966        .23702E-03   -.87916    
  29  Prefactor     .86735        .29267        .28594E-03   -.97291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43334e-09
Minuit parameter uncertainties:
  1  88.0028
  2  4.14073
  3  3.17784e-05
  4  6.59849e-05
  5  5.50884e-05
  6  23.7379
  7  12.4033
  8  7.00718
  9  3.17691
  10  0.000132133
  11  19.5108
  12  0.916177
  13  7.08658e-06
  14  16.2412
  15  11.4643
  16  5.08733
  17  10.644
  18  8.06036e-06
  19  74.8828
  20  4.73779e-06
  21  6.27842e-06
  22  5.59433e-06
  23  3.24245e-05
  24  0.000100639
  25  7.06107e-05
  26  7.04568
  27  59.435
  28  0.290065
  29  0.2932
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  9.635e+00  1.064e+01  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:  8.673e-01  2.932e-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.158e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/864412/likelihoodResults_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.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) = 4036.56326975
delta logL = 0.0648190684424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4036.56009994
delta logL = 0.0679888723421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.433       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8366       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85899       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.

 FCN=   4036.560     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.433        32.368        .31012E-02   -.37382E-03
   2  alpha         1.8367        1.7667        .43151       -.38729E-05
   3  Normalizat    1.1665        .22806        .53428E-01    .38480E-05
   4  Prefactor     .85896        .25418        .64911E-01    .10865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4327
  alpha      = 1.83673
  Normalizat = 1.16645
  Prefactor  = 0.858961
 **********
 **   18 **HESSE 
 **********

 FCN=   4036.560     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.433        11.016        .12405E-03   -1.5062    
   2  alpha         1.8367        .74822        .17232E-01   -.26852    
   3  Normalizat    1.1665        .26858        .23624E-03   -.87646    
   4  Prefactor     .85896        .28717        .28712E-03   -.97590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31147e-10
Minuit parameter uncertainties:
  1  11.0183
  2  0.760792
  3  0.268894
  4  0.287679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864412': 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) = 4036.56009991
delta logL = 0.0679889054977

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.043e+01  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  1.837e+00  7.608e-01  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:  8.590e-01  2.877e-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.166e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 1.84 +/- 0.76
Photon Flux (Free Index): 2.61e-08 +/- 3.04e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.77e-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/864412/cmap_HighResolution_320457601_320716801_4FGL_J2325.4-3559_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='1.49e-05', photon_flux_error='3.31e-08', dlogl='6.80e-02', energy_flux='1.20e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-29 17:39:28.449562', photon_index_error2='0.76', photon_index2='1.84', ts='1.15', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.77e-05', EG='1.16', time_epoch_completed='1632962368.45', return_code='0', job_id='864412', GAL2='0.86', EG2='1.17', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.04e-08', ts2='1.29', photon_index='2.13' WHERE bin_id='313' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:39:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 864412: <4FGL_J2325.4-3559_daily_bin313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin313 351.359 -35.9878 320457601 320716801 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            822 sec.

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

