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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin870
RA = 189.625, Dec = -12.028
tmin = 464832001, tmax = 465091201
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='859633', job_status='RUN', time_executed='2021-09-06 02:43:57.517301', time_epoch_executed='1630921437.52' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859633/ft1_4FGL_J1238.5-1201_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859633/ft2_4FGL_J1238.5-1201_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859633/ft1_4FGL_J1238.5-1201_daily_bin870.fits outfile=/scratch/kocevski/859633/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin870.fits ra=189.625 dec=-12.028 rad=12.0 tmin=464832001.0 tmax=465091201.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.43
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859633/ft1_filtered_4FGL_J1238.5-1201_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/859633/ft2_4FGL_J1238.5-1201_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/859633/ltcube_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.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/859633/ft2_4FGL_J1238.5-1201_daily_bin870.fits
.....................!
real 16.91
user 14.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859633/ft1_filtered_4FGL_J1238.5-1201_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/859633/ft2_4FGL_J1238.5-1201_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/859633/ltcube_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.fits outfile=/scratch/kocevski/859633/expmap_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.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/859633/ltcube_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.fits
.....................!
real 193.98
user 187.55
sys 5.25

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/859633/ft1_filtered_4FGL_J1238.5-1201_daily_bin870.fits scfile=/scratch/kocevski/859633/ft2_4FGL_J1238.5-1201_daily_bin870.fits outfile=/scratch/kocevski/859633/cmap_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859633/ft1_filtered_4FGL_J1238.5-1201_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/859633/ft2_4FGL_J1238.5-1201_daily_bin870.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859633/Model_4FGL_J1238.5-1201_daily_bin870.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/859633/ft1_filtered_4FGL_J1238.5-1201_daily_bin870.fits.....................!
real 58.84
user 57.45
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.503       1.0000         .10000E-03   10000.    
     6 'norm      '    7.7011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.381       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20156E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .51659       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5082       1.0000         .10000E-03   10000.    
    18 'norm      '    23.438       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    34.567       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3264       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1559       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=   6945.190     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2881 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.559        7.2141       -.34785E-06   -.34412E-04
   2  Prefactor     19.111        18.188       -.14234E-06   -.85804E-06
   3  Prefactor     .10000E-03    56.105        .13749E-06** at limit **
   4  Prefactor     26.671        25.073        .91736E-06    .13311E-05
   5  Prefactor     59.503        55.428        .10419E-06    .85873E-06
   6  norm          7.7009        5.2971        .25401E-05    .57524E-04
   7  Prefactor     .10000E-03    3.4456        .22508E-06** at limit **
   8  Prefactor     4.2352        2.3289        .36746E-09   -.48799E-04
   9  Prefactor     .24645        6.5897       -.18331E-05    .16027E-03
  10  Prefactor     .10000E-03    5.8791       -.10857E-07** at limit **
  11  Prefactor     .10000E-03    19.422        .21638E-06** at limit **
  12  Prefactor     .10000E-03    3.7605       -.20511E-06** at limit **
  13  Prefactor     39.377        38.320       -.10111E-05    .10711E-04
  14  norm          .10000E-03    27.879        .35934E-06** at limit **
  15  Prefactor     .10000E-03    227.62       -.31112E-05** at limit **
  16  norm          .51660        .22925        .14401E-07    .17312E-04
  17  norm          3.5071        7.3898       -.30974E-05   -.23406E-03
  18  norm          23.436        10.384        .18351E-06    .17381E-04
  19  Prefactor     .10000E-03    28.076       -.73171E-06** at limit **
  20  norm          34.567        16.110       -.83727E-07    .35253E-05
  21  norm          .10000E-03    3.4783       -.23226E-06** at limit **
  22  Prefactor     .10000E-03    4.1980        .33493E-07** at limit **
  23  Prefactor     .10000E-03    3.6848        .23075E-06** at limit **
  24  Normalizat    1.3264        .27412       -.83220E-06    .10798E-03
  25  Prefactor     1.1559        .15625        .41559E-06    .97669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5592
  Prefactor  = 19.1108
  Prefactor  = 0.0001
  Prefactor  = 26.6709
  Prefactor  = 59.503
  norm       = 7.70095
  Prefactor  = 0.0001
  Prefactor  = 4.23523
  Prefactor  = 0.246449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3773
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.516597
  norm       = 3.50712
  norm       = 23.4357
  Prefactor  = 0.0001
  norm       = 34.5673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32639
  Prefactor  = 1.15591
 **********
 **   18 **HESSE 
 **********

 FCN=   6945.190     FROM HESSE     STATUS=OK           427 CALLS     3308 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.559        7.2185        .10878E-03   -1.4971    
   2  Prefactor     19.111        18.189        .91620E-04   -1.4833    
   3  Prefactor     .10000E-03    56.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.671        25.136        .77567E-04   -1.4675    
   5  Prefactor     59.503        55.425        .52012E-04   -1.4164    
   6  norm          7.7009        5.2269        .14450E-03   -1.5153    
   7  Prefactor     .10000E-03    3.4637        .15100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2352        2.3285        .91404E-04   -1.5296    
   9  Prefactor     .24645        79.350        .40643E-02   -1.5609    
  10  Prefactor     .10000E-03    5.8901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7745        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.377        38.353        .63871E-04   -1.4452    
  14  norm          .10000E-03    28.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    228.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51660        .22946        .25115E-04   -1.5564    
  17  norm          3.5071        7.5764        .21585E-03   -1.5333    
  18  norm          23.436        10.381        .82739E-04   -1.4739    
  19  Prefactor     .10000E-03    28.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          34.567        16.114        .68159E-04   -1.4531    
  21  norm          .10000E-03    3.4791        .15179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2057        .16676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6949        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3264        .31624        .36612E-03   -.82782    
  25  Prefactor     1.1559        .18115        .22569E-03   -.87699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35342e-09
