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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1056
RA = 354.509, Dec = -2.5106
tmin = 513043201, tmax = 513302401
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='66180', job_status='RUN', time_executed='2021-09-30 02:24:10.712640', time_epoch_executed='1632993850.71' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66180/ft1_4FGL_J2338.0-0230_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66180/ft1_4FGL_J2338.0-0230_daily_bin1056.fits outfile=/scratch/kocevski/66180/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1056.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.35
user 6.03
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66180/ft1_filtered_4FGL_J2338.0-0230_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/66180/ltcube_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.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/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits
.....................!
real 13.98
user 13.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66180/ft1_filtered_4FGL_J2338.0-0230_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/66180/ltcube_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.fits outfile=/scratch/kocevski/66180/expmap_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.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/66180/ltcube_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.fits
.....................!
real 191.32
user 185.81
sys 4.94

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/66180/ft1_filtered_4FGL_J2338.0-0230_daily_bin1056.fits scfile=/scratch/kocevski/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits outfile=/scratch/kocevski/66180/cmap_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66180/ft1_filtered_4FGL_J2338.0-0230_daily_bin1056.fits scfile=/scratch/kocevski/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits outfile=/scratch/kocevski/66180/cmap_HighResolution_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.509 yref=-2.5106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66180/ft1_filtered_4FGL_J2338.0-0230_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/66180/ft2_4FGL_J2338.0-0230_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66180/Model_4FGL_J2338.0-0230_daily_bin1056.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/66180/ft1_filtered_4FGL_J2338.0-0230_daily_bin1056.fits.....................!
real 43.57
user 42.30
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13722E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5141       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3803       1.0000         .10000E-03   10000.    
     7 'norm      '    .10853E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.324       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0967       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    94.224       1.0000         .10000E-03   10000.    
    16 'Prefactor '    128.07       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10887E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .26956E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15519E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.497       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.139       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.013       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .43595       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4206.046     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2747 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.573        1.4973        .37349E-05    .30687E-02
   2  Prefactor     .10022E-03    44.841       -.30708E-04** at limit **
   3  Prefactor     .10000E-03    4.4010        .40610E-05** at limit **
   4  Prefactor     8.5149        6.9165       -.10344E-05    .96868E-03
   5  norm          4.7405        3.2315        .42395E-06    .91374E-04
   6  Prefactor     8.4001        6.4973       -.34695E-04   -.10631E-01
   7  norm          .10000E-03    1.8231        .24718E-05** at limit **
   8  norm          12.749        1.1681       -.20270E-05   -.20223E-02
   9  Prefactor     31.505        2.5095       -.65538E-05   -.62424E-02
  10  Prefactor     37.712        58.623        .14762E-03   -.43647E-02
  11  Prefactor     11.311        5.4785       -.23967E-04   -.85307E-03
  12  norm          1.0971        .99099        .36094E-06   -.48528E-03
  13  norm          2.8421        5.7180       -.24295E-05   -.30092E-04
  14  Prefactor     .10000E-03    6.0897        .16630E-05** at limit **
  15  Prefactor     94.178        12.797       -.19933E-04   -.12754E-02
  16  Prefactor     128.06        3.2120       -.43037E-05    .18132E-02
  17  Prefactor     .10000E-03    16.617       -.43538E-04** at limit **
  18  Prefactor     .10008E-03    12.039        .18159E-04** at limit **
  19  norm          .10291E-03    136.34        .20584E-03** at limit **
  20  Prefactor     .10002E-03    26.820        .13737E-04** at limit **
  21  Prefactor     .10040E-03    10.516        .54506E-04** at limit **
  22  Prefactor     67.441        13.607       -.21673E-04   -.11041E-01
  23  Prefactor     26.126        3.2182        .57133E-05   -.21944E-02
  24  Prefactor     .10000E-03    11.657        .23325E-05** at limit **
  25  Prefactor     15.013        1.0638       -.10674E-05   -.12827E-02
  26  Normalizat    .43629        .24025       -.14680E-05   -.78543E-05
  27  Prefactor     1.0767        .18857        .13473E-05   -.87003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5734
  Prefactor  = 0.000100221
  Prefactor  = 0.000100001
  Prefactor  = 8.51491
  norm       = 4.74052
  Prefactor  = 8.40011
  norm       = 0.0001
  norm       = 12.7491
  Prefactor  = 31.5048
  Prefactor  = 37.712
  Prefactor  = 11.3112
  norm       = 1.09713
  norm       = 2.84214
  Prefactor  = 0.0001
  Prefactor  = 94.178
  Prefactor  = 128.057
  Prefactor  = 0.000100005
  Prefactor  = 0.000100084
  norm       = 0.000102913
  Prefactor  = 0.000100017
  Prefactor  = 0.000100401
  Prefactor  = 67.4407
  Prefactor  = 26.1259
  Prefactor  = 0.0001
  Prefactor  = 15.0128
  Normalizat = 0.436287
  Prefactor  = 1.07674
 **********
 **   18 **HESSE 
 **********

 FCN=   4206.046     FROM HESSE     STATUS=OK           556 CALLS     3303 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.573        12.559        .25377E-02   -1.4918    
   2  Prefactor     .10022E-03    45.229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5149        7.2777        .34345E-02   -1.5124    
   5  norm          4.7405        3.2585        .46200E-02   -1.5272    
   6  Prefactor     8.4001        17.207        .34620E-02   -1.5128    
   7  norm          .10000E-03    1.8207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.749        13.653        .28040E-02   -1.4994    
   9  Prefactor     31.505        18.780        .17848E-02   -1.4585    
  10  Prefactor     37.712        69.635        .16361E-02   -1.4479    
  11  Prefactor     11.311        12.356        .29763E-02   -1.5035    
  12  norm          1.0971        1.0330        .11372E-01   -1.5498    
  13  norm          2.8421        6.1646        .60336E-02   -1.5371    
  14  Prefactor     .10000E-03    6.0628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     94.178        63.542        .10351E-02   -1.3764    
  16  Prefactor     128.06        180.43        .88937E-03   -1.3440    
  17  Prefactor     .10000E-03    18.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10008E-03    18.101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10291E-03    18.546        .14389       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    26.864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10040E-03    2.8101        .64641E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     67.441        40.873        .12213E-02   -1.4064    
  23  Prefactor     26.126        27.905        .19589E-02   -1.4685    
  24  Prefactor     .10000E-03    11.573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.013        10.428        .25842E-02   -1.4933    
  26  Normalizat    .43629        .23732        .83992E-01   -1.1547    
  27  Prefactor     1.0767        .17543        .38534E-01   -.90213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18536e-06
