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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1553
RA = 162.467, Dec = 14.4835
tmin = 641865601, tmax = 642124801
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='233274', job_status='RUN', time_executed='2021-09-02 17:39:13.538878', time_epoch_executed='1630629553.54' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233274/ft1_4FGL_J1049.8+1429_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233274/ft1_4FGL_J1049.8+1429_daily_bin1553.fits outfile=/scratch/kocevski/233274/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1553.fits ra=162.467 dec=14.4835 rad=12.0 tmin=641865601.0 tmax=642124801.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.39
user 4.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.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/233274/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/233274/ft1_filtered_4FGL_J1049.8+1429_daily_bin1553.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233274/ft1_filtered_4FGL_J1049.8+1429_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/233274/ltcube_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.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/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.fits
.....................!
real 14.16
user 13.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233274/ft1_filtered_4FGL_J1049.8+1429_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/233274/ltcube_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.fits outfile=/scratch/kocevski/233274/expmap_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.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/233274/ltcube_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.fits
.....................!
real 191.01
user 185.77
sys 4.76

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/233274/ft1_filtered_4FGL_J1049.8+1429_daily_bin1553.fits scfile=/scratch/kocevski/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.fits outfile=/scratch/kocevski/233274/cmap_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233274/ft1_filtered_4FGL_J1049.8+1429_daily_bin1553.fits scfile=/scratch/kocevski/233274/ft2_4FGL_J1049.8+1429_daily_bin1553.fits outfile=/scratch/kocevski/233274/cmap_HighResolution_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.870       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13217E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2067       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .90272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.265       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33426E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .70526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22446E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5160       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0523       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0857       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=   6044.617     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2105 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.883        65.877        .14102E-04    .49536E-04
   2  Prefactor     30.411        37.835       -.10413E-05    .99257E-06
   3  Prefactor     .10000E-03    47.355        .12935E-05** at limit **
   4  Prefactor     4.1866        26.189       -.28518E-04   -.60782E-04
   5  Prefactor     13.135        9.0793       -.36003E-06   -.82111E-04
   6  Prefactor     .10000E-03    1.2540        .32383E-08** at limit **
   7  Prefactor     .90282        2.5437       -.62669E-06   -.12353E-02
   8  Prefactor     29.004        10.297       -.66552E-07   -.62957E-04
   9  Prefactor     .10000E-03    6.9543        .19155E-06** at limit **
  10  Prefactor     11.261        12.575       -.11417E-05   -.45240E-03
  11  Prefactor     8.0186        12.230       -.81046E-06   -.27818E-03
  12  Prefactor     .10028E-03    11.352        .28503E-05** at limit **
  13  norm          .70512        1.0400       -.40419E-07   -.13371E-03
  14  Prefactor     9.9509        25.253       -.14101E-04   -.14020E-04
  15  Prefactor     .10000E-03    4.5629       -.41149E-06** at limit **
  16  norm          .10000E-03    3.4737       -.84056E-08** at limit **
  17  Prefactor     4.5079        13.760        .29814E-06   -.88395E-04
  18  Prefactor     .10000E-03    10.775        .29164E-06** at limit **
  19  Normalizat    1.0523        .20122        .10052E-05   -.82155E-04
  20  Prefactor     1.0857        .18137        .18374E-05   -.10163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.8828
  Prefactor  = 30.4109
  Prefactor  = 0.000100001
  Prefactor  = 4.18656
  Prefactor  = 13.1346
  Prefactor  = 0.0001
  Prefactor  = 0.90282
  Prefactor  = 29.0042
  Prefactor  = 0.0001
  Prefactor  = 11.2615
  Prefactor  = 8.0186
  Prefactor  = 0.000100281
  norm       = 0.705121
  Prefactor  = 9.95091
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50785
  Prefactor  = 0.0001
  Normalizat = 1.05228
  Prefactor  = 1.0857
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.617     FROM HESSE     STATUS=OK           299 CALLS     2404 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.883        65.935        .45800E-04   -1.3952    
   2  Prefactor     30.411        37.843        .72655E-04   -1.4604    
   3  Prefactor     .10000E-03    47.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1866        26.428        .19648E-03   -1.5299    
   5  Prefactor     13.135        9.0020        .11052E-03   -1.4983    
   6  Prefactor     .10000E-03    1.2707        .84975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .90282        2.4935        .19298E-03   -1.5518    
   8  Prefactor     29.004        10.331        .74391E-04   -1.4630    
   9  Prefactor     .10000E-03    7.0669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.261        12.260        .11936E-03   -1.5037    
  11  Prefactor     8.0186        12.127        .14158E-03   -1.5142    
  12  Prefactor     .10028E-03    54.702        .47800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .70512        1.0398        .48328E-04   -1.5540    
  14  Prefactor     9.9509        25.349        .12697E-03   -1.5077    
  15  Prefactor     .10000E-03    21.048        .31918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4799        .14151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5079        13.645        .18945E-03   -1.5283    
  18  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0523        .24173        .26829E-03   -.91299    
  20  Prefactor     1.0857        .21741        .25458E-03   -.89925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21728e-09
