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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1619
RA = 162.467, Dec = 14.4835
tmin = 658972801, tmax = 659232001
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='299953', job_status='RUN', time_executed='2021-12-07 21:17:21.094899', time_epoch_executed='1638940641.09' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299953/ft1_4FGL_J1049.8+1429_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299953/ft1_4FGL_J1049.8+1429_daily_bin1619.fits outfile=/scratch/kocevski/299953/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1619.fits ra=162.467 dec=14.4835 rad=12.0 tmin=658972801.0 tmax=659232001.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 2.99
user 2.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.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/299953/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/299953/ltcube_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.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/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits
.....................!
real 15.48
user 15.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/299953/ltcube_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.fits outfile=/scratch/kocevski/299953/expmap_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.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/299953/ltcube_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.fits
.....................!
real 192.60
user 186.84
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
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/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.fits scfile=/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits outfile=/scratch/kocevski/299953/cmap_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.fits scfile=/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits outfile=/scratch/kocevski/299953/cmap_HighResolution_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.fits', '/scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits', expMap='/scratch/kocevski/299953/expmap_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.fits', expCube='/scratch/kocevski/299953/ltcube_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/299953/Model_4FGL_J1049.8+1429_daily_bin1619.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/299953/ft1_filtered_4FGL_J1049.8+1429_daily_bin1619.fits
Spacecraft file(s): /scratch/kocevski/299953/ft2_4FGL_J1049.8+1429_daily_bin1619.fits
Exposure map: /scratch/kocevski/299953/expmap_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.fits
Exposure cube: /scratch/kocevski/299953/ltcube_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/299953/Model_4FGL_J1049.8+1429_daily_bin1619.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) = 8470.74732328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.999       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7535       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5096       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0946       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85906       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=   8470.714     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1789 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.602        49.292        .17698E-05    .25045E-04
   2  Prefactor     59.997        33.933        .23725E-06    .14007E-04
   3  Prefactor     .10000E-03    24.040        .29753E-05** at limit **
   4  Prefactor     .10000E-03    5.8455        .11758E-05** at limit **
   5  Prefactor     .10000E-03    2.2657       -.30292E-06** at limit **
   6  Prefactor     .82332        2.6528        .51109E-06    .94915E-04
   7  Prefactor     .10000E-03    .66598       -.24995E-06** at limit **
   8  Prefactor     28.010        7.0330        .90011E-07    .56024E-05
   9  Prefactor     1.6323        5.8519        .15785E-05   -.14051E-05
  10  Prefactor     .10000E-03    1.3546       -.11028E-06** at limit **
  11  Prefactor     5.7535        5.8993        .11217E-06    .42436E-04
  12  Prefactor     .10000E-03    2.6654       -.11916E-06** at limit **
  13  norm          2.4844        1.0692        .19270E-07    .94219E-05
  14  Prefactor     18.617        14.648        .30259E-07   -.53414E-05
  15  Prefactor     4.5140        4.8176        .15632E-06    .82966E-04
  16  norm          6.5781        7.2597        .78224E-07    .65339E-05
  17  Prefactor     .10000E-03    16.132       -.19278E-05** at limit **
  18  Prefactor     .10000E-03    8.7952       -.18947E-06** at limit **
  19  Normalizat    1.0944        .16414       -.20073E-05    .17361E-03
  20  Prefactor     .85931        .15448        .19119E-05   -.21163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6021
  Prefactor  = 59.9968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.823318
  Prefactor  = 0.0001
  Prefactor  = 28.0103
  Prefactor  = 1.63228
  Prefactor  = 0.0001
  Prefactor  = 5.75349
  Prefactor  = 0.0001
  norm       = 2.48439
  Prefactor  = 18.6175
  Prefactor  = 4.514
  norm       = 6.57806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0944
  Prefactor  = 0.859306
 **********
 **   18 **HESSE 
 **********

 FCN=   8470.714     FROM HESSE     STATUS=OK           293 CALLS     2082 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.602        49.352        .92779E-04   -1.4845    
   2  Prefactor     59.997        33.933        .51798E-04   -1.4157    
   3  Prefactor     .10000E-03    24.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3095        .13517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .82332        2.6673        .24565E-03   -1.5526    
   7  Prefactor     .10000E-03    .68711        .14648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.010        7.0351        .75698E-04   -1.4649    
   9  Prefactor     1.6323        5.8740        .16540E-02   -1.5452    
  10  Prefactor     .10000E-03    1.3591        .10457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7535        5.8937        .16745E-03   -1.5228    
  12  Prefactor     .10000E-03    2.6706        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4844        1.0676        .59816E-04   -1.5393    
  14  Prefactor     18.617        14.645        .92824E-04   -1.4845    
  15  Prefactor     4.5140        4.8125        .18959E-03   -1.5283    
  16  norm          6.5781        7.2521        .15647E-03   -1.5195    
  17  Prefactor     .10000E-03    16.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0944        .17359        .23211E-03   -.89932    
  20  Prefactor     .85931        .16420        .25583E-03   -.97578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00415e-09
