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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1070
RA = 351.35, Dec = -48.0022
tmin = 516672001, tmax = 516931201
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='875898', job_status='RUN', time_executed='2021-09-29 18:06:03.774952', time_epoch_executed='1632963963.77' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875898/ft1_4FGL_J2325.4-4800_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875898/ft1_4FGL_J2325.4-4800_daily_bin1070.fits outfile=/scratch/kocevski/875898/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1070.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=516672001.0 tmax=516931201.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.46
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.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/875898/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.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/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/875898/ltcube_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.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/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits
.....................!
real 11.48
user 11.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/875898/ltcube_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.fits outfile=/scratch/kocevski/875898/expmap_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.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/875898/ltcube_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.fits
.....................!
real 191.37
user 186.53
sys 4.54

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/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits scfile=/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits outfile=/scratch/kocevski/875898/cmap_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits scfile=/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits outfile=/scratch/kocevski/875898/cmap_HighResolution_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875898/Model_4FGL_J2325.4-4800_daily_bin1070.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/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits.....................!
real 41.83
user 40.54
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits', '/scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits', expMap='/scratch/kocevski/875898/expmap_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.fits', expCube='/scratch/kocevski/875898/ltcube_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875898/Model_4FGL_J2325.4-4800_daily_bin1070.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/875898/ft1_filtered_4FGL_J2325.4-4800_daily_bin1070.fits
Spacecraft file(s): /scratch/kocevski/875898/ft2_4FGL_J2325.4-4800_daily_bin1070.fits
Exposure map: /scratch/kocevski/875898/expmap_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.fits
Exposure cube: /scratch/kocevski/875898/ltcube_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875898/Model_4FGL_J2325.4-4800_daily_bin1070.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) = 5592.55878721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.349       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .76709E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0135       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17218E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.657       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.400       1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.425       1.0000         .10000E-03   10000.    
    23 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8839       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1473       1.0000         .10000E-03   10000.    
    26 'norm      '    .11918E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8799       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    4.0013       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11505E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.0859       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .62513       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0778       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=   5592.478     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4859 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.467       -.30537E-06** at limit **
   2  Prefactor     .10000E-03    11.028       -.66712E-07** at limit **
   3  Prefactor     44.582        36.313       -.82123E-06   -.12525E-03
   4  Prefactor     11.352        15.097        .33963E-07   -.15230E-04
   5  Prefactor     .10001E-03    6.4214        .78624E-06** at limit **
   6  Prefactor     .10000E-03    8.6928       -.11699E-06** at limit **
   7  Prefactor     2.0148        6.7306        .18754E-05    .33985E-04
   8  norm          .10000E-03    1.6848        .19194E-08** at limit **
   9  Prefactor     .10001E-03    1.7736       -.50740E-06** at limit **
  10  Prefactor     .10000E-03    15.249        .21677E-07** at limit **
  11  Prefactor     15.564        6.5182       -.82574E-07    .12188E-03
  12  Prefactor     .10000E-03    25.537        .44439E-06** at limit **
  13  Prefactor     .10000E-03    7.5664        .74961E-07** at limit **
  14  Prefactor     42.651        52.207        .19815E-06    .16530E-04
  15  Prefactor     .10000E-03    3.3864       -.15412E-07** at limit **
  16  Prefactor     11.068        24.312        .69342E-06    .49559E-04
  17  Prefactor     .10000E-03    8.8633        .40111E-08** at limit **
  18  norm          10.399        9.0412       -.92433E-08    .87248E-05
  19  norm          .10000E-03    6.2206        .12849E-06** at limit **
  20  norm          .10000E-03    1.8010       -.19053E-06** at limit **
  21  Prefactor     11.247        5.9282       -.87518E-07    .20581E-04
  22  Prefactor     67.451        33.905        .71176E-06    .20505E-03
  23  norm          .10000E-03    5.3730       -.20939E-05** at limit **
  24  Prefactor     2.8836        6.6356        .60700E-06    .29313E-04
  25  norm          1.1472        .82422       -.24769E-08   -.62846E-04
  26  norm          .10000E-03    4.2459       -.97471E-06** at limit **
  27  Prefactor     .10000E-03    4.2123       -.27490E-07** at limit **
  28  Prefactor     1.8813        2.5261        .15556E-07   -.11233E-04
  29  Prefactor     .10000E-03    13.044        .11722E-06** at limit **
  30  norm          4.0197        10.444        .44059E-06    .43858E-05
  31  Prefactor     .10000E-03    3.7073       -.39058E-07** at limit **
  32  Prefactor     2.0861        3.5660       -.10146E-06   -.31312E-04
  33  Normalizat    .62512        .17677        .52952E-06    .15474E-03
  34  Prefactor     1.0778        .18378       -.32213E-06    .24805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5823
  Prefactor  = 11.3517
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.01477
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 15.5635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6515
  Prefactor  = 0.0001
  Prefactor  = 11.0682
  Prefactor  = 0.0001
  norm       = 10.3992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2467
  Prefactor  = 67.4514
  norm       = 0.0001
  Prefactor  = 2.88363
  norm       = 1.1472
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8813
  Prefactor  = 0.0001
  norm       = 4.01973
  Prefactor  = 0.0001
  Prefactor  = 2.08605
  Normalizat = 0.625125
  Prefactor  = 1.07782
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.478     FROM HESSE     STATUS=OK           728 CALLS     5587 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.582        36.215        .60060E-04   -1.4372    
   4  Prefactor     11.352        15.082        .11892E-03   -1.5034    
   5  Prefactor     .10001E-03    25.987        .34947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0148        6.7786        .14586E-02   -1.5424    
   8  norm          .10000E-03    1.6850        .94798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    10.480        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.564        6.4940        .50763E-03   -1.4919    
  12  Prefactor     .10000E-03    25.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.651        52.187        .61379E-04   -1.4401    
  15  Prefactor     .10000E-03    3.4110        .13436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.068        24.314        .12036E-03   -1.5042    
  17  Prefactor     .10000E-03    8.9278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.399        9.0429        .12425E-03   -1.5063    
  19  norm          .10000E-03    6.4799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8029        .97990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.247        5.9256        .11946E-03   -1.5037    
  22  Prefactor     67.451        34.935        .48880E-04   -1.4064    
  23  norm          .10000E-03    5.5333        .33552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.8836        6.6272        .11966E-02   -1.5368    
  25  norm          1.1472        .80957        .55159E-04   -1.5494    
  26  norm          .10000E-03    4.3896        .29928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.2173        .14990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.8813        2.4986        .13096E-03   -1.5434    
  29  Prefactor     .10000E-03    13.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          4.0197        10.269        .20162E-03   -1.5307    
  31  Prefactor     .10000E-03    3.7576        .27661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.0861        3.5439        .17442E-03   -1.5419    
  33  Normalizat    .62512        .20048        .25287E-03   -1.0693    
  34  Prefactor     1.0778        .21260        .22011E-03   -.90179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14506e-09
