/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 83 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_J2230.9-7815_daily_bin1277
RA = 337.728, Dec = -78.2594
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='326820', job_status='RUN', time_executed='2021-09-28 12:51:48.078504', time_epoch_executed='1632858708.08' WHERE source_name='4FGL J2230.9-7815' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326820

Creating custom pfile directory:
/scratch/kocevski/326820/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/326820/ft1_4FGL_J2230.9-7815_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/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326820/ft1_4FGL_J2230.9-7815_daily_bin1277.fits outfile=/scratch/kocevski/326820/ft1_filteredMKT_4FGL_J2230.9-7815_daily_bin1277.fits ra=337.728 dec=-78.2594 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.48
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_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/326820/ft1_filteredMKT_4FGL_J2230.9-7815_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/326820/ltcube_570326401_570585601_4FGL_J2230.9-7815_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/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits
.....................!
real 11.87
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/326820/ltcube_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.fits outfile=/scratch/kocevski/326820/expmap_570326401_570585601_4FGL_J2230.9-7815_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/326820/ltcube_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.fits
.....................!
real 191.14
user 185.57
sys 4.94

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 169 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2230.9-7815 @ 337.728 -78.2594

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits scfile=/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits outfile=/scratch/kocevski/326820/cmap_570326401_570585601_4FGL_J2230.9-7815_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=337.728 yref=-78.2594 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits scfile=/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits outfile=/scratch/kocevski/326820/cmap_HighResolution_570326401_570585601_4FGL_J2230.9-7815_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=337.728 yref=-78.2594 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/326820/Model_4FGL_J2230.9-7815_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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits.....................!
real 409.97
user 407.84
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits', '/scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits', expMap='/scratch/kocevski/326820/expmap_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.fits', expCube='/scratch/kocevski/326820/ltcube_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/326820/Model_4FGL_J2230.9-7815_daily_bin1277.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2230.9-7815'

4FGL J2230.9-7815
   Spectrum: PowerLaw
493    Prefactor:  2.493e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
494        Index:  2.296e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
495        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/326820/ft1_filtered_4FGL_J2230.9-7815_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/326820/ft2_4FGL_J2230.9-7815_daily_bin1277.fits
Exposure map: /scratch/kocevski/326820/expmap_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.fits
Exposure cube: /scratch/kocevski/326820/ltcube_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/326820/Model_4FGL_J2230.9-7815_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) = 1470.92177028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    27.135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.8357       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.593       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23914E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    2.0293       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1470.911     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1871 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8205        .17045E-06** at limit **
   2  Prefactor     .10000E-03    24.857       -.55705E-06** at limit **
   3  Prefactor     .10000E-03    47.655        .15716E-04** at limit **
   4  Prefactor     .10000E-03    27.354       -.99774E-05** at limit **
   5  norm          27.135        23.164       -.34322E-07   -.32149E-04
   6  Prefactor     .10000E-03    36.085       -.44391E-05** at limit **
   7  norm          .10000E-03    630.82        .11204E-03** at limit **
   8  norm          .10000E-03    28.314        .10205E-04** at limit **
   9  Prefactor     .10000E-03    213.97        .39674E-04** at limit **
  10  norm          .10000E-03    3.7514       -.14905E-06** at limit **
  11  norm          8.8361        11.942       -.10450E-05   -.63464E-03
  12  Prefactor     26.592        27.157       -.18410E-06   -.13427E-04
  13  Prefactor     .10000E-03    60.517       -.42050E-04** at limit **
  14  Prefactor     .10000E-03    1628.1       -.79475E-03** at limit **
  15  Prefactor     16.621        26.126        .54124E-06    .63862E-04
  16  Prefactor     .10000E-03    77.348        .55203E-04** at limit **
  17  Prefactor     .10000E-03    117.20       -.51324E-04** at limit **
  18  Normalizat    2.0296        .54312       -.15407E-05    .26861E-04
  19  Prefactor     .79640        .23882        .17460E-05   -.41483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.1349
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.8361
  Prefactor  = 26.5917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.02959
  Prefactor  = 0.796399
 **********
 **   18 **HESSE 
 **********

 FCN=   1470.911     FROM HESSE     STATUS=OK           256 CALLS     2127 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8240        .97839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          27.135        23.250        .76906E-04   -1.4666    
   6  Prefactor     .10000E-03    36.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    632.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    214.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.8095        .72512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8361        11.951        .67422E-03   -1.5113    
  12  Prefactor     26.592        27.157        .77684E-04   -1.4676    
  13  Prefactor     .10000E-03    60.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1627.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.621        26.165        .98245E-04   -1.4892    
  16  Prefactor     .10000E-03    77.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    117.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    2.0296        .62041        .31808E-03   -.63811    
  19  Prefactor     .79640        .27296        .20433E-03   -.99861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14453e-10
