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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1043
RA = 351.35, Dec = -48.0022
tmin = 509673601, tmax = 509932801
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='875857', job_status='RUN', time_executed='2021-09-29 18:07:57.830051', time_epoch_executed='1632964077.83' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875857/ft1_4FGL_J2325.4-4800_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875857/ft1_4FGL_J2325.4-4800_daily_bin1043.fits outfile=/scratch/kocevski/875857/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1043.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=509673601.0 tmax=509932801.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.55
user 3.32
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.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/875857/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.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/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/875857/ltcube_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.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/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/875857/ltcube_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.fits outfile=/scratch/kocevski/875857/expmap_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.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/875857/ltcube_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.fits
.....................!
real 189.98
user 185.09
sys 4.57

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.4-4800 @ 351.35 -48.0022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits scfile=/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits outfile=/scratch/kocevski/875857/cmap_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.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.35 yref=-48.0022 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.50
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits scfile=/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits outfile=/scratch/kocevski/875857/cmap_HighResolution_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.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.35 yref=-48.0022 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/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875857/Model_4FGL_J2325.4-4800_daily_bin1043.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/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits.....................!
real 35.42
user 34.16
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits', '/scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits', expMap='/scratch/kocevski/875857/expmap_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.fits', expCube='/scratch/kocevski/875857/ltcube_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875857/Model_4FGL_J2325.4-4800_daily_bin1043.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-4800'

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  3.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875857/ft1_filtered_4FGL_J2325.4-4800_daily_bin1043.fits
Spacecraft file(s): /scratch/kocevski/875857/ft2_4FGL_J2325.4-4800_daily_bin1043.fits
Exposure map: /scratch/kocevski/875857/expmap_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.fits
Exposure cube: /scratch/kocevski/875857/ltcube_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875857/Model_4FGL_J2325.4-4800_daily_bin1043.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) = 4352.08398919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.2741       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25163E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44084E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.3969       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3380       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6644       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8995       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .83223       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.5881       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1389       1.0000         .10000E-03   10000.    
    29 'Prefactor '    35.322       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .95228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4352.064     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4810 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.165       -.50635E-06** at limit **
   2  Prefactor     5.5072        18.742       -.48128E-06   -.41471E-05
   3  Prefactor     20.805        48.127        .35289E-05   -.38962E-04
   4  Prefactor     2.0394        15.918        .59727E-06    .54922E-05
   5  Prefactor     .10000E-03    13.748       -.92189E-06** at limit **
   6  Prefactor     .10000E-03    17.896       -.80589E-06** at limit **
   7  Prefactor     .10000E-03    4.0996       -.14511E-06** at limit **
   8  norm          9.2742        8.0295       -.20552E-07   -.49524E-04
   9  Prefactor     5.3358        5.2701       -.19232E-06   -.99344E-04
  10  Prefactor     .10000E-03    19.651        .25952E-06** at limit **
  11  Prefactor     .10000E-03    10.505       -.20883E-05** at limit **
  12  Prefactor     1.1347        51.338        .70187E-05   -.12561E-03
  13  Prefactor     .10002E-03    8.5628       -.39419E-06** at limit **
  14  Prefactor     .10000E-03    45.722        .32704E-06** at limit **
  15  Prefactor     13.266        10.746        .13270E-06   -.22735E-04
  16  Prefactor     19.061        45.356       -.52440E-05   -.45573E-05
  17  Prefactor     .10000E-03    11.574       -.11622E-06** at limit **
  18  norm          5.3955        14.062        .18062E-05    .55899E-04
  19  norm          2.3383        5.1773        .25716E-05    .28148E-03
  20  norm          3.6639        3.8118       -.18642E-07    .18095E-04
  21  Prefactor     7.8985        7.5383       -.24502E-06   -.30318E-04
  22  Prefactor     .10000E-03    67.643       -.33211E-06** at limit **
  23  norm          .10000E-03    3.2354       -.16021E-07** at limit **
  24  Prefactor     .10000E-03    11.720       -.50335E-07** at limit **
  25  norm          .83249        1.5833        .12729E-07   -.33877E-04
  26  norm          .10000E-03    2.5551        .21947E-07** at limit **
  27  Prefactor     7.5861        14.984        .25052E-06   -.54029E-05
  28  Prefactor     2.1393        4.4275        .87649E-07   -.10883E-03
  29  Prefactor     35.311        32.210        .56327E-06   -.51165E-04
  30  norm          .10000E-03    13.057        .42375E-06** at limit **
  31  Prefactor     .10000E-03    3.6946       -.24636E-06** at limit **
  32  Prefactor     .10000E-03    4.1927       -.12197E-06** at limit **
  33  Normalizat    1.0741        .22434       -.66600E-06   -.23902E-03
  34  Prefactor     .95201        .22636       -.83820E-06   -.21956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.50724
  Prefactor  = 20.8053
  Prefactor  = 2.03942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.27416
  Prefactor  = 5.33579
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.13473
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 13.2656
  Prefactor  = 19.0611
  Prefactor  = 0.0001
  norm       = 5.39552
  norm       = 2.33832
  norm       = 3.66388
  Prefactor  = 7.89852
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.832489
  norm       = 0.0001
  Prefactor  = 7.58608
  Prefactor  = 2.13926
  Prefactor  = 35.3107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07406
  Prefactor  = 0.952008
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.064     FROM HESSE     STATUS=OK           736 CALLS     5546 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5072        18.680        .17108E-03   -1.5239    
   3  Prefactor     20.805        48.281        .87764E-04   -1.4795    
   4  Prefactor     2.0394        15.882        .28958E-03   -1.5422    
   5  Prefactor     .10000E-03    14.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1181        .13045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.2742        8.0373        .13160E-03   -1.5099    
   9  Prefactor     5.3358        5.2527        .14336E-03   -1.5246    
  10  Prefactor     .10000E-03    19.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.200        .35391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1347        177.04        .67245E-02   -1.5495    
  13  Prefactor     .10002E-03    52.626        .33406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.266        10.745        .10997E-03   -1.4979    
  16  Prefactor     19.061        45.463        .91809E-04   -1.4835    
  17  Prefactor     .10000E-03    11.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3955        14.090        .86490E-03   -1.5243    
  19  norm          2.3383        5.3375        .11141E-02   -1.5402    
  20  norm          3.6639        3.8162        .12820E-03   -1.5325    
  21  Prefactor     7.8985        7.4827        .14266E-03   -1.5146    
  22  Prefactor     .10000E-03    68.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.2866        .11579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .83249        1.5174        .10070E-03   -1.5525    
  26  norm          .10000E-03    2.6100        .10295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.5861        15.001        .14558E-03   -1.5157    
  28  Prefactor     2.1393        4.3414        .17524E-03   -1.5415    
  29  Prefactor     35.311        31.945        .67429E-04   -1.4519    
  30  norm          .10000E-03    13.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.7392        .12372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.2657        .13165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0741        .26492        .23342E-03   -.90589    
  34  Prefactor     .95201        .26687        .26389E-03   -.94347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34558e-09
