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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1580
RA = 351.35, Dec = -48.0022
tmin = 648864001, tmax = 649123201
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='880278', job_status='RUN', time_executed='2021-09-29 18:17:32.035863', time_epoch_executed='1632964652.04' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880278/ft1_4FGL_J2325.4-4800_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880278/ft1_4FGL_J2325.4-4800_daily_bin1580.fits outfile=/scratch/kocevski/880278/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1580.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=648864001.0 tmax=649123201.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.01
user 2.79
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.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/880278/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/880278/ltcube_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.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/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits
.....................!
real 12.05
user 11.71
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/880278/ltcube_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.fits outfile=/scratch/kocevski/880278/expmap_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.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/880278/ltcube_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.fits
.....................!
real 191.84
user 187.40
sys 4.11

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/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.fits scfile=/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits outfile=/scratch/kocevski/880278/cmap_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.fits scfile=/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits outfile=/scratch/kocevski/880278/cmap_HighResolution_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/880278/ft2_4FGL_J2325.4-4800_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880278/Model_4FGL_J2325.4-4800_daily_bin1580.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/880278/ft1_filtered_4FGL_J2325.4-4800_daily_bin1580.fits....................!
real 34.10
user 32.23
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3927       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28552E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33669E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    24.256       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11968E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1092       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10358E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5747       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.858       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.5860       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3188       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .66997       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=   3987.124     FROM MIGRAD    STATUS=CONVERGED    968 CALLS     4894 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.669       -.13014E-05** at limit **
   2  Prefactor     .10000E-03    18.270        .30572E-06** at limit **
   3  Prefactor     11.082        38.948       -.13091E-05    .87741E-04
   4  Prefactor     .10000E-03    5.4043        .58289E-06** at limit **
   5  Prefactor     .10000E-03    3.4168        .12444E-06** at limit **
   6  Prefactor     .10000E-03    16.610        .24075E-05** at limit **
   7  Prefactor     .10000E-03    5.5375       -.17026E-06** at limit **
   8  norm          3.3909        12.773       -.26341E-05   -.18936E-03
   9  Prefactor     2.7857        7.3730       -.60816E-07   -.27944E-04
  10  Prefactor     .10000E-03    317.07        .15554E-05** at limit **
  11  Prefactor     .10000E-03    5.2035       -.37069E-06** at limit **
  12  Prefactor     .10000E-03    20.030       -.26670E-05** at limit **
  13  Prefactor     .10000E-03    9.2545        .39942E-06** at limit **
  14  Prefactor     .10000E-03    276.70       -.28221E-06** at limit **
  15  Prefactor     .10000E-03    3.5051        .36170E-07** at limit **
  16  Prefactor     .10000E-03    26.927        .12776E-05** at limit **
  17  Prefactor     .10154E-03    37.012        .70280E-05** at limit **
  18  norm          24.243        19.266       -.77850E-06   -.46621E-04
  19  norm          .10000E-03    3.0632        .77852E-08** at limit **
  20  norm          .10000E-03    7.3268       -.10561E-05** at limit **
  21  Prefactor     .10000E-03    4.4847        .15381E-06** at limit **
  22  Prefactor     .10020E-03    411.89       -.25870E-04** at limit **
  23  norm          1.1014        4.2092        .24312E-05    .50512E-04
  24  Prefactor     .10000E-03    8.9058       -.79822E-06** at limit **
  25  norm          .10000E-03    .44631       -.34000E-08** at limit **
  26  norm          .10000E-03    4.0385       -.98529E-07** at limit **
  27  Prefactor     9.5808        19.617        .92518E-07    .75703E-04
  28  Prefactor     .10000E-03    4.0301       -.30814E-05** at limit **
  29  Prefactor     13.890        18.999        .17295E-05    .51387E-03
  30  norm          .10000E-03    10.706        .13190E-05** at limit **
  31  Prefactor     .10000E-03    11.153       -.12927E-06** at limit **
  32  Prefactor     7.5853        6.0827       -.14613E-06    .16104E-03
  33  Normalizat    1.3188        .22279        .12317E-05    .17646E-03
  34  Prefactor     .67027        .22364       -.22374E-05    .10979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.39092
  Prefactor  = 2.78568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101537
  norm       = 24.2432
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100196
  norm       = 1.10142
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.58085
  Prefactor  = 0.000100003
  Prefactor  = 13.8899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5853
  Normalizat = 1.31881
  Prefactor  = 0.670267
 **********
 **   18 **HESSE 
 **********

 FCN=   3987.124     FROM HESSE     STATUS=OK           730 CALLS     5624 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.082        38.983        .12036E-03   -1.5042    
   4  Prefactor     .10000E-03    5.4236        .14340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4317        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5918        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3909        13.222        .10983E-02   -1.5340    
   9  Prefactor     2.7857        7.3630        .24421E-03   -1.5374    
  10  Prefactor     .10000E-03    320.49        .19881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2120        .14059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    277.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5066        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10154E-03    22.360        .76839E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.243        19.262        .81334E-04   -1.4723    
  19  norm          .10000E-03    3.0652        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.6375        .33609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5256        .13057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10020E-03    428.92        .86687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1014        4.2650        .24446E-03   -1.5498    
  24  Prefactor     .10000E-03    8.9231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .45650        .82255E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.1857        .24740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5808        19.747        .12951E-03   -1.5089    
  28  Prefactor     .10000E-03    5.2688        .20017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.890        19.242        .10760E-03   -1.4962    
  30  norm          .10000E-03    10.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    11.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.5853        6.1145        .12907E-03   -1.5157    
  33  Normalizat    1.3188        .27162        .20719E-03   -.83007    
  34  Prefactor     .67027        .27110        .29685E-03   -1.0470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54254e-09
