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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin673
RA = 189.625, Dec = -12.028
tmin = 413769601, tmax = 414028801
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='859273', job_status='RUN', time_executed='2021-09-06 02:44:19.398154', time_epoch_executed='1630921459.4' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859273

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859273/ft1_4FGL_J1238.5-1201_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859273/ft1_4FGL_J1238.5-1201_daily_bin673.fits outfile=/scratch/kocevski/859273/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin673.fits ra=189.625 dec=-12.028 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.16
user 5.84
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.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/859273/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin673.fits evtable="EVENTS" outfile="/scratch/kocevski/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.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.60
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/859273/ltcube_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.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/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits
.....................!
real 15.45
user 14.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/859273/ltcube_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.fits outfile=/scratch/kocevski/859273/expmap_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.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/859273/ltcube_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.fits
.....................!
real 190.24
user 184.58
sys 5.06

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/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits scfile=/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits outfile=/scratch/kocevski/859273/cmap_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits scfile=/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits outfile=/scratch/kocevski/859273/cmap_HighResolution_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859273/Model_4FGL_J1238.5-1201_daily_bin673.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/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits.....................!
real 61.78
user 60.17
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits', '/scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits', expMap='/scratch/kocevski/859273/expmap_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.fits', expCube='/scratch/kocevski/859273/ltcube_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859273/Model_4FGL_J1238.5-1201_daily_bin673.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/859273/ft1_filtered_4FGL_J1238.5-1201_daily_bin673.fits
Spacecraft file(s): /scratch/kocevski/859273/ft2_4FGL_J1238.5-1201_daily_bin673.fits
Exposure map: /scratch/kocevski/859273/expmap_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.fits
Exposure cube: /scratch/kocevski/859273/ltcube_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859273/Model_4FGL_J1238.5-1201_daily_bin673.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6802.62705721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1000       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.101       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2949       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2015       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.1571       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4266       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0810       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .47522       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.520       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1094       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=   6802.498     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2545 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1043        6.6520        .81071E-05    .65896E-04
   2  Prefactor     .10000E-03    9.6236        .14209E-06** at limit **
   3  Prefactor     .10001E-03    87.500        .20326E-05** at limit **
   4  Prefactor     .18602        15.570       -.28423E-05    .10122E-03
   5  Prefactor     29.138        41.038       -.37393E-05    .12232E-03
   6  norm          1.9814        2.1668       -.11762E-07   -.57011E-04
   7  Prefactor     3.2831        8.8870        .26110E-05    .31437E-04
   8  Prefactor     1.2063        2.6854       -.10535E-05   -.73177E-03
   9  Prefactor     12.643        11.356        .23236E-06   -.84823E-04
  10  Prefactor     .10002E-03    12.159        .30826E-05** at limit **
  11  Prefactor     .28388        10.207        .17065E-05   -.16927E-03
  12  Prefactor     .10000E-03    5.0535       -.21832E-06** at limit **
  13  Prefactor     .10000E-03    15.700       -.36617E-07** at limit **
  14  norm          8.1361        36.995        .12385E-05   -.21252E-04
  15  Prefactor     .10000E-03    66.492       -.71977E-07** at limit **
  16  norm          2.4265        .42410        .30768E-07   -.41354E-04
  17  norm          .10000E-03    3.0374       -.62231E-07** at limit **
  18  norm          1.0782        9.9964        .16654E-05   -.12741E-03
  19  Prefactor     .10000E-03    33.636       -.81025E-07** at limit **
  20  norm          .47674        9.2328        .36941E-06   -.46720E-04
  21  norm          .10000E-03    3.3602        .59149E-08** at limit **
  22  Prefactor     15.171        12.485        .22345E-06    .35508E-04
  23  Prefactor     16.515        12.792        .27274E-06    .17199E-04
  24  Normalizat    1.1802        .28468       -.30496E-05   -.97571E-04
  25  Prefactor     1.1095        .15162        .39326E-06   -.31973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.10427
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.186016
  Prefactor  = 29.1382
  norm       = 1.98143
  Prefactor  = 3.28314
  Prefactor  = 1.20627
  Prefactor  = 12.643
  Prefactor  = 0.000100022
  Prefactor  = 0.283877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.13607
  Prefactor  = 0.000100002
  norm       = 2.42649
  norm       = 0.0001
  norm       = 1.07816
  Prefactor  = 0.0001
  norm       = 0.47674
  norm       = 0.0001
  Prefactor  = 15.1705
  Prefactor  = 16.5145
  Normalizat = 1.18024
  Prefactor  = 1.10949
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.498     FROM HESSE     STATUS=OK           443 CALLS     2988 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1043        6.7181        .14239E-02   -1.5418    
   2  Prefactor     .10000E-03    9.6414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    87.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18602        16.994        .96787E-01   -1.5622    
   5  Prefactor     29.138        41.095        .74268E-04   -1.4628    
   6  norm          1.9814        2.1702        .12389E-03   -1.5426    
   7  Prefactor     3.2831        8.7958        .22305E-03   -1.5346    
   8  Prefactor     1.2063        2.6218        .14814E-03   -1.5488    
   9  Prefactor     12.643        11.360        .11264E-03   -1.4997    
  10  Prefactor     .10002E-03    59.885        .53284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .28388        174.98        .47621E-02   -1.5601    
  12  Prefactor     .10000E-03    5.0662        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.1361        36.979        .14038E-03   -1.5137    
  15  Prefactor     .10000E-03    66.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4265        .42566        .21138E-04   -1.5396    
  17  norm          .10000E-03    3.0458        .14037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0782        10.229        .46324E-03   -1.5500    
  19  Prefactor     .10000E-03    33.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .47674        92.242        .47980E-02   -1.5570    
  21  norm          .10000E-03    3.3609        .14765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.171        12.483        .10281E-03   -1.4929    
  23  Prefactor     16.515        12.814        .98540E-04   -1.4895    
  24  Normalizat    1.1802        .33614        .36727E-03   -.87216    
  25  Prefactor     1.1095        .17819        .21344E-03   -.89164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94421e-08
