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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin777
RA = 351.35, Dec = -48.0022
tmin = 440726401, tmax = 440985601
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='874298', job_status='RUN', time_executed='2021-09-29 18:04:07.985381', time_epoch_executed='1632963847.99' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874298/ft1_4FGL_J2325.4-4800_daily_bin777.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874298/ft2_4FGL_J2325.4-4800_daily_bin777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874298/ft1_4FGL_J2325.4-4800_daily_bin777.fits outfile=/scratch/kocevski/874298/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin777.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=440726401.0 tmax=440985601.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.86
user 3.64
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874298/ft1_filtered_4FGL_J2325.4-4800_daily_bin777.fits" evtable="EVENTS" scfile=/scratch/kocevski/874298/ft2_4FGL_J2325.4-4800_daily_bin777.fits sctable="SC_DATA" outfile=/scratch/kocevski/874298/ltcube_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.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/874298/ft2_4FGL_J2325.4-4800_daily_bin777.fits
.....................!
real 11.69
user 11.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874298/ft1_filtered_4FGL_J2325.4-4800_daily_bin777.fits evtable="EVENTS" scfile=/scratch/kocevski/874298/ft2_4FGL_J2325.4-4800_daily_bin777.fits sctable="SC_DATA" expcube=/scratch/kocevski/874298/ltcube_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.fits outfile=/scratch/kocevski/874298/expmap_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.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/874298/ltcube_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.fits
.....................!
real 192.05
user 186.73
sys 4.98

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/874298/ft1_filtered_4FGL_J2325.4-4800_daily_bin777.fits scfile=/scratch/kocevski/874298/ft2_4FGL_J2325.4-4800_daily_bin777.fits outfile=/scratch/kocevski/874298/cmap_HighResolution_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/874298/ft1_filtered_4FGL_J2325.4-4800_daily_bin777.fits evtable="EVENTS" scfile=/scratch/kocevski/874298/ft2_4FGL_J2325.4-4800_daily_bin777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/874298/Model_4FGL_J2325.4-4800_daily_bin777.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/874298/ft1_filtered_4FGL_J2325.4-4800_daily_bin777.fits.....................!
real 35.55
user 34.29
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.662       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6841       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.921       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.884       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .44759       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.851       1.0000         .10000E-03   10000.    
    23 'norm      '    11.940       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.554       1.0000         .10000E-03   10000.    
    26 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.6205       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.4606       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3783       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .56774       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=   4277.766     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4775 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    66.205       -.46830E-05** at limit **
   2  Prefactor     18.662        21.029       -.11599E-06   -.79337E-06
   3  Prefactor     .10000E-03    15.164       -.10612E-06** at limit **
   4  Prefactor     5.6841        9.2682       -.61577E-07   -.17674E-04
   5  Prefactor     4.4139        11.209        .60146E-05   -.62757E-03
   6  Prefactor     .10001E-03    36.842        .33950E-05** at limit **
   7  Prefactor     .10000E-03    11.391       -.77029E-06** at limit **
   8  norm          .10000E-03    3.2701        .42384E-07** at limit **
   9  Prefactor     2.1176        3.0425        .81105E-07   -.32859E-04
  10  Prefactor     .10000E-03    14.583        .64599E-06** at limit **
  11  Prefactor     .10000E-03    6.2473       -.79539E-06** at limit **
  12  Prefactor     .10000E-03    15.572       -.55090E-06** at limit **
  13  Prefactor     14.920        13.359        .11543E-06   -.49536E-05
  14  Prefactor     .10000E-03    62.063        .14478E-05** at limit **
  15  Prefactor     .18437        5.3176        .37352E-06   -.15811E-03
  16  Prefactor     .10001E-03    37.657        .49607E-05** at limit **
  17  Prefactor     17.884        17.695        .16194E-06   -.11278E-04
  18  norm          .10000E-03    7.8684        .42409E-06** at limit **
  19  norm          .10000E-03    5.7344        .24606E-06** at limit **
  20  norm          .44828        8.5267       -.86333E-06    .17168E-03
  21  Prefactor     .10000E-03    2.7118       -.50945E-07** at limit **
  22  Prefactor     49.834        64.306       -.54302E-05   -.18974E-03
  23  norm          11.941        10.086        .14961E-05   -.13877E-03
  24  Prefactor     .10000E-03    8.5367       -.11378E-05** at limit **
  25  norm          10.555        2.4763        .17149E-07    .82991E-04
  26  norm          .10000E-03    4.1503       -.77017E-07** at limit **
  27  Prefactor     .10000E-03    7.3697        .10044E-05** at limit **
  28  Prefactor     .10000E-03    1.6116       -.22976E-08** at limit **
  29  Prefactor     .10000E-03    13.151        .10627E-05** at limit **
  30  norm          .10001E-03    29.498       -.51899E-05** at limit **
  31  Prefactor     2.6202        5.6530       -.18146E-06   -.20491E-04
  32  Prefactor     5.4606        4.5575        .39745E-07    .11723E-04
  33  Normalizat    1.3784        .22862        .21401E-06    .60076E-05
  34  Prefactor     .56760        .22696       -.17498E-05    .46440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 18.6615
  Prefactor  = 0.0001
  Prefactor  = 5.68406
  Prefactor  = 4.41387
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.11761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9201
  Prefactor  = 0.000100001
  Prefactor  = 0.184372
  Prefactor  = 0.000100012
  Prefactor  = 17.8839
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.448275
  Prefactor  = 0.0001
  Prefactor  = 49.8341
  norm       = 11.9413
  Prefactor  = 0.000100001
  norm       = 10.5547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100012
  Prefactor  = 2.62021
  Prefactor  = 5.46059
  Normalizat = 1.37844
  Prefactor  = 0.567598
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.766     FROM HESSE     STATUS=OK           728 CALLS     5503 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    67.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.662        21.036        .92714E-04   -1.4844    
   3  Prefactor     .10000E-03    15.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6841        9.2603        .16848E-03   -1.5231    
   5  Prefactor     4.4139        12.129        .95868E-03   -1.5288    
   6  Prefactor     .10001E-03    37.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2734        .11551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1176        3.0264        .13275E-03   -1.5417    
  10  Prefactor     .10000E-03    14.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4296        .31979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.920        13.370        .10369E-03   -1.4935    
  14  Prefactor     .10000E-03    62.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .18437        25.092        .29244E-02   -1.5622    
  16  Prefactor     .10001E-03    38.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.884        17.715        .47354E-03   -1.4862    
  18  norm          .10000E-03    7.9093        .17930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.7704        .15296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .44828        26.103        .32777E-02   -1.5574    
  21  Prefactor     .10000E-03    2.7151        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     49.834        66.354        .56797E-04   -1.4295    
  23  norm          11.941        10.925        .57966E-03   -1.5017    
  24  Prefactor     .10000E-03    8.6238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.555        2.4817        .46847E-04   -1.5058    
  26  norm          .10000E-03    4.1875        .12997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.4306        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.6193        .81036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10001E-03    30.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.6202        5.6234        .21672E-03   -1.5384    
  32  Prefactor     5.4606        4.5586        .12266E-03   -1.5241    
  33  Normalizat    1.3784        .27312        .22302E-03   -.81254    
  34  Prefactor     .56760        .26691        .33812E-03   -1.0897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64907e-09
