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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1415
RA = 189.594, Dec = -19.9945
tmin = 606096001, tmax = 606355201
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='854572', job_status='RUN', time_executed='2021-09-06 02:26:49.314747', time_epoch_executed='1630920409.31' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854572/ft1_4FGL_J1238.3-1959_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854572/ft1_4FGL_J1238.3-1959_daily_bin1415.fits outfile=/scratch/kocevski/854572/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1415.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=606096001.0 tmax=606355201.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.76
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.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/854572/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1415.fits evtable="EVENTS" outfile="/scratch/kocevski/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.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.62
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/854572/ltcube_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.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/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits
.....................!
real 14.42
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/854572/ltcube_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.fits outfile=/scratch/kocevski/854572/expmap_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.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/854572/ltcube_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.fits
.....................!
real 193.02
user 186.51
sys 5.17

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/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.fits scfile=/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits outfile=/scratch/kocevski/854572/cmap_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.fits scfile=/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits outfile=/scratch/kocevski/854572/cmap_HighResolution_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.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.67
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/854572/ft2_4FGL_J1238.3-1959_daily_bin1415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854572/Model_4FGL_J1238.3-1959_daily_bin1415.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/854572/ft1_filtered_4FGL_J1238.3-1959_daily_bin1415.fits.....................!
real 69.77
user 67.81
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.601       1.0000         .10000E-03   10000.    
     3 'norm      '    18.920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.917       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5744       1.0000         .10000E-03   10000.    
    14 'norm      '    .74834E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.635       1.0000         .10000E-03   10000.    
    16 'norm      '    15.358       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3314       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .88170E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2223       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1464       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=   8548.507     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2287 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6329        28.768        .16038E-05   -.65035E-05
   2  Prefactor     40.614        22.468        .19525E-05   -.13183E-05
   3  norm          18.914        7.8264       -.49785E-06   -.17987E-04
   4  Prefactor     1.6879        3.6392       -.91571E-06   -.95216E-03
   5  Prefactor     23.911        48.240       -.83351E-05   -.64330E-05
   6  Prefactor     .10000E-03    12.647        .11808E-06** at limit **
   7  Prefactor     .10000E-03    6.7955       -.18765E-06** at limit **
   8  Prefactor     .10000E-03    112.59        .64900E-05** at limit **
   9  Prefactor     .10000E-03    9.8536       -.17449E-07** at limit **
  10  Prefactor     .10000E-03    3.9067       -.14802E-06** at limit **
  11  Prefactor     5.4141        2.3915        .29836E-07    .18280E-03
  12  Prefactor     13.660        13.526        .35342E-05   -.12165E-04
  13  Prefactor     1.5796        17.397       -.38188E-05   -.31126E-03
  14  norm          .76345E-01    .43946       -.91672E-07   -.22659E-03
  15  Prefactor     26.607        51.824       -.39095E-04   -.25566E-06
  16  norm          15.358        10.722        .50372E-07   -.13831E-04
  17  norm          3.3295        5.4209        .14842E-05   -.40508E-03
  18  Prefactor     .10000E-03    3.7665        .26817E-06** at limit **
  19  norm          .82803E-01    1.4718       -.41189E-06   -.87729E-03
  20  Normalizat    1.2221        .25442        .40668E-06    .80621E-04
  21  Prefactor     1.1464        .12380        .81471E-06    .97686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63287
  Prefactor  = 40.6137
  norm       = 18.9136
  Prefactor  = 1.68794
  Prefactor  = 23.9115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.41412
  Prefactor  = 13.6604
  Prefactor  = 1.57962
  norm       = 0.076345
  Prefactor  = 26.6072
  norm       = 15.3584
  norm       = 3.32949
  Prefactor  = 0.0001
  norm       = 0.0828026
  Normalizat = 1.22206
  Prefactor  = 1.14637
 **********
 **   18 **HESSE 
 **********

 FCN=   8548.507     FROM HESSE     STATUS=OK           327 CALLS     2614 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6329        28.749        .12913E-03   -1.5087    
   2  Prefactor     40.614        22.508        .62908E-04   -1.4433    
   3  norm          18.914        7.8412        .92079E-04   -1.4838    
   4  Prefactor     1.6879        3.6318        .25121E-03   -1.5448    
   5  Prefactor     23.911        48.237        .81908E-04   -1.4730    
   6  Prefactor     .10000E-03    12.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    116.75        .42200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.959        .34161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4141        2.3288        .89435E-04   -1.5243    
  12  Prefactor     13.660        13.501        .10835E-03   -1.4969    
  13  Prefactor     1.5796        17.659        .33868E-03   -1.5457    
  14  norm          .76345E-01    2.6407        .11601E-02   -1.5653    
  15  Prefactor     26.607        50.960        .77623E-04   -1.4676    
  16  norm          15.358        10.722        .10220E-03   -1.4924    
  17  norm          3.3295        5.3507        .22176E-03   -1.5343    
  18  Prefactor     .10000E-03    3.7956        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .82803E-01    6.5553        .21778E-02   -1.5650    
  20  Normalizat    1.2221        .29207        .38975E-03   -.85924    
  21  Prefactor     1.1464        .14476        .19740E-03   -.87998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27165e-08
