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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1075
RA = 354.509, Dec = -2.5106
tmin = 517968001, tmax = 518227201
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='66207', job_status='RUN', time_executed='2021-09-30 02:24:09.821431', time_epoch_executed='1632993849.82' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66207/ft1_4FGL_J2338.0-0230_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66207/ft1_4FGL_J2338.0-0230_daily_bin1075.fits outfile=/scratch/kocevski/66207/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1075.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=517968001.0 tmax=518227201.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.73
user 3.52
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.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/66207/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/66207/ltcube_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.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/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits
.....................!
real 13.30
user 12.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/66207/ltcube_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.fits outfile=/scratch/kocevski/66207/expmap_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.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/66207/ltcube_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.fits
.....................!
real 190.97
user 185.42
sys 5.23

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/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.fits scfile=/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits outfile=/scratch/kocevski/66207/cmap_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.fits scfile=/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits outfile=/scratch/kocevski/66207/cmap_HighResolution_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/66207/ft2_4FGL_J2338.0-0230_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66207/Model_4FGL_J2338.0-0230_daily_bin1075.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/66207/ft1_filtered_4FGL_J2338.0-0230_daily_bin1075.fits.....................!
real 52.06
user 50.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8272       1.0000         .10000E-03   10000.    
     5 'norm      '    .10805E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.8107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8837       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3195       1.0000         .10000E-03   10000.    
    13 'norm      '    13.340       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    135.82       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33243E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.968       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1121       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.966       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81405       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79600       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=   5016.758     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3277 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.989        9.7455       -.18654E-06   -.12968E-04
   2  Prefactor     .10000E-03    23.578        .90296E-05** at limit **
   3  Prefactor     23.041        14.574       -.25391E-06    .39239E-04
   4  Prefactor     1.8272        4.3512       -.85870E-06   -.58018E-03
   5  norm          .10000E-03    1.3590       -.79639E-07** at limit **
   6  Prefactor     .10000E-03    7.2007        .84273E-07** at limit **
   7  norm          .10000E-03    1.5127        .16580E-07** at limit **
   8  norm          9.8106        10.925       -.36570E-06   -.48326E-04
   9  Prefactor     .10000E-03    7.8972       -.18834E-06** at limit **
  10  Prefactor     .10000E-03    50.756        .29212E-05** at limit **
  11  Prefactor     5.8834        6.7168       -.19845E-06   -.30662E-04
  12  norm          1.3193        1.1128       -.50495E-07   -.34241E-03
  13  norm          13.340        6.8485       -.49644E-07   -.27150E-05
  14  Prefactor     .10000E-03    9.4001        .10055E-06** at limit **
  15  Prefactor     135.82        64.873       -.14282E-06    .22784E-04
  16  Prefactor     .10000E-03    104.26       -.13132E-05** at limit **
  17  Prefactor     .10013E-03    11.183        .19609E-06** at limit **
  18  Prefactor     30.969        25.883        .11646E-05    .11679E-04
  19  norm          .10000E-03    26.173       -.77823E-05** at limit **
  20  Prefactor     .10000E-03    19.131       -.20576E-05** at limit **
  21  Prefactor     2.1119        4.7744       -.31009E-06   -.48002E-03
  22  Prefactor     11.161        43.956       -.22802E-04   -.37228E-05
  23  Prefactor     10.959        24.020        .26167E-05    .10898E-04
  24  Prefactor     11.531        13.486       -.78151E-07   -.33211E-05
  25  Prefactor     .10000E-03    4.6893       -.42948E-07** at limit **
  26  Normalizat    .81413        .20410        .26383E-05   -.10289E-04
  27  Prefactor     .79594        .14335       -.28914E-06    .12062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9891
  Prefactor  = 0.0001
  Prefactor  = 23.0405
  Prefactor  = 1.82721
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.8106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.88341
  norm       = 1.31932
  norm       = 13.3397
  Prefactor  = 0.0001
  Prefactor  = 135.82
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 30.9689
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11192
  Prefactor  = 11.1612
  Prefactor  = 10.9588
  Prefactor  = 11.5308
  Prefactor  = 0.0001
  Normalizat = 0.814131
  Prefactor  = 0.795937
 **********
 **   18 **HESSE 
 **********

 FCN=   5016.758     FROM HESSE     STATUS=OK           492 CALLS     3769 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.989        9.7543        .10017E-03   -1.4908    
   2  Prefactor     .10000E-03    23.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.041        14.196        .83437E-04   -1.4748    
   4  Prefactor     1.8272        4.3662        .22071E-03   -1.5438    
   5  norm          .10000E-03    5.5439        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5204        .84851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.8106        10.930        .12794E-03   -1.5081    
   9  Prefactor     .10000E-03    7.9275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8834        6.7124        .16556E-03   -1.5223    
  12  norm          1.3193        1.0780        .62737E-04   -1.5478    
  13  norm          13.340        6.8360        .10967E-03   -1.4977    
  14  Prefactor     .10000E-03    9.5163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     135.82        64.610        .34558E-04   -1.3372    
  16  Prefactor     .10000E-03    104.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10013E-03    54.612        .40772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.969        25.842        .72000E-04   -1.4594    
  19  norm          .10000E-03    26.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1119        4.4289        .20027E-03   -1.5417    
  22  Prefactor     11.161        43.655        .11983E-03   -1.5040    
  23  Prefactor     10.959        23.927        .12099E-03   -1.5046    
  24  Prefactor     11.531        13.500        .11797E-03   -1.5029    
  25  Prefactor     .10000E-03    4.7434        .14971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .81413        .23240        .26649E-03   -.99547    
  27  Prefactor     .79594        .16549        .20428E-03   -.99878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0245e-09
