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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1084
RA = 354.509, Dec = -2.5106
tmin = 520300801, tmax = 520560001
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='66221', job_status='RUN', time_executed='2021-09-30 02:24:28.978722', time_epoch_executed='1632993868.98' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66221/ft1_4FGL_J2338.0-0230_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66221/ft1_4FGL_J2338.0-0230_daily_bin1084.fits outfile=/scratch/kocevski/66221/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1084.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=520300801.0 tmax=520560001.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.06
user 5.77
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.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/66221/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/66221/ft1_filtered_4FGL_J2338.0-0230_daily_bin1084.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/66221/ft1_filtered_4FGL_J2338.0-0230_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/66221/ltcube_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.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/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.fits
.....................!
real 12.06
user 11.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66221/ft1_filtered_4FGL_J2338.0-0230_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/66221/ltcube_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.fits outfile=/scratch/kocevski/66221/expmap_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.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/66221/ltcube_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.fits
.....................!
real 190.55
user 185.10
sys 5.14

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/66221/ft1_filtered_4FGL_J2338.0-0230_daily_bin1084.fits scfile=/scratch/kocevski/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.fits outfile=/scratch/kocevski/66221/cmap_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66221/ft1_filtered_4FGL_J2338.0-0230_daily_bin1084.fits scfile=/scratch/kocevski/66221/ft2_4FGL_J2338.0-0230_daily_bin1084.fits outfile=/scratch/kocevski/66221/cmap_HighResolution_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.230       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5904       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0693       1.0000         .10000E-03   10000.    
     8 'norm      '    20.022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1584       1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.0897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28398E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    237.28       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18257E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5507       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17842E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6057       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.126       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.494       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7778       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .49247       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1866       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3857.976     FROM MIGRAD    STATUS=CONVERGED   1223 CALLS     3886 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.238        15.312        .11012E-03    .32261E-04
   2  Prefactor     .10000E-03    32.766        .18142E-02** at limit **
   3  Prefactor     .10000E-03    23.670        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.2903        .15120E-02** at limit **
   5  norm          4.5611        3.8850        .10632E-03    .72979E-04
   6  Prefactor     1.5660        42.713        .33647E-03   -.44955E-04
   7  norm          1.0784        3.9069        .20158E-03    .30971E-03
   8  norm          20.028        15.200        .89512E-04    .22957E-03
   9  Prefactor     1.0791        235.54        .67317E-02    .79096E-04
  10  Prefactor     .10000E-03    21.395        .18142E-02** at limit **
  11  Prefactor     2.1560        9.7972        .28040E-03   -.40606E-04
  12  norm          .10000E-03    .54871        .78611E-03** at limit **
  13  norm          9.0897        6.3645        .12035E-03    .65367E-04
  14  Prefactor     .10000E-03    11.048        .18142E-02** at limit **
  15  Prefactor     .10039E-03    65.644        .14932    ** at limit **
  16  Prefactor     236.96        269.66        .13141E-03   -.13505E-04
  17  Prefactor     .10000E-03    9.2660        .18142E-02** at limit **
  18  Prefactor     .10000E-03    151.58        .18142E-02** at limit **
  19  norm          1.6280        84.551        .17102E-02   -.29113E-04
  20  Prefactor     .10000E-03    27.697        .18142E-02** at limit **
  21  Prefactor     .63521E-02    14.085        .34787E-01   -.40850E-03
  22  Prefactor     8.7283        86.108        .13664E-03    .24294E-04
  23  Prefactor     55.181        40.851        .27013E-03    .14452E-03
  24  Prefactor     19.491        23.664        .90715E-04   -.65732E-04
  25  Prefactor     5.7783        7.6402        .16709E-03    .30107E-04
  26  Normalizat    .49257        .29132        .36244E-03    .16593E-03
  27  Prefactor     1.1864        .21957        .18909E-03    .32659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.56114
  Prefactor  = 1.56599
  norm       = 1.07835
  norm       = 20.028
  Prefactor  = 1.07906
  Prefactor  = 0.0001
  Prefactor  = 2.15601
  norm       = 0.0001
  norm       = 9.08973
  Prefactor  = 0.0001
  Prefactor  = 0.000100393
  Prefactor  = 236.955
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.62797
  Prefactor  = 0.0001
  Prefactor  = 0.00635206
  Prefactor  = 8.72832
  Prefactor  = 55.1814
  Prefactor  = 19.4915
  Prefactor  = 5.77827
  Normalizat = 0.492571
  Prefactor  = 1.18643
 **********
 **   18 **HESSE 
 **********

 FCN=   3857.976     FROM HESSE     STATUS=OK           484 CALLS     4370 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.238        15.302        .44049E-05   -1.4980    
   2  Prefactor     .10000E-03    32.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2908        .30240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5611        3.8826        .42528E-05   -1.5281    
   6  Prefactor     1.5660        42.498        .13459E-04   -1.5458    
   7  norm          1.0784        3.8975        .80633E-05   -1.5500    
   8  norm          20.028        15.190        .35805E-05   -1.4813    
   9  Prefactor     1.0791        231.13        .26927E-03   -1.5500    
  10  Prefactor     .10000E-03    21.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1560        9.7810        .11216E-04   -1.5414    
  12  norm          .10000E-03    .54901        .15722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.0897        6.3624        .48142E-05   -1.5105    
  14  Prefactor     .10000E-03    11.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10039E-03    66.055        .14856       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     236.96        268.88        .26281E-04   -1.2617    
  17  Prefactor     .10000E-03    9.2662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    151.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6280        81.589        .68407E-04   -1.5453    
  20  Prefactor     .10000E-03    27.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .63521E-02    8.3094        .46267E-01   -1.5692    
  22  Prefactor     8.7283        85.944        .54658E-05   -1.5117    
  23  Prefactor     55.181        40.822        .10805E-04   -1.4221    
  24  Prefactor     19.491        23.653        .36286E-05   -1.4825    
  25  Prefactor     5.7783        7.6374        .66836E-05   -1.5227    
  26  Normalizat    .49257        .29093        .14497E-04   -1.1276    
  27  Prefactor     1.1864        .21841        .37819E-04   -.86750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81096e-09
