/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 220 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 = 7466
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.4-4800_daily_bin442
RA = 351.35, Dec = -48.0022
tmin = 353894401, tmax = 354153601
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='872706', job_status='RUN', time_executed='2021-09-29 17:59:19.826736', time_epoch_executed='1632963559.83' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872706/ft1_4FGL_J2325.4-4800_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872706/ft1_4FGL_J2325.4-4800_daily_bin442.fits outfile=/scratch/kocevski/872706/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin442.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=353894401.0 tmax=354153601.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.44
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872706/ft1_filtered_4FGL_J2325.4-4800_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/872706/ltcube_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.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/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits
.....................!
real 14.74
user 14.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872706/ft1_filtered_4FGL_J2325.4-4800_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/872706/ltcube_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.fits outfile=/scratch/kocevski/872706/expmap_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.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/872706/ltcube_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.fits
.....................!
real 189.48
user 185.25
sys 3.87

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/872706/ft1_filtered_4FGL_J2325.4-4800_daily_bin442.fits scfile=/scratch/kocevski/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits outfile=/scratch/kocevski/872706/cmap_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872706/ft1_filtered_4FGL_J2325.4-4800_daily_bin442.fits scfile=/scratch/kocevski/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits outfile=/scratch/kocevski/872706/cmap_HighResolution_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.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/872706/ft1_filtered_4FGL_J2325.4-4800_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/872706/ft2_4FGL_J2325.4-4800_daily_bin442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/872706/Model_4FGL_J2325.4-4800_daily_bin442.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/872706/ft1_filtered_4FGL_J2325.4-4800_daily_bin442.fits....................!
real 39.05
user 37.70
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98298E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4772       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0450       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.021       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11421E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.035       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.5375       1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.6960       1.0000         .10000E-03   10000.    
    30 'norm      '    13.914       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .12114E-02   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .76410       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=   5022.693     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4870 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.776        40.929       -.20821E-05   -.14778E-03
   2  Prefactor     32.871        31.235        .20526E-05    .35373E-03
   3  Prefactor     .10000E-03    26.282       -.40973E-06** at limit **
   4  Prefactor     11.819        13.768        .50180E-06    .12291E-04
   5  Prefactor     1.6137        5.4130        .13651E-05   -.57455E-06
   6  Prefactor     .10000E-03    21.184        .24677E-05** at limit **
   7  Prefactor     .10000E-03    2.3121        .11074E-06** at limit **
   8  norm          .10000E-03    3.9198        .81283E-08** at limit **
   9  Prefactor     .10000E-03    1.8308        .41761E-07** at limit **
  10  Prefactor     .10000E-03    16.826       -.12535E-05** at limit **
  11  Prefactor     4.7643        6.1292        .51776E-06    .24446E-04
  12  Prefactor     .10000E-03    37.687       -.25257E-05** at limit **
  13  Prefactor     7.0015        11.540       -.84476E-06    .14179E-03
  14  Prefactor     .10021E-03    511.16       -.43427E-04** at limit **
  15  Prefactor     .10000E-03    2.5899        .10204E-07** at limit **
  16  Prefactor     .10000E-03    22.655        .15981E-05** at limit **
  17  Prefactor     3.4778        19.203        .13617E-04   -.50321E-04
  18  norm          4.0455        15.586        .89400E-05   -.70001E-04
  19  norm          .10000E-03    3.3310       -.22699E-07** at limit **
  20  norm          .10000E-03    4.2525       -.15164E-06** at limit **
  21  Prefactor     13.022        8.2012       -.61164E-06    .16104E-04
  22  Prefactor     .10001E-03    62.236        .58805E-05** at limit **
  23  norm          10.039        6.4443        .35529E-06   -.34632E-03
  24  Prefactor     .10000E-03    26.457       -.21945E-05** at limit **
  25  norm          6.5368        2.0441       -.18128E-06    .59048E-03
  26  norm          .10000E-03    2.1015       -.11210E-06** at limit **
  27  Prefactor     .10000E-03    10.457        .15632E-06** at limit **
  28  Prefactor     .10001E-03    3.6413       -.18312E-05** at limit **
  29  Prefactor     6.6754        33.302        .24751E-05    .11696E-03
  30  norm          13.910        14.099       -.24918E-06    .60068E-04
  31  Prefactor     .10000E-03    2.3359        .61283E-07** at limit **
  32  Prefactor     .10009E-03    3.0400        .93502E-06** at limit **
  33  Normalizat    1.2483        .20391       -.23680E-05    .96521E-04
  34  Prefactor     .76387        .20528       -.99383E-06   -.32066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7761
  Prefactor  = 32.8711
  Prefactor  = 0.0001
  Prefactor  = 11.8186
  Prefactor  = 1.61371
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76431
  Prefactor  = 0.0001
  Prefactor  = 7.00153
  Prefactor  = 0.000100214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.47782
  norm       = 4.04548
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0217
  Prefactor  = 0.000100008
  norm       = 10.0391
  Prefactor  = 0.0001
  norm       = 6.53684
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 6.67541
  norm       = 13.9098
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  Normalizat = 1.24833
  Prefactor  = 0.763865
 **********
 **   18 **HESSE 
 **********

 FCN=   5022.693     FROM HESSE     STATUS=OK           726 CALLS     5596 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.776        41.065        .63537E-04   -1.4446    
   2  Prefactor     32.871        30.958        .69978E-04   -1.4561    
   3  Prefactor     .10000E-03    26.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.819        13.775        .11652E-03   -1.5020    
   5  Prefactor     1.6137        5.3790        .29283E-03   -1.5454    
   6  Prefactor     .10000E-03    21.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3143        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9397        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8483        .93631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7643        6.1233        .18435E-03   -1.5271    
  12  Prefactor     .10000E-03    38.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0015        11.499        .15178E-03   -1.5179    
  14  Prefactor     .10021E-03    532.73        .20774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5947        .11138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4778        19.609        .10842E-02   -1.5335    
  18  norm          4.0455        15.674        .10024E-02   -1.5306    
  19  norm          .10000E-03    3.3403        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2680        .14257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.022        8.1920        .11100E-03   -1.4986    
  22  Prefactor     .10001E-03    63.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.039        6.4359        .12649E-03   -1.5074    
  24  Prefactor     .10000E-03    27.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.5368        2.0383        .51343E-04   -1.5197    
  26  norm          .10000E-03    2.1087        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    5.7301        .23463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.6754        28.834        .15507E-03   -1.5191    
  30  norm          13.910        14.094        .53689E-03   -1.4962    
  31  Prefactor     .10000E-03    2.3496        .10572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10009E-03    22.472        .22585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2483        .24412        .22855E-03   -.85122    
  34  Prefactor     .76387        .24576        .29861E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60462e-09
