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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1105
RA = 354.509, Dec = -2.5106
tmin = 525744001, tmax = 526003201
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='66300', job_status='RUN', time_executed='2021-09-30 02:22:14.327548', time_epoch_executed='1632993734.33' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66300

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66300/ft1_4FGL_J2338.0-0230_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66300/ft1_4FGL_J2338.0-0230_daily_bin1105.fits outfile=/scratch/kocevski/66300/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1105.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=525744001.0 tmax=526003201.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 4.30
user 4.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66300/ft1_filtered_4FGL_J2338.0-0230_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/66300/ltcube_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.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/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits
.....................!
real 12.33
user 11.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66300/ft1_filtered_4FGL_J2338.0-0230_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/66300/ltcube_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.fits outfile=/scratch/kocevski/66300/expmap_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.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/66300/ltcube_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.fits
.....................!
real 192.17
user 186.77
sys 4.86

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/66300/ft1_filtered_4FGL_J2338.0-0230_daily_bin1105.fits scfile=/scratch/kocevski/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits outfile=/scratch/kocevski/66300/cmap_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.509 yref=-2.5106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66300/ft1_filtered_4FGL_J2338.0-0230_daily_bin1105.fits scfile=/scratch/kocevski/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits outfile=/scratch/kocevski/66300/cmap_HighResolution_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66300/ft1_filtered_4FGL_J2338.0-0230_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/66300/ft2_4FGL_J2338.0-0230_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66300/Model_4FGL_J2338.0-0230_daily_bin1105.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/66300/ft1_filtered_4FGL_J2338.0-0230_daily_bin1105.fits.....................!
real 57.70
user 56.43
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.549       1.0000         .10000E-03   10000.    
     7 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.516       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73757       1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12364E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.554       1.0000         .10000E-03   10000.    
    19 'norm      '    12.795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5384       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.156       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89246       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72012       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=   5763.550     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3305 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7880       -.10097E-06** at limit **
   2  Prefactor     38.450        51.423       -.64378E-05    .61300E-05
   3  Prefactor     13.274        17.649        .54309E-06   -.42639E-05
   4  Prefactor     .10000E-03    2.5144        .18034E-07** at limit **
   5  norm          5.5425        3.7413       -.68192E-06   -.23420E-03
   6  Prefactor     40.545        19.787        .14064E-06    .15282E-04
   7  norm          .10000E-03    1.8188       -.15498E-08** at limit **
   8  norm          3.7820        5.2500        .49259E-06   -.80730E-04
   9  Prefactor     36.515        20.432       -.69989E-06    .96961E-05
  10  Prefactor     21.285        29.595       -.31549E-05    .77204E-05
  11  Prefactor     .10000E-03    3.5048        .10290E-06** at limit **
  12  norm          .73738        .69925       -.18196E-07   -.14579E-03
  13  norm          .10000E-03    2.8996        .76617E-07** at limit **
  14  Prefactor     .10000E-03    17.077        .49102E-06** at limit **
  15  Prefactor     61.113        48.351       -.30392E-05    .88660E-05
  16  Prefactor     .10000E-03    102.29        .14781E-05** at limit **
  17  Prefactor     .10000E-03    5.3787        .79121E-07** at limit **
  18  Prefactor     36.537        29.561       -.73797E-05   -.43443E-06
  19  norm          12.797        15.273       -.40597E-06    .25278E-04
  20  Prefactor     56.982        56.314       -.10182E-04    .13360E-04
  21  Prefactor     1.5400        4.2010       -.95031E-06   -.86796E-03
  22  Prefactor     .10000E-03    28.771       -.61691E-07** at limit **
  23  Prefactor     36.152        27.291       -.12461E-06    .15840E-04
  24  Prefactor     10.303        14.972        .63817E-08   -.14605E-04
  25  Prefactor     .10000E-03    2.7348        .10631E-06** at limit **
  26  Normalizat    .89257        .18941        .36810E-05   -.47198E-04
  27  Prefactor     .72003        .13222        .35379E-06    .10576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.4501
  Prefactor  = 13.2739
  Prefactor  = 0.0001
  norm       = 5.54255
  Prefactor  = 40.5452
  norm       = 0.0001
  norm       = 3.78197
  Prefactor  = 36.5155
  Prefactor  = 21.2849
  Prefactor  = 0.0001
  norm       = 0.737378
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 61.1133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5375
  norm       = 12.7965
  Prefactor  = 56.9821
  Prefactor  = 1.53995
  Prefactor  = 0.0001
  Prefactor  = 36.1524
  Prefactor  = 10.303
  Prefactor  = 0.0001
  Normalizat = 0.892575
  Prefactor  = 0.720031
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.550     FROM HESSE     STATUS=OK           492 CALLS     3797 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7906        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.450        51.352        .64633E-04   -1.4467    
   3  Prefactor     13.274        17.614        .10993E-03   -1.4979    
   4  Prefactor     .10000E-03    2.5249        .11744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5425        3.7473        .10554E-03   -1.5237    
   6  Prefactor     40.545        19.743        .62949E-04   -1.4434    
   7  norm          .10000E-03    1.8314        .99642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7820        5.2375        .19902E-03   -1.5319    
   9  Prefactor     36.515        20.455        .66322E-04   -1.4499    
  10  Prefactor     21.285        29.620        .86810E-04   -1.4785    
  11  Prefactor     .10000E-03    3.5119        .13864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73738        .66407        .58836E-03   -1.5536    
  13  norm          .10000E-03    2.9356        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.113        48.292        .51325E-04   -1.4143    
  16  Prefactor     .10000E-03    102.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3960        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.537        29.472        .66287E-04   -1.4498    
  19  norm          12.797        15.112        .11198E-03   -1.4992    
  20  Prefactor     56.982        55.819        .53139E-04   -1.4197    
  21  Prefactor     1.5400        4.2213        .23148E-03   -1.5460    
  22  Prefactor     .10000E-03    28.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.152        27.304        .66650E-04   -1.4505    
  24  Prefactor     10.303        14.972        .12482E-03   -1.5066    
  25  Prefactor     .10000E-03    2.7544        .12257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89257        .21463        .26142E-03   -.96722    
  27  Prefactor     .72003        .15036        .21640E-03   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86783e-10
