/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 96 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 provieDone.


Performing analysis on: 4FGL_J0047.9+2233_daily_bin1639
RA = 11.9981, Dec = 22.5632
tmin = 664156801, tmax = 664416001
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 soDone.


Performing analysis on: 4FGL_J0047.9+2233_daily_bin1639
RA = 11.9981, Dec = 22.5632
tmin = 664156801, tmax = 664416001
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='191481', job_status='RUN', time_executed='2022-01-21 00:07:26.846077', time_epoch_executed='1642752446.85' WHERE source_name='4FGL J0047.9+2233' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191481

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191481/ft1_4FGL_J0047.9+2233_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191481/ft1_4FGL_J0047.9+2233_daily_bin1639.fits outfile=/scratch/kocevski/191481/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1639.fits ra=11.9981 dec=22.5632 rad=12.0 tmin=664156801.0 tmax=664416001.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 4.02
user 3.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.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/191481/ft1_filteredMKT_4FGL_J0047.9+2233_daily_bin1639.fits evtable="EVENTS" outfile="/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.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 1.16
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/191481/ltcube_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.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/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits
.....................!
real 12.18
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/191481/ltcube_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.fits outfile=/scratch/kocevski/191481/expmap_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.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/191481/ltcube_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.fits
.....................!
real 195.34
user 185.80
sys 4.62

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
Added 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J0047.9+2233 @ 11.9981 22.5632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits scfile=/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits outfile=/scratch/kocevski/191481/cmap_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.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=11.9981 yref=22.5632 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 2.16
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits scfile=/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits outfile=/scratch/kocevski/191481/cmap_HighResolution_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.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=11.9981 yref=22.5632 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 2.24
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191481/Model_4FGL_J0047.9+2233_daily_bin1639.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
Working on...
/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits.....................!
real 87.65
user 69.20
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits', '/scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits', expMap='/scratch/kocevski/191481/expmap_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.fits', expCube='/scratch/kocevski/191481/ltcube_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191481/Model_4FGL_J0047.9+2233_daily_bin1639.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+2233'

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  3.900e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191481/ft1_filtered_4FGL_J0047.9+2233_daily_bin1639.fits
Spacecraft file(s): /scratch/kocevski/191481/ft2_4FGL_J0047.9+2233_daily_bin1639.fits
Exposure map: /scratch/kocevski/191481/expmap_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.fits
Exposure cube: /scratch/kocevski/191481/ltcube_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191481/Model_4FGL_J0047.9+2233_daily_bin1639.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) = 7015.94044292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35596E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.508       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3532       1.0000         .10000E-03   10000.    
     9 'norm      '    .94925       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25318E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5388       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54284E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92171       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7015.901     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2381 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .99966       -.53607E-08** at limit **
   2  Prefactor     .10023E-03    8.2021       -.28151E-05** at limit **
   3  Prefactor     1.5476        8.0499       -.13748E-05   -.22415E-03
   4  Prefactor     15.826        24.585       -.14078E-06    .57208E-04
   5  Prefactor     11.507        4.4294       -.23460E-06   -.28718E-03
   6  norm          .10000E-03    3.2421       -.15186E-07** at limit **
   7  Prefactor     1.7619        23.352        .12919E-04    .17312E-03
   8  Prefactor     4.3529        11.130       -.41674E-08    .32450E-05
   9  norm          .94915        2.4883        .25331E-06    .61376E-05
  10  norm          .10000E-03    1.9177       -.87367E-08** at limit **
  11  Prefactor     .10000E-03    1.7346       -.20671E-07** at limit **
  12  Prefactor     .10000E-03    3.3952       -.41940E-07** at limit **
  13  Prefactor     .10018E-03    8.9154        .43542E-05** at limit **
  14  Prefactor     .10000E-03    20.811       -.11511E-06** at limit **
  15  Prefactor     .10000E-03    13.267       -.15796E-06** at limit **
  16  norm          .10000E-03    .22532       -.15606E-06** at limit **
  17  norm          2.1973        1.2371        .21675E-07   -.71066E-04
  18  Prefactor     .10001E-03    16.743        .97503E-06** at limit **
  19  Prefactor     .10000E-03    19.752       -.31392E-06** at limit **
  20  Prefactor     5.5396        4.0486        .65925E-07   -.17135E-03
  21  Prefactor     .10004E-03    10.175        .48762E-05** at limit **
  22  Prefactor     .10000E-03    30.634        .62302E-07** at limit **
  23  Normalizat    .92182        .18538        .83216E-07    .87218E-04
  24  Prefactor     1.1417        .12928        .55168E-08    .21268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100234
  Prefactor  = 1.54758
  Prefactor  = 15.826
  Prefactor  = 11.507
  norm       = 0.0001
  Prefactor  = 1.76189
  Prefactor  = 4.35289
  norm       = 0.949153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100176
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.19732
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 5.53964
  Prefactor  = 0.00010004
  Prefactor  = 0.000100001
  Normalizat = 0.921819
  Prefactor  = 1.14168
 **********
 **   18 **HESSE 
 **********

 FCN=   7015.901     FROM HESSE     STATUS=OK           405 CALLS     2786 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0164        .81650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10023E-03    94.640        .39617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5476        7.8361        .34185E-03   -1.5459    
   4  Prefactor     15.826        24.596        .10071E-03   -1.4912    
   5  Prefactor     11.507        4.4237        .10336E-03   -1.5029    
   6  norm          .10000E-03    3.2444        .14729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7619        26.222        .15780E-02   -1.5442    
   8  Prefactor     4.3529        11.110        .19305E-03   -1.5291    
   9  norm          .94915        2.4297        .20713E-03   -1.5513    
  10  norm          .10000E-03    1.9181        .11328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7376        .10772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4012        .15072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10018E-03    66.863        .39229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .39450        .76710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1973        1.2294        .67522E-04   -1.5411    
  18  Prefactor     .10001E-03    17.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5396        4.0302        .13917E-03   -1.5237    
  21  Prefactor     .10004E-03    47.788        .41532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92182        .21108        .29782E-03   -.95698    
  24  Prefactor     1.1417        .14948        .19166E-03   -.88145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0631e-09
