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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1403
RA = 189.625, Dec = -12.028
tmin = 602985601, tmax = 603244801
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='862800', job_status='RUN', time_executed='2021-09-06 02:54:49.088187', time_epoch_executed='1630922089.09' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862800/ft1_4FGL_J1238.5-1201_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862800/ft1_4FGL_J1238.5-1201_daily_bin1403.fits outfile=/scratch/kocevski/862800/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1403.fits ra=189.625 dec=-12.028 rad=12.0 tmin=602985601.0 tmax=603244801.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.02
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.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/862800/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/862800/ltcube_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.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/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits
.....................!
real 15.84
user 15.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/862800/ltcube_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.fits outfile=/scratch/kocevski/862800/expmap_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.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/862800/ltcube_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.fits
.....................!
real 192.02
user 186.42
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 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/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits scfile=/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits outfile=/scratch/kocevski/862800/cmap_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits scfile=/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits outfile=/scratch/kocevski/862800/cmap_HighResolution_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862800/Model_4FGL_J1238.5-1201_daily_bin1403.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/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits.....................!
real 51.42
user 50.02
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits', '/scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits', expMap='/scratch/kocevski/862800/expmap_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.fits', expCube='/scratch/kocevski/862800/ltcube_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862800/Model_4FGL_J1238.5-1201_daily_bin1403.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/862800/ft1_filtered_4FGL_J1238.5-1201_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/862800/ft2_4FGL_J1238.5-1201_daily_bin1403.fits
Exposure map: /scratch/kocevski/862800/expmap_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.fits
Exposure cube: /scratch/kocevski/862800/ltcube_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862800/Model_4FGL_J1238.5-1201_daily_bin1403.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) = 6018.46699143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8064       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.133       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.881       1.0000         .10000E-03   10000.    
    14 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8426       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3615       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97615       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0346       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=   6018.401     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2478 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0861        7.7825       -.43835E-06   -.23508E-03
   2  Prefactor     .10000E-03    20.196        .41792E-06** at limit **
   3  Prefactor     .10000E-03    22.446       -.53425E-06** at limit **
   4  Prefactor     .10000E-03    23.287       -.23671E-05** at limit **
   5  Prefactor     .10000E-03    20.928        .83650E-06** at limit **
   6  norm          3.0081        3.0358       -.15093E-07    .47219E-04
   7  Prefactor     2.2954        7.2106       -.16555E-05   -.54553E-03
   8  Prefactor     3.8067        2.3222        .18227E-06    .12891E-03
   9  Prefactor     10.136        19.108       -.42801E-06   -.10284E-03
  10  Prefactor     .78770        8.2035        .98238E-06   -.23633E-03
  11  Prefactor     16.764        14.673       -.65276E-06   -.26806E-03
  12  Prefactor     33.924        18.729       -.50986E-06   -.16682E-03
  13  Prefactor     11.916        56.744        .18626E-04    .24745E-03
  14  norm          .10000E-03    108.51       -.12120E-05** at limit **
  15  Prefactor     .10000E-03    35.936        .19542E-05** at limit **
  16  norm          1.8426        .39715       -.13911E-06    .11583E-02
  17  norm          .10000E-03    7.7292        .31037E-06** at limit **
  18  norm          19.621        8.0731        .56538E-06    .47730E-03
  19  Prefactor     .10000E-03    21.211        .67587E-06** at limit **
  20  norm          3.3598        9.7480        .80172E-05   -.83196E-03
  21  norm          .10000E-03    2.8098       -.20564E-07** at limit **
  22  Prefactor     .10000E-03    7.5353       -.87236E-07** at limit **
  23  Prefactor     .10000E-03    3.7780        .18798E-08** at limit **
  24  Normalizat    .97610        .27227       -.52106E-06   -.86895E-04
  25  Prefactor     1.0346        .14810       -.43666E-06   -.10928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.08605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.00814
  Prefactor  = 2.29544
  Prefactor  = 3.80667
  Prefactor  = 10.1355
  Prefactor  = 0.787696
  Prefactor  = 16.7644
  Prefactor  = 33.9237
  Prefactor  = 11.9156
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.84265
  norm       = 0.0001
  norm       = 19.6211
  Prefactor  = 0.0001
  norm       = 3.35979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.976102
  Prefactor  = 1.03457
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.401     FROM HESSE     STATUS=OK           421 CALLS     2899 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0861        7.7940        .15071E-03   -1.5176    
   2  Prefactor     .10000E-03    20.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0081        3.0422        .13249E-03   -1.5361    
   7  Prefactor     2.2954        7.3076        .27079E-03   -1.5405    
   8  Prefactor     3.8067        2.3212        .84894E-04   -1.5318    
   9  Prefactor     10.136        19.089        .12588E-03   -1.5071    
  10  Prefactor     .78770        59.404        .41432E-02   -1.5530    
  11  Prefactor     16.764        14.707        .97836E-04   -1.4889    
  12  Prefactor     33.924        18.744        .68800E-04   -1.4542    
  13  Prefactor     11.916        63.405        .11622E-03   -1.5017    
  14  norm          .10000E-03    110.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8426        .40055        .20606E-04   -1.5436    
  17  norm          .10000E-03    7.8563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.621        8.0886        .90425E-04   -1.4822    
  19  Prefactor     .10000E-03    21.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3598        10.618        .11036E-02   -1.5341    
  21  norm          .10000E-03    2.8102        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7933        .14724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97610        .31743        .37373E-03   -.93835    
  25  Prefactor     1.0346        .17393        .20528E-03   -.91586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85634e-09