Minuit parameter uncertainties:
  1  15.3065
  2  8.96788e-06
  3  8.65428e-05
  4  4.86911e-05
  5  3.88282
  6  16.3282
  7  3.89843
  8  15.1929
  9  31.7083
  10  2.77909e-05
  11  9.18658
  12  2.16071e-05
  13  6.36283
  14  3.84502e-05
  15  0.0101975
  16  270.3
  17  0.000174291
  18  0.000387269
  19  23.0825
  20  7.33262e-05
  21  0.455917
  22  54.88
  23  40.8429
  24  23.6648
  25  7.63869
  26  0.291827
  27  0.218581
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.352e-03  4.559e-01  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.186e+00  2.186e-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.926e-01  2.918e-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.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66221/likelihoodResults_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.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) = 3857.97641886
delta logL = 1.22781784739e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3857.97641886
delta logL = 2.45563569479e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63521E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4905       1.0000          .0000       10.000    
     3 'Normalizat'    .49257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1864       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=   3857.976     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      274 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19494E-01    3.6484        .73482E-01    .86339E-04
   2  Index         2.5491        6.0940        .50000        .94750E-05
   3  Normalizat    .49247        .64355E-02    .81833E-01   -.25894E-03
   4  Prefactor     1.1864        .50690E-02    .34960E-01   -.38026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.019494
  Index      = 2.54908
  Normalizat = 0.492467
  Prefactor  = 1.18643
 **********
 **   18 **HESSE 
 **********

 FCN=   3857.976     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      315 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19494E-01    17.661        .33883E-01   -1.5680    
   2  Index         2.5491        5.7015        .50000       -.51230    
   3  Normalizat    .49247        .77954E-02    .36246E-03   -1.1277    
   4  Prefactor     1.1864        .61566E-02    .18909E-03   -.86750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8876e-12
Minuit parameter uncertainties:
  1  1.17084
  2  7.62324
  3  0.00779543
  4  0.00615659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66221': 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) = 3857.97641278
delta logL = 6.08007167102e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.949e-02  1.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.549e+00  7.623e+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:  1.186e+00  6.157e-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.925e-01  7.795e-03  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/66221/cmap_HighResolution_520300801_520560001_4FGL_J2338.0-0230_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-30 02:36:19.979713', job_id='66221', GAL2='1.19', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1632994579.98', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.08e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1084' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 66221: <4FGL_J2338.0-0230_daily_bin1084> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1084 354.509 -2.5106 520300801 520560001 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 :                                   596.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

