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


Performing analysis on: 4FGL_J2114.8+2831_monthly_bin72
RA = 318.716, Dec = 28.5222
tmin = 423619201, tmax = 426211201
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='91668', job_status='RUN', time_executed='2021-11-06 20:52:46.489737', time_epoch_executed='1636257166.49' WHERE source_name='4FGL J2114.8+2831' and cadence='monthly' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91668

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

Retrieving the FT1 file...

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

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

Retrieving 446 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91668/ft1_4FGL_J2114.8+2831_monthly_bin72.fits


Retrieving the FT1 file...

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

Retrieving 446 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91668/ft1_4FGL_J2114.8+2831_monthly_bin72.fits outfile=/scratch/kocevski/91668/ft1_filteredMKT_4FGL_J2114.8+2831_monthly_bin72.fits ra=318.716 dec=28.5222 rad=12.0 tmin=423619201.0 tmax=426211201.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 39.99
user 39.08
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.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/91668/ft1_filteredMKT_4FGL_J2114.8+2831_monthly_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.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.83
user 0.65
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/91668/ltcube_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.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/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits
.....................!
real 110.96
user 109.59
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/91668/ltcube_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.fits outfile=/scratch/kocevski/91668/expmap_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.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/91668/ltcube_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.fits
.....................!
real 193.94
user 187.89
sys 5.21

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 205 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2114.8+2831 @ 318.716 28.5222

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits scfile=/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits outfile=/scratch/kocevski/91668/cmap_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.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=318.716 yref=28.5222 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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits scfile=/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits outfile=/scratch/kocevski/91668/cmap_HighResolution_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.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=318.716 yref=28.5222 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.79
user 0.62
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91668/Model_4FGL_J2114.8+2831_monthly_bin72.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source gamma Cygni
Working on...
/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits.....................!
real 2692.03
user 2682.58
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits', '/scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits', expMap='/scratch/kocevski/91668/expmap_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.fits', expCube='/scratch/kocevski/91668/ltcube_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91668/Model_4FGL_J2114.8+2831_monthly_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2114.8+2831'

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  1.040e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.712e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/91668/ft1_filtered_4FGL_J2114.8+2831_monthly_bin72.fits
Spacecraft file(s): /scratch/kocevski/91668/ft2_4FGL_J2114.8+2831_monthly_bin72.fits
Exposure map: /scratch/kocevski/91668/expmap_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.fits
Exposure cube: /scratch/kocevski/91668/ltcube_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91668/Model_4FGL_J2114.8+2831_monthly_bin72.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) = 142068.65066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4449       1.0000         .10000E-03   10000.    
     2 'norm      '    .65669       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15358       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5149       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90517       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5339       1.0000         .10000E-03   10000.    
    12 'norm      '    .82838       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3798       1.0000         .10000E-03   10000.    
    14 'norm      '    8.5308       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9895       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4665       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2635       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95289       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   142068.3     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1732 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4435        6.6500        .98789E-06    .15366E-04
   2  norm          .65962        .98185       -.70373E-07   -.10557E-04
   3  norm          .10000E-03    .21413       -.64252E-09** at limit **
   4  Prefactor     .15363        .37234       -.27336E-06    .27133E-02
   5  norm          4.7124        4.7609        .18376E-06    .57133E-05
   6  Prefactor     .10000E-03    7.0567       -.10744E-06** at limit **
   7  Prefactor     2.8131        29.388        .11544E-04    .14703E-05
   8  Prefactor     6.5148        9.6690        .16897E-05    .33731E-05
   9  Prefactor     .10000E-03    5.3353       -.53423E-07** at limit **
  10  Prefactor     .90530        .55891E-01    .44854E-08   -.37660E-03
  11  norm          4.5339        1.5471       -.31860E-07   -.62908E-04
  12  norm          .82838        .37627       -.96872E-08   -.10408E-03
  13  norm          1.3806        1.0210        .20119E-07   -.73180E-05
  14  norm          8.5310        3.3290       -.11933E-06   -.47491E-05
  15  Prefactor     5.0102        14.843       -.85089E-06   -.43211E-06
  16  Prefactor     3.4665        2.0151       -.51135E-07   -.37419E-04
  17  norm          .10000E-03    .43323E-01    .16243E-07** at limit **
  18  Normalizat    1.2635        .75755E-01   -.34477E-06    .40166E-05
  19  Prefactor     .95288        .16511E-01   -.23135E-07    .29567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44353
  norm       = 0.659615
  norm       = 0.0001
  Prefactor  = 0.153634
  norm       = 4.71237
  Prefactor  = 0.0001
  Prefactor  = 2.81309
  Prefactor  = 6.51483
  Prefactor  = 0.0001
  Prefactor  = 0.905303
  norm       = 4.53387
  norm       = 0.828385
  norm       = 1.38062
  norm       = 8.53098
  Prefactor  = 5.01021
  Prefactor  = 3.46654
  norm       = 0.0001
  Normalizat = 1.26353
  Prefactor  = 0.952883
 **********
 **   18 **HESSE 
 **********

 FCN=   142068.3     FROM HESSE     STATUS=OK           284 CALLS     2016 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4435        6.6608        .14699E-03   -1.5162    
   2  norm          .65962        .98368        .47579E-04   -1.5546    
   3  norm          .10000E-03    .78535        .33904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15363        1.0469        .33108E-02   -1.5630    
   5  norm          4.7124        4.7644        .18536E-03   -1.5274    
   6  Prefactor     .10000E-03    7.3586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8131        29.737        .24288E-03   -1.5373    
   8  Prefactor     6.5148        9.6732        .15723E-03   -1.5197    
   9  Prefactor     .10000E-03    5.4552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90530        1.5863        .25653E-02   -1.5518    
  11  norm          4.5339        1.6720        .18907E-03   -1.5282    
  12  norm          .82838        .37847        .15148E-03   -1.5526    
  13  norm          1.3806        1.0093        .31637E-03   -1.5473    
  14  norm          8.5310        3.3287        .13725E-03   -1.5124    
  15  Prefactor     5.0102        14.834        .18004E-03   -1.5260    
  16  Prefactor     3.4665        2.0084        .21720E-03   -1.5336    
  17  norm          .10000E-03    .16829        .15120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2635        .80796E-01    .55804E-03   -.84662    
  19  Prefactor     .95288        .17614E-01    .13789E-03   -.94317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20022e-07
