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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1647
RA = 354.509, Dec = -2.5106
tmin = 666230401, tmax = 666489601
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='833751', job_status='RUN', time_executed='2022-02-14 00:36:11.546850', time_epoch_executed='1644827771.55' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833751/ft1_4FGL_J2338.0-0230_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833751/ft1_4FGL_J2338.0-0230_daily_bin1647.fits outfile=/scratch/kocevski/833751/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1647.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=666230401.0 tmax=666489601.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.26
user 4.05
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.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/833751/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1647.fits evtable="EVENTS" outfile="/scratch/kocevski/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/833751/ltcube_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.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/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits
.....................!
real 11.87
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/833751/ltcube_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.fits outfile=/scratch/kocevski/833751/expmap_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.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/833751/ltcube_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.fits
.....................!
real 190.63
user 184.77
sys 5.53

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/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.fits scfile=/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits outfile=/scratch/kocevski/833751/cmap_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.fits scfile=/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits outfile=/scratch/kocevski/833751/cmap_HighResolution_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833751/ft2_4FGL_J2338.0-0230_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833751/Model_4FGL_J2338.0-0230_daily_bin1647.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/833751/ft1_filtered_4FGL_J2338.0-0230_daily_bin1647.fits.....................!
real 53.17
user 51.86
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7476       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0306       1.0000         .10000E-03   10000.    
     7 'norm      '    23.077       1.0000         .10000E-03   10000.    
     8 'norm      '    12.670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.272       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4380       1.0000         .10000E-03   10000.    
    13 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73245E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    173.27       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4540       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.361       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3655       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .58134       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1214       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=   5460.657     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3346 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7478        6.4599       -.28593E-05   -.19945E-03
   2  Prefactor     5.1462        31.360       -.58776E-06   -.15925E-04
   3  Prefactor     27.598        18.437       -.36568E-06    .21176E-04
   4  Prefactor     .10000E-03    2.1283       -.73050E-07** at limit **
   5  norm          .10000E-03    .97771        .12443E-06** at limit **
   6  Prefactor     9.0305        16.736       -.47579E-06   -.32681E-04
   7  norm          23.078        5.9685        .14276E-06    .33311E-04
   8  norm          12.672        12.491        .72908E-05   -.15294E-04
   9  Prefactor     12.271        20.511        .81706E-06   -.89900E-05
  10  Prefactor     36.488        51.214        .55320E-06   -.65386E-05
  11  Prefactor     .10000E-03    4.8656       -.43641E-08** at limit **
  12  norm          2.4382        1.2167        .44657E-07   -.12892E-03
  13  norm          .10000E-03    5.3453       -.19140E-06** at limit **
  14  Prefactor     .10000E-03    7.3849        .72999E-07** at limit **
  15  Prefactor     173.23        87.072       -.19533E-04    .25563E-04
  16  Prefactor     .10000E-03    133.35        .10411E-04** at limit **
  17  Prefactor     3.4561        7.7442        .82766E-06   -.13640E-03
  18  Prefactor     .10000E-03    10.078        .25381E-07** at limit **
  19  norm          .10000E-03    17.727       -.48628E-07** at limit **
  20  Prefactor     .10000E-03    56.405        .19960E-04** at limit **
  21  Prefactor     .10000E-03    1.2542        .42151E-07** at limit **
  22  Prefactor     .10006E-03    345.76       -.11649E-04** at limit **
  23  Prefactor     .10000E-03    59.688       -.22045E-04** at limit **
  24  Prefactor     31.360        20.696       -.90136E-06    .25349E-04
  25  Prefactor     6.3654        5.5983       -.11735E-05   -.24653E-02
  26  Normalizat    .58146        .22139        .19454E-05    .10088E-03
  27  Prefactor     1.1212        .16307        .29581E-06    .20084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74781
  Prefactor  = 5.14618
  Prefactor  = 27.5976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.03048
  norm       = 23.0777
  norm       = 12.6722
  Prefactor  = 12.271
  Prefactor  = 36.4882
  Prefactor  = 0.0001
  norm       = 2.43825
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 173.231
  Prefactor  = 0.0001
  Prefactor  = 3.45615
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 31.3596
  Prefactor  = 6.36542
  Normalizat = 0.581464
  Prefactor  = 1.12117
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.657     FROM HESSE     STATUS=OK           490 CALLS     3836 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7478        6.4467        .20857E-03   -1.5321    
   2  Prefactor     5.1462        31.294        .17695E-03   -1.5254    
   3  Prefactor     27.598        18.414        .76263E-04   -1.4657    
   4  Prefactor     .10000E-03    2.1326        .10522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .98610        .71234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0305        16.710        .13337E-03   -1.5107    
   7  norm          23.078        5.9616        .81235E-04   -1.4747    
   8  norm          12.672        12.419        .11254E-03   -1.4996    
   9  Prefactor     12.271        20.526        .11435E-03   -1.5007    
  10  Prefactor     36.488        51.224        .66353E-04   -1.4499    
  11  Prefactor     .10000E-03    4.8692        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4382        1.2127        .54975E-04   -1.5396    
  13  norm          .10000E-03    5.4422        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.272        .38673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     173.23        86.549        .15327E-03   -1.3068    
  16  Prefactor     .10000E-03    133.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4561        7.6809        .21761E-03   -1.5336    
  18  Prefactor     .10000E-03    10.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    56.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.2570        .80794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    358.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.360        20.718        .71549E-04   -1.4587    
  25  Prefactor     6.3654        5.7284        .79544E-03   -1.5203    
  26  Normalizat    .58146        .24364        .36023E-03   -1.0878    
  27  Prefactor     1.1212        .18125        .20488E-03   -.88793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54141e-09
