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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1137
RA = 189.625, Dec = -12.028
tmin = 534038401, tmax = 534297601
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='861430', job_status='RUN', time_executed='2021-09-06 02:50:22.585104', time_epoch_executed='1630921822.59' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861430/ft1_4FGL_J1238.5-1201_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861430/ft1_4FGL_J1238.5-1201_daily_bin1137.fits outfile=/scratch/kocevski/861430/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1137.fits ra=189.625 dec=-12.028 rad=12.0 tmin=534038401.0 tmax=534297601.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.61
user 3.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861430/ft1_filtered_4FGL_J1238.5-1201_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/861430/ltcube_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.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/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits
.....................!
real 15.55
user 15.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861430/ft1_filtered_4FGL_J1238.5-1201_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/861430/ltcube_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.fits outfile=/scratch/kocevski/861430/expmap_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.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/861430/ltcube_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.fits
.....................!
real 191.36
user 186.34
sys 4.60

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/861430/ft1_filtered_4FGL_J1238.5-1201_daily_bin1137.fits scfile=/scratch/kocevski/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits outfile=/scratch/kocevski/861430/cmap_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861430/ft1_filtered_4FGL_J1238.5-1201_daily_bin1137.fits scfile=/scratch/kocevski/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits outfile=/scratch/kocevski/861430/cmap_HighResolution_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.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.62
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861430/ft1_filtered_4FGL_J1238.5-1201_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/861430/ft2_4FGL_J1238.5-1201_daily_bin1137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861430/Model_4FGL_J1238.5-1201_daily_bin1137.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/861430/ft1_filtered_4FGL_J1238.5-1201_daily_bin1137.fits.....................!
real 56.44
user 54.65
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .69414       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86810       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32423E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5983       1.0000         .10000E-03   10000.    
    17 'norm      '    11.304       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.195       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3172       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92841       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=   6565.294     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2499 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.792        6.7707        .15248E-05    .97460E-04
   2  Prefactor     .10000E-03    34.584       -.84060E-05** at limit **
   3  Prefactor     .10000E-03    27.467        .20961E-04** at limit **
   4  Prefactor     16.438        15.619        .16651E-06   -.50662E-04
   5  Prefactor     .10000E-03    16.196        .12219E-05** at limit **
   6  norm          .69492        1.8758        .46452E-07   -.14223E-03
   7  Prefactor     .86709        4.6051        .15067E-06   -.15784E-03
   8  Prefactor     4.3210        2.2662        .12284E-07    .43531E-04
   9  Prefactor     .10000E-03    3.7417        .11532E-07** at limit **
  10  Prefactor     .10000E-03    5.0209        .40392E-06** at limit **
  11  Prefactor     .10016E-03    8.7512       -.24051E-06** at limit **
  12  Prefactor     2.6737        5.9660        .42552E-06   -.13440E-02
  13  Prefactor     .10000E-03    63.798        .13883E-04** at limit **
  14  norm          .10000E-03    7.0493       -.10573E-07** at limit **
  15  Prefactor     .10000E-03    36.014       -.11865E-04** at limit **
  16  norm          1.5981        .32915        .20188E-08   -.67686E-03
  17  norm          11.304        7.7948       -.19724E-06   -.52047E-05
  18  norm          2.0262        3.1602        .44768E-06   -.24240E-02
  19  Prefactor     .10000E-03    22.033       -.94288E-05** at limit **
  20  norm          25.195        14.732        .82946E-07    .11537E-04
  21  norm          .10000E-03    4.0642        .16995E-07** at limit **
  22  Prefactor     .10000E-03    4.7394       -.54286E-07** at limit **
  23  Prefactor     .10000E-03    5.0880       -.34025E-06** at limit **
  24  Normalizat    1.3172        .24711       -.74191E-06    .42694E-04
  25  Prefactor     .92838        .13912        .14818E-07    .11350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4376
  Prefactor  = 0.0001
  norm       = 0.694921
  Prefactor  = 0.867092
  Prefactor  = 4.32097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100158
  Prefactor  = 2.67374
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59808
  norm       = 11.3043
  norm       = 2.02624
  Prefactor  = 0.0001
  norm       = 25.1954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31721
  Prefactor  = 0.928375
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.294     FROM HESSE     STATUS=OK           437 CALLS     2936 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.792        6.7745        .11201E-03   -1.4992    
   2  Prefactor     .10000E-03    35.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.438        15.647        .98787E-04   -1.4897    
   5  Prefactor     .10000E-03    16.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .69492        1.5393        .17764E-02   -1.5541    
   7  Prefactor     .86709        4.4190        .32763E-03   -1.5522    
   8  Prefactor     4.3210        2.2520        .83594E-04   -1.5292    
   9  Prefactor     .10000E-03    3.7541        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0326        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10016E-03    14.587        .66181E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6737        6.9276        .12459E-02   -1.5381    
  13  Prefactor     .10000E-03    64.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.0501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5981        .33028        .20039E-04   -1.5455    
  17  norm          11.304        7.7972        .11915E-03   -1.5035    
  18  norm          2.0262        5.0544        .13923E-02   -1.5423    
  19  Prefactor     .10000E-03    22.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.195        14.757        .79806E-04   -1.4704    
  21  norm          .10000E-03    4.0665        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7699        .17226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1107        .17847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3172        .29623        .32193E-03   -.83054    
  25  Prefactor     .92838        .16661        .21824E-03   -.95157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75116e-08
