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


Performing analysis on: 4FGL_J1849.4+2745_daily_bin1202
RA = 282.354, Dec = 27.7542
tmin = 550886401, tmax = 551145601
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='389835', job_status='RUN', time_executed='2021-09-21 15:57:33.227560', time_epoch_executed='1632265053.23' WHERE source_name='4FGL J1849.4+2745' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389835/ft1_4FGL_J1849.4+2745_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389835/ft1_4FGL_J1849.4+2745_daily_bin1202.fits outfile=/scratch/kocevski/389835/ft1_filteredMKT_4FGL_J1849.4+2745_daily_bin1202.fits ra=282.354 dec=27.7542 rad=12.0 tmin=550886401.0 tmax=551145601.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.73
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.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/389835/ft1_filteredMKT_4FGL_J1849.4+2745_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/389835/ltcube_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.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/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits
.....................!
real 11.87
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/389835/ltcube_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.fits outfile=/scratch/kocevski/389835/expmap_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.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/389835/ltcube_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.fits
.....................!
real 192.50
user 186.97
sys 5.12

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/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits scfile=/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits outfile=/scratch/kocevski/389835/cmap_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits scfile=/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits outfile=/scratch/kocevski/389835/cmap_HighResolution_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/389835/Model_4FGL_J1849.4+2745_daily_bin1202.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/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits.....................!
real 116.25
user 114.84
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits', '/scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits', expMap='/scratch/kocevski/389835/expmap_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.fits', expCube='/scratch/kocevski/389835/ltcube_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/389835/Model_4FGL_J1849.4+2745_daily_bin1202.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/389835/ft1_filtered_4FGL_J1849.4+2745_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/389835/ft2_4FGL_J1849.4+2745_daily_bin1202.fits
Exposure map: /scratch/kocevski/389835/expmap_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.fits
Exposure cube: /scratch/kocevski/389835/ltcube_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/389835/Model_4FGL_J1849.4+2745_daily_bin1202.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) = 5628.43845569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.124       1.0000         .10000E-03   10000.    
     2 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.802       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3489       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74873E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2639       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .97479       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=   5628.435     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1446 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.124        10.891       -.11739E-06    .83833E-04
   2  norm          .10000E-03    22.179       -.43987E-05** at limit **
   3  Prefactor     2.0950        9.4331       -.68173E-05   -.12044E-03
   4  Prefactor     13.805        33.568        .38860E-05    .40352E-04
   5  norm          .10000E-03    61.964        .69048E-05** at limit **
   6  Prefactor     2.3423        15.437       -.28267E-05   -.10553E-03
   7  norm          .10000E-03    47.689        .22668E-05** at limit **
   8  norm          .10000E-03    3.2902        .44841E-07** at limit **
   9  norm          .78443E-01    1.7845       -.69364E-08   -.23067E-03
  10  Prefactor     .10000E-03    10.818       -.19143E-07** at limit **
  11  Prefactor     .10000E-03    46.506       -.11824E-05** at limit **
  12  Prefactor     18.969        37.070       -.32198E-05    .51481E-04
  13  Prefactor     .10000E-03    67.976       -.80223E-05** at limit **
  14  Prefactor     .10000E-03    21.469        .42170E-05** at limit **
  15  Normalizat    1.2639        .41575        .27290E-05    .90720E-05
  16  Prefactor     .97478        .69857E-01   -.13408E-06    .12516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1242
  norm       = 0.000100001
  Prefactor  = 2.09504
  Prefactor  = 13.8048
  norm       = 0.000100002
  Prefactor  = 2.34233
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0784427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9691
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Normalizat = 1.26393
  Prefactor  = 0.974782
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.435     FROM HESSE     STATUS=OK           203 CALLS     1649 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.124        10.890        .10658E-03   -1.4956    
   2  norm          .10000E-03    22.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0950        10.560        .28482E-03   -1.5418    
   4  Prefactor     13.805        33.803        .10781E-03   -1.4965    
   5  norm          .10000E-03    61.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3423        15.766        .26747E-03   -1.5402    
   7  norm          .10000E-03    47.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3153        .13263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .78443E-01    21.372        .18846E-02   -1.5652    
  10  Prefactor     .10000E-03    10.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.969        36.995        .91954E-04   -1.4837    
  13  Prefactor     .10000E-03    67.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2639        .43345        .61397E-03   -.84650    
  16  Prefactor     .97478        .73072E-01    .12269E-03   -.93575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62785e-10
Minuit parameter uncertainties:
  1  10.8911
  2  0.000284625
  3  9.40968
  4  33.8495
  5  0.000676846
  6  12.1582
  7  0.000200598
  8  2.59083e-06
  9  2.58886
  10  4.63108e-06
  11  0.000110144
  12  37.04
  13  0.000861917
  14  0.000255582
  15  0.434702
  16  0.0730792
Done.

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

Extracting fit parameters...

4FGL J1849.4+2745
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  4.631e-06  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.748e-01  7.308e-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.264e+00  4.347e-01  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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389835/likelihoodResults_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.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) = 5628.43590165
delta logL = -0.000439071481196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5628.43546267
delta logL = -9.13414623938e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2791       1.0000          .0000       10.000    
     3 'Normalizat'    1.2638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97480       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5628.435     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    84.696        .18142E-02** at limit **
   2  Index         2.2322        6.1085        .50000        .13020E-04
   3  Normalizat    1.2639        .33862E-01    .61397E-03    .44440E-05
   4  Prefactor     .97478        .60955E-02    .12269E-03    .24371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100949
  Index      = 2.23219
  Normalizat = 1.26393
  Prefactor  = 0.974782
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.435     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10095E-03    378.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2322        8.7607        .50000       -.58664    
   3  Normalizat    1.2639        .74027E-01    .24559E-04   -.84649    
   4  Prefactor     .97478        .13325E-01    .49075E-05   -.93575    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6113e-08
Minuit parameter uncertainties:
  1  0.0381544
  2  565.299
  3  0.074033
  4  0.0133255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389835': 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) = 5628.43546239
delta logL = 1.89486854651e-07

Extracting fit parameters...

4FGL J1849.4+2745
   Spectrum: PowerLaw
374    Prefactor:  1.009e-04  3.815e-02  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.232e+00  5.653e+02  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.748e-01  1.333e-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.264e+00  7.403e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 282.354 27.754

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/389835/cmap_HighResolution_550886401_551145601_4FGL_J1849.4+2745_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-21 16:09:40.673236', job_id='389835', GAL2='0.97', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632265780.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1202' AND source_name='4FGL J1849.4+2745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 16:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 387888: <4FGL_J1849.4+2745_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1849.4+2745_daily_bin1202> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 21 15:50:17 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 15:50:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 15:50:19 2021
Terminated at Tue Sep 21 16:03:33 2021
Results reported at Tue Sep 21 16:03:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4+2745_daily_bin1202 282.354 27.7542 550886401 551145601 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 :                                   727.22 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             328.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 389835: <4FGL_J1849.4+2745_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1849.4+2745_daily_bin1202> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 21 15:56:04 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 15:56:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 15:56:06 2021
Terminated at Tue Sep 21 16:09:41 2021
Results reported at Tue Sep 21 16:09:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1849.4+2745_daily_bin1202 282.354 27.7542 550886401 551145601 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 :                                   728.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             381.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

