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


Performing analysis on: 4FGL_J1849.4-4313_daily_bin1441
RA = 282.362, Dec = -43.2214
tmin = 612835201, tmax = 613094401
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='402882', job_status='RUN', time_executed='2021-09-21 16:47:29.593558', time_epoch_executed='1632268049.59' WHERE source_name='4FGL J1849.4-4313' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402882/ft1_4FGL_J1849.4-4313_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402882/ft1_4FGL_J1849.4-4313_daily_bin1441.fits outfile=/scratch/kocevski/402882/ft1_filteredMKT_4FGL_J1849.4-4313_daily_bin1441.fits ra=282.362 dec=-43.2214 rad=12.0 tmin=612835201.0 tmax=613094401.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 2.91
user 2.68
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.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/402882/ft1_filteredMKT_4FGL_J1849.4-4313_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.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/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/402882/ltcube_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.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/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits
.....................!
real 12.61
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/402882/ltcube_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.fits outfile=/scratch/kocevski/402882/expmap_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.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/402882/ltcube_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.fits
.....................!
real 191.58
user 186.93
sys 4.28

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/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.fits scfile=/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits outfile=/scratch/kocevski/402882/cmap_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.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/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.fits scfile=/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits outfile=/scratch/kocevski/402882/cmap_HighResolution_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/402882/ft2_4FGL_J1849.4-4313_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/402882/Model_4FGL_J1849.4-4313_daily_bin1441.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/402882/ft1_filtered_4FGL_J1849.4-4313_daily_bin1441.fits.....................!
real 59.79
user 58.39
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8905.4       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9910.3       1.0000         .10000E-03   10000.    
     4 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4132.7       1.0000         .10000E-03   10000.    
     6 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.849       1.0000         .10000E-03   10000.    
     8 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10658E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.827       1.0000         .10000E-03   10000.    
    11 'norm      '    .51124E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    14.726       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0521       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11456E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28572E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.987       1.0000         .10000E-03   10000.    
    18 'norm      '    29.112       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3306       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=   2843.858     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     2215 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        926.28        .32029E-02** at limit **
   2  norm          .10002E-03    8364.8        .63991E-02** at limit **
   3  Prefactor    10000.0        800.32        .10604E-01** at limit **
   4  norm          .10000E-03    31.595        .90712E-02** at limit **
   5  Prefactor     .10001E-03    1046.0        .20308E-03** at limit **
   6  norm          .10000E-03    38.982        .90712E-02** at limit **
   7  norm          13.160        56.396        .27937E-02    .49957E-04
   8  norm          .10000E-03    22.279        .90712E-02** at limit **
   9  norm          .10000E-03    26.210        .90712E-02** at limit **
  10  Prefactor     .10000E-03    453.16        .26929E-02** at limit **
  11  norm          .10000E-03    81.669        .95858E-02** at limit **
  12  norm          14.293        17.558        .26094E-02   -.14351E-03
  13  norm          .10000E-03    1.6301        .90712E-02** at limit **
  14  Prefactor     .10000E-03    281.20        .12044E-01** at limit **
  15  Prefactor     .10000E-03    11.606        .62901E-01** at limit **
  16  Prefactor     .10000E-03    27.145        .10705E-01** at limit **
  17  Prefactor     11.704        15.166        .28925E-02   -.53425E-04
  18  norm          28.472        33.323        .18564E-02    .23149E-05
  19  Normalizat    .10000E-01    .18997        .32094    ** at limit **
  20  Prefactor     1.3476        .11626        .32096E-01    .33844E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 0.000100017
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 0.000100008
  norm       = 0.000100001
  norm       = 13.1602
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 14.2931
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 11.7045
  norm       = 28.4722
  Normalizat = 0.01
  Prefactor  = 1.34757
 **********
 **   18 **HESSE 
 **********

 FCN=   2843.858     FROM HESSE     STATUS=OK           281 CALLS     2496 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        926.25        .64058E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    8364.8        .12798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        800.31        .21208E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    31.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    1046.1        .40616E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    38.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.160        56.407        .11175E-03   -1.6434    
   8  norm          .10000E-03    22.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    26.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    453.36        .53858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    81.893        .19172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.293        17.583        .10437E-03   -1.4952    
  13  norm          .10000E-03    1.6374        .66488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    281.86        .24088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.419        .34432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.209        .21410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.704        15.177        .11570E-03   -1.5024    
  18  norm          28.472        33.315        .74255E-04   -1.4640    
  19  Normalizat    .10000E-01    .21735        .12765E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3476        .10429        .14780E-03   -.81903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88076e-10
Minuit parameter uncertainties:
  1  0.0103005
  2  0.0254064
  3  0.00815019
  4  0.000333089
  5  0.00578283
  6  0.00028111
  7  54.5786
  8  4.20566e-06
  9  4.19246e-05
  10  0.000485909
  11  0.00122762
  12  17.589
  13  2.26062e-05
  14  0.00192554
  15  0.000735152
  16  0.000142649
  17  15.1816
  18  33.3369
  19  2.06436e-06
  20  0.104309
Done.

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

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  1.228e-03  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:  1.348e+00  1.043e-01  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.064e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/402882/likelihoodResults_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.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) = 2843.85825004
delta logL = -6.78474157212e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2843.85818343
delta logL = -1.2424598026e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6153       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3476       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=   2843.858     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      291 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1814.2        .18142E-01** at limit **
   2  alpha         1.6734        4.1584        .16483        .31038E-08
   3  Normalizat    .10000E-01    .58038E-02    .12765E-01** at limit **
   4  Prefactor     1.3476        .15786E-01    .14780E-03    .12088E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.67344
  Normalizat = 0.01
  Prefactor  = 1.34757
 **********
 **   18 **HESSE 
 **********

 FCN=   2843.858     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    166.19        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6734        4.1402        .65931E-02   -.33697    
   3  Normalizat    .10000E-01    .21737        .25530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3476        .96897E-01    .29560E-04   -.81903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18077e-09
Minuit parameter uncertainties:
  1  0.000630922
  2  648.234
  3  1.71379e-07
  4  0.0969103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402882': 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) = 2843.85818191
delta logL = 2.79650066659e-07

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  6.309e-04  1.000e-04  1.000e+04 ( 1.000e-13)
1284        alpha:  1.673e+00  6.482e+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:  1.348e+00  9.691e-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  1.714e-07  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/402882/cmap_HighResolution_612835201_613094401_4FGL_J1849.4-4313_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-04', job_status='DONE', photon_flux_upper_limit='2.79e-07', time_completed='2021-09-21 16:59:57.623457', job_id='402882', GAL2='1.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632268797.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1441' AND source_name='4FGL J1849.4-4313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 16:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 402882: <4FGL_J1849.4-4313_daily_bin1441> in cluster <slac> Done

Job <4FGL_J1849.4-4313_daily_bin1441> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 21 16:45:33 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 16:45:34 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:45:34 2021
Terminated at Tue Sep 21 16:59:58 2021
Results reported at Tue Sep 21 16:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4-4313_daily_bin1441 282.362 -43.2214 612835201 613094401 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 :                                   738.33 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             331.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

