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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1123
RA = 354.509, Dec = -2.5106
tmin = 530409601, tmax = 530668801
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='66326', job_status='RUN', time_executed='2021-09-30 02:22:43.951981', time_epoch_executed='1632993763.95' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66326

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66326/ft1_4FGL_J2338.0-0230_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66326/ft1_4FGL_J2338.0-0230_daily_bin1123.fits outfile=/scratch/kocevski/66326/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1123.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=530409601.0 tmax=530668801.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.63
user 3.40
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.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/66326/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.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.55
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/66326/ltcube_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.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/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits
.....................!
real 14.21
user 13.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/66326/ltcube_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.fits outfile=/scratch/kocevski/66326/expmap_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.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/66326/ltcube_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.fits
.....................!
real 190.41
user 185.25
sys 4.78

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2338.0-0230 @ 354.509 -2.5106

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits scfile=/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits outfile=/scratch/kocevski/66326/cmap_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.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=354.509 yref=-2.5106 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits scfile=/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits outfile=/scratch/kocevski/66326/cmap_HighResolution_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.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=354.509 yref=-2.5106 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.58
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66326/Model_4FGL_J2338.0-0230_daily_bin1123.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/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits.....................!
real 55.49
user 54.17
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits', '/scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits', expMap='/scratch/kocevski/66326/expmap_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.fits', expCube='/scratch/kocevski/66326/ltcube_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66326/Model_4FGL_J2338.0-0230_daily_bin1123.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2338.0-0230'

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.455e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/66326/ft1_filtered_4FGL_J2338.0-0230_daily_bin1123.fits
Spacecraft file(s): /scratch/kocevski/66326/ft2_4FGL_J2338.0-0230_daily_bin1123.fits
Exposure map: /scratch/kocevski/66326/expmap_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.fits
Exposure cube: /scratch/kocevski/66326/ltcube_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66326/Model_4FGL_J2338.0-0230_daily_bin1123.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) = 5762.12805822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3557       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7459       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.622       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .58807       1.0000         .10000E-03   10000.    
    13 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12520E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14124E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60523       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.682       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4969       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93824       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5762.111     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3336 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7877        6.9660        .21078E-07   -.35093E-03
   2  Prefactor     .10000E-03    14.599        .97531E-06** at limit **
   3  Prefactor     .10029E-03    8.5399        .28224E-06** at limit **
   4  Prefactor     1.3602        3.3284       -.21032E-06   -.78230E-04
   5  norm          2.7479        2.9213       -.29042E-07   -.12587E-03
   6  Prefactor     .10000E-03    11.376       -.65529E-07** at limit **
   7  norm          .10000E-03    2.0342       -.20325E-06** at limit **
   8  norm          10.713        9.8972       -.15047E-07   -.14645E-03
   9  Prefactor     11.625        12.497        .21563E-06    .14981E-04
  10  Prefactor     60.145        47.565       -.10801E-04   -.15493E-03
  11  Prefactor     .10000E-03    6.6750        .33516E-06** at limit **
  12  norm          .58809        .77848       -.14443E-07   -.29770E-04
  13  norm          .10000E-03    2.8147        .53188E-07** at limit **
  14  Prefactor     2.7324        4.0255        .10019E-05   -.17333E-02
  15  Prefactor     .10000E-03    16.728       -.30521E-05** at limit **
  16  Prefactor     .10000E-03    66.202        .15841E-05** at limit **
  17  Prefactor     10.052        8.1787       -.84567E-07    .69422E-04
  18  Prefactor     .10000E-03    7.8802       -.31827E-06** at limit **
  19  norm          .10000E-03    23.355       -.11744E-05** at limit **
  20  Prefactor     .10000E-03    135.56        .42878E-05** at limit **
  21  Prefactor     .60646        5.0437        .19780E-07   -.27997E-03
  22  Prefactor     .10000E-03    18.590        .24362E-05** at limit **
  23  Prefactor     31.677        20.261       -.49695E-07    .57414E-05
  24  Prefactor     4.4973        9.5518        .15569E-06   -.51846E-03
  25  Prefactor     .10000E-03    3.4505        .24063E-06** at limit **
  26  Normalizat    .93843        .18472        .19955E-05   -.84951E-04
  27  Prefactor     .80268        .13053       -.44360E-06    .89128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.78774
  Prefactor  = 0.0001
  Prefactor  = 0.000100294
  Prefactor  = 1.36025
  norm       = 2.74795
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7129
  Prefactor  = 11.6251
  Prefactor  = 60.1455
  Prefactor  = 0.000100001
  norm       = 0.58809
  norm       = 0.0001
  Prefactor  = 2.73235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.606458
  Prefactor  = 0.0001
  Prefactor  = 31.6769
  Prefactor  = 4.49733
  Prefactor  = 0.0001
  Normalizat = 0.938432
  Prefactor  = 0.802679
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.111     FROM HESSE     STATUS=OK           500 CALLS     3836 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7877        7.0278        .83472E-03   -1.5227    
   2  Prefactor     .10000E-03    14.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10029E-03    12.505        .75372E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3602        3.1310        .20042E-03   -1.5475    
   5  norm          2.7479        2.9088        .12086E-03   -1.5376    
   6  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2092        .19997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.713        9.9308        .61204E-03   -1.5053    
   9  Prefactor     11.625        12.501        .11751E-03   -1.5026    
  10  Prefactor     60.145        48.089        .51725E-04   -1.4155    
  11  Prefactor     .10000E-03    6.7561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .58809        .73837        .72573E-03   -1.5555    
  13  norm          .10000E-03    2.8359        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7324        6.8982        .12317E-02   -1.5377    
  15  Prefactor     .10000E-03    16.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.052        7.9552        .12644E-03   -1.5074    
  18  Prefactor     .10000E-03    7.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    23.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    136.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .60646        4.9848        .29961E-03   -1.5552    
  22  Prefactor     .10000E-03    18.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.677        20.265        .71186E-04   -1.4582    
  24  Prefactor     4.4973        9.9265        .94932E-03   -1.5284    
  25  Prefactor     .10000E-03    3.4774        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93843        .21123        .25466E-03   -.95123    
  27  Prefactor     .80268        .15146        .20572E-03   -.99630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19629e-09
