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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1311
RA = 189.625, Dec = -12.028
tmin = 579139201, tmax = 579398401
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='862671', job_status='RUN', time_executed='2021-09-06 02:53:23.766812', time_epoch_executed='1630922003.77' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862671/ft1_4FGL_J1238.5-1201_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862671/ft2_4FGL_J1238.5-1201_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862671/ft1_4FGL_J1238.5-1201_daily_bin1311.fits outfile=/scratch/kocevski/862671/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1311.fits ra=189.625 dec=-12.028 rad=12.0 tmin=579139201.0 tmax=579398401.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.81
user 3.25
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862671/ft1_filtered_4FGL_J1238.5-1201_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/862671/ft2_4FGL_J1238.5-1201_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/862671/ltcube_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.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/862671/ft2_4FGL_J1238.5-1201_daily_bin1311.fits
.....................!
real 14.91
user 14.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862671/ft1_filtered_4FGL_J1238.5-1201_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/862671/ft2_4FGL_J1238.5-1201_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/862671/ltcube_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.fits outfile=/scratch/kocevski/862671/expmap_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.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/862671/ltcube_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.fits
.....................!
real 191.48
user 185.61
sys 5.05

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/862671/ft1_filtered_4FGL_J1238.5-1201_daily_bin1311.fits scfile=/scratch/kocevski/862671/ft2_4FGL_J1238.5-1201_daily_bin1311.fits outfile=/scratch/kocevski/862671/cmap_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.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/862671/ft1_filtered_4FGL_J1238.5-1201_daily_bin1311.fits scfile=/scratch/kocevski/862671/ft2_4FGL_J1238.5-1201_daily_bin1311.fits outfile=/scratch/kocevski/862671/cmap_HighResolution_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11308E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    130.85       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13607E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.723       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4891       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7523       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.009       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6748       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67076       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=   6184.561     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2893 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2770       -.17312E-05** at limit **
   2  Prefactor     130.84        36.885       -.83708E-06    .14064E-03
   3  Prefactor     .10006E-03    153.39       -.90324E-04** at limit **
   4  Prefactor     21.215        23.846        .14748E-04    .28107E-03
   5  Prefactor     39.676        47.166       -.29835E-04    .26834E-03
   6  norm          3.9833        2.6861       -.46857E-07    .11067E-04
   7  Prefactor     6.5356        5.6266        .41051E-07   -.11708E-04
   8  Prefactor     6.5666        2.6100        .18732E-07    .74274E-04
   9  Prefactor     .10000E-03    4.0913       -.28778E-07** at limit **
  10  Prefactor     .10000E-03    19.442        .76039E-06** at limit **
  11  Prefactor     2.4839        18.546       -.19432E-05   -.15036E-03
  12  Prefactor     .10000E-03    5.6462        .23028E-05** at limit **
  13  Prefactor     .10000E-03    54.128        .13824E-04** at limit **
  14  norm          .10000E-03    8.0433        .57443E-05** at limit **
  15  Prefactor     .10000E-03    115.38        .74199E-04** at limit **
  16  norm          1.7521        .36677        .25851E-08   -.73971E-03
  17  norm          .10000E-03    4.7146        .22506E-06** at limit **
  18  norm          .10000E-03    1.9544       -.58473E-07** at limit **
  19  Prefactor     .10000E-03    50.885       -.19411E-04** at limit **
  20  norm          20.007        15.222        .15563E-06    .34182E-04
  21  norm          .10000E-03    3.4218        .21090E-07** at limit **
  22  Prefactor     .10000E-03    7.2356       -.41805E-05** at limit **
  23  Prefactor     .10000E-03    9.1354       -.23976E-05** at limit **
  24  Normalizat    1.6756        .26816       -.19137E-05    .18449E-03
  25  Prefactor     .67032        .14048        .16311E-05   -.45363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 130.844
  Prefactor  = 0.00010006
  Prefactor  = 21.2147
  Prefactor  = 39.6758
  norm       = 3.98326
  Prefactor  = 6.53557
  Prefactor  = 6.56661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.75207
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.0074
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.67564
  Prefactor  = 0.670323
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.561     FROM HESSE     STATUS=OK           415 CALLS     3308 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3654        .17621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     130.84        36.880        .35199E-04   -1.3415    
   3  Prefactor     .10006E-03    153.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.215        24.149        .86884E-04   -1.4786    
   5  Prefactor     39.676        46.711        .63597E-04   -1.4447    
   6  norm          3.9833        2.6855        .10323E-03   -1.5309    
   7  Prefactor     6.5356        5.6265        .15697E-03   -1.5197    
   8  Prefactor     6.5666        2.6113        .76550E-04   -1.5195    
   9  Prefactor     .10000E-03    4.1264        .15535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4839        18.579        .25909E-03   -1.5393    
  12  Prefactor     .10000E-03    5.7176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.0480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    116.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7521        .36948        .20630E-04   -1.5443    
  17  norm          .10000E-03    4.7449        .16674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9575        .10737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.007        15.224        .89540E-04   -1.4813    
  21  norm          .10000E-03    3.4227        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.2125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6756        .31852        .30498E-03   -.72956    
  25  Prefactor     .67032        .16558        .25026E-03   -1.0470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31322e-09
Minuit parameter uncertainties:
  1  1.50286e-05
  2  36.8863
  3  0.00609728
  4  24.1602
  5  46.7539
  6  2.68559
  7  5.62693
  8  2.61137
  9  1.70153e-06
  10  2.72952e-05
  11  13.5921
  12  8.18461e-06
  13  1.30981e-05
  14  1.02492e-06
  15  0.000595572
  16  0.369483
  17  2.84435e-06
  18  3.70613e-06
  19  9.80729e-06
  20  15.2271
  21  7.27883e-08
  22  6.78932e-06
  23  1.42034e-05
  24  0.318912
  25  0.165698
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.484e+00  1.359e+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:  6.703e-01  1.657e-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.676e+00  3.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/862671/likelihoodResults_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.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) = 6184.52017896
delta logL = 0.0403714999766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6184.51839582
delta logL = 0.042154644254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2060       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4497       1.0000          .0000       10.000    
     3 'Normalizat'    1.6583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67616       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=   6184.518     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      279 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2027        27.015        .13849E-02    .24127E-04
   2  Index         3.4522        3.9214        .89973E-02    .20179E-05
   3  Normalizat    1.6584        .30561        .30627E-03    .32487E-05
   4  Prefactor     .67612        .16428        .24928E-03    .13682E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20266
  Index      = 3.45223
  Normalizat = 1.65838
  Prefactor  = 0.676123
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.518     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2027        10.997        .55395E-04   -1.5411    
   2  Index         3.4522        2.7589        .35989E-03   -.31472    
   3  Normalizat    1.6584        .30590        .30627E-03   -.73420    
   4  Prefactor     .67612        .16432        .99713E-05   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73355e-14
Minuit parameter uncertainties:
  1  9.84581
  2  2.94337
  3  0.306251
  4  0.164437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862671': 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) = 6184.51839524
delta logL = 0.0421552180396

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.203e+00  9.846e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.452e+00  2.943e+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:  6.761e-01  1.644e-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.658e+00  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/862671/cmap_HighResolution_579139201_579398401_4FGL_J1238.5-1201_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-06 03:05:52.119104', job_id='862671', GAL2='0.68', fit_tolerance='1e-08', EG2='1.66', EG='1.68', time_epoch_completed='1630922752.12', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.22e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1311' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 862671: <4FGL_J1238.5-1201_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1311 189.625 -12.028 579139201 579398401 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.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            921 sec.

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

