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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1592
RA = 354.509, Dec = -2.5106
tmin = 651974401, tmax = 652233601
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='68286', job_status='RUN', time_executed='2021-09-30 02:28:40.909352', time_epoch_executed='1632994120.91' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68286/ft1_4FGL_J2338.0-0230_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68286/ft1_4FGL_J2338.0-0230_daily_bin1592.fits outfile=/scratch/kocevski/68286/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1592.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=651974401.0 tmax=652233601.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.49
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.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/68286/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/68286/ltcube_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.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/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/68286/ltcube_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.fits outfile=/scratch/kocevski/68286/expmap_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.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/68286/ltcube_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.fits
.....................!
real 190.39
user 185.59
sys 4.45

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/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits scfile=/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits outfile=/scratch/kocevski/68286/cmap_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.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/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits scfile=/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits outfile=/scratch/kocevski/68286/cmap_HighResolution_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/68286/ft2_4FGL_J2338.0-0230_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68286/Model_4FGL_J2338.0-0230_daily_bin1592.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/68286/ft1_filtered_4FGL_J2338.0-0230_daily_bin1592.fits.....................!
real 58.77
user 57.44
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7226       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.951       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .34219E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    114.12       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22542E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12911E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11338E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12375E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.583       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7521       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90305       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94711       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=   5794.969     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3286 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4222       -.12796E-07** at limit **
   2  Prefactor     1.7220        262.66        .15172E-05   -.11660E-05
   3  Prefactor     25.421        28.404       -.27922E-05   -.34838E-04
   4  Prefactor     .10000E-03    2.1997       -.93358E-07** at limit **
   5  norm          1.5915        4.6352        .26799E-05   -.64918E-04
   6  Prefactor     .10000E-03    9.6495        .27740E-06** at limit **
   7  norm          .10000E-03    1.5309       -.10714E-06** at limit **
   8  norm          21.941        13.568        .16284E-06   -.11708E-04
   9  Prefactor     15.070        22.257        .88826E-06    .53822E-05
  10  Prefactor     .10000E-03    33.681       -.16742E-05** at limit **
  11  Prefactor     20.965        12.718        .20315E-06   -.22885E-03
  12  norm          .10000E-03    .23424       -.20374E-07** at limit **
  13  norm          .10002E-03    8.0659        .65586E-06** at limit **
  14  Prefactor     .10000E-03    15.593        .48748E-06** at limit **
  15  Prefactor     114.09        68.919       -.25847E-05   -.48090E-04
  16  Prefactor     .10000E-03    62.240       -.46738E-06** at limit **
  17  Prefactor     .10000E-03    34.121       -.21081E-05** at limit **
  18  Prefactor     .10000E-03    10.197        .13867E-06** at limit **
  19  norm          .10000E-03    11.773       -.53806E-06** at limit **
  20  Prefactor     .10000E-03    43.657        .36956E-05** at limit **
  21  Prefactor     .10000E-03    2.2127       -.70195E-07** at limit **
  22  Prefactor     .10000E-03    62.173       -.57851E-06** at limit **
  23  Prefactor     35.605        30.886        .22126E-05    .55301E-04
  24  Prefactor     2.7529        11.561        .49231E-06   -.25126E-04
  25  Prefactor     .10000E-03    4.0152       -.35894E-06** at limit **
  26  Normalizat    .90331        .19613       -.91388E-06   -.63718E-04
  27  Prefactor     .94714        .14156       -.31088E-06   -.90644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.722
  Prefactor  = 25.4211
  Prefactor  = 0.0001
  norm       = 1.59152
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.941
  Prefactor  = 15.0701
  Prefactor  = 0.0001
  Prefactor  = 20.9645
  norm       = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 114.092
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6045
  Prefactor  = 2.75288
  Prefactor  = 0.000100002
  Normalizat = 0.903312
  Prefactor  = 0.947141
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.969     FROM HESSE     STATUS=OK           490 CALLS     3776 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4294        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7220        264.32        .32002E-03   -1.5446    
   3  Prefactor     25.421        28.649        .79491E-04   -1.4699    
   4  Prefactor     .10000E-03    2.2108        .11022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5915        4.7107        .18778E-03   -1.5456    
   6  Prefactor     .10000E-03    9.7197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5512        .91914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.941        13.565        .85519E-04   -1.4771    
   9  Prefactor     15.070        22.290        .10319E-03   -1.4931    
  10  Prefactor     .10000E-03    33.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.965        11.704        .87507E-04   -1.4792    
  12  norm          .10000E-03    .23639        .35921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    43.425        .37302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     114.09        69.221        .18830E-03   -1.3568    
  16  Prefactor     .10000E-03    62.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.770        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2366        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    62.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.605        31.050        .67182E-04   -1.4514    
  24  Prefactor     2.7529        11.503        .24538E-03   -1.5376    
  25  Prefactor     .10000E-03    9.1976        .29267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .90331        .22351        .28416E-03   -.96344    
  27  Prefactor     .94714        .16353        .21053E-03   -.94513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00255e-10
