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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1358
RA = 354.509, Dec = -2.5106
tmin = 591321601, tmax = 591580801
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='67926', job_status='RUN', time_executed='2021-09-30 02:25:40.839587', time_epoch_executed='1632993940.84' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67926/ft1_4FGL_J2338.0-0230_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67926/ft1_4FGL_J2338.0-0230_daily_bin1358.fits outfile=/scratch/kocevski/67926/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1358.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=591321601.0 tmax=591580801.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 2.88
user 2.66
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.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/67926/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/67926/ltcube_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.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/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits
.....................!
real 12.15
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/67926/ltcube_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.fits outfile=/scratch/kocevski/67926/expmap_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.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/67926/ltcube_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.fits
.....................!
real 190.68
user 185.78
sys 4.60

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/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits scfile=/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits outfile=/scratch/kocevski/67926/cmap_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits scfile=/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits outfile=/scratch/kocevski/67926/cmap_HighResolution_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67926/Model_4FGL_J2338.0-0230_daily_bin1358.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/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits................................!
real 16.45
user 15.17
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits', '/scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits', expMap='/scratch/kocevski/67926/expmap_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.fits', expCube='/scratch/kocevski/67926/ltcube_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67926/Model_4FGL_J2338.0-0230_daily_bin1358.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/67926/ft1_filtered_4FGL_J2338.0-0230_daily_bin1358.fits
Spacecraft file(s): /scratch/kocevski/67926/ft2_4FGL_J2338.0-0230_daily_bin1358.fits
Exposure map: /scratch/kocevski/67926/expmap_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.fits
Exposure cube: /scratch/kocevski/67926/ltcube_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67926/Model_4FGL_J2338.0-0230_daily_bin1358.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 418.373011164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 417.010549233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53383E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22782E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .23660E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27070E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .15055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27981E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0759       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.969       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0513       1.0000         .10000E-03   10000.    
    13 'norm      '    .59007E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0150       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11935E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6214       1.0000         .10000E-03   10000.    
    19 'norm      '    .38363       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .96859E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3200       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6389       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12447E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39613E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78655       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   416.9231     FROM MIGRAD    STATUS=CONVERGED    343 CALLS      695 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.497       -.10944E-06** at limit **
   2  Prefactor     97.757        160.23        .26550E-05    .11088E-04
   3  Prefactor     .10000E-03    115.64       -.34183E-05** at limit **
   4  Prefactor     .10000E-03    41.380        .69546E-05** at limit **
   5  norm          .10000E-03    18.490       -.72331E-06** at limit **
   6  Prefactor     .10000E-03    31.034       -.14652E-05** at limit **
   7  norm          .10000E-03    10.958       -.29219E-06** at limit **
   8  norm          .10000E-03    151.89       -.16820E-05** at limit **
   9  Prefactor     .10000E-03    136.85       -.51089E-06** at limit **
  10  Prefactor     .10000E-03    363.42       -.20895E-05** at limit **
  11  Prefactor     36.717        46.735        .16280E-05    .35215E-05
  12  norm          3.9356        6.2179       -.40038E-05    .67785E-04
  13  norm          .10000E-03    34.422       -.70534E-06** at limit **
  14  Prefactor     .10000E-03    1222.6        .22602E-06** at limit **
  15  Prefactor     416.22        1133.3        .11411E-04    .24311E-05
  16  Prefactor     .10005E-03    6214.0        .11390E-03** at limit **
  17  Prefactor     .10000E-03    74.458       -.37748E-05** at limit **
  18  Prefactor     5.6214        1.0040         .0000         .0000    
  19  norm          .10000E-03    225.62        .12654E-04** at limit **
  20  Prefactor     .10000E-03    121.00       -.10057E-05** at limit **
  21  Prefactor     .10000E-03    15.094       -.45292E-06** at limit **
  22  Prefactor     .10000E-03    510.69       -.98697E-05** at limit **
  23  Prefactor     3.6389        1.0098         .0000         .0000    
  24  Prefactor     .10000E-03    55.823        .10112E-05** at limit **
  25  Prefactor     .10000E-03    20.480       -.41367E-06** at limit **
  26  Normalizat    .80424        .63630        .18753E-05    .10672E-04
  27  Prefactor     .40830        .49635       -.18812E-05    .12581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 97.757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7173
  norm       = 3.93562
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 416.218
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 5.62137
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.804241
  Prefactor  = 0.408301
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   416.9231     FROM HESSE     STATUS=FAILED        79 CALLS      774 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.467        .10562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     97.757        155.93        .10298E-02   -1.3727    
   3  Prefactor     .10000E-03    114.64        .11286E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.836        .91364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.423        .10036E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.844        .91576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.891        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    150.51        .97495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    136.84        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    360.13        .57819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.717        41.952        .17189E-02   -1.4495    
  12  norm          3.9356        5.4821        .44727E-02   -1.5311    
  13  norm          .10000E-03    34.204        .94824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1223.0        .84728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     416.22        1043.6        .38499E-02   -1.1599    
  16  Prefactor     .10005E-03    6193.0        .35406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    73.576        .90826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     525.47        519.81         .0000       -1.5234    
  19  norm          .10000E-03    .29085        .12654E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .30830       -.10057E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20573       -.45292E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .58694E-01   -.98697E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.6389        1.0098         .0000       -1.5326    
  24  Prefactor     .10000E-03    .20635        .10112E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .28270       -.41367E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80424        1.1373        .18753E-05   -.99912    
  27  Prefactor     .40830        .74603       -.18812E-05   -1.1639    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.92006e-11
