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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1642
RA = 162.467, Dec = 14.4835
tmin = 664934401, tmax = 665193601
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='435646', job_status='RUN', time_executed='2022-01-30 00:13:38.581563', time_epoch_executed='1643530418.58' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435646/ft1_4FGL_J1049.8+1429_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435646/ft1_4FGL_J1049.8+1429_daily_bin1642.fits outfile=/scratch/kocevski/435646/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1642.fits ra=162.467 dec=14.4835 rad=12.0 tmin=664934401.0 tmax=665193601.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.68
user 3.38
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.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/435646/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.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.58
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/435646/ltcube_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.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/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits
.....................!
real 23.91
user 23.42
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/435646/ltcube_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.fits outfile=/scratch/kocevski/435646/expmap_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.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/435646/ltcube_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.fits
.....................!
real 191.89
user 185.65
sys 5.84

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

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits scfile=/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits outfile=/scratch/kocevski/435646/cmap_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.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=162.467 yref=14.4835 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits scfile=/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits outfile=/scratch/kocevski/435646/cmap_HighResolution_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.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=162.467 yref=14.4835 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.60
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435646/Model_4FGL_J1049.8+1429_daily_bin1642.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/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits.....................!
real 60.99
user 59.46
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits', '/scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits', expMap='/scratch/kocevski/435646/expmap_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.fits', expCube='/scratch/kocevski/435646/ltcube_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435646/Model_4FGL_J1049.8+1429_daily_bin1642.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/435646/ft1_filtered_4FGL_J1049.8+1429_daily_bin1642.fits
Spacecraft file(s): /scratch/kocevski/435646/ft2_4FGL_J1049.8+1429_daily_bin1642.fits
Exposure map: /scratch/kocevski/435646/expmap_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.fits
Exposure cube: /scratch/kocevski/435646/ltcube_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435646/Model_4FGL_J1049.8+1429_daily_bin1642.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) = 6623.50089999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1893       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.551       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.553       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53947E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74220       1.0000         .10000E-03   10000.    
    13 'norm      '    .35313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0201       1.0000         .10000E-03   10000.    
    16 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0258       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6623.500     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2048 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1435        36.051       -.25291E-08   -.61493E-04
   2  Prefactor     16.525        42.828        .27571E-06   -.54901E-04
   3  Prefactor     .10000E-03    25.866       -.40836E-06** at limit **
   4  Prefactor     .10000E-03    14.551       -.24154E-06** at limit **
   5  Prefactor     .10000E-03    1.8852        .10501E-07** at limit **
   6  Prefactor     6.1020        3.2563        .65518E-07   -.18382E-04
   7  Prefactor     4.1761        2.7408        .25459E-07   -.31757E-03
   8  Prefactor     40.547        10.849       -.14207E-06   -.45192E-03
   9  Prefactor     .10000E-03    2.3162        .80692E-07** at limit **
  10  Prefactor     .10000E-03    6.0089       -.70435E-06** at limit **
  11  Prefactor     10.033        9.4700       -.58805E-06   -.39646E-03
  12  Prefactor     .61691        18.662        .40901E-05   -.50850E-03
  13  norm          .35317        .68590        .75953E-06    .27109E-02
  14  Prefactor     .91272        12.985       -.22838E-05    .41236E-03
  15  Prefactor     8.0195        6.1508       -.30541E-07   -.22346E-03
  16  norm          .10000E-03    13.236       -.63838E-08** at limit **
  17  Prefactor     .10000E-03    4.3756        .10370E-06** at limit **
  18  Prefactor     .10000E-03    12.142        .16418E-06** at limit **
  19  Normalizat    1.0260        .19117       -.17662E-05   -.41684E-03
  20  Prefactor     1.0250        .17244        .77220E-07   -.35710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14352
  Prefactor  = 16.5248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10198
  Prefactor  = 4.17608
  Prefactor  = 40.5471
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.0334
  Prefactor  = 0.61691
  norm       = 0.353165
  Prefactor  = 0.912721
  Prefactor  = 8.01949
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02596
  Prefactor  = 1.02501
 **********
 **   18 **HESSE 
 **********

 FCN=   6623.500     FROM HESSE     STATUS=OK           295 CALLS     2343 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1435        36.156        .13221E-03   -1.5103    
   2  Prefactor     16.525        42.929        .98449E-04   -1.4895    
   3  Prefactor     .10000E-03    25.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8881        .10911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1020        3.2554        .10266E-03   -1.5214    
   7  Prefactor     4.1761        2.7268        .10343E-03   -1.5299    
   8  Prefactor     40.547        10.906        .62945E-04   -1.4434    
   9  Prefactor     .10000E-03    2.3273        .12095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.656        .33483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.033        9.6104        .12656E-03   -1.5074    
  12  Prefactor     .61691        132.75        .49109E-02   -1.5551    
  13  norm          .35317        .67694        .10781E-02   -1.5589    
  14  Prefactor     .91272        71.198        .51013E-02   -1.5517    
  15  Prefactor     8.0195        6.1487        .14158E-03   -1.5142    
  16  norm          .10000E-03    13.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.3953        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0260        .21854        .26209E-03   -.92166    
  20  Prefactor     1.0250        .19884        .24974E-03   -.91900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72094e-08
