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


Performing analysis on: 4FGL_J1849.4-4313_daily_bin635
RA = 282.362, Dec = -43.2214
tmin = 403920001, tmax = 404179201
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='396461', job_status='RUN', time_executed='2021-09-21 16:23:21.579227', time_epoch_executed='1632266601.58' WHERE source_name='4FGL J1849.4-4313' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396461

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396461/ft1_4FGL_J1849.4-4313_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396461/ft1_4FGL_J1849.4-4313_daily_bin635.fits outfile=/scratch/kocevski/396461/ft1_filteredMKT_4FGL_J1849.4-4313_daily_bin635.fits ra=282.362 dec=-43.2214 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.00
user 9.62
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396461/ft1_filtered_4FGL_J1849.4-4313_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/396461/ltcube_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.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/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits
.....................!
real 9.09
user 8.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396461/ft1_filtered_4FGL_J1849.4-4313_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/396461/ltcube_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.fits outfile=/scratch/kocevski/396461/expmap_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.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/396461/ltcube_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.fits
.....................!
real 190.70
user 185.86
sys 4.50

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/396461/ft1_filtered_4FGL_J1849.4-4313_daily_bin635.fits scfile=/scratch/kocevski/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits outfile=/scratch/kocevski/396461/cmap_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.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/396461/ft1_filtered_4FGL_J1849.4-4313_daily_bin635.fits scfile=/scratch/kocevski/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits outfile=/scratch/kocevski/396461/cmap_HighResolution_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/396461/ft1_filtered_4FGL_J1849.4-4313_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/396461/ft2_4FGL_J1849.4-4313_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396461/Model_4FGL_J1849.4-4313_daily_bin635.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/396461/ft1_filtered_4FGL_J1849.4-4313_daily_bin635.fits......................!
real 31.38
user 30.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96218E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .47916E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.929       1.0000         .10000E-03   10000.    
     4 'norm      '    .12948E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.149       1.0000         .10000E-03   10000.    
     6 'norm      '    .70853E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .41653E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.929       1.0000         .10000E-03   10000.    
     9 'norm      '    67.114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15624E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .31606E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .63779E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .93796E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    306.80       1.0000         .10000E-03   10000.    
    17 'Prefactor '    175.32       1.0000         .10000E-03   10000.    
    18 'norm      '    .16572E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .46398       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1257       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=   844.4757     FROM MIGRAD    STATUS=CONVERGED    258 CALLS     1574 TOTAL
                     EDM=   .65E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    104.33       -.14763E-05** at limit **
   2  norm          .10000E-03    240.98        .96089E-07** at limit **
   3  Prefactor     75.804        167.54        .19624E-04    .14685E-03
   4  norm          .10000E-03    5.8542        .76191E-06** at limit **
   5  Prefactor     66.351        336.70       -.37973E-04   -.66042E-04
   6  norm          .10000E-03    22.357       -.16236E-05** at limit **
   7  norm          .10000E-03    56.274        .71367E-06** at limit **
   8  norm          32.821        29.889        .81278E-06   -.46804E-05
   9  norm          68.098        129.91       -.24276E-05    .83850E-05
  10  Prefactor     .10000E-03    41.856        .10961E-06** at limit **
  11  norm          .10000E-03    62.832       -.27037E-06** at limit **
  12  norm          .10000E-03    31.031        .25412E-05** at limit **
  13  norm          .10000E-03    7.1093        .14518E-07** at limit **
  14  Prefactor     336.44        726.42        .84241E-05   -.45651E-06
  15  Prefactor     36.602        56.981        .16198E-05   -.25753E-04
  16  Prefactor     317.98        65.969       -.41645E-05    .11998E-02
  17  Prefactor     181.95        105.05        .80920E-06    .30099E-04
  18  norm          .10000E-03    122.33        .60006E-06** at limit **
  19  Normalizat    .30986        1.9658       -.48078E-05   -.20680E-05
  20  Prefactor     1.1353        .31340       -.14558E-06   -.15733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 75.8038
  norm       = 0.0001
  Prefactor  = 66.3507
  norm       = 0.0001
  norm       = 0.0001
  norm       = 32.8208
  norm       = 68.0979
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 336.439
  Prefactor  = 36.6018
  Prefactor  = 317.983
  Prefactor  = 181.949
  norm       = 0.0001
  Normalizat = 0.309862
  Prefactor  = 1.13529
 **********
 **   18 **HESSE 
 **********

 FCN=   844.4757     FROM HESSE     STATUS=NOT POSDEF   329 CALLS     1903 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    102.37        .90726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    235.01        .92599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.804        174.05        .10155E-02   -1.3964    
   4  norm          .10000E-03    5.7215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.351        956.32        .20378E-02   -1.4077    
   6  norm          .10000E-03    20.884        .93400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    55.061        .10622E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.821        46.727        .17728E-02   -1.4562    
   9  norm          68.098        333.17        .12248E-02   -1.4056    
  10  Prefactor     .10000E-03    40.592        .91009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    60.125        .10684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    29.704        .94234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.8611        .10402E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     336.44        1177.8        .19793E-02   -1.2019    
  15  Prefactor     36.602        130.08        .16565E-02   -1.4497    
  16  Prefactor     317.98        318.39        .57988E-03   -1.2122    
  17  Prefactor     181.95        185.67        .76195E-03   -1.3002    
  18  norm          .10000E-03    118.00        .91056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .30986        5.0697        .28698       -1.2225    
  20  Prefactor     1.1353        1.7440        .36682E-01   -.88346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38569e-08