Minuit parameter uncertainties:
  1  6.72054
  2  1.94058e-05
  3  0.00152607
  4  3.55597
  5  41.1344
  6  2.17025
  7  8.79924
  8  2.62204
  9  11.3623
  10  0.00230162
  11  14.1349
  12  2.37476e-05
  13  4.07816e-06
  14  34.7264
  15  0.000675551
  16  0.425661
  17  4.50399e-06
  18  6.64296
  19  6.50114e-06
  20  13.2822
  21  3.77623e-07
  22  12.4847
  23  12.8163
  24  0.336759
  25  0.178284
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.839e-01  1.413e+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.109e+00  1.783e-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.180e+00  3.368e-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.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859273/likelihoodResults_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.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) = 6802.49819009
delta logL = 7.08358420525e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6802.4952607
delta logL = 0.00300022152624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1960       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2408       1.0000          .0000       10.000    
     3 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1086       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=   6802.495     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      371 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2043        49.055        .41574E-03    .24775E-04
   2  Index         2.2413        3.2262        .24953E-01    .57662E-05
   3  Normalizat    1.1798        .30536        .36733E-03   -.22407E-04
   4  Prefactor     1.1086        .17402        .21352E-03    .33651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20428
  Index      = 2.24127
  Normalizat = 1.17981
  Prefactor  = 1.10857
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.495     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2043        47.951        .16629E-04   -1.5488    
   2  Index         2.2413        3.2081        .99811E-03   -.58446    
   3  Normalizat    1.1798        .30578        .14693E-04   -.87229    
   4  Prefactor     1.1086        .17408        .85407E-05   -.89193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34027e-11
Minuit parameter uncertainties:
  1  15.2106
  2  3.66044
  3  0.306246
  4  0.174167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859273': 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) = 6802.49526054
delta logL = 0.00300038236219

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.204e+00  1.521e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.241e+00  3.660e+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:  1.109e+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:  1.180e+00  3.062e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/859273/cmap_HighResolution_413769601_414028801_4FGL_J1238.5-1201_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-09-06 02:57:07.186175', job_id='859273', GAL2='1.11', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630922227.19', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.00e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='673' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 859273: <4FGL_J1238.5-1201_daily_bin673> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin673> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:40:35 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:40:40 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:40:40 2021
Terminated at Mon Sep  6 02:57:07 2021
Results reported at Mon Sep  6 02:57:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin673 189.625 -12.028 413769601 414028801 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 :                                   764.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            992 sec.

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

