/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 218 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin125
RA = 354.509, Dec = -2.5106
tmin = 271728001, tmax = 271987201
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='59995', job_status='RUN', time_executed='2021-09-30 02:09:13.977376', time_epoch_executed='1632992953.98' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59995/ft1_4FGL_J2338.0-0230_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59995/ft1_4FGL_J2338.0-0230_daily_bin125.fits outfile=/scratch/kocevski/59995/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin125.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=271728001.0 tmax=271987201.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 3.11
user 2.92
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.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/59995/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.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/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/59995/ltcube_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.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/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits
.....................!
real 12.00
user 11.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/59995/ltcube_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.fits outfile=/scratch/kocevski/59995/expmap_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.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/59995/ltcube_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.fits
.....................!
real 188.65
user 184.47
sys 3.84

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/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.fits scfile=/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits outfile=/scratch/kocevski/59995/cmap_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.fits scfile=/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits outfile=/scratch/kocevski/59995/cmap_HighResolution_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.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/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/59995/ft2_4FGL_J2338.0-0230_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59995/Model_4FGL_J2338.0-0230_daily_bin125.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/59995/ft1_filtered_4FGL_J2338.0-0230_daily_bin125.fits.....................!
real 62.26
user 60.91
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.186       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6991       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0593       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4375       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .29276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12410       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5173       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46789E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2871       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19601E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .53932       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1873       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=   6954.496     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3354 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0353        .14105E-06** at limit **
   2  Prefactor     35.193        36.498        .66960E-07    .28906E-04
   3  Prefactor     9.7018        11.145        .12556E-06   -.13907E-04
   4  Prefactor     3.0590        4.8544        .65877E-06    .31596E-04
   5  norm          3.2937        2.3434        .11108E-06   -.13343E-04
   6  Prefactor     4.4404        10.410        .32705E-06   -.11493E-04
   7  norm          .10000E-03    1.0688       -.96417E-07** at limit **
   8  norm          .27096        7.4848        .21793E-05   -.67275E-03
   9  Prefactor     9.0598        14.783        .28715E-05    .27377E-04
  10  Prefactor     .10000E-03    23.628        .85198E-06** at limit **
  11  Prefactor     .10000E-03    2.4641        .38044E-07** at limit **
  12  norm          .12420        .53254        .38171E-06   -.61268E-03
  13  norm          .10000E-03    1.6120        .74886E-08** at limit **
  14  Prefactor     8.5144        7.8255        .18345E-06   -.18204E-04
  15  Prefactor     .10000E-03    11.906        .20377E-08** at limit **
  16  Prefactor     .10000E-03    44.745        .75129E-06** at limit **
  17  Prefactor     .10000E-03    4.3295        .31039E-08** at limit **
  18  Prefactor     .10000E-03    6.3936       -.20602E-07** at limit **
  19  norm          .10000E-03    5.0438        .10193E-07** at limit **
  20  Prefactor     .10001E-03    257.54       -.44101E-05** at limit **
  21  Prefactor     8.1708        3.9325       -.61126E-08   -.35116E-03
  22  Prefactor     .10000E-03    19.145       -.32485E-06** at limit **
  23  Prefactor     6.3002        24.577        .16372E-05   -.34066E-04
  24  Prefactor     .10000E-03    31.936       -.16945E-05** at limit **
  25  Prefactor     .10008E-03    5.0656        .40345E-06** at limit **
  26  Normalizat    .53925        .16953       -.26074E-05   -.43493E-03
  27  Prefactor     1.1873        .12860       -.21897E-06   -.71315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.1931
  Prefactor  = 9.70179
  Prefactor  = 3.05902
  norm       = 3.2937
  Prefactor  = 4.44042
  norm       = 0.0001
  norm       = 0.270958
  Prefactor  = 9.05984
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.124198
  norm       = 0.0001
  Prefactor  = 8.51442
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 8.17078
  Prefactor  = 0.0001
  Prefactor  = 6.30022
  Prefactor  = 0.000100002
  Prefactor  = 0.000100084
  Normalizat = 0.539255
  Prefactor  = 1.18731
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.496     FROM HESSE     STATUS=OK           496 CALLS     3850 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0774        .16355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.193        36.465        .67560E-04   -1.4521    
   3  Prefactor     9.7018        11.128        .12867E-03   -1.5085    
   4  Prefactor     3.0590        4.8201        .21196E-03   -1.5358    
   5  norm          3.2937        2.3361        .99412E-04   -1.5345    
   6  Prefactor     4.4404        10.351        .19116E-03   -1.5286    
   7  norm          .10000E-03    1.0726        .83868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .27096        91.319        .38146E-02   -1.5604    
   9  Prefactor     9.0598        14.756        .66597E-03   -1.5106    
  10  Prefactor     .10000E-03    23.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4716        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .12420        .95350        .11095E-02   -1.5638    
  13  norm          .10000E-03    1.6170        .10337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5144        7.8302        .13736E-03   -1.5124    
  15  Prefactor     .10000E-03    11.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3639        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.0475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    266.07        .42380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1708        3.9240        .10760E-03   -1.5136    
  22  Prefactor     .10000E-03    19.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3002        24.658        .16009E-03   -1.5206    
  24  Prefactor     .10000E-03    32.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10008E-03    6.8521        .50396E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .53925        .18813        .32572E-03   -1.1063    
  27  Prefactor     1.1873        .14433        .18164E-03   -.86723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05638e-08
