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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin616
RA = 204.732, Dec = 11.8956
tmin = 398995201, tmax = 399254401
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='844007', job_status='RUN', time_executed='2021-09-08 07:01:55.733082', time_epoch_executed='1631109715.73' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844007/ft1_4FGL_J1338.9+1153_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844007/ft1_4FGL_J1338.9+1153_daily_bin616.fits outfile=/scratch/kocevski/844007/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin616.fits ra=204.732 dec=11.8956 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.46
user 5.20
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.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/844007/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/844007/ltcube_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.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/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits
.....................!
real 16.59
user 16.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/844007/ltcube_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.fits outfile=/scratch/kocevski/844007/expmap_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.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/844007/ltcube_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.fits
.....................!
real 194.62
user 188.96
sys 5.10

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits scfile=/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits outfile=/scratch/kocevski/844007/cmap_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.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=204.732 yref=11.8956 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits scfile=/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits outfile=/scratch/kocevski/844007/cmap_HighResolution_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.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=204.732 yref=11.8956 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844007/Model_4FGL_J1338.9+1153_daily_bin616.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/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits.....................!
real 41.61
user 40.02
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits', '/scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits', expMap='/scratch/kocevski/844007/expmap_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.fits', expCube='/scratch/kocevski/844007/ltcube_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/844007/Model_4FGL_J1338.9+1153_daily_bin616.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.9+1153'

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.644e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/844007/ft1_filtered_4FGL_J1338.9+1153_daily_bin616.fits
Spacecraft file(s): /scratch/kocevski/844007/ft2_4FGL_J1338.9+1153_daily_bin616.fits
Exposure map: /scratch/kocevski/844007/expmap_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.fits
Exposure cube: /scratch/kocevski/844007/ltcube_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/844007/Model_4FGL_J1338.9+1153_daily_bin616.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) = 4876.89204864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26235E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1737       1.0000         .10000E-03   10000.    
     4 'norm      '    3.7544       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3603       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9818       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8431       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4138       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87649       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4876.819     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1935 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    338.33       -.89066E-05** at limit **
   2  Prefactor     10.388        16.048        .18962E-05    .69994E-04
   3  Prefactor     6.1737        14.172       -.15714E-05   -.11541E-03
   4  norm          3.7537        7.2753       -.12933E-07   -.31374E-04
   5  Prefactor     7.3598        11.504        .20974E-06    .95017E-05
   6  Prefactor     .10000E-03    20.638        .24533E-05** at limit **
   7  norm          3.9814        6.6948        .83037E-07    .17782E-05
   8  Prefactor     .10000E-03    20.384       -.33353E-05** at limit **
   9  Prefactor     8.0244        4.9696        .42017E-07    .30778E-04
  10  Prefactor     1.4772        63.678        .17795E-04   -.69294E-04
  11  Prefactor     .10000E-03    1.5594        .23797E-07** at limit **
  12  Prefactor     11.104        18.451       -.44622E-06   -.33760E-04
  13  Prefactor     8.8403        19.170       -.35715E-06   -.31184E-04
  14  Prefactor     .10000E-03    11.455       -.18112E-07** at limit **
  15  Prefactor     53.046        33.444       -.15459E-09   -.42939E-05
  16  Prefactor     .10000E-03    20.616        .10353E-05** at limit **
  17  Prefactor     3.4137        6.4996        .29812E-06    .27424E-04
  18  Normalizat    .87657        .23789       -.11990E-05   -.28418E-04
  19  Prefactor     1.1795        .18334        .41221E-06    .17228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100132
  Prefactor  = 10.3879
  Prefactor  = 6.17371
  norm       = 3.75369
  Prefactor  = 7.35982
  Prefactor  = 0.0001
  norm       = 3.98141
  Prefactor  = 0.000100001
  Prefactor  = 8.02444
  Prefactor  = 1.4772
  Prefactor  = 0.0001
  Prefactor  = 11.1038
  Prefactor  = 8.84025
  Prefactor  = 0.0001
  Prefactor  = 53.0464
  Prefactor  = 0.0001
  Prefactor  = 3.41365
  Normalizat = 0.876574
  Prefactor  = 1.17946
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.819     FROM HESSE     STATUS=OK           272 CALLS     2207 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    344.28        .19969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.388        15.982        .12439E-03   -1.5063    
   3  Prefactor     6.1737        14.237        .16157E-03   -1.5211    
   4  norm          3.7537        7.2547        .20837E-03   -1.5320    
   5  Prefactor     7.3598        11.501        .14784E-03   -1.5165    
   6  Prefactor     .10000E-03    20.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9814        6.6672        .20212E-03   -1.5309    
   8  Prefactor     .10000E-03    20.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0244        4.9752        .11687E-03   -1.5141    
  10  Prefactor     1.4772        64.522        .17649E-02   -1.5465    
  11  Prefactor     .10000E-03    1.5616        .85160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.104        18.463        .12021E-03   -1.5041    
  13  Prefactor     8.8403        19.210        .13479E-03   -1.5113    
  14  Prefactor     .10000E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.046        33.440        .55068E-04   -1.4250    
  16  Prefactor     .10000E-03    20.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4137        6.4853        .21895E-03   -1.5338    
  18  Normalizat    .87657        .27982        .29710E-03   -.97288    
  19  Prefactor     1.1795        .21632        .21043E-03   -.86966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43774e-10
