aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 140 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 = 8125
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0749.9+1823_weekly_bin32
RA = 117.485, Dec = 18.387
tmin = 258336001, tmax = 258940801
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='314073', job_status='RUN', time_executed='2021-07-11 16:48:24.437557', time_epoch_executed='1626047304.44' WHERE source_name='4FGL J0749.9+1823' and cadence='weekly' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314073

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

Retrieving the FT1 file...

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

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

Retrieving 34 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314073/ft1_4FGL_J0749.9+1823_weekly_bin32.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314073/ft1_4FGL_J0749.9+1823_weekly_bin32.fits outfile=/scratch/kocevski/314073/ft1_filteredMKT_4FGL_J0749.9+1823_weekly_bin32.fits ra=117.485 dec=18.387 rad=12.0 tmin=258336001.0 tmax=258940801.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 1.38
user 1.00
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.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/314073/ft1_filteredMKT_4FGL_J0749.9+1823_weekly_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.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.54
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/314073/ltcube_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.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/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits
.....................!
real 18.01
user 17.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/314073/ltcube_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.fits outfile=/scratch/kocevski/314073/expmap_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.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/314073/ltcube_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.fits
.....................!
real 192.02
user 186.59
sys 4.78

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 Monoceros in ROI with RadialGaussian spatial model.
Added 162 point sources and 1 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 J0749.9+1823 @ 117.485 18.387

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits scfile=/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits outfile=/scratch/kocevski/314073/cmap_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.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=117.485 yref=18.387 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits scfile=/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits outfile=/scratch/kocevski/314073/cmap_HighResolution_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.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=117.485 yref=18.387 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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314073/Model_4FGL_J0749.9+1823_weekly_bin32.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 GAL_V02
adding source Monoceros
Working on...
/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits.....................!
real 71.06
user 69.26
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits', '/scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits', expMap='/scratch/kocevski/314073/expmap_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.fits', expCube='/scratch/kocevski/314073/ltcube_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/314073/Model_4FGL_J0749.9+1823_weekly_bin32.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0749.9+1823'

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/314073/ft1_filtered_4FGL_J0749.9+1823_weekly_bin32.fits
Spacecraft file(s): /scratch/kocevski/314073/ft2_4FGL_J0749.9+1823_weekly_bin32.fits
Exposure map: /scratch/kocevski/314073/expmap_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.fits
Exposure cube: /scratch/kocevski/314073/ltcube_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/314073/Model_4FGL_J0749.9+1823_weekly_bin32.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) = 5798.94981006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.066       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.174       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7757       1.0000         .10000E-03   10000.    
     5 'norm      '    .56640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3571       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1227       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.810       1.0000         .10000E-03   10000.    
    21 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2057       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .45811       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5798.945     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2927 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.067        36.723         .0000       -.16704E-03
   2  Prefactor     .10000E-03    4.6664         .0000    ** at limit **
   3  norm          33.176        10.532         .0000       -.13220E-03
   4  norm          4.7758        1.3216         .0000       -.16041E-04
   5  norm          .56634        .57003         .0000       -.25529E-03
   6  Prefactor     .10000E-03    2.3345         .0000    ** at limit **
   7  norm          1.3550        3.9254         .0000        .95003E-03
   8  Prefactor     .10000E-03    7.8207         .0000    ** at limit **
   9  Prefactor     8.7194        19.675         .0000        .13995E-03
  10  Prefactor     .10000E-03    19.744         .0000    ** at limit **
  11  Prefactor     2.8052        2.2924         .0000        .24687E-03
  12  Prefactor     13.655        17.505         .0000        .17870E-04
  13  norm          .10000E-03    15.421         .0000    ** at limit **
  14  Prefactor     18.162        11.111         .0000       -.14004E-03
  15  Prefactor     .10000E-03    59.642         .0000    ** at limit **
  16  norm          .10000E-03    84.270         .0000    ** at limit **
  17  Prefactor     .10000E-03    7.4147         .0000    ** at limit **
  18  Prefactor     .10000E-03    10.967         .0000    ** at limit **
  19  Prefactor     5.1234        9.8957         .0000        .12301E-03
  20  Prefactor     19.785        20.954         .0000       -.15007E-03
  21  norm          .10000E-03    .92095         .0000    ** at limit **
  22  Prefactor     1.1264        11.862         .0000        .24159E-01
  23  Prefactor     3.2052        4.8631         .0000        .19466E-03
  24  Normalizat    .45806        .15028         .0000        .21427E-04
  25  Prefactor     .69918        .97519E-01     .0000       -.13773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.0674
  Prefactor  = 0.0001
  norm       = 33.1765
  norm       = 4.77577
  norm       = 0.566342
  Prefactor  = 0.0001
  norm       = 1.35496
  Prefactor  = 0.0001
  Prefactor  = 8.7194
  Prefactor  = 0.0001
  Prefactor  = 2.80518
  Prefactor  = 13.655
  norm       = 0.0001
  Prefactor  = 18.162
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1234
  Prefactor  = 19.7846
  norm       = 0.0001
  Prefactor  = 1.1264
  Prefactor  = 3.20524
  Normalizat = 0.458064
  Prefactor  = 0.69918
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.945     FROM HESSE     STATUS=OK           429 CALLS     3356 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.067        36.711        .67674E-04   -1.4523    
   2  Prefactor     .10000E-03    4.7571        .16061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.176        10.530        .69571E-04   -1.4555    
   4  norm          4.7758        1.3213        .43742E-04   -1.5271    
   5  norm          .56634        .58081        .56107E-04   -1.5557    
   6  Prefactor     .10000E-03    2.3497        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3550        3.6861        .18697E-03   -1.5475    
   8  Prefactor     .10000E-03    7.8233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7194        18.661        .13583E-03   -1.5117    
  10  Prefactor     .10000E-03    19.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8052        2.2831        .97983E-04   -1.5373    
  12  Prefactor     13.655        17.454        .10840E-03   -1.4969    
  13  norm          .10000E-03    15.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.162        11.091        .93978E-04   -1.4855    
  15  Prefactor     .10000E-03    59.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    84.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1234        9.8913        .17763E-03   -1.5255    
  20  Prefactor     19.785        19.512        .89989E-04   -1.4818    
  21  norm          .10000E-03    1.9868        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1264        11.565        .22042E-02   -1.5496    
  23  Prefactor     3.2052        4.8457        .20025E-03   -1.5350    
  24  Normalizat    .45806        .17077        .28603E-03   -1.1440    
  25  Prefactor     .69918        .11255        .16294E-03   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38757e-09