Minuit parameter uncertainties:
  1  1.48177e-06
  2  0.00943398
  3  6.966
  4  24.6121
  5  4.42387
  6  9.54845e-07
  7  13.6009
  8  11.1154
  9  2.42999
  10  7.70909e-07
  11  2.25094e-06
  12  6.33139e-06
  13  0.00687615
  14  0.000503354
  15  0.000118829
  16  7.69019e-06
  17  1.2294
  18  0.000757148
  19  0.000290463
  20  4.03044
  21  0.00275881
  22  0.000330012
  23  0.211271
  24  0.149535
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  1.000e-04  6.331e-06  1.000e-04  1.000e+04 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.142e+00  1.495e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.218e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.998 22.563
Photon Flux Upper Limit: 5.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191481/likelihoodResults_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.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): 0
logL (Free Index) = 7015.90193019
delta logL = -0.00139587073681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7015.90053424
delta logL = 7.86312739365e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4919       1.0000          .0000       10.000    
     3 'Normalizat'    .92189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   7015.901     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.9257        .15251E-02** at limit **
   2  Index         2.4750        6.2099        .50000        .42514E-04
   3  Normalizat    .92182        .20768        .29782E-03    .81232E-04
   4  Prefactor     1.1417        .14807        .19166E-03    .72213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.47501
  Normalizat = 0.92182
  Prefactor  = 1.14168
 **********
 **   18 **HESSE 
 **********

 FCN=   7015.901     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.5304        .30503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4750        6.2361        .50000       -.52938    
   3  Normalizat    .92182        .20784        .11913E-04   -.95698    
   4  Prefactor     1.1417        .14819        .38331E-04   -.88145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14124e-09
Minuit parameter uncertainties:
  1  0.000299131
  2  4.34836
  3  0.208019
  4  0.148242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191481': 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) = 7015.90053398
delta logL = 3.40669430443e-07

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  1.000e-04  2.991e-04  1.000e-04  1.000e+04 ( 1.000e-13)
178        Index:  2.475e+00  4.348e+00  0.000e+00  1.000e+01 (-1.000e+00)
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.142e+00  1.482e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.218e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.998 22.563

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/191481/cmap_HighResolution_664156801_664416001_4FGL_J0047.9+2233_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2022-01-21 00:19:11.855206', job_id='191481', GAL2='1.14', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1642753151.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1639' AND source_name='4FGL J0047.9+2233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:19:11 PST 2022

r <slac> at Fri Jan 21 00:05:19 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:05:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:05:21 2022
Terminated at Fri Jan 21 00:17:52 2022
Results reported at Fri Jan 21 00:17:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_daily_bin1639 11.9981 22.5632 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+2233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   659.41 sec.
    Max Memory :                                 623 MB
    Average Memory :                             300.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 191481: <4FGL_J0047.9+2233_daily_bin1639> in cluster <slac> Done

Job <4FGL_J0047.9+2233_daily_bin1639> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 21 00:05:21 2022
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:05:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:05:29 2022
Terminated at Fri Jan 21 00:19:12 2022
Results reported at Fri Jan 21 00:19:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_daily_bin1639 11.9981 22.5632 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+2233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            831 sec.

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