Minuit parameter uncertainties:
  1  6.44787
  2  25.4001
  3  18.4174
  4  4.3101e-07
  5  2.10009e-07
  6  16.7188
  7  5.96177
  8  12.4211
  9  20.5379
  10  51.2859
  11  1.1716e-05
  12  1.21271
  13  1.80556e-05
  14  0.000789366
  15  86.6125
  16  3.09883e-05
  17  7.68308
  18  9.85409e-06
  19  1.61649e-05
  20  6.07574e-05
  21  4.0271e-06
  22  0.00902222
  23  0.000343198
  24  20.7232
  25  5.72887
  26  0.244095
  27  0.181353
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  4.027e-06  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.121e+00  1.814e-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.815e-01  2.441e-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: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833751/likelihoodResults_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.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) = 5460.66097012
delta logL = -0.00363690064933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.65733306
delta logL = 1.59599949257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4801       1.0000          .0000       10.000    
     3 'Normalizat'    .58147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1212       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5460.657     FROM MIGRAD    STATUS=FAILED        98 CALLS      246 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.551        .81183E-02** at limit **
   2  Index         2.0646        5.8273        .50000       -.21772E-05
   3  Normalizat    .58146        .15644E-01    .36023E-03   -.35331E-03
   4  Prefactor     1.1212        .12132E-01    .20488E-03   -.60354E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5460.657     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      423 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.551        .16269E-03** at limit **
   2  Index         2.0646        5.8273        .16569E-04   -.21772E-05
   3  Normalizat    .58146        .15644E-01    .17619E-06   -.35331E-03
   4  Prefactor     1.1212        .12132E-01    .18279E-07   -.60354E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5460.657     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      454 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.35        .85128E-03** at limit **
   2  Index         2.0651        7.1993        .50000        .69349E-07
   3  Normalizat    .58146        .52006E-01    .14409E-04   -.35221E-03
   4  Prefactor     1.1212        .40333E-01    .40977E-04   -.60166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06511
  Normalizat = 0.581463
  Prefactor  = 1.12117
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.657     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      483 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    342.25        .17026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0651        6.0451        .50000       -.62732    
   3  Normalizat    .58146        .21781        .28818E-05   -1.0878    
   4  Prefactor     1.1212        .16898        .81953E-05   -.88793    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.02111e-10
Minuit parameter uncertainties:
  1  0.000121383
  2  1230.34
  3  0.218127
  4  0.169058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833751': 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) = 5460.65732935
delta logL = 3.87172349292e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.214e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.065e+00  1.230e+03  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.121e+00  1.691e-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.815e-01  2.181e-01  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/833751/cmap_HighResolution_666230401_666489601_4FGL_J2338.0-0230_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2022-02-14 00:47:29.352632', job_id='833751', GAL2='1.12', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1644828449.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1647' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:47:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 833751: <4FGL_J2338.0-0230_daily_bin1647> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1647> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 14 00:36:01 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:36:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:36:03 2022
Terminated at Mon Feb 14 00:47:30 2022
Results reported at Mon Feb 14 00:47:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1647 354.509 -2.5106 666230401 666489601 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            689 sec.

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

