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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1545
RA = 162.467, Dec = 14.4835
tmin = 639792001, tmax = 640051201
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='233261', job_status='RUN', time_executed='2021-09-02 17:39:36.016611', time_epoch_executed='1630629576.02' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233261

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233261/ft1_4FGL_J1049.8+1429_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233261/ft2_4FGL_J1049.8+1429_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233261/ft1_4FGL_J1049.8+1429_daily_bin1545.fits outfile=/scratch/kocevski/233261/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1545.fits ra=162.467 dec=14.4835 rad=12.0 tmin=639792001.0 tmax=640051201.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.70
user 3.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233261/ft1_filtered_4FGL_J1049.8+1429_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/233261/ft2_4FGL_J1049.8+1429_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/233261/ltcube_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.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/233261/ft2_4FGL_J1049.8+1429_daily_bin1545.fits
.....................!
real 16.21
user 15.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233261/ft1_filtered_4FGL_J1049.8+1429_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/233261/ft2_4FGL_J1049.8+1429_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/233261/ltcube_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.fits outfile=/scratch/kocevski/233261/expmap_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.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/233261/ltcube_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.fits
.....................!
real 191.73
user 185.83
sys 5.10

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/233261/ft1_filtered_4FGL_J1049.8+1429_daily_bin1545.fits scfile=/scratch/kocevski/233261/ft2_4FGL_J1049.8+1429_daily_bin1545.fits outfile=/scratch/kocevski/233261/cmap_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233261/ft1_filtered_4FGL_J1049.8+1429_daily_bin1545.fits scfile=/scratch/kocevski/233261/ft2_4FGL_J1049.8+1429_daily_bin1545.fits outfile=/scratch/kocevski/233261/cmap_HighResolution_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.136       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72498       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2710       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=   5512.555     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1718 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.816        .90712E-02** at limit **
   2  Prefactor     .10000E-03    13.607        .90712E-02** at limit **
   3  Prefactor     .10000E-03    30.662        .90712E-02** at limit **
   4  Prefactor     .10003E-03    9.2894        .90712E-02** at limit **
   5  Prefactor     .10000E-03    2.8805        .90712E-02** at limit **
   6  Prefactor     4.8610        2.9740        .45612E-02    .11256E-03
   7  Prefactor     2.4226        2.1562        .65744E-02    .28481E-03
   8  Prefactor     31.326        9.9814        .17898E-02   -.52388E-03
   9  Prefactor     .10001E-03    6.6081        .90712E-02** at limit **
  10  Prefactor     8.1445        8.9210        .35124E-02    .35672E-03
  11  Prefactor     8.3040        12.047        .34781E-02    .20129E-03
  12  Prefactor     .10002E-03    6.8632        .90712E-02** at limit **
  13  norm          1.1196        1.1099        .11101E-01    .32628E-03
  14  Prefactor     .10003E-03    8.8737        .90712E-02** at limit **
  15  Prefactor     .10000E-03    3.2058        .90712E-02** at limit **
  16  norm          19.938        11.015        .22426E-02   -.21321E-03
  17  Prefactor     4.1892        9.7556        .49204E-02    .52816E-03
  18  Prefactor     25.138        27.345        .19975E-02   -.53278E-03
  19  Normalizat    .72484        .18371        .64589E-01   -.37508E-04
  20  Prefactor     1.2710        .18047        .51668E-01   -.60117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 4.86103
  Prefactor  = 2.42264
  Prefactor  = 31.3258
  Prefactor  = 0.000100014
  Prefactor  = 8.14453
  Prefactor  = 8.30399
  Prefactor  = 0.000100017
  norm       = 1.11959
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 19.9378
  Prefactor  = 4.18922
  Prefactor  = 25.138
  Normalizat = 0.724843
  Prefactor  = 1.27104
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.555     FROM HESSE     STATUS=OK           285 CALLS     2003 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    9.2933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8971        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8610        2.9717        .96747E-04   -1.5267    
   7  Prefactor     2.4226        2.1460        .98156E-04   -1.5397    
   8  Prefactor     31.326        10.000        .71591E-04   -1.4588    
   9  Prefactor     .10001E-03    6.8111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1445        8.9001        .14050E-03   -1.5137    
  11  Prefactor     8.3040        12.004        .13913E-03   -1.5132    
  12  Prefactor     .10002E-03    6.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1196        1.0795        .74782E-04   -1.5496    
  14  Prefactor     .10003E-03    8.8961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2194        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.938        11.014        .89702E-04   -1.4815    
  17  Prefactor     4.1892        9.7585        .19682E-03   -1.5299    
  18  Prefactor     25.138        27.354        .79900E-04   -1.4705    
  19  Normalizat    .72484        .21356        .28575E-03   -1.0292    
  20  Prefactor     1.2710        .21050        .22842E-03   -.84172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19426e-08
Minuit parameter uncertainties:
  1  0.000441485
  2  0.000164843
  3  0.000266074
  4  0.00100764
  5  1.03835e-06
  6  2.97179
  7  2.14602
  8  10.0007
  9  0.000616908
  10  8.90154
  11  12.0074
  12  0.000679166
  13  1.07954
  14  0.000998003
  15  4.34517e-06
  16  11.0147
  17  9.76219
  18  27.368
  19  0.21381
  20  0.210638
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.133e+01  1.000e+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.271e+00  2.106e-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:  7.248e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.03
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 5.95e-08
Energy Flux (Fixed Index): 4.92e-05 +/- 1.57e-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) = 5512.53784594
delta logL = 0.0167673800879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.52862344
delta logL = 0.0259898835729

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5512.529     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      246 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.871        12.476        .69891E-04   -.22436E-02
   2  Index         2.5169        .33245        .42565E-02   -.72043E-03
   3  Normalizat    .73352        .20892        .28424E-03    .46516E-04
   4  Prefactor     1.2648        .21126        .22889E-03    .15956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8712
  Index      = 2.51686
  Normalizat = 0.733518
  Prefactor  = 1.26483
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.529     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.871        12.293        .13978E-04   -1.4561    
   2  Index         2.5169        .32737        .17026E-03   -.51971    
   3  Normalizat    .73352        .20904        .11370E-04   -1.0258    
   4  Prefactor     1.2648        .21137        .45777E-04   -.84359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65466e-09
Minuit parameter uncertainties:
  1  12.2935
  2  0.327685
  3  0.209272
  4  0.211512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233261': 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) = 5512.52862343
delta logL = 0.0259898916102

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.287e+01  1.229e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.517e+00  3.277e-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:  1.265e+00  2.115e-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:  7.335e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.95
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.52 +/- 0.33
Photon Flux (Free Index): 1.80e-07 +/- 6.49e-08
Energy Flux (Free Index): 5.13e-05 +/- 1.90e-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/233261/cmap_HighResolution_639792001_640051201_4FGL_J1049.8+1429_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='5.13e-05', photon_flux_error='5.95e-08', dlogl='2.60e-02', energy_flux='4.92e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-02 17:47:59.832506', photon_index_error2='0.33', photon_index2='2.52', ts='21.03', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.72', time_epoch_completed='1630630079.83', return_code='0', job_id='233261', GAL2='1.26', EG2='0.73', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.49e-08', ts2='20.95', photon_index='2.59' WHERE bin_id='1545' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:47:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 233261: <4FGL_J1049.8+1429_daily_bin1545> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1545> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 17:32:07 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:35:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:35:55 2021
Terminated at Thu Sep  2 17:48:00 2021
Results reported at Thu Sep  2 17:48:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1545 162.467 14.4835 639792001 640051201 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 :                                   501.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            953 sec.

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

