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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1429
RA = 354.509, Dec = -2.5106
tmin = 609724801, tmax = 609984001
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='68033', job_status='RUN', time_executed='2021-09-30 02:25:44.263796', time_epoch_executed='1632993944.26' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68033/ft1_4FGL_J2338.0-0230_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68033/ft1_4FGL_J2338.0-0230_daily_bin1429.fits outfile=/scratch/kocevski/68033/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1429.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=609724801.0 tmax=609984001.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.56
user 2.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.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/68033/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1429.fits evtable="EVENTS" outfile="/scratch/kocevski/68033/ft1_filtered_4FGL_J2338.0-0230_daily_bin1429.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/68033/ft1_filtered_4FGL_J2338.0-0230_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/68033/ltcube_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.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/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.fits
.....................!
real 12.80
user 12.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68033/ft1_filtered_4FGL_J2338.0-0230_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/68033/ltcube_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.fits outfile=/scratch/kocevski/68033/expmap_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.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/68033/ltcube_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.fits
.....................!
real 190.82
user 185.36
sys 5.10

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/68033/ft1_filtered_4FGL_J2338.0-0230_daily_bin1429.fits scfile=/scratch/kocevski/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.fits outfile=/scratch/kocevski/68033/cmap_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68033/ft1_filtered_4FGL_J2338.0-0230_daily_bin1429.fits scfile=/scratch/kocevski/68033/ft2_4FGL_J2338.0-0230_daily_bin1429.fits outfile=/scratch/kocevski/68033/cmap_HighResolution_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    85.368       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9011       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7325       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    36.390       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3292       1.0000         .10000E-03   10000.    
    13 'norm      '    .38494       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.570       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.223       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    125.36       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.550       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73500       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82806       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=   3882.248     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3275 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.835       -.96849E-07** at limit **
   2  Prefactor     85.385        100.57       -.93138E-06    .19943E-04
   3  Prefactor     .10000E-03    21.332       -.66874E-06** at limit **
   4  Prefactor     8.9030        12.509       -.79158E-07    .86936E-04
   5  norm          .10000E-03    1.4680       -.15145E-06** at limit **
   6  Prefactor     1.7322        27.698        .85380E-05    .25116E-03
   7  norm          .10000E-03    2.9043       -.30600E-07** at limit **
   8  norm          36.388        16.968       -.61972E-07    .17335E-04
   9  Prefactor     14.951        17.839       -.22269E-06    .46742E-05
  10  Prefactor     10.194        58.760       -.11677E-04   -.33208E-04
  11  Prefactor     .10000E-03    5.1436        .92091E-06** at limit **
  12  norm          1.3297        1.0490       -.11814E-07    .30242E-03
  13  norm          .35729        6.7454       -.30388E-05    .11148E-02
  14  Prefactor     17.317        17.149       -.25139E-06   -.72169E-05
  15  Prefactor     .10000E-03    35.675       -.55125E-06** at limit **
  16  Prefactor     .10000E-03    92.295       -.23323E-05** at limit **
  17  Prefactor     22.574        17.623        .76116E-08    .17628E-04
  18  Prefactor     .10000E-03    33.041        .62364E-06** at limit **
  19  norm          4.0415        31.421       -.92797E-07    .35835E-05
  20  Prefactor     48.284        68.253       -.50028E-05   -.20466E-04
  21  Prefactor     9.3490        7.1226        .47045E-07    .43989E-04
  22  Prefactor     125.36        71.574        .56911E-06    .19234E-04
  23  Prefactor     .10000E-03    21.394       -.47321E-06** at limit **
  24  Prefactor     29.515        31.535        .16042E-05    .46868E-04
  25  Prefactor     .10000E-03    6.4095       -.31313E-06** at limit **
  26  Normalizat    .73426        .25263       -.36023E-05   -.20086E-04
  27  Prefactor     .82870        .17224        .29333E-05    .10472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 85.3848
  Prefactor  = 0.0001
  Prefactor  = 8.90296
  norm       = 0.0001
  Prefactor  = 1.73219
  norm       = 0.0001
  norm       = 36.388
  Prefactor  = 14.9512
  Prefactor  = 10.1937
  Prefactor  = 0.000100001
  norm       = 1.32971
  norm       = 0.357291
  Prefactor  = 17.3171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5739
  Prefactor  = 0.0001
  norm       = 4.04149
  Prefactor  = 48.2845
  Prefactor  = 9.34897
  Prefactor  = 125.358
  Prefactor  = 0.0001
  Prefactor  = 29.5154
  Prefactor  = 0.0001
  Normalizat = 0.734255
  Prefactor  = 0.828702
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.248     FROM HESSE     STATUS=OK           488 CALLS     3763 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     85.385        100.35        .43479E-04   -1.3857    
   3  Prefactor     .10000E-03    21.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9030        12.501        .13434E-03   -1.5111    
   5  norm          .10000E-03    1.4731        .73721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7322        29.624        .15945E-02   -1.5445    
   7  norm          .10000E-03    2.9074        .10327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          36.388        16.980        .66436E-04   -1.4501    
   9  Prefactor     14.951        17.843        .10357E-03   -1.4934    
  10  Prefactor     10.194        62.093        .12604E-03   -1.5069    
  11  Prefactor     .10000E-03    5.1953        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3297        1.0334        .53299E-04   -1.5477    
  13  norm          .35729        21.679        .24345E-02   -1.5588    
  14  Prefactor     17.317        17.147        .96237E-04   -1.4875    
  15  Prefactor     .10000E-03    35.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    92.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.574        17.545        .84313E-04   -1.4757    
  18  Prefactor     .10000E-03    33.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0415        31.031        .20050E-03   -1.5306    
  20  Prefactor     48.284        68.452        .57744E-04   -1.4317    
  21  Prefactor     9.3490        7.1104        .12940E-03   -1.5096    
  22  Prefactor     125.36        71.667        .35951E-04   -1.3464    
  23  Prefactor     .10000E-03    21.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.515        31.641        .73704E-04   -1.4621    
  25  Prefactor     .10000E-03    6.4944        .15391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .73426        .28270        .30263E-03   -1.0256    
  27  Prefactor     .82870        .19320        .21394E-03   -.98679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28946e-08
