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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1618
RA = 162.467, Dec = 14.4835
tmin = 658713601, tmax = 658972801
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='299951', job_status='RUN', time_executed='2021-12-07 21:19:12.986559', time_epoch_executed='1638940752.99' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299951/ft1_4FGL_J1049.8+1429_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299951/ft1_4FGL_J1049.8+1429_daily_bin1618.fits outfile=/scratch/kocevski/299951/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1618.fits ra=162.467 dec=14.4835 rad=12.0 tmin=658713601.0 tmax=658972801.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.00
user 2.78
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.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/299951/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/299951/ft1_filtered_4FGL_J1049.8+1429_daily_bin1618.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/299951/ft1_filtered_4FGL_J1049.8+1429_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/299951/ltcube_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.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/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.fits
.....................!
real 14.41
user 14.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299951/ft1_filtered_4FGL_J1049.8+1429_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/299951/ltcube_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.fits outfile=/scratch/kocevski/299951/expmap_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.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/299951/ltcube_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.fits
.....................!
real 191.89
user 185.75
sys 5.75

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/299951/ft1_filtered_4FGL_J1049.8+1429_daily_bin1618.fits scfile=/scratch/kocevski/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.fits outfile=/scratch/kocevski/299951/cmap_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299951/ft1_filtered_4FGL_J1049.8+1429_daily_bin1618.fits scfile=/scratch/kocevski/299951/ft2_4FGL_J1049.8+1429_daily_bin1618.fits outfile=/scratch/kocevski/299951/cmap_HighResolution_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.588       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12709E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7332       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.870       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76305       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2503       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=   8895.771     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2065 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.425        .76588E-07** at limit **
   2  Prefactor     32.539        37.116       -.27454E-06   -.67979E-04
   3  Prefactor     .10000E-03    13.340        .79093E-07** at limit **
   4  Prefactor     .10000E-03    4.6476        .37880E-07** at limit **
   5  Prefactor     .10000E-03    6.0101       -.24207E-06** at limit **
   6  Prefactor     3.8494        2.9233        .15719E-06    .41864E-04
   7  Prefactor     .10000E-03    .66228        .66403E-07** at limit **
   8  Prefactor     19.102        6.6041       -.23249E-07   -.40851E-04
   9  Prefactor     8.0823        6.4742        .73479E-07    .22771E-05
  10  Prefactor     11.049        6.1612        .12163E-05    .14113E-03
  11  Prefactor     .10000E-03    1.8264       -.70369E-07** at limit **
  12  Prefactor     .10008E-03    4.6355        .45789E-06** at limit **
  13  norm          1.5962        .87252        .21479E-07    .30052E-05
  14  Prefactor     .10000E-03    3.5673        .82197E-07** at limit **
  15  Prefactor     .10000E-03    2.4771        .12109E-06** at limit **
  16  norm          6.7331        6.2995        .65715E-07   -.11821E-05
  17  Prefactor     17.311        9.6776        .15878E-07   -.26752E-04
  18  Prefactor     25.868        26.656        .30911E-07   -.91580E-05
  19  Normalizat    .76317        .14793       -.52777E-06   -.30822E-04
  20  Prefactor     1.2502        .14269        .92185E-08   -.70431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.5389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84944
  Prefactor  = 0.0001
  Prefactor  = 19.1015
  Prefactor  = 8.08229
  Prefactor  = 11.0486
  Prefactor  = 0.0001
  Prefactor  = 0.000100083
  norm       = 1.59624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.73314
  Prefactor  = 17.3106
  Prefactor  = 25.868
  Normalizat = 0.763168
  Prefactor  = 1.25019
 **********
 **   18 **HESSE 
 **********

 FCN=   8895.771     FROM HESSE     STATUS=OK           295 CALLS     2360 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.539        37.251        .70193E-04   -1.4566    
   3  Prefactor     .10000E-03    13.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8494        2.9104        .13133E-03   -1.5316    
   7  Prefactor     .10000E-03    .68442        .14960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.102        6.6198        .91640E-04   -1.4834    
   9  Prefactor     8.0823        6.4601        .14102E-03   -1.5139    
  10  Prefactor     11.049        6.1815        .60262E-03   -1.5043    
  11  Prefactor     .10000E-03    1.8324        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    28.040        .38540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5962        .86544        .62729E-04   -1.5455    
  14  Prefactor     .10000E-03    3.5708        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4899        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7331        6.2923        .15463E-03   -1.5189    
  17  Prefactor     17.311        9.7000        .96265E-04   -1.4876    
  18  Prefactor     25.868        26.728        .78760E-04   -1.4690    
  19  Normalizat    .76317        .17257        .27813E-03   -1.0145    
  20  Prefactor     1.2502        .16787        .22895E-03   -.84801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82959e-09
Minuit parameter uncertainties:
  1  5.49637e-06
  2  37.2774
  3  1.20789e-05
  4  7.69345e-07
  5  2.2191e-05
  6  2.91046
  7  1.40261e-06
  8  6.62009
  9  6.46066
  10  6.18187
  11  7.32519e-06
  12  0.00304367
  13  0.865447
  14  1.97223e-06
  15  1.45086e-06
  16  6.29296
  17  9.70086
  18  26.7406
  19  0.172689
  20  0.167944
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.910e+01  6.620e+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:  1.250e+00  1.679e-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.632e-01  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.82
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 3.94e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.04e-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) = 8895.70253372
delta logL = 0.0685588262822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8895.68712654
delta logL = 0.083965998243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.889       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4401       1.0000          .0000       10.000    
     3 'Normalizat'    .77629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2403       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=   8895.687     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.889        8.3428        .87635E-04    .11675E-02
   2  Index         2.4402        .36738        .58697E-02    .24044E-03
   3  Normalizat    .77629        .16578        .27602E-03   -.63594E-04
   4  Prefactor     1.2403        .16773        .22972E-03   -.11775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.889
  Index      = 2.44018
  Normalizat = 0.776288
  Prefactor  = 1.24033
 **********
 **   18 **HESSE 
 **********

 FCN=   8895.687     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.889        8.2014        .17527E-04   -1.4794    
   2  Index         2.4402        .36088        .23479E-03   -.53747    
   3  Normalizat    .77629        .16584        .11041E-04   -1.0095    
   4  Prefactor     1.2403        .16778        .45943E-04   -.85099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72651e-10
Minuit parameter uncertainties:
  1  8.2018
  2  0.36131
  3  0.16595
  4  0.167854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299951': 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) = 8895.6871265
delta logL = 0.0839660427318

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.089e+01  8.202e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.440e+00  3.613e-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.240e+00  1.679e-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.763e-01  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.88
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.44 +/- 0.36
Photon Flux (Free Index): 1.05e-07 +/- 4.32e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.39e-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/299951/cmap_HighResolution_658713601_658972801_4FGL_J1049.8+1429_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.28e-05', photon_flux_error='3.94e-08', dlogl='8.40e-02', energy_flux='3.00e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-12-07 21:29:57.328036', photon_index_error2='0.36', photon_index2='2.44', ts='16.82', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.76', time_epoch_completed='1638941397.33', return_code='0', job_id='299951', GAL2='1.24', EG2='0.78', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.32e-08', ts2='16.88', photon_index='2.59' WHERE bin_id='1618' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:29:57 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 299951: <4FGL_J1049.8+1429_daily_bin1618> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1618> 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) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:17:07 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:07 2021
Terminated at Tue Dec  7 21:29:58 2021
Results reported at Tue Dec  7 21:29:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1618 162.467 14.4835 658713601 658972801 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 :                                   644.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            878 sec.

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