Minuit parameter uncertainties:
  1  7.26176e-07
  2  6.64729e-07
  3  6.17271e-06
  4  0.000104749
  5  23.2577
  6  1.43131e-06
  7  0.00130487
  8  3.82254e-07
  9  0.000165875
  10  5.9326e-06
  11  11.9545
  12  27.1696
  13  1.71242e-05
  14  1.94766e-05
  15  26.1828
  16  3.42188e-06
  17  1.70958e-05
  18  0.622906
  19  0.273428
Done.

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

Extracting fit parameters...

4FGL J2230.9-7815
   Spectrum: PowerLaw
493    Prefactor:  2.659e+01  2.717e+01  1.000e-04  1.000e+04 ( 1.000e-13)
494        Index:  2.296e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
495        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  7.964e-01  2.734e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  2.030e+00  6.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 337.728 -78.259
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 9.05e-08 +/- 9.24e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 3.52e-05

TS (Fixed Index): 2.38
Ra Dec: 337.728 -78.259
Photon Flux Upper Limit: 3.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/326820/likelihoodResults_570326401_570585601_4FGL_J2230.9-7815_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) = 1470.76594287
delta logL = 0.145263289408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1470.76584459
delta logL = 0.145361572105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.751       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8923       1.0000          .0000       10.000    
     3 'Normalizat'    2.0438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1470.766     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.847        2130.9        .15510E-02   -.28640E-04
   2  Index         1.8938        5.7434        .13300       -.18647E-04
   3  Normalizat    2.0440        .49435        .71728E-01    .73324E-04
   4  Prefactor     .79324        .18060        .43631E-01    .13564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8472
  Index      = 1.89382
  Normalizat = 2.04399
  Prefactor  = 0.793244
 **********
 **   18 **HESSE 
 **********

 FCN=   1470.766     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.847        47.979        .62039E-04   -1.4413    
   2  Index         1.8938        .70046        .54033E-02   -.67032    
   3  Normalizat    2.0440        .61315        .31726E-03   -.63453    
   4  Prefactor     .79324        .26641        .20465E-03   -.99978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42509e-11
Minuit parameter uncertainties:
  1  48.0237
  2  0.704249
  3  0.615552
  4  0.266843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326820': 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) = 1470.76583614
delta logL = 0.145370019269

Extracting fit parameters...

4FGL J2230.9-7815
   Spectrum: PowerLaw
493    Prefactor:  4.185e+01  4.802e+01  1.000e-04  1.000e+04 ( 1.000e-13)
494        Index:  1.894e+00  7.042e-01  0.000e+00  1.000e+01 (-1.000e+00)
495        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  7.932e-01  2.668e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  2.044e+00  6.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 337.728 -78.259
Photon Index (Free Index): 1.89 +/- 0.70
Photon Flux (Free Index): 7.09e-08 +/- 8.12e-08
Energy Flux (Free Index): 6.47e-05 +/- 1.12e-04

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/326820/cmap_HighResolution_570326401_570585601_4FGL_J2230.9-7815_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', comment='SUCCESS', photon_flux='9.05e-08', energy_flux2='6.47e-05', photon_flux_error='9.24e-08', dlogl='1.45e-01', energy_flux='3.45e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-28 13:04:44.365105', photon_index_error2='0.70', photon_index2='1.89', ts='2.38', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.67e-07', energy_flux_error2='1.12e-04', EG='2.03', time_epoch_completed='1632859484.37', return_code='0', job_id='326820', GAL2='0.79', EG2='2.04', return_code2='0', energy_flux_error='3.52e-05', photon_flux_error2='8.12e-08', ts2='2.68', photon_index='2.30' WHERE bin_id='1277' AND source_name='4FGL J2230.9-7815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:04:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 326820: <4FGL_J2230.9-7815_daily_bin1277> in cluster <slac> Done

Job <4FGL_J2230.9-7815_daily_bin1277> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 12:50:12 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:50:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 12:50:15 2021
Terminated at Tue Sep 28 13:04:45 2021
Results reported at Tue Sep 28 13:04:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2230.9-7815_daily_bin1277 337.728 -78.2594 570326401 570585601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2230.9-7815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             420.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            873 sec.

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