Minuit parameter uncertainties:
  1  41.0945
  2  30.9731
  3  0.000175087
  4  13.7783
  5  5.38063
  6  0.00031264
  7  8.4821e-07
  8  3.77175e-06
  9  5.61383e-06
  10  0.000131038
  11  6.12406
  12  0.000254595
  13  11.503
  14  0.0215685
  15  3.55652e-06
  16  0.000211972
  17  16.5244
  18  15.6903
  19  3.19762e-06
  20  1.38653e-06
  21  8.19272
  22  0.00142385
  23  6.43634
  24  0.000183371
  25  2.0383
  26  1.88617e-06
  27  3.63406e-05
  28  0.000374754
  29  27.7697
  30  14.0969
  31  1.00973e-05
  32  0.002918
  33  0.244346
  34  0.246115
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  7.639e-01  2.461e-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.248e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.86
Ra Dec: 351.350 -48.002
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.91e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5022.66289763
delta logL = 0.0300388521446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5022.65875823
delta logL = 0.034178257265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.292       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9579       1.0000          .0000       10.000    
     3 'Normalizat'    1.2578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75863       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=   5022.659     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      247 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.300        260.42        .26487E-02   -.86917E-05
   2  Index         1.9590        5.6560        .12521        .68169E-04
   3  Normalizat    1.2579        .18945        .51549E-01   -.86017E-05
   4  Prefactor     .75869        .11118        .67718E-01    .72002E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3003
  Index      = 1.95898
  Normalizat = 1.25788
  Prefactor  = 0.758693
 **********
 **   18 **HESSE 
 **********

 FCN=   5022.659     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.300        10.139        .10595E-03   -1.4951    
   2  Index         1.9590        .57163        .72300E-02   -.65380    
   3  Normalizat    1.2579        .23471        .22791E-03   -.84833    
   4  Prefactor     .75869        .24423        .29962E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63412e-09
Minuit parameter uncertainties:
  1  10.1402
  2  0.573627
  3  0.234912
  4  0.244582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872706': 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) = 5022.65875254
delta logL = 0.0341839391167

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  7.587e-01  2.446e-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.258e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.97
Ra Dec: 351.350 -48.002
Photon Index (Free Index): 1.96 +/- 0.57
Photon Flux (Free Index): 4.62e-08 +/- 4.67e-08
Energy Flux (Free Index): 3.54e-05 +/- 3.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/872706/cmap_HighResolution_353894401_354153601_4FGL_J2325.4-4800_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='3.54e-05', photon_flux_error='3.53e-08', dlogl='3.42e-02', energy_flux='3.04e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-29 18:11:34.914744', photon_index_error2='0.57', photon_index2='1.96', ts='11.86', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='1.25', time_epoch_completed='1632964294.91', return_code='0', job_id='872706', GAL2='0.76', EG2='1.26', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='4.67e-08', ts2='11.97', photon_index='2.11' WHERE bin_id='442' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 872706: <4FGL_J2325.4-4800_daily_bin442> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin442> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 17:55:30 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:55:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 17:55:31 2021
Terminated at Wed Sep 29 18:11:35 2021
Results reported at Wed Sep 29 18:11:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin442 351.35 -48.0022 353894401 354153601 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 :                                   733.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