Minuit parameter uncertainties:
  1  7.49096e-05
  2  18.6996
  3  48.3718
  4  11.3862
  5  0.000118888
  6  6.01196e-05
  7  8.38634e-06
  8  8.0382
  9  5.25318
  10  1.26993e-05
  11  0.000698461
  12  28.432
  13  0.00208703
  14  1.87379e-05
  15  10.7464
  16  45.5458
  17  2.50945e-05
  18  14.0988
  19  5.33861
  20  3.81646
  21  7.48363
  22  0.000148112
  23  7.28946e-06
  24  5.74517e-06
  25  1.51748
  26  2.78806e-06
  27  15.0086
  28  4.34207
  29  31.9602
  30  3.60108e-05
  31  1.83583e-05
  32  8.6213e-06
  33  0.265252
  34  0.267239
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  7.899e+00  7.484e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.520e-01  2.672e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.074e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 351.350 -48.002
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.75e-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) = 4351.71799545
delta logL = 0.345543598779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4351.71349387
delta logL = 0.350045178948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3549       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4184       1.0000          .0000       10.000    
     3 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4351.713     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3550        8.3911        .36973E-02   -.23804E-02
   2  Index         1.4175        .65042        .27542       -.28008E-04
   3  Normalizat    1.0974        .21114        .38111E-01    .14094E-04
   4  Prefactor     .94232        .22502        .45540E-01    .15030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.35497
  Index      = 1.41755
  Normalizat = 1.09741
  Prefactor  = 0.942322
 **********
 **   18 **HESSE 
 **********

 FCN=   4351.713     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3550        8.5180        .14789E-03   -1.5165    
   2  Index         1.4175        .75219        .10481E-01   -.79876    
   3  Normalizat    1.0974        .24472        .23132E-03   -.89835    
   4  Prefactor     .94232        .26310        .26523E-03   -.94678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73763e-09
Minuit parameter uncertainties:
  1  8.51944
  2  0.758151
  3  0.244977
  4  0.263452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875857': 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) = 4351.7134906
delta logL = 0.350048445232

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  7.355e+00  8.519e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  1.418e+00  7.582e-01  0.000e+00  1.000e+01 (-1.000e+00)
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.423e-01  2.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.097e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 351.350 -48.002
Photon Index (Free Index): 1.42 +/- 0.76
Photon Flux (Free Index): 1.06e-08 +/- 1.72e-08
Energy Flux (Free Index): 4.40e-05 +/- 7.05e-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/875857/cmap_HighResolution_509673601_509932801_4FGL_J2325.4-4800_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='4.40e-05', photon_flux_error='3.22e-08', dlogl='3.50e-01', energy_flux='1.84e-05', photon_flux2='1.06e-08', job_status='DONE', time_completed='2021-09-29 18:19:01.536099', photon_index_error2='0.76', photon_index2='1.42', ts='4.70', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='7.05e-05', EG='1.07', time_epoch_completed='1632964741.54', return_code='0', job_id='875857', GAL2='0.94', EG2='1.10', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='1.72e-08', ts2='5.40', photon_index='2.11' WHERE bin_id='1043' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:19:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 875857: <4FGL_J2325.4-4800_daily_bin1043> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin1043> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:05:39 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:05:41 2021
Terminated at Wed Sep 29 18:19:01 2021
Results reported at Wed Sep 29 18:19:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin1043 351.35 -48.0022 509673601 509932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.4-4800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

