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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin772
RA = 351.35, Dec = -48.0022
tmin = 439430401, tmax = 439689601
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='874291', job_status='RUN', time_executed='2021-09-29 18:00:54.953381', time_epoch_executed='1632963654.95' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874291

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874291/ft1_4FGL_J2325.4-4800_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874291/ft2_4FGL_J2325.4-4800_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874291/ft1_4FGL_J2325.4-4800_daily_bin772.fits outfile=/scratch/kocevski/874291/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin772.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=439430401.0 tmax=439689601.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.92
user 4.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874291/ft1_filtered_4FGL_J2325.4-4800_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/874291/ft2_4FGL_J2325.4-4800_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/874291/ltcube_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.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/874291/ft2_4FGL_J2325.4-4800_daily_bin772.fits
.....................!
real 11.49
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874291/ft1_filtered_4FGL_J2325.4-4800_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/874291/ft2_4FGL_J2325.4-4800_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/874291/ltcube_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.fits outfile=/scratch/kocevski/874291/expmap_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.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/874291/ltcube_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.fits
.....................!
real 189.71
user 185.11
sys 4.27

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/874291/ft1_filtered_4FGL_J2325.4-4800_daily_bin772.fits scfile=/scratch/kocevski/874291/ft2_4FGL_J2325.4-4800_daily_bin772.fits outfile=/scratch/kocevski/874291/cmap_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/874291/ft1_filtered_4FGL_J2325.4-4800_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/874291/ft2_4FGL_J2325.4-4800_daily_bin772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/874291/Model_4FGL_J2325.4-4800_daily_bin772.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/874291/ft1_filtered_4FGL_J2325.4-4800_daily_bin772.fits.....................!
real 42.30
user 41.11
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72274E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .59356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99263       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16460       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.7713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.862       1.0000         .10000E-03   10000.    
    23 'norm      '    .13704E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.9633       1.0000         .10000E-03   10000.    
    26 'norm      '    3.0432       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0307       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89266       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=   5680.854     FROM MIGRAD    STATUS=CONVERGED    931 CALLS     4834 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.870       -.45822E-06** at limit **
   2  Prefactor     .10000E-03    9.8824        .48434E-07** at limit **
   3  Prefactor     .10000E-03    23.989        .38128E-08** at limit **
   4  Prefactor     .10000E-03    6.3531        .34803E-06** at limit **
   5  Prefactor     .59296        6.0856        .35748E-05    .21593E-04
   6  Prefactor     9.3135        32.424        .10188E-05    .65340E-04
   7  Prefactor     .10000E-03    4.7358        .50341E-07** at limit **
   8  norm          .10000E-03    2.8244       -.40558E-07** at limit **
   9  Prefactor     .99255        3.4035        .13800E-05    .88749E-05
  10  Prefactor     .10000E-03    19.257        .36281E-06** at limit **
  11  Prefactor     .10000E-03    3.2246       -.32763E-06** at limit **
  12  Prefactor     12.807        21.202       -.30281E-06   -.14835E-03
  13  Prefactor     .10000E-03    2.8300       -.40357E-06** at limit **
  14  Prefactor     6.0511        118.69       -.14282E-05   -.39691E-04
  15  Prefactor     .10000E-03    4.2123       -.77860E-07** at limit **
  16  Prefactor     25.684        22.440       -.63729E-07   -.52034E-04
  17  Prefactor     .25627        15.893        .17406E-05   -.28505E-03
  18  norm          .10000E-03    6.3031       -.48884E-07** at limit **
  19  norm          .10000E-03    3.1596        .25408E-07** at limit **
  20  norm          8.7719        5.6166       -.17277E-07   -.32635E-05
  21  Prefactor     .10000E-03    2.4416        .20952E-08** at limit **
  22  Prefactor     31.835        39.811        .21048E-06   -.36486E-05
  23  norm          .10000E-03    2.9030        .14163E-06** at limit **
  24  Prefactor     .10000E-03    5.5794        .31943E-07** at limit **
  25  norm          7.9614        1.9079        .11259E-08   -.11518E-02
  26  norm          3.0455        3.5915        .13978E-06    .11064E-03
  27  Prefactor     .10000E-03    32.532        .95148E-06** at limit **
  28  Prefactor     .10000E-03    2.6193        .33623E-07** at limit **
  29  Prefactor     .10000E-03    17.046       -.27706E-06** at limit **
  30  norm          .10000E-03    6.5480        .40942E-07** at limit **
  31  Prefactor     .10000E-03    3.8782        .10705E-06** at limit **
  32  Prefactor     .10000E-03    1.3810        .37015E-07** at limit **
  33  Normalizat    1.0301        .18536       -.59651E-07   -.28074E-03
  34  Prefactor     .89333        .18949       -.69078E-06   -.19043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.59296
  Prefactor  = 9.31353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.992553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.807
  Prefactor  = 0.0001
  Prefactor  = 6.05105
  Prefactor  = 0.0001
  Prefactor  = 25.6838
  Prefactor  = 0.256265
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.7719
  Prefactor  = 0.0001
  Prefactor  = 31.8351
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.96137
  norm       = 3.04545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03011
  Prefactor  = 0.893333
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.854     FROM HESSE     STATUS=OK           728 CALLS     5562 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.093        .36827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59296        6.1031        .36121E-03   -1.5554    
   6  Prefactor     9.3135        32.440        .13091E-03   -1.5098    
   7  Prefactor     .10000E-03    4.7649        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8427        .12370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .99255        3.4300        .24265E-03   -1.5509    
  10  Prefactor     .10000E-03    19.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2904        .13199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.807        21.273        .11197E-03   -1.4992    
  13  Prefactor     .10000E-03    2.8273        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0511        118.99        .16293E-03   -1.5216    
  15  Prefactor     .10000E-03    4.2633        .15104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.684        22.439        .79040E-04   -1.4694    
  17  Prefactor     .25627        21.627        .75867E-01   -1.5607    
  18  norm          .10000E-03    6.3255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1735        .13082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.7719        5.6164        .13534E-03   -1.5116    
  21  Prefactor     .10000E-03    2.4525        .11498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.835        39.993        .70986E-04   -1.4579    
  23  norm          .10000E-03    2.9193        .12487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5942        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.9614        1.9302        .45913E-04   -1.5144    
  26  norm          3.0455        3.5761        .14632E-03   -1.5359    
  27  Prefactor     .10000E-03    33.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.6742        .11895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    6.5488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.9902        .28957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    1.3881        .86481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0301        .22431        .22606E-03   -.92028    
  34  Prefactor     .89333        .22806        .25918E-03   -.96374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54499e-10
