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


Performing analysis on: 4FGL_J1849.4-4313_daily_bin1255
RA = 282.362, Dec = -43.2214
tmin = 564624001, tmax = 564883201
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='401433', job_status='RUN', time_executed='2021-09-21 16:40:59.687603', time_epoch_executed='1632267659.69' WHERE source_name='4FGL J1849.4-4313' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401433/ft1_4FGL_J1849.4-4313_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401433/ft1_4FGL_J1849.4-4313_daily_bin1255.fits outfile=/scratch/kocevski/401433/ft1_filteredMKT_4FGL_J1849.4-4313_daily_bin1255.fits ra=282.362 dec=-43.2214 rad=12.0 tmin=564624001.0 tmax=564883201.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/401433/ltcube_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.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/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/401433/ltcube_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.fits outfile=/scratch/kocevski/401433/expmap_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.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/401433/ltcube_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.fits
.....................!
real 190.01
user 185.28
sys 4.41

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/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits scfile=/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits outfile=/scratch/kocevski/401433/cmap_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits scfile=/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits outfile=/scratch/kocevski/401433/cmap_HighResolution_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401433/Model_4FGL_J1849.4-4313_daily_bin1255.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/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits.....................!
real 61.62
user 60.31
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits', '/scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits', expMap='/scratch/kocevski/401433/expmap_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.fits', expCube='/scratch/kocevski/401433/ltcube_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/401433/Model_4FGL_J1849.4-4313_daily_bin1255.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/401433/ft1_filtered_4FGL_J1849.4-4313_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/401433/ft2_4FGL_J1849.4-4313_daily_bin1255.fits
Exposure map: /scratch/kocevski/401433/expmap_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.fits
Exposure cube: /scratch/kocevski/401433/ltcube_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/401433/Model_4FGL_J1849.4-4313_daily_bin1255.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) = 2457.39403154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .35855E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.349       1.0000         .10000E-03   10000.    
    11 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.301       1.0000         .10000E-03   10000.    
    13 'norm      '    8.3148       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.402       1.0000         .10000E-03   10000.    
    18 'norm      '    78.745       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84964       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2457.268     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2103 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    155.72        .42768E-07** at limit **
   2  norm          .10000E-03    355.88       -.25598E-06** at limit **
   3  Prefactor     .10000E-03    67.681       -.56351E-06** at limit **
   4  norm          .10000E-03    1.9292        .64719E-07** at limit **
   5  Prefactor     .10000E-03    162.50       -.88130E-07** at limit **
   6  norm          .10000E-03    22.956       -.48968E-08** at limit **
   7  norm          .10000E-03    3.9591        .11157E-07** at limit **
   8  norm          .10000E-03    112.68        .50992E-06** at limit **
   9  norm          .10000E-03    42.073        .61321E-07** at limit **
  10  Prefactor     52.366        44.428       -.31926E-06   -.32866E-04
  11  norm          .10000E-03    91.387        .23016E-06** at limit **
  12  norm          11.310        20.270       -.51800E-06   -.91278E-04
  13  norm          8.3161        7.6958       -.54387E-07   -.11038E-03
  14  Prefactor     .10000E-03    107.87        .48746E-06** at limit **
  15  Prefactor     57.537        46.285       -.64351E-06    .11421E-03
  16  Prefactor     .10001E-03    234.00       -.15483E-05** at limit **
  17  Prefactor     31.417        41.528       -.17543E-05   -.36091E-04
  18  norm          78.756        62.345        .15123E-06    .73164E-05
  19  Normalizat    .10000E-01    .67179        .33968E-04** at limit **
  20  Prefactor     .84956        .81602E-01   -.19813E-05   -.90470E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 52.366
  norm       = 0.0001
  norm       = 11.3101
  norm       = 8.31614
  Prefactor  = 0.000100001
  Prefactor  = 57.5367
  Prefactor  = 0.000100007
  Prefactor  = 31.4166
  norm       = 78.7562
  Normalizat = 0.01
  Prefactor  = 0.849563
 **********
 **   18 **HESSE 
 **********

 FCN=   2457.268     FROM HESSE     STATUS=OK           285 CALLS     2388 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    155.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    357.83        .21313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9929        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    162.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    22.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9593        .96336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    112.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    42.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     52.366        44.684        .55433E-04   -1.4259    
  11  norm          .10000E-03    91.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.310        20.348        .11917E-03   -1.5035    
  13  norm          8.3161        7.6961        .12693E-03   -1.5131    
  14  Prefactor     .10000E-03    107.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.537        46.301        .52894E-04   -1.4189    
  16  Prefactor     .10001E-03    234.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.417        41.664        .71503E-04   -1.4586    
  18  norm          78.756        62.343        .22628E-03   -1.3931    
  19  Normalizat    .10000E-01    6.5141        .20824E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .84956        .84050E-01    .12320E-03   -.97926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78681e-10
Minuit parameter uncertainties:
  1  5.84945e-05
  2  0.000688654
  3  0.000459632
  4  8.78101e-05
  5  0.000108354
  6  2.30531e-07
  7  6.24525e-07
  8  0.000549433
  9  8.24583e-05
  10  44.7128
  11  0.000316631
  12  20.3601
  13  7.69701
  14  0.000539102
  15  46.3296
  16  0.00265534
  17  41.7021
  18  62.3948
  19  7.37587e-05
  20  0.0840623
Done.

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

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  3.166e-04  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:  8.496e-01  8.406e-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  7.376e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/401433/likelihoodResults_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.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) = 2457.26806985
delta logL = -5.33102634108e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2457.26801837
delta logL = -1.82202029464e-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     '    .73458       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84956       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2457.268     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      340 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4576        .12171    ** at limit **
   2  alpha         3.1012        2.8024        .50000        .16053E-07
   3  Normalizat    .10000E-01    .90169E-03    .20823E-01** at limit **
   4  Prefactor     .84956        .11646E-02    .12320E-03   -.10400E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.10121
  Normalizat = 0.01
  Prefactor  = 0.849563
 **********
 **   18 **HESSE 
 **********

 FCN=   2457.268     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      373 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1327.1        .41336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1012        2.9238        .50000        .24287    
   3  Normalizat    .10000E-01    .31931E-01    .41647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84956        .68612E-02    .24641E-04   -.97926    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91587e-11
Minuit parameter uncertainties:
  1  0.000790553
  2  852.92
  3  6.23739e-08
  4  0.00686118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401433': 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): 102
logL (Free Index) = 2457.26801616
delta logL = 3.83521637559e-07

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  7.906e-04  1.000e-04  1.000e+04 ( 1.000e-13)
1284        alpha:  3.101e+00  8.529e+02  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:  8.496e-01  6.861e-03  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.237e-08  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/401433/cmap_HighResolution_564624001_564883201_4FGL_J1849.4-4313_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-04', job_status='DONE', photon_flux_upper_limit='3.28e-07', time_completed='2021-09-21 16:52:23.872971', job_id='401433', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632268343.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1255' AND source_name='4FGL J1849.4-4313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 16:52:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 401433: <4FGL_J1849.4-4313_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1849.4-4313_daily_bin1255> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 16:40:23 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 16:40:25 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:25 2021
Terminated at Tue Sep 21 16:52:24 2021
Results reported at Tue Sep 21 16:52:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4-4313_daily_bin1255 282.362 -43.2214 564624001 564883201 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 :                                   680.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             358.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

