/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 6336
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1338
RA = 354.509, Dec = -2.5106
tmin = 586137601, tmax = 586396801
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='67895', job_status='RUN', time_executed='2021-09-30 02:25:33.632779', time_epoch_executed='1632993933.63' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67895

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67895/ft1_4FGL_J2338.0-0230_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67895/ft1_4FGL_J2338.0-0230_daily_bin1338.fits outfile=/scratch/kocevski/67895/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1338.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=586137601.0 tmax=586396801.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.54
user 4.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.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/67895/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.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/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/67895/ltcube_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.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/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits
.....................!
real 9.79
user 9.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/67895/ltcube_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.fits outfile=/scratch/kocevski/67895/expmap_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.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/67895/ltcube_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.fits
.....................!
real 190.30
user 185.52
sys 4.48

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/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.fits scfile=/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits outfile=/scratch/kocevski/67895/cmap_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.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/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.fits scfile=/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits outfile=/scratch/kocevski/67895/cmap_HighResolution_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.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/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/67895/ft2_4FGL_J2338.0-0230_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67895/Model_4FGL_J2338.0-0230_daily_bin1338.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/67895/ft1_filtered_4FGL_J2338.0-0230_daily_bin1338.fits.....................!
real 39.79
user 38.62
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    107.65       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.321       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    101.72       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13626E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2059       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    73.296       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4243       1.0000         .10000E-03   10000.    
    19 'norm      '    .17792E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6840       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.876       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.065       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.037       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .54552       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91985       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=   3720.687     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3372 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9625        .17953E-06** at limit **
   2  Prefactor     107.67        83.071        .32452E-06    .43839E-04
   3  Prefactor     27.231        18.734       -.72763E-07   -.60307E-04
   4  Prefactor     .10000E-03    5.2027        .60203E-07** at limit **
   5  norm          2.1148        2.7543        .12279E-06   -.38557E-04
   6  Prefactor     .10000E-03    21.810       -.30731E-07** at limit **
   7  norm          .10000E-03    2.3306        .23396E-07** at limit **
   8  norm          26.319        21.134        .10276E-06    .93961E-05
   9  Prefactor     27.455        28.987        .12844E-06    .14370E-04
  10  Prefactor     101.76        70.333        .83176E-06    .15700E-03
  11  Prefactor     .10000E-03    11.113        .15381E-05** at limit **
  12  norm          1.2060        1.0799        .16422E-07    .97759E-04
  13  norm          .10000E-03    2.6298        .19711E-06** at limit **
  14  Prefactor     .10000E-03    3.4733       -.88414E-08** at limit **
  15  Prefactor     73.287        74.548        .81924E-07   -.44843E-05
  16  Prefactor     .10000E-03    113.78        .11367E-07** at limit **
  17  Prefactor     .10000E-03    19.372       -.67723E-07** at limit **
  18  Prefactor     8.4211        26.539        .27785E-06    .68374E-05
  19  norm          .10000E-03    19.799       -.28129E-05** at limit **
  20  Prefactor     79.321        78.219       -.60113E-06   -.39184E-04
  21  Prefactor     7.6865        6.0654        .17787E-05    .11549E-04
  22  Prefactor     .10000E-03    18.849       -.39906E-06** at limit **
  23  Prefactor     33.867        30.916        .12613E-06    .71235E-05
  24  Prefactor     14.060        24.360       -.18987E-06    .15453E-04
  25  Prefactor     20.038        10.774        .51247E-07    .62679E-05
  26  Normalizat    .54562        .26366       -.18090E-05    .57895E-04
  27  Prefactor     .91983        .17434        .54030E-06    .49175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 107.665
  Prefactor  = 27.2306
  Prefactor  = 0.0001
  norm       = 2.1148
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.3188
  Prefactor  = 27.4552
  Prefactor  = 101.755
  Prefactor  = 0.0001
  norm       = 1.20597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.2871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42111
  norm       = 0.0001
  Prefactor  = 79.3211
  Prefactor  = 7.68647
  Prefactor  = 0.0001
  Prefactor  = 33.867
  Prefactor  = 14.0595
  Prefactor  = 20.0376
  Normalizat = 0.545625
  Prefactor  = 0.919831
 **********
 **   18 **HESSE 
 **********

 FCN=   3720.687     FROM HESSE     STATUS=OK           482 CALLS     3854 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     107.67        82.966        .38762E-04   -1.3629    
   3  Prefactor     27.231        18.727        .76764E-04   -1.4664    
   4  Prefactor     .10000E-03    5.3023        .13570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1148        2.7334        .10626E-03   -1.5417    
   6  Prefactor     .10000E-03    22.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3858        .18168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.319        21.135        .78083E-04   -1.4681    
   9  Prefactor     27.455        29.007        .76450E-04   -1.4660    
  10  Prefactor     101.76        70.445        .19933E-03   -1.3687    
  11  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2060        1.0569        .57216E-04   -1.5488    
  13  norm          .10000E-03    2.6312        .96509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4754        .11102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.287        74.387        .46895E-04   -1.3994    
  16  Prefactor     .10000E-03    113.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4211        26.506        .13812E-03   -1.5128    
  19  norm          .10000E-03    184.36        .49134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     79.321        78.380        .45089E-04   -1.3924    
  21  Prefactor     7.6865        6.1305        .62881E-03   -1.5153    
  22  Prefactor     .10000E-03    18.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.867        30.924        .68849E-04   -1.4543    
  24  Prefactor     14.060        24.433        .10680E-03   -1.4958    
  25  Prefactor     20.038        10.784        .89478E-04   -1.4812    
  26  Normalizat    .54562        .28998        .34047E-03   -1.1035    
  27  Prefactor     .91983        .19666        .19886E-03   -.95452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03681e-10
