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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin1004
RA = 351.359, Dec = -35.9878
tmin = 499564801, tmax = 499824001
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='868219', job_status='RUN', time_executed='2021-09-29 17:41:57.750443', time_epoch_executed='1632962517.75' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868219/ft1_4FGL_J2325.4-3559_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868219/ft1_4FGL_J2325.4-3559_daily_bin1004.fits outfile=/scratch/kocevski/868219/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1004.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.08
user 4.82
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/868219/ltcube_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.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/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits
.....................!
real 12.38
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/868219/ltcube_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.fits outfile=/scratch/kocevski/868219/expmap_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.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/868219/ltcube_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.fits
.....................!
real 191.29
user 185.64
sys 5.25

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/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits scfile=/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits outfile=/scratch/kocevski/868219/cmap_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits scfile=/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits outfile=/scratch/kocevski/868219/cmap_HighResolution_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868219/Model_4FGL_J2325.4-3559_daily_bin1004.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/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits.......................!
real 24.05
user 22.11
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits', '/scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits', expMap='/scratch/kocevski/868219/expmap_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.fits', expCube='/scratch/kocevski/868219/ltcube_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/868219/Model_4FGL_J2325.4-3559_daily_bin1004.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/868219/ft1_filtered_4FGL_J2325.4-3559_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/868219/ft2_4FGL_J2325.4-3559_daily_bin1004.fits
Exposure map: /scratch/kocevski/868219/expmap_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.fits
Exposure cube: /scratch/kocevski/868219/ltcube_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/868219/Model_4FGL_J2325.4-3559_daily_bin1004.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25857E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.137       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.914       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.715       1.0000         .10000E-03   10000.    
    16 'norm      '    .11039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    272.85       1.0000         .10000E-03   10000.    
    19 'Prefactor '    111.24       1.0000         .10000E-03   10000.    
    20 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11403E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    592.24       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.057       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.274       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .33491       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3091       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=   1810.384     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3775 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.61        .61962E-06** at limit **
   2  Prefactor     1.1580        15.114        .93871E-05    .28171E-03
   3  Prefactor     .10010E-03    132.23       -.16478E-04** at limit **
   4  Prefactor     .10000E-03    68.602        .28855E-06** at limit **
   5  Prefactor     28.484        61.035        .16846E-05   -.13431E-04
   6  Prefactor     13.580        54.686        .12885E-05   -.36809E-07
   7  Prefactor     14.114        24.488        .79394E-06   -.46160E-04
   8  Prefactor     26.904        16.853        .13474E-06   -.51053E-04
   9  norm          2.2468        4.6445       -.11635E-07   -.10181E-03
  10  Prefactor     .10000E-03    17.399        .71759E-07** at limit **
  11  Prefactor     .10000E-03    7.5693        .14592E-06** at limit **
  12  norm          .10000E-03    .78980        .28445E-06** at limit **
  13  Prefactor     .10000E-03    121.27        .17462E-06** at limit **
  14  Prefactor     .10000E-03    12.528        .16605E-06** at limit **
  15  norm          21.667        34.639        .68956E-06   -.90056E-05
  16  norm          .10000E-03    8.2865       -.18079E-06** at limit **
  17  norm          .10000E-03    17.878       -.66590E-06** at limit **
  18  Prefactor     272.80        128.10        .16741E-05   -.72125E-04
  19  Prefactor     110.99        140.78        .81679E-06   -.78726E-04
  20  norm          .10000E-03    10.314       -.46897E-06** at limit **
  21  Prefactor     .10000E-03    13.581        .68435E-07** at limit **
  22  norm          .10000E-03    10.212       -.14589E-06** at limit **
  23  Prefactor     592.04        336.57        .59805E-06   -.38199E-04
  24  Prefactor     .10000E-03    58.422       -.16820E-06** at limit **
  25  Prefactor     45.028        24.281        .31202E-06    .19798E-03
  26  Prefactor     18.249        16.474        .69391E-06   -.39566E-04
  27  Prefactor     .10000E-03    173.37       -.65585E-06** at limit **
  28  Normalizat    .33566        .49286       -.12092E-04    .17829E-03
  29  Prefactor     1.3090        .43736        .39384E-05    .97427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.15799
  Prefactor  = 0.000100102
  Prefactor  = 0.0001
  Prefactor  = 28.4838
  Prefactor  = 13.5801
  Prefactor  = 14.1136
  Prefactor  = 26.904
  norm       = 2.24682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 21.6669
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 272.803
  Prefactor  = 110.992
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 592.039
  Prefactor  = 0.0001
  Prefactor  = 45.0276
  Prefactor  = 18.249
  Prefactor  = 0.0001
  Normalizat = 0.33566
  Prefactor  = 1.30905
 **********
 **   18 **HESSE 
 **********

 FCN=   1810.384     FROM HESSE     STATUS=OK           551 CALLS     4326 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1580        28.862        .31324E-03   -1.5493    
   3  Prefactor     .10010E-03    181.81        .11684       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    68.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.484        60.127        .74969E-04   -1.4640    
   6  Prefactor     13.580        53.888        .10851E-03   -1.4971    
   7  Prefactor     14.114        24.300        .10653E-03   -1.4956    
   8  Prefactor     26.904        16.848        .77221E-04   -1.4670    
   9  norm          2.2468        4.5485        .12514E-03   -1.5408    
  10  Prefactor     .10000E-03    17.416        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5826        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0898        .71123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    121.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.550        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.667        34.525        .85955E-04   -1.4777    
  16  norm          .10000E-03    8.2903        .11959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.889        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     272.80        125.13        .12277E-03   -1.2389    
  19  Prefactor     110.99        140.17        .19069E-03   -1.3597    
  20  norm          .10000E-03    10.328        .13309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.583        .15317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.255        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     592.04        335.78        .84730E-04   -1.0792    
  24  Prefactor     .10000E-03    58.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.028        23.814        .59729E-04   -1.4365    
  26  Prefactor     18.249        16.223        .93693E-04   -1.4853    
  27  Prefactor     .10000E-03    173.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .33566        .47771        .42325E-03   -1.2077    
  29  Prefactor     1.3090        .45564        .23380E-03   -.83038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79479e-09
