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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1109
RA = 351.35, Dec = -48.0022
tmin = 526780801, tmax = 527040001
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='877156', job_status='RUN', time_executed='2021-09-29 18:11:40.998239', time_epoch_executed='1632964301.0' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877156/ft1_4FGL_J2325.4-4800_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877156/ft1_4FGL_J2325.4-4800_daily_bin1109.fits outfile=/scratch/kocevski/877156/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1109.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.34
user 4.08
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.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/877156/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1109.fits evtable="EVENTS" outfile="/scratch/kocevski/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/877156/ltcube_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.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/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits
.....................!
real 11.87
user 11.44
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/877156/ltcube_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.fits outfile=/scratch/kocevski/877156/expmap_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.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/877156/ltcube_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.fits
.....................!
real 191.04
user 184.95
sys 5.56

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/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.fits scfile=/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits outfile=/scratch/kocevski/877156/cmap_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.fits scfile=/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits outfile=/scratch/kocevski/877156/cmap_HighResolution_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.35 yref=-48.0022 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/877156/ft2_4FGL_J2325.4-4800_daily_bin1109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877156/Model_4FGL_J2325.4-4800_daily_bin1109.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/877156/ft1_filtered_4FGL_J2325.4-4800_daily_bin1109.fits.....................!
real 31.84
user 30.42
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.420       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33477E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2190       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.270       1.0000         .10000E-03   10000.    
    14 'Prefactor '    85.385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8626       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    110.10       1.0000         .10000E-03   10000.    
    23 'norm      '    .10644E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3520       1.0000         .10000E-03   10000.    
    25 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11767E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    40.521       1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .75809       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .94437       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .73704       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=   3458.064     FROM MIGRAD    STATUS=CONVERGED    933 CALLS     4922 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    178.14        .13024E-05** at limit **
   2  Prefactor     .10000E-03    15.442        .19106E-05** at limit **
   3  Prefactor     35.520        44.918       -.21470E-05    .74241E-04
   4  Prefactor     12.420        17.084        .15670E-06   -.61002E-06
   5  Prefactor     .10000E-03    4.6251       -.12805E-05** at limit **
   6  Prefactor     .10000E-03    16.833       -.27939E-05** at limit **
   7  Prefactor     .10000E-03    11.002        .32522E-06** at limit **
   8  norm          .10000E-03    2.7985       -.28303E-08** at limit **
   9  Prefactor     8.4319        4.9845        .34875E-06   -.14481E-04
  10  Prefactor     12.959        36.636       -.70526E-05    .10337E-03
  11  Prefactor     1.2118        9.4952       -.57286E-05   -.70086E-03
  12  Prefactor     18.723        43.802        .17164E-04   -.16236E-03
  13  Prefactor     28.267        20.337       -.42872E-05    .16768E-03
  14  Prefactor     85.385        90.864       -.33468E-06   -.71511E-05
  15  Prefactor     .10000E-03    4.4097        .88886E-06** at limit **
  16  Prefactor     .10000E-03    12.369       -.11605E-05** at limit **
  17  Prefactor     3.8515        30.620        .73106E-05   -.11343E-03
  18  norm          .10000E-03    4.7192        .12301E-05** at limit **
  19  norm          .10000E-03    8.6155       -.98271E-06** at limit **
  20  norm          .10000E-03    2.2834       -.20314E-08** at limit **
  21  Prefactor     .10000E-03    3.5348       -.44980E-07** at limit **
  22  Prefactor     110.10        54.287       -.11263E-05    .71887E-04
  23  norm          .10000E-03    2.4459        .28245E-07** at limit **
  24  Prefactor     8.3560        13.044       -.42088E-06    .12304E-04
  25  norm          .10000E-03    .99512       -.32036E-06** at limit **
  26  norm          .10000E-03    2.8898        .29094E-07** at limit **
  27  Prefactor     .10000E-03    11.746       -.15007E-05** at limit **
  28  Prefactor     .10000E-03    4.1153        .11356E-06** at limit **
  29  Prefactor     40.539        31.292        .13124E-05   -.41094E-04
  30  norm          .10000E-03    14.822        .24481E-05** at limit **
  31  Prefactor     .75195        5.4285       -.44537E-06   -.93504E-04
  32  Prefactor     .10000E-03    5.3910       -.55667E-07** at limit **
  33  Normalizat    .94416        .23730       -.14226E-05    .17447E-03
  34  Prefactor     .73735        .22632        .15555E-05    .33693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5203
  Prefactor  = 12.4197
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.43187
  Prefactor  = 12.9593
  Prefactor  = 1.2118
  Prefactor  = 18.7228
  Prefactor  = 28.2668
  Prefactor  = 85.385
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.85149
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.097
  norm       = 0.0001
  Prefactor  = 8.35604
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5392
  norm       = 0.0001
  Prefactor  = 0.751954
  Prefactor  = 0.0001
  Normalizat = 0.944157
  Prefactor  = 0.737345
 **********
 **   18 **HESSE 
 **********

 FCN=   3458.064     FROM HESSE     STATUS=OK           722 CALLS     5644 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    178.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.520        44.686        .67240E-04   -1.4515    
   4  Prefactor     12.420        17.042        .11367E-03   -1.5003    
   5  Prefactor     .10000E-03    4.6205        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.525        .37280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8001        .96077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4319        4.9823        .95394E-04   -1.5127    
  10  Prefactor     12.959        36.484        .11121E-03   -1.4988    
  11  Prefactor     1.2118        11.314        .35148E-03   -1.5488    
  12  Prefactor     18.723        44.060        .92608E-04   -1.4842    
  13  Prefactor     28.267        20.235        .75349E-04   -1.4644    
  14  Prefactor     85.385        90.861        .43475E-04   -1.3857    
  15  Prefactor     .10000E-03    9.6901        .23930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8515        29.107        .20533E-03   -1.5315    
  18  norm          .10000E-03    4.7093        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.9063        .33678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2839        .86780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5401        .10786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     110.10        54.840        .38333E-04   -1.3606    
  23  norm          .10000E-03    2.4491        .89719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.3560        12.968        .13872E-03   -1.5130    
  25  norm          .10000E-03    1.8476        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.9062        .97564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.2013        .23197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     40.539        31.007        .62971E-04   -1.4434    
  30  norm          .10000E-03    14.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .75195        15.965        .24680E-02   -1.5535    
  32  Prefactor     .10000E-03    5.5340        .26640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .94416        .28477        .22467E-03   -.94925    
  34  Prefactor     .73735        .27131        .26214E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76843e-09