Minuit parameter uncertainties:
  1  1.46676e-05
  2  83.0552
  3  18.7315
  4  2.11287e-06
  5  2.73354
  6  5.48653e-05
  7  3.15164e-07
  8  21.1413
  9  29.022
  10  70.503
  11  0.000104502
  12  1.05688
  13  6.57063e-06
  14  5.71964e-07
  15  74.4819
  16  6.13752e-05
  17  0.000101377
  18  26.5431
  19  0.000295217
  20  78.4821
  21  6.13096
  22  0.000128353
  23  30.9384
  24  24.4503
  25  10.7852
  26  0.290789
  27  0.196809
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.686e+00  6.131e+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:  9.198e-01  1.968e-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:  5.456e-01  2.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 6.12e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.80e-05

TS (Fixed Index): 2.75
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 2.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67895/likelihoodResults_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.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) = 3720.68502912
delta logL = 0.00176115426484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3720.68454263
delta logL = 0.00224764528821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8658       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4469       1.0000          .0000       10.000    
     3 'Normalizat'    .54836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91860       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=   3720.685     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8658        183.67        .35743E-02   -.35904E-03
   2  Index         2.4469        6.0259        .18200       -.38224E-05
   3  Normalizat    .54834        .13205        .76713E-01    .23301E-04
   4  Prefactor     .91861        .80413E-01    .45242E-01    .19278E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.86577
  Index      = 2.4469
  Normalizat = 0.54834
  Prefactor  = 0.918612
 **********
 **   18 **HESSE 
 **********

 FCN=   3720.685     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8658        6.8059        .12811E-03   -1.5147    
   2  Index         2.4469        .65629        .67189E-02   -.53591    
   3  Normalizat    .54834        .26021        .33968E-03   -1.1022    
   4  Prefactor     .91861        .19230        .19897E-03   -.95494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09002e-10
Minuit parameter uncertainties:
  1  6.8066
  2  0.658862
  3  0.26079
  4  0.19244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67895': 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) = 3720.68454263
delta logL = 0.00224764809172

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.866e+00  6.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.447e+00  6.589e-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:  9.186e-01  1.924e-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:  5.483e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.45 +/- 0.66
Photon Flux (Free Index): 7.42e-08 +/- 7.01e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.93e-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/67895/cmap_HighResolution_586137601_586396801_4FGL_J2338.0-0230_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='2.29e-05', photon_flux_error='6.12e-08', dlogl='2.25e-03', energy_flux='2.25e-05', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-09-30 02:34:43.080656', photon_index_error2='0.66', photon_index2='2.45', ts='2.75', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='1.93e-05', EG='0.55', time_epoch_completed='1632994483.08', return_code='0', job_id='67895', GAL2='0.92', EG2='0.55', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='7.01e-08', ts2='2.74', photon_index='2.49' WHERE bin_id='1338' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:34:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 67895: <4FGL_J2338.0-0230_daily_bin1338> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1338 354.509 -2.5106 586137601 586396801 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 :                                   545.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            562 sec.

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