Minuit parameter uncertainties:
  1  4.49081e-05
  2  2.08139e-05
  3  36.233
  4  15.087
  5  0.000833085
  6  1.25272e-05
  7  6.78116
  8  3.1179e-07
  9  0.000556004
  10  1.40723e-07
  11  6.49426
  12  1.04133e-05
  13  2.07414e-05
  14  52.2426
  15  5.24733e-06
  16  24.3357
  17  1.64913e-05
  18  9.04406
  19  4.99813e-06
  20  1.86315e-07
  21  5.92592
  22  34.9454
  23  1.07275e-05
  24  6.62889
  25  0.809581
  26  2.33474e-08
  27  5.89638e-06
  28  2.49875
  29  2.26339e-05
  30  10.2735
  31  1.20781e-05
  32  3.54429
  33  0.200718
  34  0.212767
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.125e+01  5.926e+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:  1.078e+00  2.128e-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:  6.251e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.70
Ra Dec: 351.350 -48.002
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.38e-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) = 5592.05585769
delta logL = 0.422047034736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5592.05516158
delta logL = 0.422743153206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.738       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7644       1.0000          .0000       10.000    
     3 'Normalizat'    .64116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0667       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=   5592.055     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.722        211.33        .25240E-02   -.99781E-04
   2  Index         1.7635        5.8315        .14130        .62943E-04
   3  Normalizat    .64104        .13447        .41499E-01    .16327E-04
   4  Prefactor     1.0669        .10312        .39018E-01   -.14828E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7223
  Index      = 1.76354
  Normalizat = 0.641042
  Prefactor  = 1.06691
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.055     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.722        8.9451        .50480E-03   -1.4915    
   2  Index         1.7635        .35838        .54740E-02   -.70403    
   3  Normalizat    .64104        .18699        .25000E-03   -1.0627    
   4  Prefactor     1.0669        .20965        .22111E-03   -.90531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95162e-12
Minuit parameter uncertainties:
  1  8.9459
  2  0.35891
  3  0.187177
  4  0.20981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875898': 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) = 5592.05515435
delta logL = 0.422750384465

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.572e+01  8.946e+00  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  1.764e+00  3.589e-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:  1.067e+00  2.098e-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:  6.410e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.56
Ra Dec: 351.350 -48.002
Photon Index (Free Index): 1.76 +/- 0.36
Photon Flux (Free Index): 3.58e-08 +/- 2.30e-08
Energy Flux (Free Index): 4.79e-05 +/- 4.32e-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/875898/cmap_HighResolution_516672001_516931201_4FGL_J2325.4-4800_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='4.79e-05', photon_flux_error='2.55e-08', dlogl='4.23e-01', energy_flux='2.63e-05', photon_flux2='3.58e-08', job_status='DONE', time_completed='2021-09-29 18:19:08.808383', photon_index_error2='0.36', photon_index2='1.76', ts='11.70', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.32e-05', EG='0.63', time_epoch_completed='1632964748.81', return_code='0', job_id='875898', GAL2='1.07', EG2='0.64', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.30e-08', ts2='12.56', photon_index='2.11' WHERE bin_id='1070' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 875898: <4FGL_J2325.4-4800_daily_bin1070> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin1070> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:05:42 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:05:44 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:44 2021
Terminated at Wed Sep 29 18:19:09 2021
Results reported at Wed Sep 29 18:19:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin1070 351.35 -48.0022 516672001 516931201 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 :                                   773.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