Minuit parameter uncertainties:
  1  65.9976
  2  37.8725
  3  0.000317954
  4  21.0509
  5  9.0029
  6  7.51826e-07
  7  2.49375
  8  10.3319
  9  2.84558e-05
  10  12.2629
  11  12.1307
  12  0.00785433
  13  1.0398
  14  25.3767
  15  0.000109123
  16  1.61664e-06
  17  13.6544
  18  5.85962e-06
  19  0.241984
  20  0.217591
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.900e+01  1.033e+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.086e+00  2.176e-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.052e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.84
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.14e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 1.62e-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) = 6043.99059132
delta logL = 0.626079299634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6043.86222769
delta logL = 0.754442934344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.055       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1717       1.0000          .0000       10.000    
     3 'Normalizat'    1.1046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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=   6043.862     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      214 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.055        15.787        .17167E-02   -.57780E-04
   2  Index         2.1717        .37985        .13128       -.95753E-04
   3  Normalizat    1.1046        .19030        .59417E-01   -.22968E-04
   4  Prefactor     1.0492        .18133        .58400E-01    .23468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.055
  Index      = 2.17166
  Normalizat = 1.10462
  Prefactor  = 1.04919
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.862     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.055        12.499        .68669E-04   -1.4540    
   2  Index         2.1717        .32383        .53688E-02   -.60124    
   3  Normalizat    1.1046        .22810        .26278E-03   -.89604    
   4  Prefactor     1.0492        .21640        .25825E-03   -.91107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50555e-11
Minuit parameter uncertainties:
  1  12.4997
  2  0.324167
  3  0.228302
  4  0.216579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233274': 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) = 6043.86222769
delta logL = 0.754442934413

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.405e+01  1.250e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.172e+00  3.242e-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.049e+00  2.166e-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.105e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.24
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.17 +/- 0.32
Photon Flux (Free Index): 1.32e-07 +/- 6.01e-08
Energy Flux (Free Index): 6.23e-05 +/- 3.18e-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/233274/cmap_HighResolution_641865601_642124801_4FGL_J1049.8+1429_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='6.23e-05', photon_flux_error='6.14e-08', dlogl='7.54e-01', energy_flux='4.56e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-02 17:48:22.867938', photon_index_error2='0.32', photon_index2='2.17', ts='17.84', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='1.05', time_epoch_completed='1630630102.87', return_code='0', job_id='233274', GAL2='1.05', EG2='1.10', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.01e-08', ts2='19.24', photon_index='2.59' WHERE bin_id='1553' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:48:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 233274: <4FGL_J1049.8+1429_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1553> 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) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:36:03 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:36:03 2021
Terminated at Thu Sep  2 17:48:23 2021
Results reported at Thu Sep  2 17:48:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1553 162.467 14.4835 641865601 642124801 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 :                                   548.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            976 sec.

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