Minuit parameter uncertainties:
  1  49.4606
  2  33.9442
  3  0.000207297
  4  4.01314e-05
  5  2.19396e-06
  6  2.6677
  7  1.35942e-06
  8  7.03531
  9  5.87612
  10  6.09192e-07
  11  5.89432
  12  1.63592e-06
  13  1.06761
  14  14.6482
  15  4.81293
  16  7.25303
  17  6.94038e-05
  18  6.56347e-06
  19  0.173678
  20  0.164295
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.801e+01  7.035e+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

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  8.593e-01  1.643e-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.094e+00  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.20
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 4.18e-08
Energy Flux (Fixed Index): 4.40e-05 +/- 1.11e-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) = 8469.50640157
delta logL = 1.20795134663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8469.24386931
delta logL = 1.4704836036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.293       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1621       1.0000          .0000       10.000    
     3 'Normalizat'    1.1426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82437       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=   8469.244     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.295        8.9761        .54639E-06   -.45490E-04
   2  Index         2.1621        .23444        .39008E-05   -.21331E-04
   3  Normalizat    1.1427        .14771       -.73983E-06   -.16186E-03
   4  Prefactor     .82432        .14370        .63144E-07   -.19052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.2952
  Index      = 2.16214
  Normalizat = 1.14267
  Prefactor  = 0.824317
 **********
 **   18 **HESSE 
 **********

 FCN=   8469.244     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.295        9.0139        .68430E-04   -1.4536    
   2  Index         2.1621        .23533        .46971E-02   -.60355    
   3  Normalizat    1.1427        .16805        .22801E-03   -.88393    
   4  Prefactor     .82432        .16413        .26042E-03   -.98838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30409e-11
Minuit parameter uncertainties:
  1  9.01427
  2  0.235456
  3  0.168133
  4  0.164231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299953': 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) = 8469.24386922
delta logL = 1.47048369097

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.430e+01  9.014e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.162e+00  2.355e-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:  8.243e-01  1.642e-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.143e+00  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.03
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.16 +/- 0.24
Photon Flux (Free Index): 1.31e-07 +/- 4.10e-08
Energy Flux (Free Index): 6.34e-05 +/- 2.47e-05

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/299953/cmap_HighResolution_658972801_659232001_4FGL_J1049.8+1429_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='6.34e-05', photon_flux_error='4.18e-08', dlogl='1.47e+00', energy_flux='4.40e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-12-07 21:27:27.127725', photon_index_error2='0.24', photon_index2='2.16', ts='39.20', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='1.09', time_epoch_completed='1638941247.13', return_code='0', job_id='299953', GAL2='0.82', EG2='1.14', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.10e-08', ts2='42.03', photon_index='2.59' WHERE bin_id='1619' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:27:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 299953: <4FGL_J1049.8+1429_daily_bin1619> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1619> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 21:15:20 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:17:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:17:09 2021
Terminated at Tue Dec  7 21:27:27 2021
Results reported at Tue Dec  7 21:27:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1619 162.467 14.4835 658972801 659232001 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            727 sec.

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

