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


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1277
RA = 351.35, Dec = -48.0022
tmin = 570326401, tmax = 570585601
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='877419', job_status='RUN', time_executed='2021-09-29 18:11:21.387524', time_epoch_executed='1632964281.39' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877419/ft1_4FGL_J2325.4-4800_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877419/ft2_4FGL_J2325.4-4800_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877419/ft1_4FGL_J2325.4-4800_daily_bin1277.fits outfile=/scratch/kocevski/877419/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1277.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=570326401.0 tmax=570585601.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.47
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877419/ft1_filtered_4FGL_J2325.4-4800_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/877419/ft2_4FGL_J2325.4-4800_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/877419/ltcube_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.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/877419/ft2_4FGL_J2325.4-4800_daily_bin1277.fits
.....................!
real 15.39
user 15.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877419/ft1_filtered_4FGL_J2325.4-4800_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/877419/ft2_4FGL_J2325.4-4800_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/877419/ltcube_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.fits outfile=/scratch/kocevski/877419/expmap_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.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/877419/ltcube_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.fits
.....................!
real 191.98
user 187.05
sys 4.31

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/877419/ft1_filtered_4FGL_J2325.4-4800_daily_bin1277.fits scfile=/scratch/kocevski/877419/ft2_4FGL_J2325.4-4800_daily_bin1277.fits outfile=/scratch/kocevski/877419/cmap_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.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.54
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877419/ft1_filtered_4FGL_J2325.4-4800_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/877419/ft2_4FGL_J2325.4-4800_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877419/Model_4FGL_J2325.4-4800_daily_bin1277.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/877419/ft1_filtered_4FGL_J2325.4-4800_daily_bin1277.fits...!
real 13.66
user 12.40
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17679E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12635E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9999.4       1.0000         .10000E-03   10000.    
    11 'Prefactor '    327.71       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12422E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15538E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10436       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '    .99453E-03   1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10134E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17125E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    37.528       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26636E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17537E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .13521E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .28762E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .20619E-09   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=   28.65361     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     6296 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    180.53       -.92035E-04** at limit **
   2  Prefactor     .10000E-03    102.37       -.79721E-04** at limit **
   3  Prefactor     .10000E-03    177.55       -.79040E-04** at limit **
   4  Prefactor     .10000E-03    333.86        .43666E-04** at limit **
   5  Prefactor     .10000E-03    38.475       -.44132E-06** at limit **
   6  Prefactor     .10000E-03    86.310        .19512E-04** at limit **
   7  Prefactor     .10000E-03    20.905       -.33850E-06** at limit **
   8  norm          .10000E-03    108.73       -.13621E-04** at limit **
   9  Prefactor     .10000E-03    1167.6        .54765E-05** at limit **
  10  Prefactor    10000.0        7644.9        .15361E-01** at limit **
  11  Prefactor     327.40        424.78       -.16468E-03    .50778E-05
  12  Prefactor     .10001E-03    496.35        .34998E-03** at limit **
  13  Prefactor     .10000E-03    148.12        .67205E-04** at limit **
  14  Prefactor     .10000E-03    2265.0       -.70121E-03** at limit **
  15  Prefactor    10000.0        8622.7        .35738E-03** at limit **
  16  Prefactor     .10002E-03    7901.9       -.46985E-02** at limit **
  17  Prefactor    10000.0        9562.0        .54879E-03** at limit **
  18  norm          .10000E-03    7356.3       -.35754E-03** at limit **
  19  norm         10000.0        9505.3        .34489E-02** at limit **
  20  norm          .10000E-03    143.65        .84726E-04** at limit **
  21  Prefactor     .10000E-03    7302.3       -.13505E-02** at limit **
  22  Prefactor     .10000E-03    1011.6        .13946E-03** at limit **
  23  norm          37.478        74.348        .27761E-05   -.18059E-04
  24  Prefactor     .10000E-03    1271.0        .28526E-04** at limit **
  25  norm          .10000E-03    6593.8       -.10261E-02** at limit **
  26  norm          .10000E-03    36.695       -.39638E-06** at limit **
  27  Prefactor    10000.0        7847.3        .69693E-03** at limit **
  28  Prefactor     .10000E-03    115.73        .49732E-04** at limit **
  29  Prefactor     .10000E-03    277.44       -.11037E-03** at limit **
  30  norm          .10000E-03    906.46        .22848E-03** at limit **
  31  Prefactor     .10000E-03    190.44        .14536E-04** at limit **
  32  Prefactor     .10000E-03    17.564       -.35449E-06** at limit **
  33  Normalizat    .10000E-01    .19830        .24392E-06** at limit **
  34  Prefactor     .17369E-11    .21875        .14241E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 10000
  Prefactor  = 327.404
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100021
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.4784
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.73694e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   28.65361     FROM HESSE     STATUS=OK           698 CALLS     6994 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    180.52        .71061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    102.37        .53442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    177.55        .70469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    333.86        .96889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.483        .32728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    86.309        .49057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.905        .24117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    108.75        .55080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1167.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        7641.3        .23469E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     327.40        424.72        .11234E-03   -1.2069    
  12  Prefactor     .10001E-03    496.76        .11849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    148.14        .64334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2265.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        8622.4        .21015E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    7901.5        .19064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9561.6        .20663E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7356.3        .20766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        9505.6        .18379E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    143.64        .63346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7302.4        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1011.6        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          37.478        74.330        .64302E-04   -1.4483    
  24  Prefactor     .10000E-03    1271.0        .19221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6594.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    36.695        .31959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        7847.3        .19979E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    115.74        .56835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    277.44        .88239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    906.45        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    190.45        .72998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    17.564        .22105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .19831        .74535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .17369E-11    .21875        .78272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70648e-11
