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


Performing analysis on: 4FGL_J1849.4-4313_daily_bin1204
RA = 282.362, Dec = -43.2214
tmin = 551404801, tmax = 551664001
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='401356', job_status='RUN', time_executed='2021-09-21 16:40:48.597881', time_epoch_executed='1632267648.6' WHERE source_name='4FGL J1849.4-4313' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401356/ft1_4FGL_J1849.4-4313_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401356/ft1_4FGL_J1849.4-4313_daily_bin1204.fits outfile=/scratch/kocevski/401356/ft1_filteredMKT_4FGL_J1849.4-4313_daily_bin1204.fits ra=282.362 dec=-43.2214 rad=12.0 tmin=551404801.0 tmax=551664001.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.58
user 3.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.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/401356/ft1_filteredMKT_4FGL_J1849.4-4313_daily_bin1204.fits evtable="EVENTS" outfile="/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/401356/ltcube_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.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/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits
.....................!
real 11.55
user 11.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/401356/ltcube_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.fits outfile=/scratch/kocevski/401356/expmap_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.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/401356/ltcube_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.fits
.....................!
real 190.09
user 184.62
sys 5.14

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 J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Added 445 point sources and 5 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.4-4313 @ 282.362 -43.2214

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits scfile=/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits outfile=/scratch/kocevski/401356/cmap_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.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.362 yref=-43.2214 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits scfile=/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits outfile=/scratch/kocevski/401356/cmap_HighResolution_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.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.362 yref=-43.2214 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401356/Model_4FGL_J1849.4-4313_daily_bin1204.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 FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1741.6-3917
adding source GAL_V02
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits.....................!
real 67.71
user 66.36
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits', '/scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits', expMap='/scratch/kocevski/401356/expmap_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.fits', expCube='/scratch/kocevski/401356/ltcube_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/401356/Model_4FGL_J1849.4-4313_daily_bin1204.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1849.4-4313'

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  8.097e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
1284        alpha:  2.123e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1285         beta:  1.147e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1286           Eb:  1.357e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/401356/ft1_filtered_4FGL_J1849.4-4313_daily_bin1204.fits
Spacecraft file(s): /scratch/kocevski/401356/ft2_4FGL_J1849.4-4313_daily_bin1204.fits
Exposure map: /scratch/kocevski/401356/expmap_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.fits
Exposure cube: /scratch/kocevski/401356/ltcube_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/401356/Model_4FGL_J1849.4-4313_daily_bin1204.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) = 2574.61989897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    56.688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20199E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.4808       1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.201       1.0000         .10000E-03   10000.    
    11 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1781       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    212.95       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1617E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2574.607     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     2005 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10019E-03    35.188       -.22797E-05** at limit **
   2  norm          57.046        69.345        .13957E-04   -.87459E-02
   3  Prefactor     .10000E-03    41.149       -.12670E-06** at limit **
   4  norm          .77603E-03    182.73       -.47824E-04** at limit **
   5  Prefactor     .10024E-03    111.99       -.34606E-05** at limit **
   6  norm          .10000E-03    19.830        .15654E-06** at limit **
   7  norm          7.4838        3.8293        .69289E-06    .95000E-02
   8  norm          .10015E-03    35.181       -.23047E-05** at limit **
   9  norm          .10004E-03    25.145       -.61991E-06** at limit **
  10  Prefactor     71.168        6.1232       -.10837E-05   -.90296E-02
  11  norm          .12168E-03    194.14       -.12385E-04** at limit **
  12  norm          2.1438        4.8693       -.17932E-06    .12233E-03
  13  norm          .10000E-03    3.9782        .35922E-06** at limit **
  14  Prefactor     19.895        1.2890        .27700E-06   -.34194E-03
  15  Prefactor     .10010E-03    26.064        .17273E-05** at limit **
  16  Prefactor     212.97        2.7272        .26388E-06   -.15703E-02
  17  Prefactor     .10006E-03    48.868       -.17771E-05** at limit **
  18  norm          .10007E-03    28.488       -.17943E-05** at limit **
  19  Normalizat    .10000E-01    .52297       -.11005E-05** at limit **
  20  Prefactor     .98944        .77968E-01   -.38521E-05   -.20741E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100194
  norm       = 57.0461
  Prefactor  = 0.0001
  norm       = 0.000776031
  Prefactor  = 0.000100237
  norm       = 0.0001
  norm       = 7.48385
  norm       = 0.000100152
  norm       = 0.000100044
  Prefactor  = 71.1679
  norm       = 0.000121681
  norm       = 2.14383
  norm       = 0.0001
  Prefactor  = 19.8954
  Prefactor  = 0.000100104
  Prefactor  = 212.967
  Prefactor  = 0.000100062
  norm       = 0.000100072
  Normalizat = 0.01
  Prefactor  = 0.989444
 **********
 **   18 **HESSE 
 **********

 FCN=   2574.607     FROM HESSE     STATUS=OK           331 CALLS     2336 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10019E-03    70.566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          57.046        116.01        .13320E-02   -1.4196    
   3  Prefactor     .10000E-03    41.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77603E-03    1.2829        .53334E-01   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10024E-03    116.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.4838        10.790        .36658E-02   -1.5161    
   8  norm          .10015E-03    70.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    25.399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.168        44.569        .11894E-02   -1.4019    
  11  norm          .12168E-03    203.66        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1438        72.493        .69742E-02   -1.5415    
  13  norm          .10000E-03    3.9603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.895        624.15        .22451E-02   -1.4816    
  15  Prefactor     .10010E-03    27.171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     212.97        259.98        .69268E-03   -1.2779    
  17  Prefactor     .10006E-03    49.224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10007E-03    28.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .45251        .32189       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .98944        .97637E-01    .28434E-01   -.93082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45137e-06
