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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin243
RA = 351.35, Dec = -48.0022
tmin = 302313601, tmax = 302572801
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='871378', job_status='RUN', time_executed='2021-09-29 17:52:57.145601', time_epoch_executed='1632963177.15' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/871378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/871378/ft1_4FGL_J2325.4-4800_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/871378/ft1_4FGL_J2325.4-4800_daily_bin243.fits outfile=/scratch/kocevski/871378/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin243.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=302313601.0 tmax=302572801.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.50
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/871378/ft1_filtered_4FGL_J2325.4-4800_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/871378/ltcube_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.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/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/871378/ft1_filtered_4FGL_J2325.4-4800_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/871378/ltcube_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.fits outfile=/scratch/kocevski/871378/expmap_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.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/871378/ltcube_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.fits
.....................!
real 191.53
user 186.41
sys 4.76

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/871378/ft1_filtered_4FGL_J2325.4-4800_daily_bin243.fits scfile=/scratch/kocevski/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits outfile=/scratch/kocevski/871378/cmap_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.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/871378/ft1_filtered_4FGL_J2325.4-4800_daily_bin243.fits scfile=/scratch/kocevski/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits outfile=/scratch/kocevski/871378/cmap_HighResolution_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.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/871378/ft1_filtered_4FGL_J2325.4-4800_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/871378/ft2_4FGL_J2325.4-4800_daily_bin243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/871378/Model_4FGL_J2325.4-4800_daily_bin243.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/871378/ft1_filtered_4FGL_J2325.4-4800_daily_bin243.fits....................!
real 39.50
user 37.51
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.240       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.047       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.2248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6939       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4659       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6816       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17957E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9101       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.617       1.0000         .10000E-03   10000.    
    25 'norm      '    11.861       1.0000         .10000E-03   10000.    
    26 'norm      '    14.702       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    14.738       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.3407       1.0000         .10000E-03   10000.    
    32 'Prefactor '    11.004       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4781       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .56098       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=   4746.189     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4758 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.649       -.58566E-06** at limit **
   2  Prefactor     37.258        33.683       -.13138E-05    .62142E-04
   3  Prefactor     .10000E-03    12.869       -.17650E-06** at limit **
   4  Prefactor     1.0828        12.057        .16179E-04   -.12132E-03
   5  Prefactor     7.2912        8.9220        .71444E-07   -.13597E-03
   6  Prefactor     46.033        43.137        .13397E-05   -.16071E-03
   7  Prefactor     .10000E-03    11.040        .77463E-06** at limit **
   8  norm          6.2248        6.6202        .34899E-07   -.46140E-05
   9  Prefactor     .10000E-03    3.3337        .19000E-06** at limit **
  10  Prefactor     .10000E-03    21.376        .69017E-06** at limit **
  11  Prefactor     3.6925        5.2642        .80196E-07    .86554E-04
  12  Prefactor     .10000E-03    11.284        .38884E-06** at limit **
  13  Prefactor     4.4663        12.381        .20545E-05   -.20562E-04
  14  Prefactor     .10000E-03    31.757       -.51969E-06** at limit **
  15  Prefactor     .10000E-03    2.8929        .44490E-07** at limit **
  16  Prefactor     .10000E-03    13.184       -.34572E-06** at limit **
  17  Prefactor     .10000E-03    15.492        .92271E-06** at limit **
  18  norm          .10000E-03    8.6157       -.39363E-07** at limit **
  19  norm          .10000E-03    3.0434        .92581E-07** at limit **
  20  norm          2.6819        8.9058       -.70225E-07   -.17795E-03
  21  Prefactor     .10000E-03    13.833       -.71979E-05** at limit **
  22  Prefactor     .10000E-03    26.652       -.62706E-06** at limit **
  23  norm          1.9111        7.8768        .92025E-06   -.12347E-03
  24  Prefactor     22.571        20.260       -.69470E-06    .78744E-04
  25  norm          11.858        2.7028       -.32033E-06   -.94687E-03
  26  norm          14.702        6.9126        .53653E-07   -.23855E-03
  27  Prefactor     .10000E-03    17.550        .12355E-05** at limit **
  28  Prefactor     .10000E-03    2.8790        .20678E-05** at limit **
  29  Prefactor     .10000E-03    13.188       -.10863E-06** at limit **
  30  norm          14.721        29.696        .44960E-06   -.36401E-03
  31  Prefactor     4.3439        10.004       -.48484E-07   -.11538E-02
  32  Prefactor     11.001        7.9214        .26169E-06   -.31642E-03
  33  Normalizat    1.4782        .24011       -.17210E-05   -.82509E-03
  34  Prefactor     .56088        .23469       -.15899E-05   -.44188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.2577
  Prefactor  = 0.0001
  Prefactor  = 1.08276
  Prefactor  = 7.29121
  Prefactor  = 46.0326
  Prefactor  = 0.0001
  norm       = 6.22481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.69247
  Prefactor  = 0.0001
  Prefactor  = 4.4663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.68185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91114
  Prefactor  = 22.5713
  norm       = 11.8581
  norm       = 14.7019
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 14.7208
  Prefactor  = 4.34395
  Prefactor  = 11.0009
  Normalizat = 1.47819
  Prefactor  = 0.560876
 **********
 **   18 **HESSE 
 **********

 FCN=   4746.189     FROM HESSE     STATUS=OK           724 CALLS     5482 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.258        33.614        .65676E-04   -1.4486    
   3  Prefactor     .10000E-03    12.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0828        13.012        .23094E-02   -1.5500    
   5  Prefactor     7.2912        8.9154        .14854E-03   -1.5168    
   6  Prefactor     46.033        43.129        .59087E-04   -1.4350    
   7  Prefactor     .10000E-03    11.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.2248        6.6213        .16090E-03   -1.5209    
   9  Prefactor     .10000E-03    3.3896        .12280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6925        5.2592        .18145E-03   -1.5324    
  12  Prefactor     .10000E-03    11.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4663        12.376        .95269E-03   -1.5285    
  14  Prefactor     .10000E-03    31.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8959        .11444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0447        .11738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6819        8.4500        .24883E-03   -1.5380    
  21  Prefactor     .10000E-03    41.195        .39721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9111        7.3283        .27936E-03   -1.5431    
  24  Prefactor     22.571        20.862        .84224E-04   -1.4757    
  25  norm          11.858        2.7158        .49964E-04   -1.5019    
  26  norm          14.702        6.8486        .10446E-03   -1.4941    
  27  Prefactor     .10000E-03    17.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.568        .21635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          14.721        29.922        .10433E-03   -1.4940    
  31  Prefactor     4.3439        9.9904        .96669E-03   -1.5291    
  32  Prefactor     11.001        7.9437        .12077E-03   -1.5044    
  33  Normalizat    1.4782        .28944        .23234E-03   -.78393    
  34  Prefactor     .56088        .27741        .36302E-03   -1.0926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58299e-09