Minuit parameter uncertainties:
  1  1.08158e-05
  2  11.5681
  3  0.00861932
  4  0.000322764
  5  60.2556
  6  54.0822
  7  24.3174
  8  16.8513
  9  4.5492
  10  2.96062e-05
  11  2.77924e-05
  12  3.27509e-05
  13  0.0004989
  14  3.84311e-05
  15  34.5564
  16  4.74165e-05
  17  0.000337702
  18  125.256
  19  140.596
  20  0.000158159
  21  2.15274e-05
  22  5.15912e-05
  23  336.926
  24  0.00013857
  25  23.8194
  26  16.2265
  27  0.000253093
  28  0.48368
  29  0.457035
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.000e-04  3.377e-04  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:  1.309e+00  4.570e-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:  3.357e-01  4.837e-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.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/868219/likelihoodResults_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.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) = 1810.38376803
delta logL = -0.000265239782266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1810.38350349
delta logL = -7.00717237123e-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     '    2.4316       1.0000          .0000       5.0000    
     3 'Normalizat'    .33565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3091       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1810.384     FROM MIGRAD    STATUS=FAILED       101 CALLS      296 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7088.2        .15820E-01** at limit **
   2  alpha         1.3444        3.1412        .16468E-01    .64373E-07
   3  Normalizat    .33565        .17605        .42320E-03    .22156E-04
   4  Prefactor     1.3091        .19698        .23380E-03    .44793E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1810.384     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      472 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7088.2        .90525E-03** at limit **
   2  alpha         1.3444        3.1412        .10627E-05    .64373E-07
   3  Normalizat    .33565        .17605        .33513E-07    .22156E-04
   4  Prefactor     1.3091        .19698        .90682E-08    .44793E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1810.384     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      502 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.631        .41783E-02** at limit **
   2  alpha         1.3377        3.1409        .65874E-03   -.13807E-07
   3  Normalizat    .33565        .40899        .16928E-04    .25756E-04
   4  Prefactor     1.3091        .43320        .46761E-04    .52077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.33766
  Normalizat = 0.335648
  Prefactor  = 1.30906
 **********
 **   18 **HESSE 
 **********

 FCN=   1810.384     FROM HESSE     STATUS=OK            23 CALLS      525 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.528        .83565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3377        3.0606        .13175E-03   -.48356    
   3  Normalizat    .33565        .40962        .33856E-05   -1.2077    
   4  Prefactor     1.3091        .43376        .93522E-05   -.83038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25817e-11
Minuit parameter uncertainties:
  1  0.000224269
  2  432.594
  3  0.413348
  4  0.434965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868219': 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) = 1810.38350188
delta logL = 9.10755488803e-07

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.000e-04  2.243e-04  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  1.338e+00  4.326e+02  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.309e+00  4.350e-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:  3.356e-01  4.133e-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/868219/cmap_HighResolution_499564801_499824001_4FGL_J2325.4-3559_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-05', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-29 17:50:04.350268', job_id='868219', GAL2='1.31', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1632963004.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='9.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1004' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 868219: <4FGL_J2325.4-3559_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin1004> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 17:40:37 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:40:38 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:40:38 2021
Terminated at Wed Sep 29 17:50:04 2021
Results reported at Wed Sep 29 17:50:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin1004 351.359 -35.9878 499564801 499824001 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            567 sec.

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