Minuit parameter uncertainties:
  1  36.2431
  2  43.0096
  3  2.41313e-05
  4  3.47354e-05
  5  1.74342e-06
  6  3.25549
  7  2.72688
  8  10.9068
  9  5.54467e-06
  10  0.000530589
  11  9.6119
  12  18.1388
  13  0.676951
  14  16.1416
  15  6.14918
  16  2.31175e-05
  17  6.5347e-06
  18  2.50922e-05
  19  0.218729
  20  0.198979
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.055e+01  1.091e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.025e+00  1.990e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.026e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.21
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 2.41e-07 +/- 6.49e-08
Energy Flux (Fixed Index): 6.37e-05 +/- 1.71e-05

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) = 6623.17351057
delta logL = 0.326734323574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6623.09422199
delta logL = 0.406022901613

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6623.094     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.329        19.893        .14889E-02    .13950E-04
   2  Index         2.3504        .38286        .10162        .43720E-04
   3  Normalizat    1.0673        .17986        .58320E-01    .31299E-04
   4  Prefactor     .99623        .16849        .46219E-01    .36439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.3295
  Index      = 2.35038
  Normalizat = 1.06728
  Prefactor  = 0.996229
 **********
 **   18 **HESSE 
 **********

 FCN=   6623.094     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.329        12.962        .59556E-04   -1.4360    
   2  Index         2.3504        .26087        .42904E-02   -.55851    
   3  Normalizat    1.0673        .21225        .25791E-03   -.90809    
   4  Prefactor     .99623        .19756        .25280E-03   -.92855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27778e-10
Minuit parameter uncertainties:
  1  12.9624
  2  0.261039
  3  0.212419
  4  0.197703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435646': 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) = 6623.09422169
delta logL = 0.406023201775

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.533e+01  1.296e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.350e+00  2.610e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.962e-01  1.977e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.067e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.74
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.35 +/- 0.26
Photon Flux (Free Index): 2.08e-07 +/- 6.93e-08
Energy Flux (Free Index): 7.30e-05 +/- 2.43e-05

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/435646/cmap_HighResolution_664934401_665193601_4FGL_J1049.8+1429_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-07', energy_flux2='7.30e-05', photon_flux_error='6.49e-08', dlogl='4.06e-01', energy_flux='6.37e-05', photon_flux2='2.08e-07', job_status='DONE', time_completed='2022-01-30 00:23:10.520934', photon_index_error2='0.26', photon_index2='2.35', ts='33.21', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.03', time_epoch_completed='1643530990.52', return_code='0', job_id='435646', GAL2='1.00', EG2='1.07', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='6.93e-08', ts2='33.74', photon_index='2.59' WHERE bin_id='1642' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:23:10 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 435823: <4FGL_J1049.8+1429_daily_bin1642> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1642> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 30 00:06:59 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:07:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:07:01 2022
Terminated at Sun Jan 30 00:21:45 2022
Results reported at Sun Jan 30 00:21:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1642 162.467 14.4835 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 435646: <4FGL_J1049.8+1429_daily_bin1642> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:06:49 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:06:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:06:50 2022
Terminated at Sun Jan 30 00:23:10 2022
Results reported at Sun Jan 30 00:23:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1642 162.467 14.4835 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   568.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