Minuit parameter uncertainties:
  1  0.000283342
  2  5.92608e-06
  3  3.63422e-08
  4  0.000621217
  5  3.80486
  6  32.501
  7  2.78902e-06
  8  9.47497e-07
  9  3.43064
  10  0.000167235
  11  8.30808e-06
  12  21.2851
  13  2.36542e-06
  14  53.7893
  15  1.31897e-05
  16  22.4465
  17  4.70919
  18  1.42259e-05
  19  3.34714e-06
  20  5.61674
  21  1.27367e-06
  22  40.027
  23  2.53342e-06
  24  3.70088e-06
  25  1.93018
  26  3.57631
  27  0.000240998
  28  7.96944e-07
  29  0.000116978
  30  9.35965e-06
  31  5.89017e-06
  32  4.21002e-07
  33  0.224513
  34  0.228299
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.933e-01  2.283e-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.030e+00  2.245e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874291/likelihoodResults_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.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) = 5680.85610012
delta logL = -0.00192964764483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5680.85417044
delta logL = 3.25862856698e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89336       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=   5680.854     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      219 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5911        .11605E-01** at limit **
   2  Index         1.6754        9.1618        .50000        .42721E-06
   3  Normalizat    1.0301        .46712E-02    .22606E-03    .13453E-03
   4  Prefactor     .89333        .50491E-02    .12959E-02    .12375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.67537
  Normalizat = 1.03011
  Prefactor  = 0.893332
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.854     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      248 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    504.71        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6754        5.7591        .50000       -.72739    
   3  Normalizat    1.0301        .80967E-01    .90425E-05   -.92028    
   4  Prefactor     .89333        .86972E-01    .51836E-04   -.96374    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29886e-08
Minuit parameter uncertainties:
  1  0.000529646
  2  2139.39
  3  0.080977
  4  0.0869853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874291': 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) = 5680.85416764
delta logL = 2.83780445898e-06

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  5.296e-04  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  1.675e+00  2.139e+03  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:  8.933e-01  8.699e-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.030e+00  8.098e-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/874291/cmap_HighResolution_439430401_439689601_4FGL_J2325.4-4800_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-29 18:16:00.375342', job_id='874291', GAL2='0.89', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632964560.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='772' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 874291: <4FGL_J2325.4-4800_daily_bin772> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin772> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:00:35 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:00:37 2021
Terminated at Wed Sep 29 18:16:01 2021
Results reported at Wed Sep 29 18:16:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin772 351.35 -48.0022 439430401 439689601 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 :                                   900.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