Minuit parameter uncertainties:
  1  36.7347
  2  7.8604e-07
  3  10.5306
  4  1.32135
  5  0.580818
  6  1.86009e-07
  7  3.68668
  8  3.93453e-06
  9  18.6733
  10  2.64655e-06
  11  2.28319
  12  17.4601
  13  2.04159e-06
  14  11.0922
  15  6.66207e-05
  16  0.00011673
  17  1.55418e-06
  18  3.73472e-06
  19  9.89445
  20  19.5181
  21  9.66734e-07
  22  7.22013
  23  4.84624
  24  0.170968
  25  0.112591
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.647e-06  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.992e-01  1.126e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  4.581e-01  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 5.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314073/likelihoodResults_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.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) = 5798.94539261
delta logL = -0.000240402046074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5798.94515231
delta logL = -9.55687937676e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1873       1.0000          .0000       10.000    
     3 'Normalizat'    .45806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   5798.945     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      270 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    199.08        .18142E-02** at limit **
   2  Index         3.1389        6.4785        .50000        .48315E-05
   3  Normalizat    .45806        .11479E-01    .28603E-03    .35255E-04
   4  Prefactor     .69918        .80791E-02    .16294E-03    .36699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100749
  Index      = 3.1389
  Normalizat = 0.458064
  Prefactor  = 0.69918
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.945     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    877.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1389        8.1431        .50000       -.38140    
   3  Normalizat    .45806        .25428E-01    .11441E-04   -1.1440    
   4  Prefactor     .69918        .17894E-01    .65178E-05   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.80941e-09
Minuit parameter uncertainties:
  1  0.052066
  2  1329.98
  3  0.0254287
  4  0.0178942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314073': 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) = 5798.94515227
delta logL = -5.73209035792e-08

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.007e-04  5.207e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.139e+00  1.330e+03  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.992e-01  1.789e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  4.581e-01  2.543e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.485 18.387

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/314073/cmap_HighResolution_258336001_258940801_4FGL_J0749.9+1823_weekly_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-07-11 16:59:29.855990', job_id='314073', GAL2='0.70', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1626047969.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='-5.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='32' AND source_name='4FGL J0749.9+1823' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 11 16:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 314073: <4FGL_J0749.9+1823_weekly_bin32> in cluster <slac> Done

Job <4FGL_J0749.9+1823_weekly_bin32> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jul 11 16:43:43 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 16:45:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 16:45:46 2021
Terminated at Sun Jul 11 16:59:30 2021
Results reported at Sun Jul 11 16:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_weekly_bin32 117.485 18.387 258336001 258940801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0749.9+1823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            947 sec.

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

