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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin755
RA = 351.35, Dec = -48.0022
tmin = 435024001, tmax = 435283201
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='874267', job_status='RUN', time_executed='2021-09-29 18:03:46.670135', time_epoch_executed='1632963826.67' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874267/ft1_4FGL_J2325.4-4800_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874267/ft2_4FGL_J2325.4-4800_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874267/ft1_4FGL_J2325.4-4800_daily_bin755.fits outfile=/scratch/kocevski/874267/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin755.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=435024001.0 tmax=435283201.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.00
user 4.72
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/874267/ft2_4FGL_J2325.4-4800_daily_bin755.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/874267/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/874267/ft1_filtered_4FGL_J2325.4-4800_daily_bin755.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/874267/ft1_filtered_4FGL_J2325.4-4800_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/874267/ft2_4FGL_J2325.4-4800_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/874267/ltcube_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.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/874267/ft2_4FGL_J2325.4-4800_daily_bin755.fits
.....................!
real 12.34
user 12.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874267/ft1_filtered_4FGL_J2325.4-4800_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/874267/ft2_4FGL_J2325.4-4800_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/874267/ltcube_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.fits outfile=/scratch/kocevski/874267/expmap_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.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/874267/ltcube_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.fits
.....................!
real 192.23
user 187.43
sys 4.43

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/874267/ft1_filtered_4FGL_J2325.4-4800_daily_bin755.fits scfile=/scratch/kocevski/874267/ft2_4FGL_J2325.4-4800_daily_bin755.fits outfile=/scratch/kocevski/874267/cmap_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.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.54
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/874267/ft1_filtered_4FGL_J2325.4-4800_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/874267/ft2_4FGL_J2325.4-4800_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/874267/Model_4FGL_J2325.4-4800_daily_bin755.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/874267/ft1_filtered_4FGL_J2325.4-4800_daily_bin755.fits......................!
real 27.68
user 26.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11475E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0284       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    113.56       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10242E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.992       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.8579       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4148       1.0000         .10000E-03   10000.    
    26 'norm      '    6.1595       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.498       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.257       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.0999       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .60600       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.4696       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=   2769.320     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     5780 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    179.59        .72890E-06** at limit **
   2  Prefactor     .10001E-03    120.82       -.23563E-06** at limit **
   3  Prefactor     .10000E-03    20.819        .44503E-07** at limit **
   4  Prefactor     .10000E-03    8.0921        .76294E-07** at limit **
   5  Prefactor     .10000E-03    19.562        .65241E-06** at limit **
   6  Prefactor     .10000E-03    41.490        .17523E-06** at limit **
   7  Prefactor     3.0282        9.6912       -.71717E-06    .50548E-03
   8  norm          .10000E-03    9.9755       -.15834E-06** at limit **
   9  Prefactor     9.5468        8.0400       -.10985E-06    .44055E-04
  10  Prefactor     .10000E-03    41.401        .32137E-07** at limit **
  11  Prefactor     .10000E-03    5.8686       -.16207E-06** at limit **
  12  Prefactor     113.61        62.769        .50054E-05    .36336E-03
  13  Prefactor     .10005E-03    112.64        .17385E-04** at limit **
  14  Prefactor     .10000E-03    141.57        .12563E-06** at limit **
  15  Prefactor     13.577        16.274       -.17197E-06    .48104E-05
  16  Prefactor     .10000E-03    29.218       -.31689E-07** at limit **
  17  Prefactor     76.988        40.911       -.13337E-07    .11639E-03
  18  norm          .10000E-03    8.8363        .47694E-07** at limit **
  19  norm          7.8576        11.308       -.53820E-07    .87182E-04
  20  norm          .10000E-03    3.2006        .18532E-07** at limit **
  21  Prefactor     .10000E-03    4.2353        .43909E-07** at limit **
  22  Prefactor     .10000E-03    46.896        .28677E-06** at limit **
  23  norm          .10000E-03    3.5362        .11671E-06** at limit **
  24  Prefactor     .10000E-03    9.4046        .74162E-07** at limit **
  25  norm          7.4147        3.3200       -.99200E-08    .73858E-04
  26  norm          6.1590        7.2221       -.76612E-07    .15515E-03
  27  Prefactor     30.496        31.674       -.26899E-06    .17669E-04
  28  Prefactor     .10000E-03    2.0576        .82463E-07** at limit **
  29  Prefactor     12.254        37.653       -.82192E-06   -.13693E-04
  30  norm          .10000E-03    12.387        .30424E-07** at limit **
  31  Prefactor     .10000E-03    2.2539        .58050E-07** at limit **
  32  Prefactor     9.0987        8.4556       -.63389E-06    .96838E-04
  33  Normalizat    .60593        .32284        .20214E-06    .18561E-03
  34  Prefactor     1.4698        .33001        .78003E-06    .26606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100057
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02816
  norm       = 0.0001
  Prefactor  = 9.5468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 113.606
  Prefactor  = 0.000100051
  Prefactor  = 0.000100001
  Prefactor  = 13.5773
  Prefactor  = 0.000100001
  Prefactor  = 76.9885
  norm       = 0.0001
  norm       = 7.85762
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.41474
  norm       = 6.15905
  Prefactor  = 30.4959
  Prefactor  = 0.0001
  Prefactor  = 12.2537
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.09867
  Normalizat = 0.605935
  Prefactor  = 1.46979
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.320     FROM HESSE     STATUS=OK           720 CALLS     6500 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    180.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    121.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1102        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0282        9.8088        .11659E-02   -1.5360    
   8  norm          .10000E-03    9.9972        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5468        8.0369        .12970E-03   -1.5090    
  10  Prefactor     .10000E-03    41.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8917        .12455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     113.61        62.635        .18876E-03   -1.3572    
  13  Prefactor     .10005E-03    111.85        .43607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    141.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.577        16.272        .10870E-03   -1.4971    
  16  Prefactor     .10000E-03    29.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     76.988        41.016        .45764E-04   -1.3951    
  18  norm          .10000E-03    8.8415        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.8576        11.316        .71521E-03   -1.5147    
  20  norm          .10000E-03    3.2010        .91952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2384        .10576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.5525        .96601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.4119        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4147        3.3237        .55332E-04   -1.5163    
  26  norm          6.1590        7.2240        .73494E-03   -1.5212    
  27  Prefactor     30.496        31.700        .72551E-04   -1.4603    
  28  Prefactor     .10000E-03    2.0608        .73668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.254        37.655        .11442E-03   -1.5008    
  30  norm          .10000E-03    12.388        .18093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.2561        .77151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     9.0987        8.3817        .66431E-03   -1.5105    
  33  Normalizat    .60593        .37689        .34045E-03   -1.0773    
  34  Prefactor     1.4698        .39172        .25242E-03   -.78389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32822e-09