Minuit parameter uncertainties:
  1  9.75529
  2  2.94636e-06
  3  14.198
  4  4.36696
  5  1.79177e-05
  6  2.6845e-06
  7  1.71884e-06
  8  10.9327
  9  3.68704e-06
  10  6.47568e-05
  11  6.71327
  12  1.07803
  13  6.83637
  14  1.5335e-05
  15  64.6439
  16  2.38245e-05
  17  0.00530781
  18  25.8511
  19  0.000103634
  20  5.89501e-06
  21  4.42957
  22  43.7803
  23  23.9483
  24  13.5035
  25  1.13451e-05
  26  0.232688
  27  0.165589
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.112e+00  4.430e+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:  7.959e-01  1.656e-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.141e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66207/likelihoodResults_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.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) = 5016.41988908
delta logL = 0.338335745186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5016.38855504
delta logL = 0.36966978529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31139       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3403       1.0000          .0000       10.000    
     3 'Normalizat'    .76142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82506       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=   5016.389     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30855        6.0552        .92720E-02    .12829E-02
   2  Index         4.3473        3.5840        .13165        .11179E-03
   3  Normalizat    .76128        .40647E-01    .62138E-01    .12849E-04
   4  Prefactor     .82493        .31070E-01    .44042E-01   -.54272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.308546
  Index      = 4.34725
  Normalizat = 0.761279
  Prefactor  = 0.824925
 **********
 **   18 **HESSE 
 **********

 FCN=   5016.389     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      300 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30855        17.581        .42497E-03   -1.5597    
   2  Index         4.3473        7.0585        .69779E-02   -.13092    
   3  Normalizat    .76128        .15863        .27486E-03   -1.0152    
   4  Prefactor     .82493        .12056        .20101E-03   -.98816    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14717e-07
Minuit parameter uncertainties:
  1  4.6588
  2  8.64813
  3  0.15873
  4  0.120601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66207': 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) = 5016.3885468
delta logL = 0.369678031356

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.085e-01  4.659e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  4.347e+00  8.648e+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:  8.249e-01  1.206e-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.613e-01  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 4.35 +/- 8.65
Photon Flux (Free Index): 5.75e-08 +/- 6.17e-08
Energy Flux (Free Index): 8.18e-06 +/- 1.41e-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/66207/cmap_HighResolution_517968001_518227201_4FGL_J2338.0-0230_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', comment='SUCCESS', energy_flux2='8.18e-06', dlogl='3.70e-01', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-30 02:37:10.101670', photon_index_error2='8.65', photon_index2='4.35', ts='0.28', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.41e-05', EG='0.81', time_epoch_completed='1632994630.1', return_code='0', job_id='66207', GAL2='0.82', EG2='0.76', return_code2='102', photon_flux_error2='6.17e-08', ts2='1.10', photon_index='2.49' WHERE bin_id='1075' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:37:10 PDT 2021


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

Job <4FGL_J2338.0-0230_daily_bin1075> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:39 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:40 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:40 2021
Terminated at Thu Sep 30 02:37:10 2021
Results reported at Thu Sep 30 02:37:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1075 354.509 -2.5106 517968001 518227201 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 :                                   646.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