Minuit parameter uncertainties:
  1  1.33566e-06
  2  4.31753e-06
  3  1.82665e-05
  4  6.11213e-05
  5  2.14918e-05
  6  7.96394e-07
  7  4.49806e-06
  8  0.000859339
  9  0.00435756
  10  0.21221
  11  428.858
  12  0.00419061
  13  0.000592016
  14  0.00158121
  15  0.0045814
  16  0.0251426
  17  0.0128402
  18  0.000267677
  19  0.00168476
  20  5.95805e-05
  21  0.00193074
  22  0.000665506
  23  74.5144
  24  8.31051e-05
  25  0.00722589
  26  2.00511e-05
  27  0.000939299
  28  1.98597e-05
  29  9.81291e-06
  30  3.03299e-05
  31  6.19062e-05
  32  7.50313e-07
  33  1.13037e-06
  34  1.23731e-06
Done.

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

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  1.931e-03  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:  1.737e-12  1.237e-06  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.000e-02  1.130e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.05052570886

TS (Fixed Index): -0.00
Ra Dec: 351.350 -48.002
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.56e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877419/likelihoodResults_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.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): 0
logL (Free Index) = 28.6536103248
delta logL = -8.01046411425e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28.6536103248
delta logL = -8.01022324026e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.5779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28.65361     FROM MIGRAD    STATUS=CONVERGED     17 CALLS       77 TOTAL
                     EDM=   .36E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.5779        5.8005         .0000       -.35616E-10
                               ERR DEF=  .500    
Final values: 
  Index      = 1.57792
 **********
 **   18 **HESSE 
 **********

 FCN=   28.65361     FROM HESSE     STATUS=OK            11 CALLS       88 TOTAL
                     EDM=   .72E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.5779        5.8005        .50000       -.75380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22899e-15
Minuit parameter uncertainties:
  1  8702.55
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877419': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28.6536103248
delta logL = -8.01022324026e-08

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  1.000e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
440        Index:  1.578e+00  8.703e+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.695e-12  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/877419/cmap_HighResolution_570326401_570585601_4FGL_J2325.4-4800_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.56e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-29 18:17:09.614672', job_id='877419', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632964629.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-8.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1277' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 877419: <4FGL_J2325.4-4800_daily_bin1277> in cluster <slac> Done

Job <4FGL_J2325.4-4800_daily_bin1277> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:10:36 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:10:39 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:10:39 2021
Terminated at Wed Sep 29 18:17:10 2021
Results reported at Wed Sep 29 18:17:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.4-4800_daily_bin1277 351.35 -48.0022 570326401 570585601 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 :                                   338.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   390 sec.
    Turnaround time :                            394 sec.

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