Minuit parameter uncertainties:
  1  0.00643597
  2  0.00253329
  3  2.78966e-05
  4  1.73964e-05
  5  0.000161433
  6  0.00028395
  7  9.814
  8  1.11938e-06
  9  8.03777
  10  0.000256164
  11  3.16763e-05
  12  62.6718
  13  0.0047854
  14  0.000726876
  15  16.2774
  16  0.000386225
  17  41.0306
  18  4.07745e-05
  19  11.3191
  20  7.28361e-07
  21  2.27616e-06
  22  0.000125994
  23  4.85349e-06
  24  2.34602e-05
  25  3.32378
  26  7.22507
  27  31.7178
  28  5.00671e-06
  29  37.728
  30  3.43132e-05
  31  2.73854e-06
  32  8.38281
  33  0.378507
  34  0.392527
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  2.276e-06  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.470e+00  3.925e-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.059e-01  3.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.350 -48.002
Photon Flux Upper Limit: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874267/likelihoodResults_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.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) = 2769.32056657
delta logL = -0.00101788768598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2769.3195485
delta logL = 1.90650098375e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0840       1.0000          .0000       10.000    
     3 'Normalizat'    .60586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4699       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2769.320     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.7180        .10815E-02** at limit **
   2  Index         2.0597        6.0196        .50000        .43644E-04
   3  Normalizat    .60593        .34333        .34046E-03    .13875E-04
   4  Prefactor     1.4698        .38266        .25242E-03    .43237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.05972
  Normalizat = 0.605933
  Prefactor  = 1.46979
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.320     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.4429        .21630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0597        6.0254        .50000       -.62865    
   3  Normalizat    .60593        .34359        .13618E-04   -1.0773    
   4  Prefactor     1.4698        .38295        .50484E-04   -.78389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85854e-09
Minuit parameter uncertainties:
  1  0.000456358
  2  4.05237
  3  0.344813
  4  0.383702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874267': 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) = 2769.31954817
delta logL = 5.15406100021e-07

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  4.564e-04  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.060e+00  4.052e+00  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.470e+00  3.837e-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.059e-01  3.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.350 -48.002

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/874267/cmap_HighResolution_435024001_435283201_4FGL_J2325.4-4800_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-29 18:14:34.077264', job_id='874267', GAL2='1.47', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632964474.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='5.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='755' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:14:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 874267: <4FGL_J2325.4-4800_daily_bin755> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin755> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:00:34 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:00:36 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:00:36 2021
Terminated at Wed Sep 29 18:14:34 2021
Results reported at Wed Sep 29 18:14:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin755 351.35 -48.0022 435024001 435283201 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

