/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 24 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 = 7409
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1317
RA = 189.625, Dec = -12.028
tmin = 580694401, tmax = 580953601
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='862679', job_status='RUN', time_executed='2021-09-06 02:52:02.065290', time_epoch_executed='1630921922.07' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862679/ft1_4FGL_J1238.5-1201_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862679/ft1_4FGL_J1238.5-1201_daily_bin1317.fits outfile=/scratch/kocevski/862679/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1317.fits ra=189.625 dec=-12.028 rad=12.0 tmin=580694401.0 tmax=580953601.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 2.82
user 2.60
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.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/862679/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1317.fits evtable="EVENTS" outfile="/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/862679/ltcube_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.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/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits
.....................!
real 13.31
user 12.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/862679/ltcube_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.fits outfile=/scratch/kocevski/862679/expmap_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.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/862679/ltcube_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.fits
.....................!
real 193.70
user 187.60
sys 4.36

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits scfile=/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits outfile=/scratch/kocevski/862679/cmap_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.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.625 yref=-12.028 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits scfile=/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits outfile=/scratch/kocevski/862679/cmap_HighResolution_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.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.625 yref=-12.028 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862679/Model_4FGL_J1238.5-1201_daily_bin1317.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/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits.....................!
real 54.81
user 52.99
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits', '/scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits', expMap='/scratch/kocevski/862679/expmap_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.fits', expCube='/scratch/kocevski/862679/ltcube_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862679/Model_4FGL_J1238.5-1201_daily_bin1317.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/862679/ft1_filtered_4FGL_J1238.5-1201_daily_bin1317.fits
Spacecraft file(s): /scratch/kocevski/862679/ft2_4FGL_J1238.5-1201_daily_bin1317.fits
Exposure map: /scratch/kocevski/862679/expmap_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.fits
Exposure cube: /scratch/kocevski/862679/ltcube_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862679/Model_4FGL_J1238.5-1201_daily_bin1317.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) = 6352.585095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    45.802       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.995       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.098       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .88273       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29483E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7065       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26086       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.287       1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15119E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0436       1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    140.36       1.0000         .10000E-03   10000.    
    20 'norm      '    .47578       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.117       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0188       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6352.548     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2932 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3549        .18462E-06** at limit **
   2  Prefactor     45.803        21.951       -.11540E-06    .15572E-04
   3  Prefactor     35.997        34.686        .19414E-07   -.21063E-05
   4  Prefactor     42.104        19.247       -.15554E-06    .24502E-04
   5  Prefactor     .10000E-03    30.812        .43630E-06** at limit **
   6  norm          .88284        1.3832        .70438E-06    .29116E-03
   7  Prefactor     .10002E-03    4.7144        .16636E-06** at limit **
   8  Prefactor     6.7048        2.8183       -.10564E-06    .62303E-03
   9  Prefactor     .10000E-03    3.6268        .13614E-07** at limit **
  10  Prefactor     .10000E-03    3.3998        .23670E-07** at limit **
  11  Prefactor     .27989        15.052       -.15735E-05   -.31702E-03
  12  Prefactor     .10000E-03    5.5920        .21892E-07** at limit **
  13  Prefactor     79.306        44.233       -.42778E-06   -.35338E-04
  14  norm          .10000E-03    18.988       -.15829E-06** at limit **
  15  Prefactor     .10000E-03    175.13        .24268E-05** at limit **
  16  norm          1.0437        .28915        .42393E-07    .29305E-03
  17  norm          .10000E-03    7.0690        .19694E-06** at limit **
  18  norm          2.4171        10.103        .28373E-06   -.27525E-04
  19  Prefactor     140.37        85.851        .18083E-05    .22047E-04
  20  norm          .42576        105.32        .62231E-05   -.14789E-03
  21  norm          .10000E-03    6.6217        .50578E-07** at limit **
  22  Prefactor     .10000E-03    5.5692       -.92871E-09** at limit **
  23  Prefactor     23.125        14.521        .46639E-07    .59903E-04
  24  Normalizat    1.0188        .25344        .12416E-05    .49363E-04
  25  Prefactor     .92546        .14020       -.34193E-06    .27042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.8031
  Prefactor  = 35.9966
  Prefactor  = 42.1042
  Prefactor  = 0.0001
  norm       = 0.882841
  Prefactor  = 0.000100017
  Prefactor  = 6.7048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.279891
  Prefactor  = 0.0001
  Prefactor  = 79.3056
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.0437
  norm       = 0.0001
  norm       = 2.41708
  Prefactor  = 140.369
  norm       = 0.42576
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1254
  Normalizat = 1.01877
  Prefactor  = 0.925455
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.548     FROM HESSE     STATUS=OK           429 CALLS     3361 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3714        .11923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.803        21.965        .59243E-04   -1.4353    
   3  Prefactor     35.997        34.682        .66798E-04   -1.4507    
   4  Prefactor     42.104        19.366        .61784E-04   -1.4409    
   5  Prefactor     .10000E-03    30.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .88284        1.3816        .14358E-02   -1.5520    
   7  Prefactor     .10002E-03    18.191        .29138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7048        2.7047        .80260E-04   -1.5190    
   9  Prefactor     .10000E-03    3.6523        .14822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4004        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27989        45.265        .39183E-02   -1.5602    
  12  Prefactor     .10000E-03    5.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     79.306        44.363        .22551E-03   -1.3925    
  14  norm          .10000E-03    19.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    175.01        .20465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0437        .28965        .20678E-04   -1.5504    
  17  norm          .10000E-03    7.0966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4171        10.091        .26385E-03   -1.5397    
  19  Prefactor     140.37        90.676        .17001E-03   -1.3333    
  20  norm          .42576        150.16        .46729E-02   -1.5577    
  21  norm          .10000E-03    6.6474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.125        14.548        .83310E-04   -1.4746    
  24  Normalizat    1.0188        .29435        .34545E-03   -.92404    
  25  Prefactor     .92546        .16551        .21113E-03   -.95257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36021e-09