Minuit parameter uncertainties:
  1  7.02879
  2  1.55348e-05
  3  0.00383411
  4  3.13135
  5  2.90897
  6  1.32563e-05
  7  2.57356e-05
  8  9.93233
  9  12.5038
  10  48.1202
  11  0.000148592
  12  0.738378
  13  2.72162e-05
  14  6.90025
  15  6.88913e-05
  16  7.50326e-05
  17  7.95606
  18  1.0464e-05
  19  1.33634e-05
  20  0.000703265
  21  3.47749
  22  3.52216e-05
  23  20.2696
  24  9.93009
  25  3.81365e-06
  26  0.211412
  27  0.151539
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.065e-01  3.477e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.027e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.384e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66326/likelihoodResults_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.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) = 5761.09760273
delta logL = 1.0134982349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.48860126
delta logL = 1.62249970782

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 'Index     '    8.9780       1.0000          .0000       10.000    
     3 'Normalizat'    .84227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+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=   5760.489     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      557 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11929E-02    .81896E-05** at limit **
   2  Index         8.9779        .36312        .83774E-03   -.33927E-05
   3  Normalizat    .84208        .20365        .26679E-03   -.22248E-03
   4  Prefactor     .85294        .15218        .20020E-03   -.79215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.97794
  Normalizat = 0.842081
  Prefactor  = 0.852943
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.489     FROM HESSE     STATUS=OK            23 CALLS      580 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11911E-02    .32758E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9779        .35541        .33509E-04    .91998    
   3  Normalizat    .84208        .20384        .10672E-04   -.98526    
   4  Prefactor     .85294        .15232        .80082E-05   -.97805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60939e-10
Minuit parameter uncertainties:
  1  2.31702e-08
  2  0.356234
  3  0.204024
  4  0.152391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66326': 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) = 5760.48860028
delta logL = 1.62250068624

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  2.317e-08  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  8.978e+00  3.562e-01  0.000e+00  1.000e+01 (-1.000e+00)
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.529e-01  1.524e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.421e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 8.98 +/- 0.36
Photon Flux (Free Index): 8.75e-08 +/- 5.73e-08
Energy Flux (Free Index): 9.94e-06 +/- 6.48e-06

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/66326/cmap_HighResolution_530409601_530668801_4FGL_J2338.0-0230_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='9.94e-06', dlogl='1.62e+00', photon_flux2='8.75e-08', job_status='DONE', time_completed='2021-09-30 02:36:40.823621', photon_index_error2='0.36', photon_index2='8.98', ts='0.04', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.29e-08', energy_flux_error2='6.48e-06', EG='0.94', time_epoch_completed='1632994600.82', return_code='0', job_id='66326', GAL2='0.85', EG2='0.84', return_code2='0', photon_flux_error2='5.73e-08', ts2='3.50', photon_index='2.49' WHERE bin_id='1123' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 66326: <4FGL_J2338.0-0230_daily_bin1123> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1123> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:44 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:20:46 2021
Terminated at Thu Sep 30 02:36:41 2021
Results reported at Thu Sep 30 02:36:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1123 354.509 -2.5106 530409601 530668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2338.0-0230 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