Minuit parameter uncertainties:
  1  0.0135776
  2  15.9889
  3  14.2448
  4  7.25642
  5  11.5049
  6  0.000194203
  7  6.66845
  8  0.000265887
  9  4.97545
  10  19.5474
  11  1.70259e-06
  12  18.4729
  13  19.2234
  14  8.63584e-06
  15  33.4516
  16  7.55232e-05
  17  6.48662
  18  0.28028
  19  0.216478
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.659e-04  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.179e+00  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.766e-01  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844007/likelihoodResults_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.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) = 4876.81903782
delta logL = -0.000232141485867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4876.81880581
delta logL = -1.39514668263e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1229       1.0000          .0000       10.000    
     3 'Normalizat'    .87656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4876.819     FROM MIGRAD    STATUS=FAILED        89 CALLS      271 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6662.5        .18142E-02** at limit **
   2  Index         2.1068        5.8446        .50000        .66558E-05
   3  Normalizat    .87658        .11724        .29710E-03    .50663E-04
   4  Prefactor     1.1795        .95451E-01    .21043E-03   -.69705E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4876.819     FROM SIMPLEX   STATUS=UNCHANGED    209 CALLS      480 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6662.5        .80756E-03** at limit **
   2  Index         2.1068        5.8446        .25319E-06    .66558E-05
   3  Normalizat    .87658        .11724        .49388E-07    .50663E-04
   4  Prefactor     1.1795        .95451E-01    .53363E-08   -.69705E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4876.819     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      514 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.903        .36285E-03** at limit **
   2  Index         2.1067        6.0389        .50000        .66552E-05
   3  Normalizat    .87658        .26247        .11884E-04    .50893E-04
   4  Prefactor     1.1795        .21383        .42086E-04   -.69262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.10672
  Normalizat = 0.876577
  Prefactor  = 1.17945
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.819     FROM HESSE     STATUS=OK            29 CALLS      543 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.535        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1067        6.0504        .50000       -.61708    
   3  Normalizat    .87658        .26269        .23768E-05   -.97288    
   4  Prefactor     1.1795        .21397        .84172E-05   -.86966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65647e-10
Minuit parameter uncertainties:
  1  0.00026202
  2  4.08683
  3  0.263073
  4  0.21413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844007': 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) = 4876.81880579
delta logL = -1.10450855573e-07

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.620e-04  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.107e+00  4.087e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.179e+00  2.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.766e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.732 11.896

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/844007/cmap_HighResolution_398995201_399254401_4FGL_J1338.9+1153_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-08 07:10:49.428327', job_id='844007', GAL2='1.18', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631110249.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-1.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='616' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 844007: <4FGL_J1338.9+1153_daily_bin616> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin616> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 07:00:43 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:01:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:01:39 2021
Terminated at Wed Sep  8 07:10:50 2021
Results reported at Wed Sep  8 07:10:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin616 204.732 11.8956 398995201 399254401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.9+1153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   527.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            607 sec.

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

