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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1355
RA = 354.509, Dec = -2.5106
tmin = 590544001, tmax = 590803201
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='69576', job_status='RUN', time_executed='2021-09-30 02:32:03.597453', time_epoch_executed='1632994323.6' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69576/ft1_4FGL_J2338.0-0230_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69576/ft1_4FGL_J2338.0-0230_daily_bin1355.fits outfile=/scratch/kocevski/69576/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1355.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=590544001.0 tmax=590803201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.25
user 4.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.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/69576/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1355.fits evtable="EVENTS" outfile="/scratch/kocevski/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/69576/ltcube_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.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/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits
.....................!
real 17.17
user 16.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/69576/ltcube_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.fits outfile=/scratch/kocevski/69576/expmap_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.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/69576/ltcube_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.fits
.....................!
real 191.26
user 185.55
sys 5.17

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/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.fits scfile=/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits outfile=/scratch/kocevski/69576/cmap_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.fits scfile=/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits outfile=/scratch/kocevski/69576/cmap_HighResolution_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.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.55
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.fits', '/scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits', expMap='/scratch/kocevski/69576/expmap_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.fits', expCube='/scratch/kocevski/69576/ltcube_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/69576/Model_4FGL_J2338.0-0230_daily_bin1355.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/69576/ft1_filtered_4FGL_J2338.0-0230_daily_bin1355.fits
Spacecraft file(s): /scratch/kocevski/69576/ft2_4FGL_J2338.0-0230_daily_bin1355.fits
Exposure map: /scratch/kocevski/69576/expmap_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.fits
Exposure cube: /scratch/kocevski/69576/ltcube_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/69576/Model_4FGL_J2338.0-0230_daily_bin1355.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) = 4684.09257538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.846       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4055       1.0000         .10000E-03   10000.    
     5 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0662       1.0000         .10000E-03   10000.    
     8 'norm      '    89.126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.107       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.657       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.773       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.429       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.328       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.365       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6738       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6807       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .63276       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99378       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=   4684.070     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3302 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.847        11.107       -.11938E-06    .11714E-04
   2  Prefactor     .10000E-03    31.428       -.75317E-05** at limit **
   3  Prefactor     16.329        19.446       -.10232E-06   -.12118E-03
   4  Prefactor     4.4081        6.0674        .23169E-05   -.19682E-02
   5  norm          .10000E-03    2.1844       -.44959E-07** at limit **
   6  Prefactor     .10000E-03    27.996        .49774E-05** at limit **
   7  norm          1.0657        5.6199       -.23693E-05   -.50286E-03
   8  norm          89.124        22.933       -.17540E-06   -.19756E-04
   9  Prefactor     23.107        18.391        .12877E-06    .63010E-05
  10  Prefactor     .10000E-03    43.059        .33524E-05** at limit **
  11  Prefactor     19.656        12.850       -.13020E-06   -.16251E-04
  12  norm          .10000E-03    .35829        .11824E-07** at limit **
  13  norm          .10000E-03    6.4231       -.63857E-08** at limit **
  14  Prefactor     .10000E-03    5.6071        .39507E-08** at limit **
  15  Prefactor     16.756        50.621       -.15562E-04   -.15774E-03
  16  Prefactor     .10000E-03    104.19       -.91795E-06** at limit **
  17  Prefactor     .10000E-03    9.1448        .24372E-06** at limit **
  18  Prefactor     31.427        33.327       -.70074E-06   -.18129E-04
  19  norm          .10000E-03    9.0771       -.17082E-06** at limit **
  20  Prefactor     32.328        72.396        .35825E-06    .10979E-04
  21  Prefactor     .10000E-03    1.8306        .14981E-07** at limit **
  22  Prefactor     .10000E-03    16.989       -.16036E-06** at limit **
  23  Prefactor     24.361        24.350       -.44467E-06   -.14127E-04
  24  Prefactor     4.6729        16.072       -.42975E-06   -.13113E-04
  25  Prefactor     7.6810        8.1348       -.19114E-06   -.39493E-04
  26  Normalizat    .63266        .22626        .70661E-06    .19308E-04
  27  Prefactor     .99389        .16256        .71659E-06   -.23642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8471
  Prefactor  = 0.000100004
  Prefactor  = 16.3293
  Prefactor  = 4.4081
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.06575
  norm       = 89.1237
  Prefactor  = 23.1071
  Prefactor  = 0.000100001
  Prefactor  = 19.6565
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4268
  norm       = 0.0001
  Prefactor  = 32.3282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3609
  Prefactor  = 4.6729
  Prefactor  = 7.68098
  Normalizat = 0.632662
  Prefactor  = 0.993888
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.070     FROM HESSE     STATUS=OK           488 CALLS     3790 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.847        11.099        .11176E-03   -1.4991    
   2  Prefactor     .10000E-03    31.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.329        19.424        .49552E-03   -1.4900    
   4  Prefactor     4.4081        8.7564        .95936E-03   -1.5288    
   5  norm          .10000E-03    2.2553        .19610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0657        6.0993        .24842E-03   -1.5501    
   8  norm          89.124        22.935        .42561E-04   -1.3817    
   9  Prefactor     23.107        18.391        .83329E-04   -1.4746    
  10  Prefactor     .10000E-03    43.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.656        12.825        .90337E-04   -1.4821    
  12  norm          .10000E-03    .46082        .79465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4652        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6233        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.756        51.828        .97795E-04   -1.4889    
  16  Prefactor     .10000E-03    104.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.427        33.417        .71472E-04   -1.4586    
  19  norm          .10000E-03    9.0835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.328        72.397        .70474E-04   -1.4570    
  21  Prefactor     .10000E-03    1.8395        .90384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.361        24.366        .81152E-04   -1.4720    
  24  Prefactor     4.6729        16.049        .18615E-03   -1.5276    
  25  Prefactor     7.6810        8.1423        .14470E-03   -1.5154    
  26  Normalizat    .63266        .25672        .32730E-03   -1.0661    
  27  Prefactor     .99389        .18720        .20286E-03   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60106e-09