Minuit parameter uncertainties:
  1  3.27478e-07
  2  156.59
  3  0.000116288
  4  2.89091e-05
  5  4.15324e-06
  6  2.83863e-06
  7  3.98386e-08
  8  8.12413e-05
  9  2.34359e-05
  10  0.000488755
  11  41.9857
  12  5.48277
  13  1.08901e-05
  14  1.06078e-05
  15  1098.09
  16  0.0232186
  17  4.6576e-05
  18  1.00401
  19  2.11881e-06
  20  1.63831e-05
  21  1.11433e-07
  22  1.20654e-06
  23  1.00976
  24  4.50134e-07
  25  8.99519e-07
  26  1.17383
  27  0.764933
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 416.923134627

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.114e-07  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:  4.083e-01  7.649e-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.042e-01  1.174e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 7.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67926/likelihoodResults_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.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) = 416.923417204
delta logL = -0.000282577112387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 416.923134868
delta logL = -2.4074824978e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4797       1.0000          .0000       10.000    
     3 'Normalizat'    .80428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40810       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=   416.9231     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    652.58        .77291E-03** at limit **
   2  Index         2.3831        6.1880        .50000        .55940E-05
   3  Normalizat    .80424        .95054E-01    .22904E-03    .21313E-05
   4  Prefactor     .40830        .72947E-01    .24008E-03   -.59398E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101826
  Index      = 2.38315
  Normalizat = 0.804242
  Prefactor  = 0.408299
 **********
 **   18 **HESSE 
 **********

 FCN=   416.9231     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10183E-03    1966.1        .15458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3831        8.0974        .50000       -.55080    
   3  Normalizat    .80424        .19917        .91616E-05   -.99912    
   4  Prefactor     .40830        .15284        .96034E-05   -1.1639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.65095e-08
Minuit parameter uncertainties:
  1  0.124155
  2  2912.15
  3  0.199351
  4  0.152987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67926': 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): 102
logL (Free Index) = 416.923134523
delta logL = 1.04101900433e-07

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.018e-04  1.242e-01  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.383e+00  2.912e+03  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:  4.083e-01  1.530e-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.042e-01  1.994e-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/67926/cmap_HighResolution_591321601_591580801_4FGL_J2338.0-0230_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-02', job_status='DONE', photon_flux_upper_limit='7.33e-07', time_completed='2021-09-30 02:31:07.209877', job_id='67926', GAL2='0.41', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632994267.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.41', dlogl='1.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1358' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 67926: <4FGL_J2338.0-0230_daily_bin1358> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1358 354.509 -2.5106 591321601 591580801 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 :                                   319.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             405.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   342 sec.
    Turnaround time :                            344 sec.

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

