aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 50 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 = 74011
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1849.4+2745_monthly_bin170
RA = 282.354, Dec = 27.7542
tmin = 677635201, tmax = 680227201
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='114306', job_status='RUN', time_executed='2022-07-23 02:31:33.953121', time_epoch_executed='1658568693.95' WHERE source_name='4FGL J1849.4+2745' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114306

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114306/ft1_4FGL_J1849.4+2745_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114306/ft1_4FGL_J1849.4+2745_monthly_bin170.fits outfile=/scratch/kocevski/114306/ft1_filteredMKT_4FGL_J1849.4+2745_monthly_bin170.fits ra=282.354 dec=27.7542 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.37
user 31.18
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.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/114306/ft1_filteredMKT_4FGL_J1849.4+2745_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.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.87
user 0.67
sys 0.18

Number of photons that the gtmktime cut: 20621

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/114306/ltcube_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.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/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits
.....................!
real 115.82
user 115.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/114306/ltcube_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.fits outfile=/scratch/kocevski/114306/expmap_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.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/114306/ltcube_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.fits
.....................!
real 194.10
user 188.23
sys 5.27

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Added 265 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1849.4+2745 @ 282.354 27.7542

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits scfile=/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits outfile=/scratch/kocevski/114306/cmap_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.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.354 yref=27.7542 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.81
user 0.65
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits scfile=/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits outfile=/scratch/kocevski/114306/cmap_HighResolution_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.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.354 yref=27.7542 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.82
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114306/Model_4FGL_J1849.4+2745_monthly_bin170.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 G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits.....................!
real 3759.33
user 3751.71
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits', '/scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits', expMap='/scratch/kocevski/114306/expmap_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.fits', expCube='/scratch/kocevski/114306/ltcube_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114306/Model_4FGL_J1849.4+2745_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1849.4+2745'

4FGL J1849.4+2745
   Spectrum: PowerLaw
374    Prefactor:  2.084e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.300e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  1.544e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/114306/ft1_filtered_4FGL_J1849.4+2745_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/114306/ft2_4FGL_J1849.4+2745_monthly_bin170.fits
Exposure map: /scratch/kocevski/114306/expmap_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.fits
Exposure cube: /scratch/kocevski/114306/ltcube_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114306/Model_4FGL_J1849.4+2745_monthly_bin170.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) = 198718.796556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8436       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0442       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1609       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1627       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1122       1.0000         .10000E-03   10000.    
     7 'norm      '    .12161E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .48554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43363E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12164E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3227       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   198718.8     FROM MIGRAD    STATUS=CONVERGED    311 CALLS     1281 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8437        1.1729         .0000        .90757E-02
   2  norm          3.0454        1.4128         .0000        .11369E-01
   3  Prefactor     1.8628        1.1170         .0000        .32608    
   4  Prefactor     3.1634        5.1393         .0000        .16498E-02
   5  norm          6.1912        4.5472         .0000       -.38761E-02
   6  Prefactor     5.1130        1.9493         .0000        .35974E-02
   7  norm          .10000E-03    2.4969         .0000    ** at limit **
   8  norm          .10000E-03    .15284         .0000    ** at limit **
   9  norm          .48555        .43713         .0000        .33660E-01
  10  Prefactor     .10000E-03    1.0609         .0000    ** at limit **
  11  Prefactor     .10000E-03    18.401         .0000    ** at limit **
  12  Prefactor     .10000E-03    .69271         .0000    ** at limit **
  13  Prefactor     .10002E-03    6.2240         .0000    ** at limit **
  14  Prefactor     .10000E-03    1.3187         .0000    ** at limit **
  15  Normalizat    1.3227        .67102E-01     .0000        .38409E-03
  16  Prefactor     .96501        .11634E-01     .0000       -.98114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84366
  norm       = 3.04539
  Prefactor  = 1.86279
  Prefactor  = 3.16335
  norm       = 6.1912
  Prefactor  = 5.11302
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.48555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Normalizat = 1.3227
  Prefactor  = 0.965014
 **********
 **   18 **HESSE 
 **********

 FCN=   198718.8     FROM HESSE     STATUS=OK           213 CALLS     1494 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8437        1.1678        .30717E-03   -1.5436    
   2  norm          3.0454        1.4105        .11627E-02   -1.5359    
   3  Prefactor     1.8628        1.1058        .15261E-02   -1.5435    
   4  Prefactor     3.1634        5.1051        .22797E-03   -1.5352    
   5  norm          6.1912        4.5447        .16172E-03   -1.5210    
   6  Prefactor     5.1130        1.9453        .17782E-03   -1.5256    
   7  norm          .10000E-03    2.5026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .14028        .49879E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .48555        .40536        .23214E-03   -1.5569    
  10  Prefactor     .10000E-03    1.0785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .69509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    6.2303        .21226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3227        .69767E-01    .58766E-03   -.82891    
  16  Prefactor     .96501        .12205E-01    .12380E-03   -.93905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00745e-08
