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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin241
RA = 351.35, Dec = -48.0022
tmin = 301795201, tmax = 302054401
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='871375', job_status='RUN', time_executed='2021-09-29 17:53:18.952267', time_epoch_executed='1632963198.95' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/871375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/871375/ft1_4FGL_J2325.4-4800_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/871375/ft2_4FGL_J2325.4-4800_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/871375/ft1_4FGL_J2325.4-4800_daily_bin241.fits outfile=/scratch/kocevski/871375/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin241.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=301795201.0 tmax=302054401.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.05
user 3.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/871375/ft2_4FGL_J2325.4-4800_daily_bin241.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/871375/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin241.fits evtable="EVENTS" outfile="/scratch/kocevski/871375/ft1_filtered_4FGL_J2325.4-4800_daily_bin241.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/871375/ft1_filtered_4FGL_J2325.4-4800_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/871375/ft2_4FGL_J2325.4-4800_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/871375/ltcube_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.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/871375/ft2_4FGL_J2325.4-4800_daily_bin241.fits
.....................!
real 11.69
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/871375/ft1_filtered_4FGL_J2325.4-4800_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/871375/ft2_4FGL_J2325.4-4800_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/871375/ltcube_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.fits outfile=/scratch/kocevski/871375/expmap_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.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/871375/ltcube_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.fits
.....................!
real 190.41
user 185.52
sys 4.59

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/871375/ft1_filtered_4FGL_J2325.4-4800_daily_bin241.fits scfile=/scratch/kocevski/871375/ft2_4FGL_J2325.4-4800_daily_bin241.fits outfile=/scratch/kocevski/871375/cmap_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.35 yref=-48.0022 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/871375/ft1_filtered_4FGL_J2325.4-4800_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/871375/ft2_4FGL_J2325.4-4800_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/871375/Model_4FGL_J2325.4-4800_daily_bin241.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/871375/ft1_filtered_4FGL_J2325.4-4800_daily_bin241.fits.....................!
real 38.99
user 37.68
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0790       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1864       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9065       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5963       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.969       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8799       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .95559       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.857       1.0000         .10000E-03   10000.    
    25 'norm      '    10.116       1.0000         .10000E-03   10000.    
    26 'norm      '    8.1895       1.0000         .10000E-03   10000.    
    27 'Prefactor '    47.098       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.7088       1.0000         .10000E-03   10000.    
    30 'norm      '    22.019       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.0810       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2808       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .53488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5031.057     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     4046 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81147        1090.8       -.21346E-03    .20208E-03
   2  Prefactor     9.6646        1.3529       -.21881E-06    .39304E-03
   3  Prefactor     21.858        4.6987        .22169E-05    .18559E-02
   4  Prefactor     .10001E-03    16.847       -.53399E-05** at limit **
   5  Prefactor     6.4434        3.1381        .57516E-05    .87824E-02
   6  Prefactor     .10001E-03    16.132        .40463E-05** at limit **
   7  Prefactor     .10000E-03    4.1676        .22658E-06** at limit **
   8  norm          .10000E-03    2.1971        .42568E-06** at limit **
   9  Prefactor     .10000E-03    1.0704       -.18208E-06** at limit **
  10  Prefactor     7.1866        1.1224       -.13521E-05    .19024E-03
  11  Prefactor     6.9058        1.8812       -.28342E-05   -.12906E-02
  12  Prefactor     .10000E-03    40.045        .49433E-04** at limit **
  13  Prefactor     5.9783        1.1330        .63286E-07    .62030E-05
  14  Prefactor     .10002E-03    40.942       -.65743E-04** at limit **
  15  Prefactor     1.5962        2.5641       -.76475E-05   -.86839E-03
  16  Prefactor     41.505        7.1500        .12285E-05    .42685E-02
  17  Prefactor     15.971        1.5807        .24334E-06   -.74668E-03
  18  norm          8.8825        1.0214       -.13463E-06   -.15609E-03
  19  norm          .10000E-03    2.6495       -.48584E-07** at limit **
  20  norm          .10000E-03    2.0275        .55182E-07** at limit **
  21  Prefactor     .10000E-03    3.5859        .18764E-06** at limit **
  22  Prefactor     .10039E-03    65.545        .15814E-04** at limit **
  23  norm          .95277        6.5118       -.37480E-05    .26570E-03
  24  Prefactor     14.852        1.2092       -.12475E-05    .35888E-03
  25  norm          10.115        2.2146       -.21969E-06    .15155E-03
  26  norm          8.1922        5.7534        .52216E-05    .17333E-02
  27  Prefactor     47.094        1.5049       -.25816E-07   -.80079E-03
  28  Prefactor     .10000E-03    5.4953       -.12925E-05** at limit **
  29  Prefactor     2.6512        8.5920        .23345E-04   -.20167E-02
  30  norm          22.028        2.8291       -.21868E-05    .31051E-02
  31  Prefactor     .10000E-03    4.6217       -.15298E-06** at limit **
  32  Prefactor     6.0810        5.0756        .55773E-05    .12139E-02
  33  Normalizat    1.2807        .24343       -.78178E-06    .98118E-04
  34  Prefactor     .53490        .24409        .13070E-05    .45599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.811472
  Prefactor  = 9.66457
  Prefactor  = 21.8579
  Prefactor  = 0.000100007
  Prefactor  = 6.44342
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1866
  Prefactor  = 6.90576
  Prefactor  = 0.000100001
  Prefactor  = 5.97832
  Prefactor  = 0.000100017
  Prefactor  = 1.59616
  Prefactor  = 41.5047
  Prefactor  = 15.9714
  norm       = 8.88252
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100386
  norm       = 0.952769
  Prefactor  = 14.8524
  norm       = 10.1145
  norm       = 8.19218
  Prefactor  = 47.0936
  Prefactor  = 0.0001
  Prefactor  = 2.65119
  norm       = 22.0276
  Prefactor  = 0.0001
  Prefactor  = 6.08099
  Normalizat = 1.28075
  Prefactor  = 0.534904
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.057     FROM HESSE     STATUS=OK           822 CALLS     4868 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81147        76.370        .16954       -1.5528    
   2  Prefactor     9.6646        23.653        .32212E-02   -1.5086    
   3  Prefactor     21.858        45.851        .21427E-02   -1.4773    
   4  Prefactor     .10001E-03    16.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4434        7.5604        .39527E-02   -1.5200    
   6  Prefactor     .10001E-03    16.189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0662        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1866        27.466        .37408E-02   -1.5172    
  11  Prefactor     6.9058        6.2643        .38165E-02   -1.5182    
  12  Prefactor     .10000E-03    42.774        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9783        10.518        .41043E-02   -1.5219    
  14  Prefactor     .10002E-03    47.001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5962        6.0902        .83921E-02   -1.5455    
  16  Prefactor     41.505        40.481        .15562E-02   -1.4419    
  17  Prefactor     15.971        18.903        .25056E-02   -1.4908    
  18  norm          8.8825        8.8874        .33627E-02   -1.5112    
  19  norm          .10000E-03    2.6477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10039E-03    70.288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .95277        7.0806        .13008E-01   -1.5513    
  24  Prefactor     14.852        17.043        .25978E-02   -1.4937    
  25  norm          10.115        2.3481        .31496E-02   -1.5072    
  26  norm          8.1922        6.2164        .35024E-02   -1.5135    
  27  Prefactor     47.094        20.689        .14607E-02   -1.4334    
  28  Prefactor     .10000E-03    3.2699        .40847E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.6512        47.615        .61871E-02   -1.5382    
  30  norm          22.028        26.931        .21340E-02   -1.4769    
  31  Prefactor     .10000E-03    4.5476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.0810        5.9553        .40703E-02   -1.5215    
  33  Normalizat    1.2807        .21548        .50470E-01   -.84143    
  34  Prefactor     .53490        .20997        .76583E-01   -1.1040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01986e-06