Minuit parameter uncertainties:
  1  7.7951
  2  0.000104587
  3  8.511e-05
  4  0.000398913
  5  0.000146747
  6  3.04238
  7  7.31048
  8  2.32121
  9  19.1001
  10  13.6942
  11  14.7097
  12  18.7471
  13  55.064
  14  0.00031899
  15  0.00036657
  16  0.400552
  17  1.69285e-05
  18  8.08906
  19  0.000115923
  20  10.6238
  21  1.3033e-06
  22  1.02161e-05
  23  8.16134e-07
  24  0.318045
  25  0.174029
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.676e+01  1.471e+01  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:  1.035e+00  1.740e-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:  9.761e-01  3.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 8.23e-08 +/- 7.22e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.80e-05

TS (Fixed Index): 2.19
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 2.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862800/likelihoodResults_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.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) = 6018.40087958
delta logL = 0.000586757681049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6018.4007038
delta logL = 0.000762533025409

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6018.401     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      268 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.504        16.363        .49254E-03   -.83787E-05
   2  Index         2.6954        .91936        .99074E-02    .17232E-03
   3  Normalizat    .97357        .31351        .37417E-03    .51349E-05
   4  Prefactor     1.0356        .17412        .20519E-03    .11580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5038
  Index      = 2.69542
  Normalizat = 0.973569
  Prefactor  = 1.03563
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.401     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.504        15.905        .19702E-04   -1.4895    
   2  Index         2.6954        .89297        .19815E-02   -.47903    
   3  Normalizat    .97357        .31364        .14967E-04   -.93921    
   4  Prefactor     1.0356        .17414        .82074E-05   -.91551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10128e-12
Minuit parameter uncertainties:
  1  15.909
  2  0.899109
  3  0.314239
  4  0.174236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862800': 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) = 6018.40068618
delta logL = 0.000780159190981

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.650e+01  1.591e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.695e+00  8.991e-01  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:  1.036e+00  1.742e-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:  9.736e-01  3.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.70 +/- 0.90
Photon Flux (Free Index): 8.41e-08 +/- 8.47e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.79e-05

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/862800/cmap_HighResolution_602985601_603244801_4FGL_J1238.5-1201_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='8.23e-08', energy_flux2='2.03e-05', photon_flux_error='7.22e-08', dlogl='7.80e-04', energy_flux='2.05e-05', photon_flux2='8.41e-08', job_status='DONE', time_completed='2021-09-06 03:06:17.043771', photon_index_error2='0.90', photon_index2='2.70', ts='2.19', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='1.79e-05', EG='0.98', time_epoch_completed='1630922777.04', return_code='0', job_id='862800', GAL2='1.04', EG2='0.97', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='8.47e-08', ts2='2.18', photon_index='2.66' WHERE bin_id='1403' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:06:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 862800: <4FGL_J1238.5-1201_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1403 189.625 -12.028 602985601 603244801 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 :                                   683.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            940 sec.

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

