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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1477
RA = 189.594, Dec = -19.9945
tmin = 622166401, tmax = 622425601
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='854663', job_status='RUN', time_executed='2021-09-06 02:26:37.969352', time_epoch_executed='1630920397.97' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854663/ft1_4FGL_J1238.3-1959_daily_bin1477.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854663/ft1_4FGL_J1238.3-1959_daily_bin1477.fits outfile=/scratch/kocevski/854663/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1477.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=622166401.0 tmax=622425601.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.72
user 3.49
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.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/854663/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1477.fits evtable="EVENTS" outfile="/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits" evtable="EVENTS" scfile=/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits sctable="SC_DATA" outfile=/scratch/kocevski/854663/ltcube_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.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/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits
.....................!
real 16.40
user 16.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits sctable="SC_DATA" expcube=/scratch/kocevski/854663/ltcube_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.fits outfile=/scratch/kocevski/854663/expmap_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.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/854663/ltcube_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.fits
.....................!
real 193.11
user 187.79
sys 4.77

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits scfile=/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits outfile=/scratch/kocevski/854663/cmap_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.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=189.594 yref=-19.9945 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.90
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits scfile=/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits outfile=/scratch/kocevski/854663/cmap_HighResolution_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.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=189.594 yref=-19.9945 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.77
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854663/Model_4FGL_J1238.3-1959_daily_bin1477.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/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits.....................!
real 73.81
user 71.14
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits', '/scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits', expMap='/scratch/kocevski/854663/expmap_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.fits', expCube='/scratch/kocevski/854663/ltcube_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/854663/Model_4FGL_J1238.3-1959_daily_bin1477.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/854663/ft1_filtered_4FGL_J1238.3-1959_daily_bin1477.fits
Spacecraft file(s): /scratch/kocevski/854663/ft2_4FGL_J1238.3-1959_daily_bin1477.fits
Exposure map: /scratch/kocevski/854663/expmap_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.fits
Exposure cube: /scratch/kocevski/854663/ltcube_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/854663/Model_4FGL_J1238.3-1959_daily_bin1477.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) = 9009.7145779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2996       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7487       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12422E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.186       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5143       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9009.706     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2564 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.911        .97107E-06** at limit **
   2  Prefactor     .10000E-03    15.709       -.15846E-06** at limit **
   3  norm          18.620        6.1449       -.16001E-07   -.77194E-04
   4  Prefactor     1.1022        4.2240        .26596E-05   -.15610E-03
   5  Prefactor     .10000E-03    15.865        .79650E-07** at limit **
   6  Prefactor     22.648        34.494       -.24327E-05   -.12924E-03
   7  Prefactor     .10000E-03    9.3273        .11729E-06** at limit **
   8  Prefactor     2.3011        138.55        .13930E-05    .59629E-05
   9  Prefactor     2.3066        72.462        .17657E-05   -.23160E-04
  10  Prefactor     .10000E-03    3.6486        .11621E-08** at limit **
  11  Prefactor     7.7487        2.4135       -.17239E-07    .76580E-04
  12  Prefactor     .10009E-03    6.9066       -.11227E-06** at limit **
  13  Prefactor     .10000E-03    24.193       -.17215E-05** at limit **
  14  norm          3.8452        1.1911        .16339E-07   -.98172E-04
  15  Prefactor     .10000E-03    39.175        .39820E-06** at limit **
  16  norm          .10000E-03    2.1548        .11326E-07** at limit **
  17  norm          .10000E-03    3.6596        .14386E-06** at limit **
  18  Prefactor     14.186        6.4353        .11951E-06    .13924E-03
  19  norm          .10000E-03    .88172        .11196E-07** at limit **
  20  Normalizat    1.5144        .22278       -.45698E-06   -.29807E-04
  21  Prefactor     .88066        .10737       -.16119E-06   -.64121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 18.6199
  Prefactor  = 1.10223
  Prefactor  = 0.0001
  Prefactor  = 22.648
  Prefactor  = 0.0001
  Prefactor  = 2.30111
  Prefactor  = 2.30659
  Prefactor  = 0.0001
  Prefactor  = 7.74868
  Prefactor  = 0.000100092
  Prefactor  = 0.000100002
  norm       = 3.84518
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1865
  norm       = 0.0001
  Normalizat = 1.51442
  Prefactor  = 0.880656
 **********
 **   18 **HESSE 
 **********

 FCN=   9009.706     FROM HESSE     STATUS=OK           323 CALLS     2887 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.620        6.1333        .92817E-04   -1.4845    
   4  Prefactor     1.1022        4.2576        .34707E-03   -1.5498    
   5  Prefactor     .10000E-03    15.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.648        34.675        .84162E-04   -1.4756    
   7  Prefactor     .10000E-03    9.3227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3011        138.35        .27121E-03   -1.5405    
   9  Prefactor     2.3066        71.825        .27063E-03   -1.5404    
  10  Prefactor     .10000E-03    3.7182        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7487        2.4122        .79954E-04   -1.5151    
  12  Prefactor     .10009E-03    8.3572        .78151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8452        1.1899        .54896E-04   -1.5316    
  15  Prefactor     .10000E-03    39.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1629        .13607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6896        .17666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.186        6.4154        .10634E-03   -1.4954    
  19  norm          .10000E-03    .90598        .17403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5144        .26226        .33021E-03   -.77374    
  21  Prefactor     .88066        .12664        .20472E-03   -.96820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17e-10