Minuit parameter uncertainties:
  1  7.21892
  2  18.1941
  3  1.66177e-05
  4  25.1463
  5  55.4735
  6  5.22718
  7  6.74945e-07
  8  2.32853
  9  8.85444
  10  1.73698e-06
  11  1.66516e-05
  12  3.18382e-06
  13  38.3767
  14  4.27404e-06
  15  1.97239e-05
  16  0.229462
  17  7.5785
  18  10.3823
  19  3.6543e-06
  20  16.1162
  21  2.05193e-07
  22  1.13948e-06
  23  7.29083e-07
  24  0.316701
  25  0.181244
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.665e-05  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.156e+00  1.812e-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.326e+00  3.167e-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.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859633/likelihoodResults_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.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) = 6945.19056714
delta logL = -0.000242277382313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6945.19032503
delta logL = -1.67317011801e-07

Fit tolerance = 1e-08

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

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

 FCN=   6945.190     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      196 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.278        .90712E-02** at limit **
   2  Index         2.7300        6.2932        .22910       -.16838E-04
   3  Normalizat    1.3264        .26347        .82699E-01   -.12959E-03
   4  Prefactor     1.1559        .15375        .35767E-01   -.17728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.72997
  Normalizat = 1.32639
  Prefactor  = 1.15591
 **********
 **   18 **HESSE 
 **********

 FCN=   6945.190     FROM HESSE     STATUS=OK            25 CALLS      221 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7300        6.3533        .91639E-02   -.47126    
   3  Normalizat    1.3264        .30277        .36612E-03   -.82782    
   4  Prefactor     1.1559        .17716        .22569E-03   -.87699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48347e-10
Minuit parameter uncertainties:
  1  0.000157937
  2  4.46671
  3  0.303177
  4  0.177255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859633': 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) = 6945.1903246
delta logL = 2.56323801295e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.579e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.730e+00  4.467e+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.156e+00  1.773e-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.326e+00  3.032e-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/859633/cmap_HighResolution_464832001_465091201_4FGL_J1238.5-1201_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-06 02:56:55.238612', job_id='859633', GAL2='1.16', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630922215.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='870' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 859633: <4FGL_J1238.5-1201_daily_bin870> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin870> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:41:03 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:41:24 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:41:24 2021
Terminated at Mon Sep  6 02:56:55 2021
Results reported at Mon Sep  6 02:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin870 189.625 -12.028 464832001 465091201 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 :                                   774.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            952 sec.

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