Minuit parameter uncertainties:
  1  0.00740239
  2  116.471
  3  0.000270956
  4  0.0589005
  5  0.0105072
  6  0.000112354
  7  10.7925
  8  0.00656816
  9  0.00211852
  10  44.5897
  11  0.133355
  12  24.9653
  13  1.3848e-05
  14  225.49
  15  0.00335987
  16  261.405
  17  0.00348291
  18  0.00288251
  19  2.79048e-07
  20  0.0976539
Done.

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

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.217e-04  1.334e-01  1.000e-04  1.000e+04 ( 1.000e-13)
1284        alpha:  2.123e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1285         beta:  1.147e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1286           Eb:  1.357e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1610    Prefactor:  9.894e-01  9.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1597   Normalization:  1.000e-02  2.790e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 282.362 -43.221
Photon Flux Upper Limit: 4.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401356/likelihoodResults_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.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) = 2574.6071819
delta logL = -3.16782275149e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2574.60718153
delta logL = -3.13107375405e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96350E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1225       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1617E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2574.607     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      206 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    208.59        .90713E-02** at limit **
   2  alpha         2.1683        3.4722        .41760       -.11116E-05
   3  Normalizat    .10000E-01    .37458        .32103    ** at limit **
   4  Prefactor     .98944        .85038E-01    .28434E-01   -.32620E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.16833
  Normalizat = 0.01
  Prefactor  = 0.989444
 **********
 **   18 **HESSE 
 **********

 FCN=   2574.607     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    205.02        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1683        3.4667        .50000       -.13306    
   3  Normalizat    .10000E-01    .43301        .18329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98944        .75741E-01    .12568E-03   -.93082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19164e-10
Minuit parameter uncertainties:
  1  0.00157457
  2  2.47993
  3  6.41163e-06
  4  0.0757491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401356': 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) = 2574.60715015
delta logL = 7.3178398452e-08

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  1.575e-03  1.000e-04  1.000e+04 ( 1.000e-13)
1284        alpha:  2.168e+00  2.480e+00  0.000e+00  5.000e+00 ( 1.000e+00)
1285         beta:  1.147e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1286           Eb:  1.357e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1610    Prefactor:  9.894e-01  7.575e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1597   Normalization:  1.000e-02  6.412e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 282.362 -43.221

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/401356/cmap_HighResolution_551404801_551664001_4FGL_J1849.4-4313_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-04', job_status='DONE', photon_flux_upper_limit='4.26e-07', time_completed='2021-09-21 16:52:13.433388', job_id='401356', GAL2='0.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632268333.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1204' AND source_name='4FGL J1849.4-4313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 16:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 401356: <4FGL_J1849.4-4313_daily_bin1204> in cluster <slac> Done

Job <4FGL_J1849.4-4313_daily_bin1204> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 16:40:16 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 16:40:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 16:40:18 2021
Terminated at Tue Sep 21 16:52:14 2021
Results reported at Tue Sep 21 16:52:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4-4313_daily_bin1204 282.362 -43.2214 551404801 551664001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1849.4-4313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             355.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

