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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1129
RA = 204.732, Dec = 11.8956
tmin = 531964801, tmax = 532224001
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='847689', job_status='RUN', time_executed='2021-09-08 07:14:51.543697', time_epoch_executed='1631110491.54' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847689

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847689/ft1_4FGL_J1338.9+1153_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847689/ft1_4FGL_J1338.9+1153_daily_bin1129.fits outfile=/scratch/kocevski/847689/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1129.fits ra=204.732 dec=11.8956 rad=12.0 tmin=531964801.0 tmax=532224001.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.63
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.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/847689/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/847689/ft1_filtered_4FGL_J1338.9+1153_daily_bin1129.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.53
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847689/ft1_filtered_4FGL_J1338.9+1153_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/847689/ltcube_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.fits outfile=/scratch/kocevski/847689/expmap_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.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/847689/ltcube_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.fits
.....................!
real 192.70
user 187.16
sys 4.96

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/847689/ft1_filtered_4FGL_J1338.9+1153_daily_bin1129.fits scfile=/scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.fits outfile=/scratch/kocevski/847689/cmap_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847689/ft1_filtered_4FGL_J1338.9+1153_daily_bin1129.fits scfile=/scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.fits outfile=/scratch/kocevski/847689/cmap_HighResolution_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.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.61
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847689/ft1_filtered_4FGL_J1338.9+1153_daily_bin1129.fits', '/scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.fits', expMap='/scratch/kocevski/847689/expmap_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.fits', expCube='/scratch/kocevski/847689/ltcube_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847689/Model_4FGL_J1338.9+1153_daily_bin1129.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/847689/ft1_filtered_4FGL_J1338.9+1153_daily_bin1129.fits
Spacecraft file(s): /scratch/kocevski/847689/ft2_4FGL_J1338.9+1153_daily_bin1129.fits
Exposure map: /scratch/kocevski/847689/expmap_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.fits
Exposure cube: /scratch/kocevski/847689/ltcube_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847689/Model_4FGL_J1338.9+1153_daily_bin1129.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) = 7512.04525109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80599       1.0000         .10000E-03   10000.    
     4 'norm      '    32.287       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18098E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7988       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.281       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89793       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2441       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=   7512.041     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1886 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.092        .67457E-06** at limit **
   2  Prefactor     24.747        13.868       -.13517E-05   -.25709E-03
   3  Prefactor     .81784        11.432       -.74522E-05    .38263E-03
   4  norm          32.288        11.308        .33918E-07    .17712E-04
   5  Prefactor     1.5290        10.809        .16288E-04    .11142E-03
   6  Prefactor     .10002E-03    185.46       -.20217E-05** at limit **
   7  norm          2.8020        9.4884        .59094E-06    .27260E-05
   8  Prefactor     65.957        67.739       -.44877E-05    .16385E-04
   9  Prefactor     8.1635        5.6079        .47429E-07    .64201E-04
  10  Prefactor     .10000E-03    11.669       -.24557E-06** at limit **
  11  Prefactor     .10000E-03    2.1010        .28537E-06** at limit **
  12  Prefactor     19.281        14.876        .34072E-06   -.26361E-04
  13  Prefactor     .10000E-03    5.9452       -.34010E-06** at limit **
  14  Prefactor     5.5518        9.7909        .81337E-06    .25608E-04
  15  Prefactor     1.9348        146.82        .12618E-04   -.22862E-04
  16  Prefactor     22.563        35.572       -.22137E-05   -.35765E-04
  17  Prefactor     10.097        8.9879       -.59608E-06   -.43792E-03
  18  Normalizat    .89784        .20286       -.28264E-05   -.27037E-03
  19  Prefactor     1.2439        .15383        .77505E-06   -.11173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.7469
  Prefactor  = 0.817843
  norm       = 32.2879
  Prefactor  = 1.52896
  Prefactor  = 0.000100016
  norm       = 2.80204
  Prefactor  = 65.9567
  Prefactor  = 8.16349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2806
  Prefactor  = 0.0001
  Prefactor  = 5.55184
  Prefactor  = 1.93481
  Prefactor  = 22.563
  Prefactor  = 10.0968
  Normalizat = 0.897836
  Prefactor  = 1.24387
 **********
 **   18 **HESSE 
 **********

 FCN=   7512.041     FROM HESSE     STATUS=OK           272 CALLS     2158 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.747        13.860        .80515E-04   -1.4713    
   3  Prefactor     .81784        37.912        .47834E-02   -1.5527    
   4  norm          32.288        11.203        .70519E-04   -1.4571    
   5  Prefactor     1.5290        11.624        .17276E-02   -1.5461    
   6  Prefactor     .10002E-03    192.35        .40633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8020        9.3747        .24318E-03   -1.5373    
   8  Prefactor     65.957        67.543        .49435E-04   -1.4082    
   9  Prefactor     8.1635        5.6085        .14035E-03   -1.5136    
  10  Prefactor     .10000E-03    11.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1321        .12269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.281        14.885        .91214E-04   -1.4829    
  13  Prefactor     .10000E-03    5.9771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5518        9.7879        .17060E-03   -1.5237    
  15  Prefactor     1.9348        146.67        .29230E-03   -1.5430    
  16  Prefactor     22.563        35.577        .84396E-04   -1.4758    
  17  Prefactor     10.097        8.9426        .12610E-03   -1.5072    
  18  Normalizat    .89784        .24205        .31653E-03   -.96536    
  19  Prefactor     1.2439        .18635        .21905E-03   -.84992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17904e-09