Minuit parameter uncertainties:
  1  0.000474099
  2  4.32341e-05
  3  6.13352
  4  4.25881
  5  2.73724e-05
  6  34.7055
  7  8.11415e-06
  8  35.7717
  9  25.7759
  10  4.18466e-06
  11  2.41223
  12  0.00175566
  13  0.0004756
  14  1.18987
  15  0.000188099
  16  1.03823e-06
  17  3.20337e-06
  18  6.41571
  19  2.99794e-07
  20  0.262493
  21  0.126685
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.001e-04  1.756e-03  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.807e-01  1.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.514e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854663/likelihoodResults_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.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) = 9009.70629782
delta logL = -2.87145430775e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9009.70629753
delta logL = -2.84279940388e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96151E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1520       1.0000          .0000       10.000    
     3 'Normalizat'    1.5142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9009.694     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      354 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55902        38.298        .18147E-02    .84363E-04
   2  Index         2.7830        6.3089        .45880E-02    .49261E-05
   3  Normalizat    1.5087        .25826        .33075E-03    .44684E-04
   4  Prefactor     .88146        .12602        .20464E-03    .77333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.559018
  Index      = 2.78297
  Normalizat = 1.50867
  Prefactor  = 0.881456
 **********
 **   18 **HESSE 
 **********

 FCN=   9009.694     FROM HESSE     STATUS=OK            25 CALLS      379 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55902        10.525        .72586E-04   -1.5558    
   2  Index         2.7830        2.9500        .18352E-03   -.45940    
   3  Normalizat    1.5087        .25858        .13230E-04   -.77535    
   4  Prefactor     .88146        .12605        .81855E-05   -.96792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6095e-12
Minuit parameter uncertainties:
  1  4.85174
  2  3.21995
  3  0.25881
  4  0.126087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854663': 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) = 9009.69396768
delta logL = 0.0123014233359

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  5.590e-01  4.852e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.783e+00  3.220e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.815e-01  1.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.509e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.594 -19.994

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/854663/cmap_HighResolution_622166401_622425601_4FGL_J1238.3-1959_daily_bin1477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-06 02:41:07.934600', job_id='854663', GAL2='0.88', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630921267.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.23e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1477' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 854663: <4FGL_J1238.3-1959_daily_bin1477> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1477> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 02:25:32 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:26:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:26:25 2021
Terminated at Mon Sep  6 02:41:08 2021
Results reported at Mon Sep  6 02:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1477 189.594 -19.9945 622166401 622425601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   859.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            936 sec.

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

