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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1158
RA = 354.509, Dec = -2.5106
tmin = 539481601, tmax = 539740801
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='66377', job_status='RUN', time_executed='2021-09-30 02:21:03.582396', time_epoch_executed='1632993663.58' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66377/ft1_4FGL_J2338.0-0230_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66377/ft1_4FGL_J2338.0-0230_daily_bin1158.fits outfile=/scratch/kocevski/66377/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1158.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.17
user 4.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.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/66377/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/66377/ltcube_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.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/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits
.....................!
real 13.13
user 12.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/66377/ltcube_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.fits outfile=/scratch/kocevski/66377/expmap_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.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/66377/ltcube_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.fits
.....................!
real 191.54
user 186.32
sys 4.85

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/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.fits scfile=/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits outfile=/scratch/kocevski/66377/cmap_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.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/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.fits scfile=/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits outfile=/scratch/kocevski/66377/cmap_HighResolution_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.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/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/66377/ft2_4FGL_J2338.0-0230_daily_bin1158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66377/Model_4FGL_J2338.0-0230_daily_bin1158.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/66377/ft1_filtered_4FGL_J2338.0-0230_daily_bin1158.fits....................!
real 63.65
user 62.32
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46078E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11370E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9346       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0598       1.0000         .10000E-03   10000.    
     8 'norm      '    .36874E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.558       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0907       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8746       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.187       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24126E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.1403       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.620       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15550E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30699E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0120       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=   6670.985     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3850 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3780        7.0596        .88308E-07   -.63802E-04
   2  Prefactor     .10000E-03    15.767       -.21694E-07** at limit **
   3  Prefactor     2.4865        41.527        .64761E-05   -.52959E-04
   4  Prefactor     .10000E-03    7.2358       -.61054E-06** at limit **
   5  norm          .10000E-03    1.9998       -.51364E-06** at limit **
   6  Prefactor     5.9329        16.099       -.43277E-06   -.31102E-04
   7  norm          3.0668        4.9772        .21020E-06   -.17805E-04
   8  norm          .10000E-03    6.8033        .18034E-06** at limit **
   9  Prefactor     10.883        19.280        .30771E-06   -.21948E-04
  10  Prefactor     17.557        40.010        .38015E-05    .40941E-05
  11  Prefactor     6.0898        7.5399       -.25438E-06   -.24932E-04
  12  norm          2.8743        1.1293       -.24875E-07   -.33495E-03
  13  norm          3.6443        3.8133       -.19209E-07   -.40819E-04
  14  Prefactor     .10000E-03    6.6590        .71794E-07** at limit **
  15  Prefactor     .10000E-03    31.137        .60798E-08** at limit **
  16  Prefactor     56.101        128.55       -.14019E-06   -.20861E-04
  17  Prefactor     .10000E-03    34.337        .43639E-05** at limit **
  18  Prefactor     .10000E-03    9.9218        .60063E-07** at limit **
  19  norm          7.1236        16.314       -.14998E-05   -.74233E-04
  20  Prefactor     .10000E-03    17.792        .25785E-07** at limit **
  21  Prefactor     .10000E-03    1.9284       -.45120E-06** at limit **
  22  Prefactor     17.613        41.365        .15814E-05   -.23693E-04
  23  Prefactor     .10000E-03    24.981        .70499E-06** at limit **
  24  Prefactor     .10011E-03    40.130       -.25476E-05** at limit **
  25  Prefactor     .10001E-03    86.014        .27458E-05** at limit **
  26  Normalizat    1.1789        .20533       -.71005E-06   -.23878E-03
  27  Prefactor     1.0117        .14504       -.22604E-06   -.32915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.378
  Prefactor  = 0.0001
  Prefactor  = 2.48646
  Prefactor  = 0.000100003
  norm       = 0.000100002
  Prefactor  = 5.93292
  norm       = 3.06676
  norm       = 0.0001
  Prefactor  = 10.8828
  Prefactor  = 17.5569
  Prefactor  = 6.08981
  norm       = 2.87426
  norm       = 3.64432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.1013
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.12357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6126
  Prefactor  = 0.0001
  Prefactor  = 0.000100112
  Prefactor  = 0.000100008
  Normalizat = 1.17894
  Prefactor  = 1.01173
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.985     FROM HESSE     STATUS=OK           506 CALLS     4356 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3780        7.0529        .15892E-03   -1.5203    
   2  Prefactor     .10000E-03    15.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4865        42.275        .25918E-03   -1.5393    
   4  Prefactor     .10000E-03    20.799        .34983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5845        .21726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9329        15.893        .16484E-03   -1.5221    
   7  norm          3.0668        4.6770        .18466E-03   -1.5358    
   8  norm          .10000E-03    40.492        .41049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.883        19.280        .12144E-03   -1.5048    
  10  Prefactor     17.557        39.907        .47791E-03   -1.4870    
  11  Prefactor     6.0898        7.5112        .16268E-03   -1.5214    
  12  norm          2.8743        1.1245        .51363E-04   -1.5369    
  13  norm          3.6443        3.8081        .15606E-03   -1.5326    
  14  Prefactor     .10000E-03    6.7562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     56.101        128.49        .26758E-03   -1.4209    
  17  Prefactor     .10000E-03    36.869        .40370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.1236        15.859        .15012E-03   -1.5174    
  20  Prefactor     .10000E-03    17.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9309        .11023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.613        41.363        .95414E-04   -1.4868    
  23  Prefactor     .10000E-03    25.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10011E-03    177.77        .46023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    6.9162        .54965E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1789        .23975        .27669E-03   -.87256    
  27  Prefactor     1.0117        .16999        .22507E-03   -.92340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4632e-09