Minuit parameter uncertainties:
  1  9.08882e-06
  2  100.547
  3  9.332e-05
  4  12.5049
  5  6.81212e-06
  6  14.3346
  7  9.01744e-06
  8  16.9825
  9  17.8494
  10  50.3951
  11  0.000133682
  12  1.03338
  13  5.56762
  14  17.1515
  15  4.72262e-05
  16  0.000109576
  17  17.5488
  18  3.91661e-05
  19  22.4133
  20  68.564
  21  7.11101
  22  71.7162
  23  6.10377e-05
  24  31.6589
  25  1.67723e-05
  26  0.283265
  27  0.193362
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.287e-01  1.934e-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:  7.343e-01  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 9.35e-08 +/- 7.10e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 2.09e-05

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) = 3882.15768217
delta logL = 0.0900594406307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3882.15295918
delta logL = 0.0947824281297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8176       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1527       1.0000          .0000       10.000    
     3 'Normalizat'    .76436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81557       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.

 FCN=   3882.153     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8715        20.974        .31973E-02    .44902E-04
   2  Index         2.1582        1.6853        .16489       -.14869E-03
   3  Normalizat    .76354        .24962        .67261E-01    .66875E-05
   4  Prefactor     .81581        .17554        .43920E-01   -.14314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.87152
  Index      = 2.15824
  Normalizat = 0.763542
  Prefactor  = 0.815813
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.153     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8715        7.5968        .12789E-03   -1.5079    
   2  Index         2.1582        .73325        .43780E-01   -.60450    
   3  Normalizat    .76354        .25819        .29760E-03   -1.0144    
   4  Prefactor     .81581        .18903        .21551E-03   -.99148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65646e-12
Minuit parameter uncertainties:
  1  7.59755
  2  0.737192
  3  0.258599
  4  0.189176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68033': 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) = 3882.15291444
delta logL = 0.0948271712045

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.158e-01  1.892e-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:  7.635e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.16 +/- 0.74
Photon Flux (Free Index): 6.51e-08 +/- 7.32e-08
Energy Flux (Free Index): 3.17e-05 +/- 3.16e-05

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/68033/cmap_HighResolution_609724801_609984001_4FGL_J2338.0-0230_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.35e-08', energy_flux2='3.17e-05', photon_flux_error='7.10e-08', dlogl='9.48e-02', energy_flux='2.74e-05', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-09-30 02:34:23.072943', photon_index_error2='0.74', photon_index2='2.16', ts='4.08', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.16e-05', EG='0.73', time_epoch_completed='1632994463.07', return_code='0', job_id='68033', GAL2='0.82', EG2='0.76', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='7.32e-08', ts2='4.31', photon_index='2.49' WHERE bin_id='1429' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:34:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 68033: <4FGL_J2338.0-0230_daily_bin1429> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1429 354.509 -2.5106 609724801 609984001 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 :                                   510.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   529 sec.
    Turnaround time :                            530 sec.

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