Minuit parameter uncertainties:
  1  0.00171604
  2  21.0445
  3  1.68143e-05
  4  9.26265
  5  12.1362
  6  0.000905143
  7  0.000116794
  8  3.14567e-06
  9  3.02661
  10  0.000109373
  11  8.36782e-05
  12  9.95148e-05
  13  13.3726
  14  0.000503497
  15  4.30241
  16  0.00135342
  17  17.72
  18  5.34647e-05
  19  2.5356e-05
  20  6.84386
  21  2.984e-06
  22  66.4525
  23  10.9273
  24  0.000143325
  25  2.48177
  26  1.63027e-05
  27  0.000116246
  28  6.05565e-07
  29  0.000168913
  30  0.00123352
  31  5.62458
  32  4.55887
  33  0.273412
  34  0.267505
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  2.984e-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:  5.676e-01  2.675e-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.378e+00  2.734e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874298/likelihoodResults_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.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) = 4277.76728487
delta logL = -0.00162554268081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4277.7656593
delta logL = 2.1994310373e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0845       1.0000          .0000       10.000    
     3 'Normalizat'    1.3784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56764       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4277.766     FROM MIGRAD    STATUS=FAILED        86 CALLS      239 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    45.069        .10735E-02** at limit **
   2  Index         2.0171        5.9203        .50000        .57810E-04
   3  Normalizat    1.3784        .21330E-01    .22302E-03    .42085E-04
   4  Prefactor     .56760        .21737E-01    .33812E-03    .69062E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4277.766     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      370 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    45.069        .18769E-03** at limit **
   2  Index         2.0159        5.9203        .42438E-03    .57810E-04
   3  Normalizat    1.3784        .21330E-01    .39782E-05    .42085E-04
   4  Prefactor     .56759        .21737E-01    .57360E-05    .69062E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4277.766     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      421 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.842        .21470E-02** at limit **
   2  Index         1.5866        7.6733        .50000        .48283E-06
   3  Normalizat    1.3784        .21591E-01    .44605E-04    .33720E-03
   4  Prefactor     .56760        .22003E-01    .13525E-04    .21199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58658
  Normalizat = 1.37844
  Prefactor  = 0.567597
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.766     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    248.21        .42940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5866        7.8345        .50000       -.75143    
   3  Normalizat    1.3784        .48973E-01    .89210E-05   -.81254    
   4  Prefactor     .56760        .49912E-01    .27050E-05   -1.0897    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45873e-09
Minuit parameter uncertainties:
  1  0.00045488
  2  767.992
  3  0.0489748
  4  0.0499156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874298': 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) = 4277.76565496
delta logL = 4.35987112724e-06

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  4.549e-04  1.000e-04  1.000e+04 ( 1.000e-13)
440        Index:  1.587e+00  7.680e+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.676e-01  4.992e-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.378e+00  4.897e-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/874298/cmap_HighResolution_440726401_440985601_4FGL_J2325.4-4800_daily_bin777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-29 18:16:58.628460', job_id='874298', GAL2='0.57', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632964618.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='777' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 874298: <4FGL_J2325.4-4800_daily_bin777> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:00:36 2021
Job was executed on host(s) <bullet0251>, 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:59 2021
Results reported at Wed Sep 29 18:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin777 351.35 -48.0022 440726401 440985601 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 :                                   770.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

