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


Performing analysis on: 4FGL_J1849.2+6705_daily_bin1202
RA = 282.319, Dec = 67.0909
tmin = 550886401, tmax = 551145601
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='371690', job_status='RUN', time_executed='2021-09-21 14:58:19.952352', time_epoch_executed='1632261499.95' WHERE source_name='4FGL J1849.2+6705' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371690/ft1_4FGL_J1849.2+6705_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371690/ft1_4FGL_J1849.2+6705_daily_bin1202.fits outfile=/scratch/kocevski/371690/ft1_filteredMKT_4FGL_J1849.2+6705_daily_bin1202.fits ra=282.319 dec=67.0909 rad=12.0 tmin=550886401.0 tmax=551145601.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.77
user 3.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.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/371690/ft1_filteredMKT_4FGL_J1849.2+6705_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/371690/ft1_filtered_4FGL_J1849.2+6705_daily_bin1202.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371690/ft1_filtered_4FGL_J1849.2+6705_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/371690/ltcube_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.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/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.fits
.....................!
real 11.70
user 11.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371690/ft1_filtered_4FGL_J1849.2+6705_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/371690/ltcube_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.fits outfile=/scratch/kocevski/371690/expmap_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.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/371690/ltcube_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.fits
.....................!
real 190.52
user 184.84
sys 5.36

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/371690/ft1_filtered_4FGL_J1849.2+6705_daily_bin1202.fits scfile=/scratch/kocevski/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.fits outfile=/scratch/kocevski/371690/cmap_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371690/ft1_filtered_4FGL_J1849.2+6705_daily_bin1202.fits scfile=/scratch/kocevski/371690/ft2_4FGL_J1849.2+6705_daily_bin1202.fits outfile=/scratch/kocevski/371690/cmap_HighResolution_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2355       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.0237       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8017       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    362.85       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11291E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    134.29       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2442       1.0000         .10000E-03   10000.    
    22 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.948       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5283       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    62.171       1.0000         .10000E-03   10000.    
    29 'norm      '    2.4702       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .76141       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1282       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=   3863.569     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4530 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2356        2.2339        .25067E-07    .12940E-03
   2  Prefactor     16.626        17.013        .48081E-07    .17959E-04
   3  Prefactor     .10000E-03    16.470        .34208E-06** at limit **
   4  Prefactor     .10000E-03    8.4189       -.27943E-07** at limit **
   5  Prefactor     .10000E-03    26.257       -.74503E-06** at limit **
   6  Prefactor     .10000E-03    56.962        .87290E-06** at limit **
   7  norm          7.0244        5.0722       -.55510E-07   -.13413E-04
   8  norm          2.8016        2.0526        .16322E-08    .15824E-04
   9  Prefactor     .10000E-03    5.7722       -.54698E-09** at limit **
  10  norm          .10000E-03    2.9522       -.81346E-08** at limit **
  11  Prefactor     45.662        56.398        .29619E-07    .25699E-04
  12  Prefactor     362.85        324.02       -.83886E-06    .24070E-04
  13  Prefactor     .10086E-03    11.542       -.26400E-05** at limit **
  14  norm          7.2529        20.376        .27131E-06    .62509E-05
  15  Prefactor     .10000E-03    11.373       -.19692E-06** at limit **
  16  Prefactor     73.970        44.063       -.22660E-06    .23261E-03
  17  Prefactor     134.30        146.48        .20428E-06    .20224E-04
  18  Prefactor     .10000E-03    67.365       -.93283E-06** at limit **
  19  norm          .10000E-03    2.1241        .70132E-07** at limit **
  20  norm          .10000E-03    4.0425       -.32045E-07** at limit **
  21  norm          1.2449        11.912        .60049E-05    .26180E-03
  22  norm          .10000E-03    41.700       -.90040E-06** at limit **
  23  Prefactor     48.943        33.993       -.17852E-06   -.43052E-04
  24  Prefactor     .10000E-03    11.190        .10858E-06** at limit **
  25  norm          4.5283        3.1796        .19102E-07    .10237E-04
  26  norm          .10000E-03    32.374       -.10578E-06** at limit **
  27  norm          .10000E-03    32.661       -.74731E-07** at limit **
  28  Prefactor     62.174        43.328        .19191E-06    .25572E-04
  29  norm          2.4696        5.0279        .49419E-06    .24331E-03
  30  Prefactor     .10000E-03    13.609        .13933E-06** at limit **
  31  norm          .10000E-03    9.6242        .23710E-06** at limit **
  32  Normalizat    .76139        .36369        .26723E-06    .60768E-04
  33  Prefactor     1.1283        .14849       -.47491E-06    .82632E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.23556
  Prefactor  = 16.6263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 7.02442
  norm       = 2.80161
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.6615
  Prefactor  = 362.845
  Prefactor  = 0.000100863
  norm       = 7.25294
  Prefactor  = 0.0001
  Prefactor  = 73.9698
  Prefactor  = 134.297
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.24487
  norm       = 0.0001
  Prefactor  = 48.9426
  Prefactor  = 0.0001
  norm       = 4.52827
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 62.174
  norm       = 2.46958
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.761386
  Prefactor  = 1.12826
 **********
 **   18 **HESSE 
 **********

 FCN=   3863.569     FROM HESSE     STATUS=OK           681 CALLS     5211 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2356        2.2367        .56774E-04   -1.5250    
   2  Prefactor     16.626        17.028        .98227E-04   -1.4892    
   3  Prefactor     .10000E-03    16.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4807        .17612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.0244        5.0691        .11504E-03   -1.5178    
   8  norm          2.8016        2.0534        .72947E-04   -1.5373    
   9  Prefactor     .10000E-03    5.7753        .14585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9582        .10428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.662        56.375        .59335E-04   -1.4355    
  12  Prefactor     362.85        321.95        .10695E-03   -1.1875    
  13  Prefactor     .10086E-03    67.038        .31445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2529        20.351        .14894E-03   -1.5169    
  15  Prefactor     .10000E-03    11.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     73.970        42.968        .46684E-04   -1.3986    
  17  Prefactor     134.30        146.49        .17376E-03   -1.3385    
  18  Prefactor     .10000E-03    67.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1257        .88449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0747        .12203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2449        12.277        .40162E-03   -1.5485    
  22  norm          .10000E-03    42.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.943        33.965        .57317E-04   -1.4308    
  24  Prefactor     .10000E-03    11.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5283        3.1753        .87372E-04   -1.5282    
  26  norm          .10000E-03    32.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    32.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     62.174        43.304        .50890E-04   -1.4129    
  29  norm          2.4696        5.0137        .19092E-03   -1.5394    
  30  Prefactor     .10000E-03    13.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    9.6686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .76139        .37623        .49453E-03   -1.0152    
  33  Prefactor     1.1283        .15622        .18088E-03   -.88568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30579e-08