Minuit parameter uncertainties:
  1  4.25324e-06
  2  51.4106
  3  17.6212
  4  4.17031e-06
  5  3.7475
  6  19.7458
  7  1.49398e-07
  8  5.23816
  9  20.4594
  10  29.6406
  11  1.7265e-05
  12  0.664081
  13  9.58281e-06
  14  0.000203
  15  48.3232
  16  5.43592e-05
  17  1.78776e-05
  18  29.484
  19  15.1163
  20  55.8702
  21  4.22207
  22  7.27752e-06
  23  27.3138
  24  14.9772
  25  5.73213e-06
  26  0.214833
  27  0.150443
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.540e+00  4.222e+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.200e-01  1.504e-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.926e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66300/likelihoodResults_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.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) = 5763.42717479
delta logL = 0.122659860759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5763.41178083
delta logL = 0.138053820086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0594       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2362       1.0000          .0000       10.000    
     3 'Normalizat'    .87454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72753       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=   5763.412     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0594        35.177        .11916E-01    .98193E-03
   2  Index         3.2374        3.7710        .21616        .68839E-04
   3  Normalizat    .87433        .35097E-01    .44575E-01    .17245E-04
   4  Prefactor     .72779        .26565E-01    .42766E-01    .15204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05944
  Index      = 3.2374
  Normalizat = 0.874327
  Prefactor  = 0.727792
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.412     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0594        3.8144        .11956E-03   -1.5502    
   2  Index         3.2374        2.0344        .94410E-02   -.36026    
   3  Normalizat    .87433        .20165        .26382E-03   -.97368    
   4  Prefactor     .72779        .14889        .21531E-03   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47935e-11
Minuit parameter uncertainties:
  1  3.81527
  2  2.10463
  3  0.201825
  4  0.148975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66300': 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) = 5763.41177799
delta logL = 0.138056662294

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.059e+00  3.815e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.237e+00  2.105e+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:  7.278e-01  1.490e-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.743e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/66300/cmap_HighResolution_525744001_526003201_4FGL_J2338.0-0230_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.41e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-30 02:35:45.887006', job_id='66300', GAL2='0.73', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1632994545.89', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.38e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1105' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 66300: <4FGL_J2338.0-0230_daily_bin1105> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1105> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:42 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:44 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:44 2021
Terminated at Thu Sep 30 02:35:46 2021
Results reported at Thu Sep 30 02:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1105 354.509 -2.5106 525744001 526003201 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 :                                   688.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

