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


Performing analysis on: 4FGL_J1849.2+6705_daily_bin1205
RA = 282.319, Dec = 67.0909
tmin = 551664001, tmax = 551923201
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='371696', job_status='RUN', time_executed='2021-09-21 14:57:54.577686', time_epoch_executed='1632261474.58' WHERE source_name='4FGL J1849.2+6705' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371696/ft1_4FGL_J1849.2+6705_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371696/ft1_4FGL_J1849.2+6705_daily_bin1205.fits outfile=/scratch/kocevski/371696/ft1_filteredMKT_4FGL_J1849.2+6705_daily_bin1205.fits ra=282.319 dec=67.0909 rad=12.0 tmin=551664001.0 tmax=551923201.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.80
user 3.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.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/371696/ft1_filteredMKT_4FGL_J1849.2+6705_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/371696/ltcube_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.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/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits
.....................!
real 11.95
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/371696/ltcube_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.fits outfile=/scratch/kocevski/371696/expmap_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.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/371696/ltcube_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.fits
.....................!
real 189.98
user 184.87
sys 4.67

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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 184 point sources and 2 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 J1849.2+6705 @ 282.319 67.0909

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits scfile=/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits outfile=/scratch/kocevski/371696/cmap_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.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=282.319 yref=67.0909 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits scfile=/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits outfile=/scratch/kocevski/371696/cmap_HighResolution_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.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=282.319 yref=67.0909 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371696/Model_4FGL_J1849.2+6705_daily_bin1205.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits..!
real 13.65
user 12.41
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits', '/scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits', expMap='/scratch/kocevski/371696/expmap_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.fits', expCube='/scratch/kocevski/371696/ltcube_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371696/Model_4FGL_J1849.2+6705_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1849.2+6705'

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  6.898e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.257e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  9.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/371696/ft1_filtered_4FGL_J1849.2+6705_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/371696/ft2_4FGL_J1849.2+6705_daily_bin1205.fits
Exposure map: /scratch/kocevski/371696/expmap_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.fits
Exposure cube: /scratch/kocevski/371696/ltcube_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371696/Model_4FGL_J1849.2+6705_daily_bin1205.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) = 19.5033394291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    61.431       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11700E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12654E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11110E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11459E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .11102E-14   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19.20031     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4379 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          61.440        62.392        .61016E-06    .18138E-03
   2  Prefactor     .10000E-03    1002.4        .53518E-05** at limit **
   3  Prefactor     .10000E-03    6234.3       -.88580E-03** at limit **
   4  Prefactor     .10000E-03    358.14        .11124E-03** at limit **
   5  Prefactor     .10000E-03    1544.2       -.41987E-03** at limit **
   6  Prefactor     .10000E-03    6341.8       -.96100E-03** at limit **
   7  norm          .10000E-03    104.33        .24328E-04** at limit **
   8  norm          .10000E-03    36.651        .18913E-06** at limit **
   9  Prefactor     .10000E-03    317.99        .25958E-04** at limit **
  10  norm          .10000E-03    136.22        .86225E-04** at limit **
  11  Prefactor     .10000E-03    893.66        .99484E-04** at limit **
  12  Prefactor     .10000E-03    7309.7       -.13752E-02** at limit **
  13  Prefactor     .10000E-03    148.28        .46729E-04** at limit **
  14  norm          .10000E-03    240.95       -.12407E-03** at limit **
  15  Prefactor     .10000E-03    575.60        .29204E-03** at limit **
  16  Prefactor     .10000E-03    390.61        .16934E-03** at limit **
  17  Prefactor     .10000E-03    6368.3       -.97826E-03** at limit **
  18  Prefactor     .10000E-03    6493.8       -.10535E-02** at limit **
  19  norm          .10000E-03    75.900        .56565E-04** at limit **
  20  norm          .10000E-03    88.628       -.46759E-04** at limit **
  21  norm          .10000E-03    168.27       -.34273E-04** at limit **
  22  norm          .10000E-03    279.75       -.58869E-04** at limit **
  23  Prefactor     .10000E-03    264.56       -.88879E-04** at limit **
  24  Prefactor     .10000E-03    90.022       -.46546E-04** at limit **
  25  norm          .10000E-03    30.986       -.10874E-06** at limit **
  26  norm          .10000E-03    1590.4       -.45037E-03** at limit **
  27  norm          .10000E-03    341.44        .77197E-04** at limit **
  28  Prefactor     .10000E-03    291.67       -.33142E-04** at limit **
  29  norm          .10000E-03    67.039       -.13422E-04** at limit **
  30  Prefactor     .10000E-03    379.40        .15058E-03** at limit **
  31  norm          .10000E-03    230.03       -.13303E-03** at limit **
  32  Normalizat    .10000E-01    .65390        .75121E-07** at limit **
  33  Prefactor      .0000        .23770        .42163E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 61.4402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   19.20031     FROM HESSE     STATUS=OK           661 CALLS     5040 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          61.440        62.375        .34635E-04   -1.4139    
   2  Prefactor     .10000E-03    1002.4        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6234.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    358.14        .82526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1544.2        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6341.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    104.33        .44351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    36.651        .26257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    317.99        .77709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    136.22        .50705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    893.66        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7309.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    148.27        .52911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    240.95        .67556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    575.63        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    390.61        .86234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6368.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6493.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    75.900        .37810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    88.627        .40866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    168.27        .56385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    279.74        .72839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    264.55        .70816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    90.021        .41187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    30.986        .24140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1590.4        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    341.44        .80556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    291.67        .74390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    67.039        .35529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    379.40        .84971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    230.03        .65995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .65376        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor      .0000        .23768        .67094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10054e-10