Minuit parameter uncertainties:
  1  28.7904
  2  22.5126
  3  7.84159
  4  3.63223
  5  48.316
  6  4.9419e-06
  7  4.44028e-06
  8  0.000123528
  9  5.25019e-06
  10  0.000152462
  11  2.32881
  12  13.5039
  13  10.5666
  14  0.897462
  15  51.0434
  16  10.7228
  17  5.35147
  18  4.10658e-05
  19  1.47277
  20  0.292463
  21  0.144805
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.366e+01  1.350e+01  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.146e+00  1.448e-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.222e+00  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 189.594 -19.994
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.97e-05

TS (Fixed Index): 1.39
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854572/likelihoodResults_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.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): 0
logL (Free Index) = 8548.33645115
delta logL = 0.170082484268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8548.32969337
delta logL = 0.176840269754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4972       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5485       1.0000          .0000       10.000    
     3 'Normalizat'    1.1984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1525       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=   8548.330     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      291 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4943        14.495        .13004E-03    .58540E-03
   2  Index         2.5479        .80792        .75784E-02    .16322E-03
   3  Normalizat    1.1988        .29031        .39299E-03   -.57044E-03
   4  Prefactor     1.1524        .14219        .19693E-03   -.12913E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.49429
  Index      = 2.5479
  Normalizat = 1.19877
  Prefactor  = 1.15243
 **********
 **   18 **HESSE 
 **********

 FCN=   8548.330     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4943        12.543        .52016E-05   -1.5092    
   2  Index         2.5479        .69927        .30313E-03   -.51257    
   3  Normalizat    1.1988        .28987        .78599E-04   -.86641    
   4  Prefactor     1.1524        .14205        .39386E-04   -.87808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27414e-09
Minuit parameter uncertainties:
  1  12.5465
  2  0.702311
  3  0.290258
  4  0.142097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854572': 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) = 8548.329691
delta logL = 0.176842640134

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  9.494e+00  1.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.548e+00  7.023e-01  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.152e+00  1.421e-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.199e+00  2.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 2.55 +/- 0.70
Photon Flux (Free Index): 6.12e-08 +/- 6.05e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.54e-05

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/854572/cmap_HighResolution_606096001_606355201_4FGL_J1238.3-1959_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.69e-05', photon_flux_error='3.99e-08', dlogl='1.77e-01', energy_flux='1.99e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-09-06 02:39:57.970647', photon_index_error2='0.70', photon_index2='2.55', ts='1.39', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.54e-05', EG='1.22', time_epoch_completed='1630921197.97', return_code='0', job_id='854572', GAL2='1.15', EG2='1.20', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='6.05e-08', ts2='1.75', photon_index='2.15' WHERE bin_id='1415' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 854572: <4FGL_J1238.3-1959_daily_bin1415> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1415> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 02:25:27 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:25:52 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:25:52 2021
Terminated at Mon Sep  6 02:39:58 2021
Results reported at Mon Sep  6 02:39:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1415 189.594 -19.9945 606096001 606355201 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 :                                   779.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            871 sec.

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