Minuit parameter uncertainties:
  1  7.05384
  2  1.4751e-05
  3  20.5217
  4  0.000537137
  5  0.000165346
  6  15.9045
  7  4.67754
  8  0.000270757
  9  19.2912
  10  39.968
  11  7.51234
  12  1.12449
  13  3.8083
  14  1.01419e-05
  15  2.00624e-05
  16  129.136
  17  0.000419188
  18  7.21398e-06
  19  15.8686
  20  2.06308e-05
  21  1.12473e-06
  22  41.43
  23  8.08351e-05
  24  0.0089575
  25  0.000470636
  26  0.239978
  27  0.170076
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.125e-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:  1.012e+00  1.701e-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:  1.179e+00  2.400e-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: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66377/likelihoodResults_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.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) = 6670.98788441
delta logL = -0.00245997701222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6670.98542446
delta logL = -3.27363522956e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4963       1.0000          .0000       10.000    
     3 'Normalizat'    1.1790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       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=   6670.985     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3169        .11037E-02** at limit **
   2  Index         2.5022        6.2484        .50000       -.27062E-04
   3  Normalizat    1.1789        .21899        .27669E-03   -.44211E-04
   4  Prefactor     1.0117        .16748        .22507E-03   -.25812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.50223
  Normalizat = 1.17894
  Prefactor  = 1.01173
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.985     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9491        .22074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5022        6.2487        .50000       -.52308    
   3  Normalizat    1.1789        .21919        .11068E-04   -.87256    
   4  Prefactor     1.0117        .16763        .90028E-05   -.92340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60948e-09
Minuit parameter uncertainties:
  1  0.000105574
  2  4.34703
  3  0.21936
  4  0.167716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66377': 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) = 6670.98542436
delta logL = 7.27222868591e-08

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.056e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.502e+00  4.347e+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:  1.012e+00  1.677e-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:  1.179e+00  2.194e-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/66377/cmap_HighResolution_539481601_539740801_4FGL_J2338.0-0230_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-30 02:34:37.619670', job_id='66377', GAL2='1.01', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632994477.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1158' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 66377: <4FGL_J2338.0-0230_daily_bin1158> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1158> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:48 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:49 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:49 2021
Terminated at Thu Sep 30 02:34:38 2021
Results reported at Thu Sep 30 02:34:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1158 354.509 -2.5106 539481601 539740801 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 :                                   801.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