Minuit parameter uncertainties:
  1  11.1012
  2  0.000700549
  3  19.4314
  4  8.7589
  5  3.09133e-06
  6  0.000460079
  7  5.0997
  8  22.9377
  9  18.3955
  10  0.000341597
  11  12.8266
  12  1.71034e-07
  13  7.22179e-06
  14  8.9057e-07
  15  51.9682
  16  0.00015211
  17  4.01623e-05
  18  33.4369
  19  6.29476e-07
  20  72.5944
  21  1.82451e-06
  22  5.82104e-06
  23  24.3763
  24  16.0639
  25  8.1435
  26  0.257205
  27  0.187319
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.825e-06  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:  9.939e-01  1.873e-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:  6.327e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69576/likelihoodResults_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.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) = 4684.0723528
delta logL = -0.00257713330484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4684.06977573
delta logL = -5.76774255023e-08

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 'Index     '    2.4863       1.0000          .0000       10.000    
     3 'Normalizat'    .63263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99394       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=   4684.070     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9201        .90456E-03** at limit **
   2  Index         2.2453        6.0372        .20000E-01    .61220E-06
   3  Normalizat    .63266        .23513        .32730E-03    .17333E-04
   4  Prefactor     .99389        .18106        .20286E-03    .54494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24525
  Normalizat = 0.632661
  Prefactor  = 0.993889
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.070     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8835        .18091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2453        5.4370        .80000E-03   -.58350    
   3  Normalizat    .63266        .23528        .13092E-04   -1.0661    
   4  Prefactor     .99389        .18117        .40573E-04   -.92934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16239e-09
Minuit parameter uncertainties:
  1  5.23727e-05
  2  210.696
  3  0.23565
  4  0.181286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69576': 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) = 4684.06977504
delta logL = 6.32209776086e-07

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  5.237e-05  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.245e+00  2.107e+02  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:  9.939e-01  1.813e-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:  6.327e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.509 -2.511

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/69576/cmap_HighResolution_590544001_590803201_4FGL_J2338.0-0230_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-30 02:43:10.953069', job_id='69576', GAL2='0.99', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632994990.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1355' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:43:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 69576: <4FGL_J2338.0-0230_daily_bin1355> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1355> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:11 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:12 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:30:12 2021
Terminated at Thu Sep 30 02:43:11 2021
Results reported at Thu Sep 30 02:43:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1355 354.509 -2.5106 590544001 590803201 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 :                                   626.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