Minuit parameter uncertainties:
  1  15.7643
  2  23.6763
  3  45.9253
  4  0.000705733
  5  7.56154
  6  0.000639232
  7  2.31751e-05
  8  3.8061e-05
  9  2.9548e-06
  10  27.5147
  11  6.2649
  12  0.000422398
  13  10.5209
  14  0.00176402
  15  6.09255
  16  40.5075
  17  18.9101
  18  8.88872
  19  2.93055e-05
  20  2.39657e-05
  21  2.95353e-05
  22  0.0104301
  23  5.19526
  24  17.0485
  25  2.34815
  26  6.21694
  27  20.6925
  28  2.83731e-05
  29  22.4913
  30  26.9462
  31  1.59657e-05
  32  5.95587
  33  0.215628
  34  0.210274
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  2.954e-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:  5.349e-01  2.103e-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.281e+00  2.156e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/871375/likelihoodResults_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.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) = 5031.05863758
delta logL = -0.00131249429342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5031.05732499
delta logL = 9.06384229893e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0914       1.0000          .0000       10.000    
     3 'Normalizat'    1.2808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53491       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=   5031.057     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    34.042        .13184E-02** at limit **
   2  Index         2.0623        8.2252        .50000        .28114E-04
   3  Normalizat    1.2807        .14726E-01    .22313E-03    .13910E-04
   4  Prefactor     .53490        .15097E-01    .33914E-03    .83135E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100379
  Index      = 2.06231
  Normalizat = 1.28075
  Prefactor  = 0.534905
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.057     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    149.99        .26368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0623        6.0308        .50000       -.62801    
   3  Normalizat    1.2807        .32120E-01    .89252E-05   -.84143    
   4  Prefactor     .53490        .32927E-01    .13565E-04   -1.1040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72538e-08
Minuit parameter uncertainties:
  1  0.0151214
  2  308.805
  3  0.032121
  4  0.0329284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/871375': 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) = 5031.05732481
delta logL = 2.73547811958e-07

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.004e-04  1.512e-02  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  2.062e+00  3.088e+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:  5.349e-01  3.293e-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.281e+00  3.212e-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/871375/cmap_HighResolution_301795201_302054401_4FGL_J2325.4-4800_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-29 18:06:28.053895', job_id='871375', GAL2='0.53', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632963988.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='241' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:06:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 871375: <4FGL_J2325.4-4800_daily_bin241> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 17:50:43 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:50:45 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:50:45 2021
Terminated at Wed Sep 29 18:06:28 2021
Results reported at Wed Sep 29 18:06:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin241 351.35 -48.0022 301795201 302054401 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 :                                   787.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