Minuit parameter uncertainties:
  1  6.77492
  2  0.000232052
  3  0.000172036
  4  15.6505
  5  4.13076e-06
  6  1.53937
  7  3.91516
  8  2.25204
  9  7.26369e-07
  10  3.50607e-06
  11  0.00303861
  12  6.92966
  13  0.000197198
  14  1.4401e-07
  15  0.000145468
  16  0.330283
  17  7.79793
  18  5.05546
  19  9.44768e-05
  20  14.7589
  21  6.20467e-07
  22  1.96312e-06
  23  1.10931e-06
  24  0.29661
  25  0.166697
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.284e-01  1.667e-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.317e+00  2.966e-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.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/861430/likelihoodResults_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.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) = 6565.29398518
delta logL = -2.90224525088e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6565.15753941
delta logL = 0.136416744429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93721E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8110       1.0000          .0000       10.000    
     3 'Normalizat'    1.2838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94109       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=   6565.158     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      484 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90169E-03    .43303E-01    .10402E-02** at limit **
   2  Index         8.8346        9.4167        .34897        .87866E-04
   3  Normalizat    1.2838        .38290E-01    .73568E-01    .16579E-04
   4  Prefactor     .94125        .22321E-01    .45527E-01    .86912E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000901686
  Index      = 8.83461
  Normalizat = 1.28383
  Prefactor  = 0.941254
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.158     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      517 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90169E-03    .24064        .54948E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8346        5.3498        .31993E-02    .87403    
   3  Normalizat    1.2838        .19048        .32556E-03   -.84050    
   4  Prefactor     .94125        .10869        .21693E-03   -.94714    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.68626e-09
Minuit parameter uncertainties:
  1  0.0277789
  2  19.3212
  3  0.190584
  4  0.108716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861430': 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): 102
logL (Free Index) = 6565.15753441
delta logL = 0.136421749795

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  9.017e-04  2.778e-02  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  8.835e+00  1.932e+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:  9.413e-01  1.087e-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.284e+00  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/861430/cmap_HighResolution_534038401_534297601_4FGL_J1238.5-1201_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-06 03:02:55.613432', job_id='861430', GAL2='0.94', fit_tolerance='1e-08', EG2='1.28', EG='1.32', time_epoch_completed='1630922575.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.36e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1137' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:02:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 861430: <4FGL_J1238.5-1201_daily_bin1137> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1137> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:46:30 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:48:26 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:48:26 2021
Terminated at Mon Sep  6 03:02:56 2021
Results reported at Mon Sep  6 03:02:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1137 189.625 -12.028 534038401 534297601 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 :                                   746.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            986 sec.

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