Minuit parameter uncertainties:
  1  5.31693e-06
  2  21.9687
  3  34.7015
  4  19.3688
  5  2.46797e-06
  6  1.38166
  7  0.00110555
  8  2.70474
  9  8.09404e-06
  10  2.11522e-06
  11  7.12299
  12  9.31661e-06
  13  44.3811
  14  3.635e-05
  15  0.000931295
  16  0.289647
  17  7.92475e-06
  18  9.87992
  19  90.7655
  20  16.0304
  21  1.43178e-05
  22  1.9407e-05
  23  14.5503
  24  0.294825
  25  0.165603
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.799e-01  7.123e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.255e-01  1.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.019e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862679/likelihoodResults_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.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) = 6352.54354564
delta logL = 0.00476377778796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6352.53754811
delta logL = 0.0107613095552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0402       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2147       1.0000          .0000       10.000    
     3 'Normalizat'    1.0192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   6352.538     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      283 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0364        12.325        .24562E-02    .97167E-03
   2  Index         2.2154        2.1883        .20591E-01    .17712E-04
   3  Normalizat    1.0192        .27383        .34539E-03    .41145E-05
   4  Prefactor     .92416        .16170        .21126E-03    .27499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03638
  Index      = 2.2154
  Normalizat = 1.01921
  Prefactor  = 0.924164
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.538     FROM HESSE     STATUS=OK            27 CALLS      310 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0364        12.405        .49125E-03   -1.5504    
   2  Index         2.2154        2.1981        .82366E-03   -.59067    
   3  Normalizat    1.0192        .27407        .13815E-04   -.92390    
   4  Prefactor     .92416        .16181        .84504E-05   -.95302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18521e-10
Minuit parameter uncertainties:
  1  7.17253
  2  2.3164
  3  0.274446
  4  0.161896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862679': 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) = 6352.53754788
delta logL = 0.0107615403085

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.036e+00  7.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.215e+00  2.316e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.242e-01  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.019e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 189.625 -12.028

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/862679/cmap_HighResolution_580694401_580953601_4FGL_J1238.5-1201_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-06 03:04:24.662615', job_id='862679', GAL2='0.92', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630922664.66', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.08e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1317' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 862679: <4FGL_J1238.5-1201_daily_bin1317> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1317> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:50:32 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:51:18 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:51:18 2021
Terminated at Mon Sep  6 03:04:25 2021
Results reported at Mon Sep  6 03:04:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1317 189.625 -12.028 580694401 580953601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            833 sec.

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

