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


Performing analysis on: 4FGL_J1849.2+6705_daily_bin807
RA = 282.319, Dec = 67.0909
tmin = 448502401, tmax = 448761601
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='368337', job_status='RUN', time_executed='2021-09-21 14:45:41.980989', time_epoch_executed='1632260741.98' WHERE source_name='4FGL J1849.2+6705' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368337/ft1_4FGL_J1849.2+6705_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368337/ft1_4FGL_J1849.2+6705_daily_bin807.fits outfile=/scratch/kocevski/368337/ft1_filteredMKT_4FGL_J1849.2+6705_daily_bin807.fits ra=282.319 dec=67.0909 rad=12.0 tmin=448502401.0 tmax=448761601.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 6.18
user 5.82
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/368337/ltcube_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.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/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits
.....................!
real 11.59
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/368337/ltcube_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.fits outfile=/scratch/kocevski/368337/expmap_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.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/368337/ltcube_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.fits
.....................!
real 189.29
user 184.86
sys 4.08

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/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits scfile=/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits outfile=/scratch/kocevski/368337/cmap_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits scfile=/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits outfile=/scratch/kocevski/368337/cmap_HighResolution_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368337/Model_4FGL_J1849.2+6705_daily_bin807.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/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits.....................!
real 48.52
user 46.77
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits', '/scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits', expMap='/scratch/kocevski/368337/expmap_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.fits', expCube='/scratch/kocevski/368337/ltcube_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368337/Model_4FGL_J1849.2+6705_daily_bin807.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/368337/ft1_filtered_4FGL_J1849.2+6705_daily_bin807.fits
Spacecraft file(s): /scratch/kocevski/368337/ft2_4FGL_J1849.2+6705_daily_bin807.fits
Exposure map: /scratch/kocevski/368337/expmap_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.fits
Exposure cube: /scratch/kocevski/368337/ltcube_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368337/Model_4FGL_J1849.2+6705_daily_bin807.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) = 3448.74252779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    24.234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.981       1.0000         .10000E-03   10000.    
     6 'Prefactor '    171.63       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6605       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    32.072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    742.98       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19593E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7212       1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.284       1.0000         .10000E-03   10000.    
    16 'Prefactor '    110.29       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3974       1.0000         .10000E-03   10000.    
    21 'norm      '    28.733       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .95374       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    74.113       1.0000         .10000E-03   10000.    
    27 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    122.40       1.0000         .10000E-03   10000.    
    29 'norm      '    12.273       1.0000         .10000E-03   10000.    
    30 'Prefactor '    113.01       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10069E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1552       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=   3448.719     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     6211 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .48755       -.42989E-08** at limit **
   2  Prefactor     24.230        16.794       -.19466E-06   -.17185E-05
   3  Prefactor     .10000E-03    19.680       -.49258E-07** at limit **
   4  Prefactor     .10000E-03    34.016        .28409E-05** at limit **
   5  Prefactor     31.975        72.355       -.30136E-06    .10458E-04
   6  Prefactor     171.56        149.93       -.62860E-06   -.16837E-04
   7  norm          .10000E-03    2.9870       -.10807E-06** at limit **
   8  norm          2.6604        2.3074       -.15027E-07    .70652E-04
   9  Prefactor     .10000E-03    29.754        .26958E-06** at limit **
  10  norm          32.066        14.799        .31316E-06    .58841E-05
  11  Prefactor     .10000E-03    252.78        .33158E-05** at limit **
  12  Prefactor     742.73        627.42        .52299E-05    .34744E-05
  13  Prefactor     .10002E-03    26.193       -.13072E-05** at limit **
  14  norm          6.7191        13.893       -.41391E-06    .17395E-04
  15  Prefactor     66.277        44.166       -.24257E-06    .86766E-05
  16  Prefactor     110.29        63.849        .90471E-06    .15049E-04
  17  Prefactor     .10000E-03    104.41        .29541E-06** at limit **
  18  Prefactor     .10000E-03    145.06       -.29729E-05** at limit **
  19  norm          .10000E-03    7.4389       -.21988E-06** at limit **
  20  norm          2.3972        3.1901       -.77139E-07    .25639E-04
  21  norm          28.731        19.195       -.43041E-07    .13953E-04
  22  norm          .10000E-03    11.338       -.30005E-09** at limit **
  23  Prefactor     .10000E-03    29.103        .91734E-08** at limit **
  24  Prefactor     .83934        114.86       -.65987E-05    .21294E-04
  25  norm          .10000E-03    5.9793       -.57856E-06** at limit **
  26  norm          74.104        244.60        .36094E-06    .27586E-05
  27  norm          .10000E-03    252.68       -.16138E-06** at limit **
  28  Prefactor     122.43        88.674        .41333E-06    .22235E-04
  29  norm          12.306        17.307        .16419E-05    .10759E-03
  30  Prefactor     113.05        75.031        .38631E-06    .18333E-04
  31  norm          .10000E-03    9.6991       -.18317E-07** at limit **
  32  Normalizat    .10000E-01    .34565        .54194E-05** at limit **
  33  Prefactor     1.1552        .13423       -.47329E-06    .11078E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 24.2301
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.9747
  Prefactor  = 171.563
  norm       = 0.0001
  norm       = 2.66045
  Prefactor  = 0.0001
  norm       = 32.066
  Prefactor  = 0.0001
  Prefactor  = 742.733
  Prefactor  = 0.000100016
  norm       = 6.71913
  Prefactor  = 66.2772
  Prefactor  = 110.29
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.39725
  norm       = 28.7309
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.83934
  norm       = 0.0001
  norm       = 74.1044
  norm       = 0.000100001
  Prefactor  = 122.433
  norm       = 12.3058
  Prefactor  = 113.048
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.15515
 **********
 **   18 **HESSE 
 **********

 FCN=   3448.719     FROM HESSE     STATUS=OK           703 CALLS     6914 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .49151        .39992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.230        17.091        .81371E-04   -1.4723    
   3  Prefactor     .10000E-03    19.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.975        73.174        .70854E-04   -1.4576    
   6  Prefactor     171.56        154.42        .15399E-03   -1.3081    
   7  norm          .10000E-03    3.0026        .99073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6604        2.3132        .76618E-04   -1.5382    
   9  Prefactor     .10000E-03    29.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          32.066        15.020        .70754E-04   -1.4575    
  11  Prefactor     .10000E-03    254.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     742.73        632.54        .76261E-04   -1.0188    
  13  Prefactor     .10002E-03    260.56        .48848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7191        14.054        .15477E-03   -1.5189    
  15  Prefactor     66.277        44.808        .49296E-04   -1.4078    
  16  Prefactor     110.29        64.394        .38301E-04   -1.3604    
  17  Prefactor     .10000E-03    104.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    146.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.5186        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3972        3.1800        .11688E-03   -1.5398    
  21  norm          28.731        19.215        .74742E-04   -1.4635    
  22  norm          .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .83934        132.88        .48701E-02   -1.5525    
  25  norm          .10000E-03    6.1238        .27835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          74.104        247.46        .46638E-04   -1.3984    
  27  norm          .10000E-03    255.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     122.43        89.105        .18189E-03   -1.3490    
  29  norm          12.306        17.848        .11434E-03   -1.5006    
  30  Prefactor     113.05        75.215        .18921E-03   -1.3577    
  31  norm          .10000E-03    9.6993        .17865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    1.0474        .24279       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.1552        .19029        .19258E-03   -.87723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27232e-10
