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


Performing analysis on: 4FGL_J2325.4-3559_daily_bin1284
RA = 351.359, Dec = -35.9878
tmin = 572140801, tmax = 572400001
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='869620', job_status='RUN', time_executed='2021-09-29 17:47:38.916375', time_epoch_executed='1632962858.92' WHERE source_name='4FGL J2325.4-3559' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/869620

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/869620/ft1_4FGL_J2325.4-3559_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/869620/ft2_4FGL_J2325.4-3559_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/869620/ft1_4FGL_J2325.4-3559_daily_bin1284.fits outfile=/scratch/kocevski/869620/ft1_filteredMKT_4FGL_J2325.4-3559_daily_bin1284.fits ra=351.359 dec=-35.9878 rad=12.0 tmin=572140801.0 tmax=572400001.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.25
user 3.01
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/869620/ft1_filtered_4FGL_J2325.4-3559_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/869620/ft2_4FGL_J2325.4-3559_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/869620/ltcube_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.fits outfile=/scratch/kocevski/869620/expmap_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.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/869620/ltcube_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.fits
.....................!
real 189.53
user 185.13
sys 4.03

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/869620/ft1_filtered_4FGL_J2325.4-3559_daily_bin1284.fits scfile=/scratch/kocevski/869620/ft2_4FGL_J2325.4-3559_daily_bin1284.fits outfile=/scratch/kocevski/869620/cmap_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/869620/ft1_filtered_4FGL_J2325.4-3559_daily_bin1284.fits scfile=/scratch/kocevski/869620/ft2_4FGL_J2325.4-3559_daily_bin1284.fits outfile=/scratch/kocevski/869620/cmap_HighResolution_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/869620/ft1_filtered_4FGL_J2325.4-3559_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/869620/ft2_4FGL_J2325.4-3559_daily_bin1284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/869620/Model_4FGL_J2325.4-3559_daily_bin1284.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/869620/ft1_filtered_4FGL_J2325.4-3559_daily_bin1284.fits.....................!
real 33.35
user 32.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.6431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61187E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11482E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3295       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.476       1.0000         .10000E-03   10000.    
    12 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11269E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.8206       1.0000         .10000E-03   10000.    
    16 'norm      '    .47909E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    10.283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43189E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0132       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.681       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .45459E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60751       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4885       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=   3883.710     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3739 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    107.93       -.29112E-04** at limit **
   2  Prefactor     4.6437        4.9771       -.18680E-05   -.20038E-03
   3  Prefactor     .10000E-03    13.471        .86255E-07** at limit **
   4  Prefactor     .10000E-03    114.30       -.11674E-04** at limit **
   5  Prefactor     2.7574        130.98        .12661E-04   -.77853E-04
   6  Prefactor     .10059E-03    20.671        .32927E-05** at limit **
   7  Prefactor     .10051E-03    14.770        .15884E-05** at limit **
   8  Prefactor     .10000E-03    5.6778        .13738E-06** at limit **
   9  norm          1.3332        5.0023        .11962E-05   -.55897E-03
  10  Prefactor     .10000E-03    19.720       -.13496E-05** at limit **
  11  Prefactor     23.462        13.553       -.19034E-05   -.51675E-03
  12  norm          .10000E-03    .35184        .31528E-06** at limit **
  13  Prefactor     .10000E-03    149.86        .68860E-04** at limit **
  14  Prefactor     .10000E-03    6.1191        .16645E-06** at limit **
  15  norm          9.8250        14.992        .93816E-06   -.64091E-04
  16  norm          .10043E-03    6.3059       -.12053E-05** at limit **
  17  norm          10.284        11.789        .11837E-05   -.10461E-03
  18  Prefactor     .10000E-03    20.566        .23637E-05** at limit **
  19  Prefactor     .10000E-03    60.397       -.95968E-05** at limit **
  20  norm          .10000E-03    2.9234        .14384E-06** at limit **
  21  Prefactor     .10000E-03    13.428        .13911E-05** at limit **
  22  norm          4.0139        4.2302        .35500E-06   -.13852E-03
  23  Prefactor     .10000E-03    50.456        .20977E-04** at limit **
  24  Prefactor     47.788        70.403        .82485E-04    .17944E-04
  25  Prefactor     .10000E-03    3.5419       -.20470E-06** at limit **
  26  Prefactor     .10000E-03    9.6986        .36102E-06** at limit **
  27  Prefactor     .10003E-03    101.35       -.15653E-04** at limit **
  28  Normalizat    .60743        .22067       -.52706E-05   -.39948E-03
  29  Prefactor     1.4886        .24573       -.28748E-05   -.39157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.64369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75743
  Prefactor  = 0.000100593
  Prefactor  = 0.000100511
  Prefactor  = 0.0001
  norm       = 1.33317
  Prefactor  = 0.0001
  Prefactor  = 23.4619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.82502
  norm       = 0.00010043
  norm       = 10.284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01387
  Prefactor  = 0.0001
  Prefactor  = 47.7877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Normalizat = 0.607435
  Prefactor  = 1.48859
 **********
 **   18 **HESSE 
 **********

 FCN=   3883.710     FROM HESSE     STATUS=OK           555 CALLS     4294 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6437        4.9670        .13824E-03   -1.5277    
   3  Prefactor     .10000E-03    13.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    114.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7574        125.70        .24600E-03   -1.5376    
   6  Prefactor     .10059E-03    211.24        .53133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10051E-03    24.046        .66319E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7162        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3332        4.8418        .23283E-03   -1.5477    
  10  Prefactor     .10000E-03    19.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.462        12.844        .82671E-04   -1.4739    
  12  norm          .10000E-03    .37993        .69346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    150.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1298        .15050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.8250        14.962        .12787E-03   -1.5081    
  16  norm          .10043E-03    46.479        .30349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.284        11.778        .12495E-03   -1.5066    
  18  Prefactor     .10000E-03    20.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    60.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9566        .10390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.504        .44162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0139        4.2168        .12678E-03   -1.5307    
  23  Prefactor     .10000E-03    50.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.788        70.406        .58070E-04   -1.4324    
  25  Prefactor     .10000E-03    3.5583        .11451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    102.33        .21204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .60743        .26024        .29705E-03   -1.0767    
  29  Prefactor     1.4886        .29420        .22534E-03   -.77860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37313e-08