Minuit parameter uncertainties:
  1  6.66145
  2  0.983706
  3  4.1124e-06
  4  0.801845
  5  4.7648
  6  1.10186e-05
  7  18.3036
  8  9.67548
  9  8.01159e-07
  10  1.58641
  11  1.67199
  12  0.378472
  13  1.00932
  14  3.32874
  15  14.8448
  16  2.00845
  17  5.57898e-07
  18  0.0808042
  19  0.0176137
Done.

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

Extracting fit parameters...

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  9.053e-01  1.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  2.712e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.529e-01  1.761e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.264e+00  8.080e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 318.716 28.522
Photon Flux Upper Limit: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91668/likelihoodResults_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.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) = 142068.231339
delta logL = 0.0293953413202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 142068.225884
delta logL = 0.0348498980456

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   142068.2     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      247 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74442        5.5135        .12238E-02    .42184E-03
   2  Index         3.0240        .59209        .50000        .88097E-04
   3  Normalizat    1.2603        .87214E-02    .12589        .41484E-03
   4  Prefactor     .95322        .19102E-02    .31201E-01   -.78317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.744416
  Index      = 3.024
  Normalizat = 1.26034
  Prefactor  = 0.953219
 **********
 **   18 **HESSE 
 **********

 FCN=   142068.2     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74442        1.8898        .48950E-04   -1.5535    
   2  Index         3.0240        1.6374        .12431E-01   -.40629    
   3  Normalizat    1.2603        .79168E-01    .55866E-03   -.84758    
   4  Prefactor     .95322        .16963E-01    .13787E-03   -.94306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68745e-08
Minuit parameter uncertainties:
  1  1.88998
  2  1.67423
  3  0.0791757
  4  0.0169628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91668': 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) = 142068.225879
delta logL = 0.034854764468

Extracting fit parameters...

4FGL J2114.8+2831
   Spectrum: PowerLaw
465    Prefactor:  7.444e-01  1.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
466        Index:  3.024e+00  1.674e+00  0.000e+00  1.000e+01 (-1.000e+00)
467        Scale:  7.137e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.532e-01  1.696e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  1.260e+00  7.918e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 318.716 28.522

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/91668/cmap_HighResolution_423619201_426211201_4FGL_J2114.8+2831_monthly_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-11-06 23:39:34.053883', job_id='91668', GAL2='0.95', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1636267174.05', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.49e-02', ts2='0.50', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='72' AND source_name='4FGL J2114.8+2831' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Nov  6 23:39:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 91668: <4FGL_J2114.8+2831_monthly_bin72> in cluster <slac> Done

Job <4FGL_J2114.8+2831_monthly_bin72> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  6 20:50:18 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  6 20:50:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  6 20:50:20 2021
Terminated at Sat Nov  6 23:39:35 2021
Results reported at Sat Nov  6 23:39:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2114.8+2831_monthly_bin72 318.716 28.5222 423619201 426211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2114.8+2831 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9919.00 sec.
    Max Memory :                                 818 MB
    Average Memory :                             539.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10154 sec.
    Turnaround time :                            10157 sec.

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