Minuit parameter uncertainties:
  1  2.23669
  2  17.0328
  3  0.000142288
  4  9.75075e-06
  5  0.000379656
  6  0.000658272
  7  5.06939
  8  2.05343
  9  6.72136e-07
  10  3.09314e-06
  11  56.441
  12  323.565
  13  0.0152324
  14  20.3704
  15  6.31417e-05
  16  42.9863
  17  146.887
  18  0.000770019
  19  5.41596e-06
  20  2.97929e-06
  21  7.82042
  22  0.000131556
  23  33.9784
  24  3.76986e-05
  25  3.17544
  26  6.52777e-05
  27  2.8696e-05
  28  43.3257
  29  5.01457
  30  4.5037e-05
  31  7.23274e-05
  32  0.377521
  33  0.156288
Done.

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

Extracting fit parameters...

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  1.000e-04  5.416e-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.128e+00  1.563e-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:  7.614e-01  3.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/371690/likelihoodResults_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.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) = 3863.57126038
delta logL = -0.00205625771605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3863.56920445
delta logL = -3.29390786646e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2479       1.0000          .0000       5.0000    
     3 'Normalizat'    .76116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1283       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=   3863.569     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      233 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    157.22        .88819E-02** at limit **
   2  alpha         1.8094        3.6518        .16568        .17738E-07
   3  Normalizat    .76138        .84839E-01    .49452E-03    .20863E-04
   4  Prefactor     1.1283        .37412E-01    .18088E-03    .63561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80944
  Normalizat = 0.761384
  Prefactor  = 1.12826
 **********
 **   18 **HESSE 
 **********

 FCN=   3863.569     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3517        .93042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8094        4.0435        .66271E-02   -.27986    
   3  Normalizat    .76138        .34328        .19781E-04   -1.0152    
   4  Prefactor     1.1283        .15174        .36177E-04   -.88568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56201e-12
Minuit parameter uncertainties:
  1  2.47721e-06
  2  206.215
  3  0.344254
  4  0.1518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371690': 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) = 3863.56920188
delta logL = 2.24261657422e-06

Extracting fit parameters...

4FGL J1849.2+6705
   Spectrum: LogParabola
347         norm:  1.000e-04  2.477e-06  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.809e+00  2.062e+02  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.128e+00  1.518e-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:  7.614e-01  3.443e-01  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/371690/cmap_HighResolution_550886401_551145601_4FGL_J1849.2+6705_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-21 15:11:48.201123', job_id='371690', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632262308.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1202' AND source_name='4FGL J1849.2+6705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 15:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 371690: <4FGL_J1849.2+6705_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1849.2+6705_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 14:55:40 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 14:55:42 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:42 2021
Terminated at Tue Sep 21 15:11:48 2021
Results reported at Tue Sep 21 15:11:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.2+6705_daily_bin1202 282.319 67.0909 550886401 551145601 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 :                                   759.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            968 sec.

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