Minuit parameter uncertainties:
  1  62.4415
  2  0.000225146
  3  0.000293587
  4  7.19227e-06
  5  3.84096e-05
  6  2.34562e-05
  7  8.07501e-06
  8  1.44047e-06
  9  1.1885e-06
  10  6.43468e-06
  11  4.72263e-06
  12  6.20926e-05
  13  4.27266e-06
  14  2.53032e-06
  15  4.30254e-05
  16  4.67489e-06
  17  3.02163e-05
  18  4.02193e-05
  19  7.66049e-07
  20  4.22146e-07
  21  3.67591e-07
  22  6.97039e-07
  23  7.49405e-07
  24  3.51254e-09
  25  1.04558e-08
  26  1.17741e-05
  27  9.9396e-07
  28  2.98235e-07
  29  8.70212e-09
  30  2.2712e-06
  31  1.36533e-06
  32  7.03572e-08
  33  4.39582e-09
Done.

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

Extracting fit parameters...

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  1.000e-04  7.660e-07  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.257e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  9.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  0.000e+00  4.396e-09  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.000e-02  7.036e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 282.319 67.091
Photon Flux Upper Limit: 4.54e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371696/likelihoodResults_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.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) = 19.2003723314
delta logL = -6.51236109412e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19.2003091078
delta logL = -1.90002195311e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0940       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26152E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+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.

 FCN=   19.20031     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      262 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9881.4        .22318E-02** at limit **
   2  alpha         1.4223        2.7282        .17090        .17288E-07
   3  Normalizat    .10000E-01    .30400        .11214E-02** at limit **
   4  Prefactor     .41078E-13    .10966        .67094E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.4223
  Normalizat = 0.01
  Prefactor  = 4.10783e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   19.20031     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    126.85        .44636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4223        3.2035        .68360E-02   -.44569    
   3  Normalizat    .10000E-01    .65376        .22428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41078E-13    .23768        .13419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21996e-11
Minuit parameter uncertainties:
  1  0.000210601
  2  1179.19
  3  5.34977e-07
  4  1.98997e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371696': 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) = 19.2003069438
delta logL = 2.63996323469e-07

Extracting fit parameters...

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  1.000e-04  2.106e-04  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.422e+00  1.179e+03  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  9.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  4.108e-14  1.990e-07  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.000e-02  5.350e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 282.319 67.091

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/371696/cmap_HighResolution_551664001_551923201_4FGL_J1849.2+6705_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-03', job_status='DONE', photon_flux_upper_limit='4.54e-06', time_completed='2021-09-21 15:04:03.583095', job_id='371696', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632261843.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='2.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1205' AND source_name='4FGL J1849.2+6705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 15:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 371696: <4FGL_J1849.2+6705_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1849.2+6705_daily_bin1205> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 14:55:41 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 14:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 14:55:43 2021
Terminated at Tue Sep 21 15:04:03 2021
Results reported at Tue Sep 21 15:04:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.2+6705_daily_bin1205 282.319 67.0909 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1849.2+6705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   332.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             397.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   500 sec.
    Turnaround time :                            502 sec.

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