Minuit parameter uncertainties:
  1  1.63098e-05
  2  0.000110989
  3  175.24
  4  4.67956e-06
  5  514.029
  6  1.60282e-05
  7  4.49182e-07
  8  46.7789
  9  304.018
  10  8.85337e-08
  11  1.32904e-05
  12  4.5848e-05
  13  3.25832e-08
  14  1283.5
  15  131.111
  16  320.163
  17  186.268
  18  3.33385e-05
  19  10.5755
  20  1.8465
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 844.475706759

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  1.329e-05  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.135e+00  1.847e+00  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:  3.099e-01  1.058e+01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/396461/likelihoodResults_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.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) = 844.475781556
delta logL = -7.47964113543e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 844.475710866
delta logL = -4.10619747981e-06

Fit tolerance = 1e-08

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

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

 FCN=   844.4757     FROM MIGRAD    STATUS=FAILED       109 CALLS      310 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    2280.5        .14223E-01** at limit **
   2  alpha         1.5647        4.2006        .16822        .99615E-07
   3  Normalizat    .30977        .19757        .12330E-01   -.50134E-03
   4  Prefactor     1.1353        .42528E-01    .14646E-03   -.43674E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   844.4757     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      472 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    2280.5        .14995E-02** at limit **
   2  alpha         1.5647        4.2006        .47743E-05    .99615E-07
   3  Normalizat    .30977        .19757        .35921E-06   -.50134E-03
   4  Prefactor     1.1353        .42528E-01    .36846E-07   -.43674E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   844.4757     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      506 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    87.784        .25152E-02** at limit **
   2  alpha         1.5395        3.0575        .67288E-02    .47856E-07
   3  Normalizat    .30986        1.5730        .49321E-03    .39704E-05
   4  Prefactor     1.1353        .30830        .29293E-04    .25586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100036
  alpha      = 1.53946
  Normalizat = 0.309865
  Prefactor  = 1.13529
 **********
 **   18 **HESSE 
 **********

 FCN=   844.4757     FROM HESSE     STATUS=OK            23 CALLS      529 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    78.615        .50303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5395        2.7332        .13458E-02   -.39436    
   3  Normalizat    .30986        1.5690        .19729E-04   -1.2225    
   4  Prefactor     1.1353        .30789        .58585E-05   -.88346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9398e-10
Minuit parameter uncertainties:
  1  0.00337704
  2  1058.21
  3  1.43563
  4  0.308379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396461': 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) = 844.475706593
delta logL = 1.66717427419e-07

Extracting fit parameters...

4FGL J1849.4-4313
   Spectrum: LogParabola
1283         norm:  1.000e-04  3.377e-03  1.000e-04  1.000e+04 ( 1.000e-13)
1284        alpha:  1.539e+00  1.058e+03  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.135e+00  3.084e-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:  3.099e-01  1.436e+00  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/396461/cmap_HighResolution_403920001_404179201_4FGL_J1849.4-4313_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-04', job_status='DONE', photon_flux_upper_limit='5.23e-07', time_completed='2021-09-21 16:32:04.116712', job_id='396461', GAL2='1.14', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1632267124.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.14', dlogl='1.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='635' AND source_name='4FGL J1849.4-4313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 16:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 396461: <4FGL_J1849.4-4313_daily_bin635> in cluster <slac> Done

Job <4FGL_J1849.4-4313_daily_bin635> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 21 16:20:16 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 16:20: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:20:18 2021
Terminated at Tue Sep 21 16:32:07 2021
Results reported at Tue Sep 21 16:32:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4-4313_daily_bin635 282.362 -43.2214 403920001 404179201 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 :                                   521.04 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             273.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            711 sec.

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