Minuit parameter uncertainties:
  1  0.000169866
  2  33.6307
  3  0.000156968
  4  7.50885
  5  8.91698
  6  43.1586
  7  6.5998e-05
  8  6.6221
  9  3.0594e-05
  10  0.000160871
  11  5.25987
  12  1.13023e-05
  13  12.3831
  14  0.000197962
  15  5.17475e-06
  16  0.000108378
  17  0.000214011
  18  8.06778e-06
  19  1.48252e-05
  20  8.45378
  21  3.78171e-05
  22  8.1454e-05
  23  7.33177
  24  20.8689
  25  2.71581
  26  6.84897
  27  2.94493e-05
  28  0.00020453
  29  0.00017038
  30  29.9525
  31  9.99424
  32  7.9445
  33  0.289764
  34  0.278083
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  3.782e-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.609e-01  2.781e-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.478e+00  2.898e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/871378/likelihoodResults_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.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) = 4746.18916976
delta logL = -0.000115209692922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4746.18916967
delta logL = -0.000115115840345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96331E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1057       1.0000          .0000       10.000    
     3 'Normalizat'    1.4782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56088       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=   4745.484     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      286 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59645        8.9743        .90715E-02    .11098E-02
   2  Index         3.6602        2.4044        .80698E-01    .17706E-03
   3  Normalizat    1.3889        .53070E-01    .53658E-01   -.21901E-04
   4  Prefactor     .61461        .53917E-01    .78394E-01    .54217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.596446
  Index      = 3.6602
  Normalizat = 1.38887
  Prefactor  = 0.61461
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.484     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      317 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59645        23.486        .45846E-04   -1.5554    
   2  Index         3.6602        6.7399        .39972E-02   -.27128    
   3  Normalizat    1.3889        .24300        .23725E-03   -.80951    
   4  Prefactor     .61461        .24280        .17358E-02   -1.0697    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.42683e-10
Minuit parameter uncertainties:
  1  7.48797
  2  4.96199
  3  0.243199
  4  0.243214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/871378': 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) = 4745.48383158
delta logL = 0.705222970164

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  6.146e-01  2.432e-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.389e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 351.350 -48.002
Photon Index (Free Index): 3.66 +/- 4.96
Photon Flux (Free Index): 1.02e-07 +/- 9.15e-08
Energy Flux (Free Index): 1.62e-05 +/- 2.15e-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/871378/cmap_HighResolution_302313601_302572801_4FGL_J2325.4-4800_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='7.05e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-29 18:06:23.402569', photon_index_error2='4.96', photon_index2='3.66', ts='-0.00', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.15e-05', EG='1.48', time_epoch_completed='1632963983.4', return_code='0', job_id='871378', GAL2='0.61', EG2='1.39', return_code2='102', photon_flux_error2='9.15e-08', ts2='1.47', photon_index='2.11' WHERE bin_id='243' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:06:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 871378: <4FGL_J2325.4-4800_daily_bin243> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin243> 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) <bullet0075>, 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:24 2021
Results reported at Wed Sep 29 18:06:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin243 351.35 -48.0022 302313601 302572801 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 :                                   801.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

