/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 1 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1338.9+1153_daily_bin294
RA = 204.732, Dec = 11.8956
tmin = 315532801, tmax = 315792001
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='841915', job_status='RUN', time_executed='2021-09-08 06:55:30.884674', time_epoch_executed='1631109330.88' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841915/ft1_4FGL_J1338.9+1153_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841915/ft2_4FGL_J1338.9+1153_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841915/ft1_4FGL_J1338.9+1153_daily_bin294.fits outfile=/scratch/kocevski/841915/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin294.fits ra=204.732 dec=11.8956 rad=12.0 tmin=315532801.0 tmax=315792001.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.79
user 3.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841915/ft1_filtered_4FGL_J1338.9+1153_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/841915/ft2_4FGL_J1338.9+1153_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/841915/ltcube_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.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/841915/ft2_4FGL_J1338.9+1153_daily_bin294.fits
.....................!
real 14.46
user 14.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841915/ft1_filtered_4FGL_J1338.9+1153_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/841915/ft2_4FGL_J1338.9+1153_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/841915/ltcube_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.fits outfile=/scratch/kocevski/841915/expmap_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.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/841915/ltcube_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.fits
.....................!
real 192.99
user 187.49
sys 5.07

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/841915/ft1_filtered_4FGL_J1338.9+1153_daily_bin294.fits scfile=/scratch/kocevski/841915/ft2_4FGL_J1338.9+1153_daily_bin294.fits outfile=/scratch/kocevski/841915/cmap_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841915/ft1_filtered_4FGL_J1338.9+1153_daily_bin294.fits scfile=/scratch/kocevski/841915/ft2_4FGL_J1338.9+1153_daily_bin294.fits outfile=/scratch/kocevski/841915/cmap_HighResolution_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.533       1.0000         .10000E-03   10000.    
     7 'norm      '    6.2558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27030E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.913       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .64447       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2665       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91159       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=   7874.280     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1903 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.401        58.117        .17480E-05    .32321E-04
   2  Prefactor     17.799        15.393       -.54303E-06   -.20554E-03
   3  Prefactor     14.660        16.211       -.41238E-06   -.15830E-03
   4  norm          .10000E-03    2.2141        .17719E-06** at limit **
   5  Prefactor     .10000E-03    9.4194        .55477E-06** at limit **
   6  Prefactor     44.519        34.570       -.19785E-06   -.11089E-03
   7  norm          6.2566        7.8593        .10888E-06   -.27355E-04
   8  Prefactor     .10000E-03    17.317        .91251E-06** at limit **
   9  Prefactor     .10003E-03    4.8249        .41724E-05** at limit **
  10  Prefactor     .10000E-03    9.6795        .10223E-05** at limit **
  11  Prefactor     .10000E-03    .83632        .12677E-06** at limit **
  12  Prefactor     16.913        11.924        .59753E-07   -.12172E-03
  13  Prefactor     3.6766        8.7942        .97875E-06   -.34841E-05
  14  Prefactor     .10000E-03    4.0981        .70273E-06** at limit **
  15  Prefactor     15.926        21.271       -.58367E-06   -.10445E-03
  16  Prefactor     .10000E-03    15.836        .37165E-06** at limit **
  17  Prefactor     .64023        7.4040        .51340E-05   -.13153E-04
  18  Normalizat    1.2664        .19572        .14479E-05   -.13668E-02
  19  Prefactor     .91170        .15662       -.41634E-05   -.75413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.4008
  Prefactor  = 17.799
  Prefactor  = 14.6596
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5188
  norm       = 6.25665
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9135
  Prefactor  = 3.6766
  Prefactor  = 0.0001
  Prefactor  = 15.9264
  Prefactor  = 0.0001
  Prefactor  = 0.640226
  Normalizat = 1.26637
  Prefactor  = 0.911699
 **********
 **   18 **HESSE 
 **********

 FCN=   7874.280     FROM HESSE     STATUS=OK           264 CALLS     2167 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.401        58.227        .55349E-04   -1.4259    
   2  Prefactor     17.799        15.381        .94953E-04   -1.4864    
   3  Prefactor     14.660        16.163        .10460E-03   -1.4942    
   4  norm          .10000E-03    2.2174        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.519        34.573        .60078E-04   -1.4373    
   7  norm          6.2566        7.8641        .16049E-03   -1.5208    
   8  Prefactor     .10000E-03    17.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    22.642        .20866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .83812        .79284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.913        11.927        .97388E-04   -1.4885    
  13  Prefactor     3.6766        8.8063        .10532E-02   -1.5324    
  14  Prefactor     .10000E-03    4.1345        .17576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.926        21.282        .10035E-03   -1.4910    
  16  Prefactor     .10000E-03    15.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .64023        8.7253        .23694E-02   -1.5548    
  18  Normalizat    1.2664        .21508        .25558E-03   -.84576    
  19  Prefactor     .91170        .16454        .23019E-03   -.95734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53483e-08
Minuit parameter uncertainties:
  1  58.29
  2  15.3845
  3  16.1676
  4  6.58143e-06
  5  7.60891e-05
  6  34.5887
  7  7.86538
  8  0.000133607
  9  0.00174389
  10  8.46992e-05
  11  3.74423e-06
  12  11.9284
  13  8.80941
  14  3.74215e-05
  15  21.2918
  16  4.59486e-05
  17  4.72747
  18  0.215234
  19  0.164628
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.336e-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:  9.117e-01  1.646e-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:  1.266e+00  2.152e-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: 4.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841915/likelihoodResults_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.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) = 7874.28056619
delta logL = -0.000271840329333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7874.28029499
delta logL = -6.40981852484e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1313       1.0000          .0000       10.000    
     3 'Normalizat'    1.2663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91177       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=   7874.280     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    868.97        .90712E-02** at limit **
   2  Index         2.1028        5.9825        .50000        .14162E-04
   3  Normalizat    1.2664        .34777E-01    .57793E-01    .38108E-04
   4  Prefactor     .91169        .27220E-01    .45155E-01    .45394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.10283
  Normalizat = 1.26638
  Prefactor  = 0.911693
 **********
 **   18 **HESSE 
 **********

 FCN=   7874.280     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    17.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1028        6.0431        .50000       -.61803    
   3  Normalizat    1.2664        .20774        .25558E-03   -.84576    
   4  Prefactor     .91169        .16266        .23019E-03   -.95734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54213e-10
Minuit parameter uncertainties:
  1  0.000765816
  2  4.21527
  3  0.207873
  4  0.162742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841915': 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) = 7874.28029456
delta logL = -2.14951796806e-07

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  7.658e-04  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.103e+00  4.215e+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:  9.117e-01  1.627e-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:  1.266e+00  2.079e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/841915/cmap_HighResolution_315532801_315792001_4FGL_J1338.9+1153_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', job_status='DONE', photon_flux_upper_limit='4.27e-08', time_completed='2021-09-08 07:05:44.136291', job_id='841915', GAL2='0.91', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631109944.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-2.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='294' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 841915: <4FGL_J1338.9+1153_daily_bin294> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin294> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 06:55:14 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 06:55:19 2021
Terminated at Wed Sep  8 07:05:44 2021
Results reported at Wed Sep  8 07:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin294 204.732 11.8956 315532801 315792001 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 :                                   610.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            630 sec.

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