Minuit parameter uncertainties:
  1  5.89738e-07
  2  17.0945
  3  9.94583e-06
  4  0.000382076
  5  73.38
  6  154.783
  7  4.85586e-06
  8  2.31326
  9  2.75397e-05
  10  15.0219
  11  0.000235932
  12  638.845
  13  0.00410103
  14  14.0612
  15  44.8311
  16  64.4353
  17  8.02453e-05
  18  0.000743252
  19  4.31696e-06
  20  3.18019
  21  19.2191
  22  2.3285e-06
  23  3.48067e-05
  24  21.1684
  25  2.93792e-05
  26  251.033
  27  0.00112143
  28  89.2027
  29  17.8556
  30  75.2788
  31  6.89481e-07
  32  0.00016737
  33  0.190399
Done.

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

Extracting fit parameters...

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  1.000e-04  4.317e-06  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:  1.155e+00  1.904e-01  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  1.674e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 282.319 67.091
Photon Flux Upper Limit: 2.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368337/likelihoodResults_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.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) = 3448.71939973
delta logL = -0.000632963774933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3448.7187668
delta logL = -2.551041689e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2522       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1552       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3448.700     FROM MIGRAD    STATUS=FAILED       139 CALLS      300 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21164E-01    6.1994        .69323E-02    .32097E-02
   2  alpha         5.0000        3.7991        .50000    ** at limit **
   3  Normalizat    .10000E-01    .39235        .15682E-01** at limit **
   4  Prefactor     1.1522        .42750E-01    .19258E-03   -.25178E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3448.700     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      469 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21164E-01    6.1994        .20156E-06    .32097E-02
   2  alpha         5.0000        3.7991        .36203E-01** at limit **
   3  Normalizat    .10000E-01    .39235        .27134E-02** at limit **
   4  Prefactor     1.1522        .42750E-01    .30855E-09   -.25178E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3448.700     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      506 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21164E-01    .19633        .35407E-03    .52942E-03
   2  alpha         5.0000        3.2217        .50000    ** at limit **
   3  Normalizat    .10000E-01    6.2451        .62728E-03** at limit **
   4  Prefactor     1.1522        .10844        .77033E-05   -.25089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0211636
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 1.15221
 **********
 **   18 **HESSE 
 **********

 FCN=   3448.700     FROM HESSE     STATUS=OK            31 CALLS      537 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21164E-01    .16682        .14163E-04   -1.5679    
   2  alpha         5.0000        3.7058        .50000       -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    6.2451        .12546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1522        .10847        .15407E-05   -.87815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28392e-13
Minuit parameter uncertainties:
  1  0.118555
  2  1.93584e-05
  3  2.77613e-07
  4  0.108494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368337': 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) = 3448.69973907
delta logL = 0.019027702584

Extracting fit parameters...

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  2.116e-02  1.186e-01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  5.000e+00  1.936e-05  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:  1.152e+00  1.085e-01  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  2.776e-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/368337/cmap_HighResolution_448502401_448761601_4FGL_J1849.2+6705_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-05', job_status='DONE', photon_flux_upper_limit='2.14e-07', time_completed='2021-09-21 14:58:30.326772', job_id='368337', GAL2='1.15', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632261510.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.90e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='807' AND source_name='4FGL J1849.2+6705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 14:58:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 368337: <4FGL_J1849.2+6705_daily_bin807> in cluster <slac> Done

Job <4FGL_J1849.2+6705_daily_bin807> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 21 14:45:26 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 14:45:27 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:45:27 2021
Terminated at Tue Sep 21 14:58:31 2021
Results reported at Tue Sep 21 14:58:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.2+6705_daily_bin807 282.319 67.0909 448502401 448761601 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