Minuit parameter uncertainties:
  1  12.5611
  2  0.00632711
  3  9.86104e-05
  4  7.27844
  5  3.2586
  6  17.2172
  7  1.42432e-05
  8  13.6566
  9  18.7833
  10  69.7859
  11  12.3585
  12  1.03302
  13  6.166
  14  4.33316e-05
  15  63.5881
  16  181.214
  17  0.000602028
  18  0.00246038
  19  0.0147056
  20  0.00137182
  21  0.00212232
  22  40.8897
  23  27.9185
  24  0.000101452
  25  10.429
  26  0.237871
  27  0.175527
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.004e-04  2.122e-03  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.077e+00  1.755e-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:  4.363e-01  2.379e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66180/likelihoodResults_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4206.04661031
delta logL = -0.000217294641516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4206.04639316
delta logL = -1.42365024658e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5333       1.0000          .0000       10.000    
     3 'Normalizat'    .43638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0767       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=   4206.046     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23713        .61773E-01** at limit **
   2  Index         2.5684        5.9792        .50000       -.97489E-05
   3  Normalizat    .43628        .17007E-02    .83993E-01   -.18561E-03
   4  Prefactor     1.0767        .13487E-02    .38547E-01   -.17508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.56837
  Normalizat = 0.436282
  Prefactor  = 1.07674
 **********
 **   18 **HESSE 
 **********

 FCN=   4206.046     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.44        .19228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5684        6.2664        .50000       -.50788    
   3  Normalizat    .43628        .11211E-01    .37208E-03   -1.1547    
   4  Prefactor     1.0767        .89149E-02    .19221E-03   -.90213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50528e-07
Minuit parameter uncertainties:
  1  0.000562592
  2  168.826
  3  0.0112109
  4  0.00891488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66180': 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) = 4206.04639276
delta logL = 2.62421963271e-07

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  5.626e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.568e+00  1.688e+02  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.077e+00  8.915e-03  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:  4.363e-01  1.121e-02  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/66180/cmap_HighResolution_513043201_513302401_4FGL_J2338.0-0230_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-30 02:35:56.710367', job_id='66180', GAL2='1.08', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632994556.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1056' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 66180: <4FGL_J2338.0-0230_daily_bin1056> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1056 354.509 -2.5106 513043201 513302401 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 :                                   577.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             223.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