Minuit parameter uncertainties:
  1  0.000137244
  2  13.8616
  3  11.1434
  4  11.2036
  5  8.43341
  6  0.00350867
  7  9.37956
  8  67.6214
  9  5.60886
  10  3.77896e-05
  11  2.53007e-05
  12  14.8875
  13  4.2624e-05
  14  9.79075
  15  33.7773
  16  35.6105
  17  8.94376
  18  0.242342
  19  0.186446
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  6.596e+01  6.762e+01  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.244e+00  1.864e-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.978e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 204.732 11.896
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 2.43e-05

TS (Fixed Index): 1.27
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847689/likelihoodResults_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.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) = 7508.51612668
delta logL = 3.52493433878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7508.51360397
delta logL = 3.52745704599

Fit tolerance = 1e-08

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

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

 FCN=   7508.514     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      312 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0324        22.411        .50238E-02    .26437E-03
   2  Index         3.7443        1.5857        .57137E-01    .27242E-03
   3  Normalizat    .72123        .77583E-01    .78754E-01    .29676E-04
   4  Prefactor     1.3297        .60074E-01    .48046E-01   -.67852E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03241
  Index      = 3.74432
  Normalizat = 0.721231
  Prefactor  = 1.32968
 **********
 **   18 **HESSE 
 **********

 FCN=   7508.514     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      345 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0324        31.411        .67156E-04   -1.5306    
   2  Index         3.7443        2.0096        .23606E-02   -.25385    
   3  Normalizat    .72123        .22647        .34867E-03   -1.0306    
   4  Prefactor     1.3297        .17970        .21239E-03   -.82429    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.64095e-07
Minuit parameter uncertainties:
  1  22.5248
  2  2.07236
  3  0.226768
  4  0.179788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847689': 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) = 7508.51360375
delta logL = 3.52745726227

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  4.032e+00  2.252e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  3.744e+00  2.072e+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.330e+00  1.798e-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:  7.212e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 204.732 11.896
Photon Index (Free Index): 3.74 +/- 2.07
Photon Flux (Free Index): 1.82e-07 +/- 8.08e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/847689/cmap_HighResolution_531964801_532224001_4FGL_J1338.9+1153_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='2.86e-05', photon_flux_error='3.82e-08', dlogl='3.53e+00', energy_flux='2.37e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-08 07:25:09.174717', photon_index_error2='2.07', photon_index2='3.74', ts='1.27', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.41e-05', EG='0.90', time_epoch_completed='1631111109.17', return_code='0', job_id='847689', GAL2='1.33', EG2='0.72', return_code2='102', energy_flux_error='2.43e-05', photon_flux_error2='8.08e-08', ts2='8.90', photon_index='2.04' WHERE bin_id='1129' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:25:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 847689: <4FGL_J1338.9+1153_daily_bin1129> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1129> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 07:10:27 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:11:12 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:11:12 2021
Terminated at Wed Sep  8 07:25:09 2021
Results reported at Wed Sep  8 07:25:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1129 204.732 11.8956 531964801 532224001 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 :                                   603.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            882 sec.

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