Minuit parameter uncertainties:
  1  0.000548262
  2  4.96747
  3  2.15987e-05
  4  0.000298385
  5  37.3182
  6  0.022458
  7  0.00701135
  8  2.94723e-05
  9  4.84322
  10  0.00019057
  11  12.8458
  12  1.99122e-05
  13  0.000225666
  14  3.94705e-05
  15  14.9674
  16  0.00894611
  17  11.7808
  18  7.21962e-05
  19  4.50345e-06
  20  2.37393e-05
  21  0.000347756
  22  4.21706
  23  0.000135157
  24  70.5292
  25  4.38305e-05
  26  0.000120006
  27  0.00362825
  28  0.260768
  29  0.294536
Done.

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

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  1.028e+01  1.178e+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:  1.489e+00  2.945e-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:  6.074e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 351.359 -35.988
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/869620/likelihoodResults_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.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) = 3882.57302511
delta logL = 1.13674191542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3882.57061004
delta logL = 1.13915698746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0317       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4410       1.0000          .0000       5.0000    
     3 'Normalizat'    .52851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5380       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=   3882.571     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      272 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0257        113.55        .37821E-02    .14171E-03
   2  alpha         3.4403        3.9879        .29800        .28862E-04
   3  Normalizat    .52872        .96533E-01    .71592E-01    .23399E-04
   4  Prefactor     1.5383        .10201        .50220E-01   -.11614E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.02573
  alpha      = 3.44034
  Normalizat = 0.528717
  Prefactor  = 1.53832
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.571     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0257        9.6413        .10493E-03   -1.5178    
   2  alpha         3.4403        1.0295        .12612E-01    .38562    
   3  Normalizat    .52872        .26451        .31693E-03   -1.1110    
   4  Prefactor     1.5383        .29601        .22200E-03   -.76472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91571e-12
Minuit parameter uncertainties:
  1  9.64339
  2  1.06685
  3  0.265137
  4  0.296348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/869620': 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) = 3882.57060103
delta logL = 1.13916599106

Extracting fit parameters...

4FGL J2325.4-3559
   Spectrum: LogParabola
425         norm:  7.026e+00  9.643e+00  1.000e-04  1.000e+04 ( 1.000e-12)
426        alpha:  3.440e+00  1.067e+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:  1.538e+00  2.963e-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:  5.287e-01  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 351.359 -35.988
Photon Index (Free Index): 3.44 +/- 1.07
Photon Flux (Free Index): 9.67e-08 +/- 6.92e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.22e-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/869620/cmap_HighResolution_572140801_572400001_4FGL_J2325.4-3559_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-05', comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='1.77e-05', photon_flux_error='3.67e-08', dlogl='1.14e+00', energy_flux='1.28e-05', photon_flux2='9.67e-08', job_status='DONE', time_completed='2021-09-29 18:01:37.185620', photon_index_error2='1.07', photon_index2='3.44', ts='1.02', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.22e-05', EG='0.61', time_epoch_completed='1632963697.19', return_code='0', job_id='869620', GAL2='1.54', EG2='0.53', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.92e-08', ts2='3.40', photon_index='2.13' WHERE bin_id='1284' AND source_name='4FGL J2325.4-3559' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 869620: <4FGL_J2325.4-3559_daily_bin1284> in cluster <slac> Done

Job <4FGL_J2325.4-3559_daily_bin1284> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:45:32 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:45:34 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:45:34 2021
Terminated at Wed Sep 29 18:01:37 2021
Results reported at Wed Sep 29 18:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-3559_daily_bin1284 351.359 -35.9878 572140801 572400001 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 :                                   626.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