Minuit parameter uncertainties:
  1  1.16786
  2  1.41051
  3  1.10581
  4  5.10577
  5  4.54494
  6  1.94535
  7  2.47275e-06
  8  4.86188e-06
  9  0.405362
  10  1.40177e-05
  11  3.08757e-05
  12  8.29433e-07
  13  0.000740853
  14  4.91264e-06
  15  0.069772
  16  0.0122048
Done.

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

Extracting fit parameters...

4FGL J1849.4+2745
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  1.402e-05  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.300e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  1.544e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
938    Prefactor:  9.650e-01  1.220e-02  0.000e+00  1.000e+01 ( 1.000e+00)
939        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
940        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
934   Normalization:  1.323e+00  6.977e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 282.354 27.754
Photon Flux Upper Limit: 1.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114306/likelihoodResults_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.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) = 198718.763493
delta logL = -0.00442185782595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 198718.759068
delta logL = 3.35185904987e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3407       1.0000          .0000       10.000    
     3 'Normalizat'    1.3227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   198715.5     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      326 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37599E-02    .14337E-02     .0000       -.40962    
   2  Index         5.7207        .11216         .0000        .37782E-02
   3  Normalizat    1.2757        .66326E-01     .0000       -.25155E-02
   4  Prefactor     .96809        .11638E-01     .0000       -.70358E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0037599
  Index      = 5.72071
  Normalizat = 1.27571
  Prefactor  = 0.968088
 **********
 **   18 **HESSE 
 **********

 FCN=   198715.5     FROM HESSE     STATUS=OK            33 CALLS      359 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37599E-02    .63814E-02    .10228E-03   -1.5720    
   2  Index         5.7207        .65904        .91404E-02    .14465    
   3  Normalizat    1.2757        .67839E-01    .59682E-03   -.84294    
   4  Prefactor     .96809        .12148E-01    .12362E-03   -.93801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90708e-07
Minuit parameter uncertainties:
  1  0.00638141
  2  0.661008
  3  0.0678441
  4  0.0121477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114306': 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) = 198715.506465
delta logL = 3.25260604391

Extracting fit parameters...

4FGL J1849.4+2745
   Spectrum: PowerLaw
374    Prefactor:  3.760e-03  6.381e-03  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  5.721e+00  6.610e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  1.544e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
938    Prefactor:  9.681e-01  1.215e-02  0.000e+00  1.000e+01 ( 1.000e+00)
939        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
940        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
934   Normalization:  1.276e+00  6.784e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.94
Ra Dec: 282.354 27.754
Photon Index (Free Index): 5.72 +/- 0.66
Photon Flux (Free Index): 5.07e-08 +/- 1.68e-07
Energy Flux (Free Index): 6.41e-06 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/114306/cmap_HighResolution_677635201_680227201_4FGL_J1849.4+2745_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-03', comment='SUCCESS', energy_flux2='6.41e-06', dlogl='3.25e+00', photon_flux2='5.07e-08', job_status='DONE', time_completed='2022-07-23 06:35:46.072118', photon_index_error2='0.66', photon_index2='5.72', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.75e-08', energy_flux_error2='2.11e-05', EG='1.32', time_epoch_completed='1658583346.07', return_code='0', job_id='114306', GAL2='0.97', EG2='1.28', return_code2='0', photon_flux_error2='1.68e-07', ts2='6.94', photon_index='2.30' WHERE bin_id='170' AND source_name='4FGL J1849.4+2745' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 06:35:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 114306: <4FGL_J1849.4+2745_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1849.4+2745_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:30:35 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:30:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:30:35 2022
Terminated at Sat Jul 23 06:35:48 2022
Results reported at Sat Jul 23 06:35:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4+2745_monthly_bin170 282.354 27.7542 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1849.4+2745 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14616.00 sec.
    Max Memory :                                 767 MB
    Average Memory :                             700.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14712 sec.
    Turnaround time :                            14713 sec.

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