Minuit parameter uncertainties:
  1  0.000231056
  2  0.000121484
  3  44.7285
  4  17.0491
  5  5.14321e-05
  6  0.000193901
  7  9.24294e-05
  8  1.14708e-06
  9  4.98255
  10  36.5464
  11  7.40707
  12  44.1369
  13  20.2399
  14  91.0097
  15  0.00038995
  16  5.73965e-05
  17  21.1901
  18  4.5242e-05
  19  1.1255e-05
  20  1.52181e-06
  21  7.41251e-06
  22  54.8655
  23  5.70621e-06
  24  12.9722
  25  4.14219e-05
  26  5.28744e-06
  27  8.59728e-05
  28  2.03608e-05
  29  31.0191
  30  0.000155242
  31  6.93128
  32  4.90114e-06
  33  0.285224
  34  0.271798
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  7.413e-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:  7.373e-01  2.718e-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:  9.442e-01  2.852e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877156/likelihoodResults_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.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) = 3458.06496087
delta logL = -0.00133792680572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3458.06362271
delta logL = 2.28442786465e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0769       1.0000          .0000       10.000    
     3 'Normalizat'    .94415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73737       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=   3458.064     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      234 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10138E-03    40.208        .11138E-02** at limit **
   2  Index         2.0211        5.1990        .50000        .53415E-04
   3  Normalizat    .94415        .16528E-01    .22467E-03    .48071E-05
   4  Prefactor     .73735        .17327E-01    .26214E-03    .12837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101379
  Index      = 2.02107
  Normalizat = 0.944154
  Prefactor  = 0.737348
 **********
 **   18 **HESSE 
 **********

 FCN=   3458.064     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10138E-03    162.53        .22276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0211        5.9727        .50000       -.63824    
   3  Normalizat    .94415        .34540E-01    .89869E-05   -.94926    
   4  Prefactor     .73735        .36207E-01    .10486E-04   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.63012e-08
Minuit parameter uncertainties:
  1  0.0300244
  2  305.823
  3  0.0345409
  4  0.0362083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877156': 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) = 3458.06362186
delta logL = 1.07860751086e-06

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.014e-04  3.002e-02  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.021e+00  3.058e+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:  7.373e-01  3.621e-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:  9.442e-01  3.454e-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/877156/cmap_HighResolution_526780801_527040001_4FGL_J2325.4-4800_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-29 18:23:05.482639', job_id='877156', GAL2='0.74', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632964985.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1109' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:23:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 877156: <4FGL_J2325.4-4800_daily_bin1109> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin1109> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:10:13 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:10:15 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:10:15 2021
Terminated at Wed Sep 29 18:23:06 2021
Results reported at Wed Sep 29 18:23:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin1109 351.35 -48.0022 526780801 527040001 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 :                                   672.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