Minuit parameter uncertainties:
  1  1.07432e-05
  2  36.4885
  3  11.1302
  4  4.8207
  5  2.33612
  6  10.3556
  7  2.92568e-06
  8  9.96207
  9  14.7618
  10  0.000378006
  11  3.57339e-06
  12  0.68799
  13  1.83548e-06
  14  7.83117
  15  3.21909e-06
  16  0.000514056
  17  4.81864e-06
  18  1.23386e-07
  19  2.92227e-06
  20  0.00378839
  21  3.92412
  22  9.31007e-05
  23  24.6982
  24  0.000504602
  25  0.0015191
  26  0.188354
  27  0.144381
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  8.171e+00  3.924e+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:  1.187e+00  1.444e-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.393e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.43
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.17e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.15e-05

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) = 6953.84764249
delta logL = 0.648046358792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6953.8460606
delta logL = 0.649628247304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7737       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1270       1.0000          .0000       10.000    
     3 'Normalizat'    .48966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2122       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=   6953.846     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7737        28.433        .46037E-02    .79412E-03
   2  Index         3.1270        2.9328        .11328        .17371E-03
   3  Normalizat    .48966        .80100E-01    .76931E-01    .79217E-04
   4  Prefactor     1.2122        .53718E-01    .34348E-01   -.27979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7737
  Index      = 3.12705
  Normalizat = 0.489659
  Prefactor  = 1.21221
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.846     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7737        4.5853        .70891E-04   -1.5271    
   2  Index         3.1270        .70120        .45222E-02   -.38396    
   3  Normalizat    .48966        .18372        .34068E-03   -1.1290    
   4  Prefactor     1.2122        .14425        .17996E-03   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71297e-11
Minuit parameter uncertainties:
  1  4.58568
  2  0.703901
  3  0.18395
  4  0.144295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59995': 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) = 6953.8460606
delta logL = 0.649628248685

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.774e+00  4.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.127e+00  7.039e-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:  1.212e+00  1.443e-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.897e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.97
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.13 +/- 0.70
Photon Flux (Free Index): 1.20e-07 +/- 5.63e-08
Energy Flux (Free Index): 2.27e-05 +/- 9.56e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/59995/cmap_HighResolution_271728001_271987201_4FGL_J2338.0-0230_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.17e-08', energy_flux2='2.27e-05', photon_flux_error='3.92e-08', dlogl='6.50e-01', energy_flux='2.40e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-30 02:20:33.996099', photon_index_error2='0.70', photon_index2='3.13', ts='9.43', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='9.56e-06', EG='0.54', time_epoch_completed='1632993634.0', return_code='0', job_id='59995', GAL2='1.21', EG2='0.49', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='5.63e-08', ts2='10.97', photon_index='2.49' WHERE bin_id='125' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 59995: <4FGL_J2338.0-0230_daily_bin125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin125 354.509 -2.5106 271728001 271987201 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 :                                   679.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