Minuit parameter uncertainties:
  1  2.12064e-05
  2  4.97985e-05
  3  39.0726
  4  1.47054e-05
  5  1.30036e-05
  6  6.50055e-05
  7  2.63066e-05
  8  13.2331
  9  7.36541
  10  0.000680538
  11  5.77791e-06
  12  4.88933e-05
  13  1.6229e-05
  14  0.000241151
  15  3.14604e-06
  16  5.13006e-05
  17  0.0117294
  18  19.2669
  19  1.04252e-06
  20  0.000109841
  21  1.32872e-05
  22  0.0184581
  23  4.2662
  24  3.50694e-06
  25  1.36289e-07
  26  8.33966e-06
  27  19.7601
  28  0.000242447
  29  19.2509
  30  3.59153e-05
  31  0.000148749
  32  6.11498
  33  0.271915
  34  0.271639
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  1.329e-05  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:  6.703e-01  2.716e-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.319e+00  2.719e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880278/likelihoodResults_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.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) = 3987.12530242
delta logL = -0.00104961140914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3987.12425283
delta logL = -1.67451617017e-08

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 'Index     '    2.1040       1.0000          .0000       10.000    
     3 'Normalizat'    1.3188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67028       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=   3987.124     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8002        .90712E-02** at limit **
   2  Index         2.1025        5.4939        .50000        .27327E-05
   3  Normalizat    1.3188        .40018E-02    .46869E-01    .56306E-04
   4  Prefactor     .67027        .42536E-02    .67084E-01    .32270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10252
  Normalizat = 1.3188
  Prefactor  = 0.67027
 **********
 **   18 **HESSE 
 **********

 FCN=   3987.124     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.517        .13059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1025        5.7812        .50000       -.61811    
   3  Normalizat    1.3188        .16933E-01    .20719E-03   -.83007    
   4  Prefactor     .67027        .17970E-01    .29684E-03   -1.0470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07051e-08
Minuit parameter uncertainties:
  1  2.39891e-05
  2  210.619
  3  0.0169327
  4  0.01797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880278': 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): 102
logL (Free Index) = 3987.12425281
delta logL = 2.18415152631e-09

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  2.399e-05  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.103e+00  2.106e+02  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:  6.703e-01  1.797e-02  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.319e+00  1.693e-02  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/880278/cmap_HighResolution_648864001_649123201_4FGL_J2325.4-4800_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-29 18:29:40.728081', job_id='880278', GAL2='0.67', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632965380.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1580' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:29:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 880278: <4FGL_J2325.4-4800_daily_bin1580> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin1580> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:15:28 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:15:30 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:15:30 2021
Terminated at Wed Sep 29 18:29:41 2021
Results reported at Wed Sep 29 18:29:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin1580 351.35 -48.0022 648864001 649123201 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 :                                   718.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

