/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 137 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 = 7261
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1238.3-1959_daily_bin446
RA = 189.594, Dec = -19.9945
tmin = 354931201, tmax = 355190401
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='848076', job_status='RUN', time_executed='2021-09-06 02:08:49.883237', time_epoch_executed='1630919329.88' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848076/ft1_4FGL_J1238.3-1959_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848076/ft1_4FGL_J1238.3-1959_daily_bin446.fits outfile=/scratch/kocevski/848076/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin446.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=354931201.0 tmax=355190401.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.36
user 3.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.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/848076/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin446.fits evtable="EVENTS" outfile="/scratch/kocevski/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.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.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/848076/ltcube_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.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/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits
.....................!
real 14.15
user 13.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/848076/ltcube_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.fits outfile=/scratch/kocevski/848076/expmap_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.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/848076/ltcube_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.fits
.....................!
real 192.02
user 186.19
sys 5.11

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/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits scfile=/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits outfile=/scratch/kocevski/848076/cmap_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits scfile=/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits outfile=/scratch/kocevski/848076/cmap_HighResolution_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848076/Model_4FGL_J1238.3-1959_daily_bin446.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/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits.....................!
real 56.88
user 54.43
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits', '/scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits', expMap='/scratch/kocevski/848076/expmap_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.fits', expCube='/scratch/kocevski/848076/ltcube_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/848076/Model_4FGL_J1238.3-1959_daily_bin446.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/848076/ft1_filtered_4FGL_J1238.3-1959_daily_bin446.fits
Spacecraft file(s): /scratch/kocevski/848076/ft2_4FGL_J1238.3-1959_daily_bin446.fits
Exposure map: /scratch/kocevski/848076/expmap_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.fits
Exposure cube: /scratch/kocevski/848076/ltcube_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/848076/Model_4FGL_J1238.3-1959_daily_bin446.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) = 6164.61186239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.883       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.329       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5609       1.0000         .10000E-03   10000.    
    14 'norm      '    6.4567       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.839       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3030       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0427       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=   6164.608     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2177 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.943       -.58058E-07** at limit **
   2  Prefactor     .10000E-03    13.090       -.62249E-07** at limit **
   3  norm          .10000E-03    4.4230        .15967E-05** at limit **
   4  Prefactor     5.1792        7.4393        .19029E-05   -.41178E-04
   5  Prefactor     23.900        49.655       -.37234E-05   -.43284E-04
   6  Prefactor     .10000E-03    17.996        .42339E-06** at limit **
   7  Prefactor     3.3529        31.340        .24106E-05   -.19147E-04
   8  Prefactor     .10000E-03    23.768       -.18037E-06** at limit **
   9  Prefactor     .10000E-03    16.387       -.71618E-07** at limit **
  10  Prefactor     5.2834        7.8891        .15927E-05    .25815E-04
  11  Prefactor     10.329        3.7211       -.19339E-06   -.10745E-04
  12  Prefactor     .10000E-03    7.0224       -.10505E-07** at limit **
  13  Prefactor     8.5552        14.712        .97927E-06    .59859E-05
  14  norm          6.4566        1.9074        .40615E-07    .39514E-05
  15  Prefactor     19.841        109.90        .95345E-06    .26543E-05
  16  norm          .10000E-03    11.312        .35094E-06** at limit **
  17  norm          .10000E-03    4.8040        .41391E-07** at limit **
  18  Prefactor     .10000E-03    9.4426       -.15631E-07** at limit **
  19  norm          .10000E-03    1.5833       -.23326E-07** at limit **
  20  Normalizat    1.3032        .29321       -.64262E-06   -.12173E-03
  21  Prefactor     1.0426        .14103       -.44593E-06   -.26975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 5.17921
  Prefactor  = 23.8998
  Prefactor  = 0.0001
  Prefactor  = 3.3529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2834
  Prefactor  = 10.3295
  Prefactor  = 0.0001
  Prefactor  = 8.55515
  norm       = 6.45662
  Prefactor  = 19.8408
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.30324
  Prefactor  = 1.04262
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.608     FROM HESSE     STATUS=OK           313 CALLS     2490 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.669        .29270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1792        7.5026        .88328E-03   -1.5253    
   5  Prefactor     23.900        49.912        .81965E-04   -1.4730    
   6  Prefactor     .10000E-03    18.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3529        31.291        .22030E-03   -1.5342    
   8  Prefactor     .10000E-03    23.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2834        7.9457        .87420E-03   -1.5248    
  11  Prefactor     10.329        3.7293        .82290E-04   -1.5065    
  12  Prefactor     .10000E-03    7.0382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5552        14.808        .68502E-03   -1.5123    
  14  norm          6.4566        1.9076        .55800E-04   -1.5200    
  15  Prefactor     19.841        108.82        .89923E-04   -1.4817    
  16  norm          .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8264        .16769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6068        .96449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3032        .34826        .37272E-03   -.83470    
  21  Prefactor     1.0426        .16788        .19868E-03   -.91322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22579e-10
Minuit parameter uncertainties:
  1  1.545e-05
  2  3.94273e-05
  3  0.000312375
  4  7.50399
  5  49.9995
  6  2.33931e-05
  7  20.4993
  8  1.21098e-06
  9  2.48836e-07
  10  7.94731
  11  3.72942
  12  2.93516e-07
  13  14.8142
  14  1.90758
  15  93.1958
  16  3.14933e-05
  17  4.74508e-06
  18  2.25733e-05
  19  3.92862e-07
  20  0.348887
  21  0.167961
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.935e-07  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:  1.043e+00  1.680e-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.303e+00  3.489e-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: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/848076/likelihoodResults_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.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) = 6164.60831578
delta logL = -0.00067595733708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6164.60763984
delta logL = -1.76460162038e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1308       1.0000          .0000       10.000    
     3 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6164.608     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10143E-03    74.674        .18142E-02** at limit **
   2  Index         2.0670        7.0724        .50000        .19166E-04
   3  Normalizat    1.3032        .23180E-01    .37272E-03   -.17423E-03
   4  Prefactor     1.0426        .11279E-01    .19868E-03    .33761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101434
  Index      = 2.06701
  Normalizat = 1.30324
  Prefactor  = 1.04262
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.608     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10143E-03    319.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0670        8.9083        .50000       -.62685    
   3  Normalizat    1.3032        .49967E-01    .14909E-04   -.83470    
   4  Prefactor     1.0426        .24312E-01    .79471E-05   -.91322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90483e-08
Minuit parameter uncertainties:
  1  0.0430116
  2  626.303
  3  0.0499685
  4  0.0243122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848076': 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) = 6164.60763947
delta logL = 3.52444658347e-07

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.014e-04  4.301e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.067e+00  6.263e+02  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:  1.043e+00  2.431e-02  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.303e+00  4.997e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/848076/cmap_HighResolution_354931201_355190401_4FGL_J1238.3-1959_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-06 02:19:24.780261', job_id='848076', GAL2='1.04', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630919964.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='446' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:19:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 848076: <4FGL_J1238.3-1959_daily_bin446> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin446> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:05:27 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:06:08 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:06:08 2021
Terminated at Mon Sep  6 02:19:25 2021
Results reported at Mon Sep  6 02:19:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin446 189.594 -19.9945 354931201 355190401 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 :                                   632.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            838 sec.

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