Minuit parameter uncertainties:
  1  2.15778e-06
  2  42.8617
  3  28.6641
  4  1.16202e-06
  5  4.71175
  6  1.3259e-05
  7  7.7002e-07
  8  13.5671
  9  22.302
  10  8.71299e-05
  11  11.7051
  12  6.90312e-07
  13  0.00177493
  14  3.20625e-05
  15  69.27
  16  1.48492e-05
  17  0.000383852
  18  3.19576e-06
  19  1.32322e-05
  20  0.000221757
  21  8.94213e-06
  22  3.39653e-07
  23  31.0644
  24  11.258
  25  0.000271135
  26  0.223745
  27  0.163616
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  8.942e-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.471e-01  1.636e-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.033e-01  2.237e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68286/likelihoodResults_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.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) = 5794.97067837
delta logL = -0.00213019418607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5794.96854816
delta logL = 1.66000972968e-08

Fit tolerance = 1e-08

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

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

 FCN=   5794.969     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.0884        .11201E-02** at limit **
   2  Index         2.5288        6.2508        .50000       -.76836E-04
   3  Normalizat    .90331        .20991        .28416E-03   -.71214E-05
   4  Prefactor     .94714        .16002        .21053E-03    .22572E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5794.969     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      372 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.0884        .25499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5288        6.2508        .29481E-03   -.51697    
   3  Normalizat    .90331        .20991        .24874E-04   -.96344    
   4  Prefactor     .94714        .16002        .10411E-04   -.94513    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5794.878     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      537 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12321        16.384        .22403E-02   -.33484E-02
   2  Index         4.5024        7.2486        .20000        .88510E-04
   3  Normalizat    .86953        .63427E-01    .11367E-04   -.13383E-03
   4  Prefactor     .96151        .44403E-01    .84211E-05   -.18630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12321
  Index      = 4.50244
  Normalizat = 0.869526
  Prefactor  = 0.961509
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.878     FROM HESSE     STATUS=OK            29 CALLS      566 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12321        7.6644        .59144E-04   -1.5778    
   2  Index         4.5024        7.2109        .11053E-01   -.99677E-01
   3  Normalizat    .86953        .22709        .22733E-05   -.97539    
   4  Prefactor     .96151        .16452        .16842E-05   -.94024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86127e-10
Minuit parameter uncertainties:
  1  1.94301
  2  8.21365
  3  0.227335
  4  0.164606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68286': 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) = 5794.87830858
delta logL = 0.0902395968587

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.232e-01  1.943e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  4.502e+00  8.214e+00  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.615e-01  1.646e-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.695e-01  2.273e-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/68286/cmap_HighResolution_651974401_652233601_4FGL_J2338.0-0230_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-30 02:40:25.855922', job_id='68286', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.90', time_epoch_completed='1632994825.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.02e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1592' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 68286: <4FGL_J2338.0-0230_daily_bin1592> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1592> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:25:56 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:25:57 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:25:57 2021
Terminated at Thu Sep 30 02:40:26 2021
Results reported at Thu Sep 30 02:40:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1592 354.509 -2.5106 651974401 652233601 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 :                                   695.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

