/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 9 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1049.8+1429_daily_bin56
RA = 162.467, Dec = 14.4835
tmin = 253843201, tmax = 254102401
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='218606', job_status='RUN', time_executed='2021-09-02 16:51:31.971918', time_epoch_executed='1630626691.97' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218606/ft1_4FGL_J1049.8+1429_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218606/ft2_4FGL_J1049.8+1429_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218606/ft1_4FGL_J1049.8+1429_daily_bin56.fits outfile=/scratch/kocevski/218606/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin56.fits ra=162.467 dec=14.4835 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.27
user 1.09
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218606/ft1_filtered_4FGL_J1049.8+1429_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/218606/ft2_4FGL_J1049.8+1429_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/218606/ltcube_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.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/218606/ft2_4FGL_J1049.8+1429_daily_bin56.fits
.....................!
real 15.77
user 15.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218606/ft1_filtered_4FGL_J1049.8+1429_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/218606/ft2_4FGL_J1049.8+1429_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/218606/ltcube_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.fits outfile=/scratch/kocevski/218606/expmap_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.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/218606/ltcube_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.fits
.....................!
real 159.55
user 153.43
sys 4.53

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/218606/ft1_filtered_4FGL_J1049.8+1429_daily_bin56.fits scfile=/scratch/kocevski/218606/ft2_4FGL_J1049.8+1429_daily_bin56.fits outfile=/scratch/kocevski/218606/cmap_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.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.52
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218606/ft1_filtered_4FGL_J1049.8+1429_daily_bin56.fits scfile=/scratch/kocevski/218606/ft2_4FGL_J1049.8+1429_daily_bin56.fits outfile=/scratch/kocevski/218606/cmap_HighResolution_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.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.52
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    272.57       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.059       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6346       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.990       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86201       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99779       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=   5176.095     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2049 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.219        76.012        .71749E-06   -.29056E-04
   2  Prefactor     .10000E-03    24.049        .33562E-06** at limit **
   3  Prefactor     272.66        110.71       -.74019E-06    .19652E-04
   4  Prefactor     .10000E-03    18.948        .10903E-05** at limit **
   5  Prefactor     .10000E-03    5.0102        .18965E-06** at limit **
   6  Prefactor     8.3218        3.8945       -.24487E-06   -.32154E-03
   7  Prefactor     2.0132        2.4099        .23621E-06   -.95136E-05
   8  Prefactor     .10006E-03    6.5827       -.43725E-06** at limit **
   9  Prefactor     .81238        11.186        .51519E-05   -.53618E-04
  10  Prefactor     .10000E-03    2.9757        .49979E-07** at limit **
  11  Prefactor     .10000E-03    7.1950        .56771E-07** at limit **
  12  Prefactor     16.055        15.284        .56043E-07   -.91990E-06
  13  norm          1.6347        1.2501        .53485E-08    .76419E-04
  14  Prefactor     .10000E-03    10.413        .10220E-06** at limit **
  15  Prefactor     .10000E-03    3.4979        .11566E-06** at limit **
  16  norm          26.169        14.499        .10232E-06    .21541E-05
  17  Prefactor     .10000E-03    3.9512        .82069E-07** at limit **
  18  Prefactor     23.989        28.960        .14546E-06   -.24432E-05
  19  Normalizat    .86193        .18544       -.74241E-06   -.53002E-04
  20  Prefactor     .99793        .17243       -.55910E-06   -.57916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2186
  Prefactor  = 0.0001
  Prefactor  = 272.655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.32175
  Prefactor  = 2.01324
  Prefactor  = 0.000100057
  Prefactor  = 0.81238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0553
  norm       = 1.6347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.1689
  Prefactor  = 0.0001
  Prefactor  = 23.9891
  Normalizat = 0.861927
  Prefactor  = 0.997928
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.095     FROM HESSE     STATUS=OK           293 CALLS     2342 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.219        75.300        .10987E-03   -1.4981    
   2  Prefactor     .10000E-03    24.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     272.66        110.13        .12283E-03   -1.2390    
   4  Prefactor     .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1270        .31414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3218        3.9015        .91608E-04   -1.5131    
   7  Prefactor     2.0132        2.3999        .11571E-03   -1.5424    
   8  Prefactor     .10006E-03    38.259        .34152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81238        11.195        .44721E-03   -1.5528    
  10  Prefactor     .10000E-03    2.9859        .12111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.055        15.330        .99945E-04   -1.4906    
  13  norm          1.6347        1.2354        .66986E-04   -1.5452    
  14  Prefactor     .10000E-03    10.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5393        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.169        14.503        .78310E-04   -1.4684    
  17  Prefactor     .10000E-03    3.9631        .13968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.989        28.965        .81782E-04   -1.4728    
  19  Normalizat    .86193        .21187        .25138E-03   -.97811    
  20  Prefactor     .99793        .19867        .23311E-03   -.92799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48305e-09
Minuit parameter uncertainties:
  1  63.2201
  2  6.64562e-05
  3  110.219
  4  2.64121e-05
  5  3.15508e-06
  6  3.90166
  7  2.39997
  8  0.00294935
  9  6.03246
  10  1.74422e-06
  11  2.89425e-06
  12  15.3338
  13  1.23541
  14  2.31988e-06
  15  3.18917e-06
  16  14.5048
  17  1.88453e-06
  18  28.9824
  19  0.212071
  20  0.198816
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.001e-04  2.949e-03  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:  9.979e-01  1.988e-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:  8.619e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218606/likelihoodResults_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.txt

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): 102
logL (Free Index) = 5176.09487981
delta logL = -0.000122606272271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5176.09475633
delta logL = 8.75752448337e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23942E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7491       1.0000          .0000       10.000    
     3 'Normalizat'    .86178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99805       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=   5175.395     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      390 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11328E-03    .22680E-03** at limit **
   2  Index         9.8823        1.2623        .50000       -.13017E-03
   3  Normalizat    .80739        .17592        .44411E-01   -.46053E-05
   4  Prefactor     1.0345        .17383        .46243E-01    .41256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.88231
  Normalizat = 0.807392
  Prefactor  = 1.0345
 **********
 **   18 **HESSE 
 **********

 FCN=   5175.395     FROM HESSE     STATUS=OK            35 CALLS      425 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .99497E-03    .14145E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8823        .82392        .49681E-01    1.3534    
   3  Normalizat    .80739        .20222        .25881E-03   -.99795    
   4  Prefactor     1.0345        .19994        .22953E-03   -.91588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66788e-10
Minuit parameter uncertainties:
  1  3.62944e-09
  2  0.635696
  3  0.202404
  4  0.200086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218606': 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) = 5175.39534437
delta logL = 0.699412835606

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  3.629e-09  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  9.882e+00  6.357e-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.035e+00  2.001e-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:  8.074e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 162.467 14.483
Photon Index (Free Index): 9.88 +/- 0.64
Photon Flux (Free Index): 3.97e-08 +/- 4.02e-08
Energy Flux (Free Index): 4.44e-06 +/- 4.49e-06

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/218606/cmap_HighResolution_253843201_254102401_4FGL_J1049.8+1429_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', comment='SUCCESS', energy_flux2='4.44e-06', dlogl='6.99e-01', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-09-02 16:59:14.951628', photon_index_error2='0.64', photon_index2='9.88', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='4.49e-06', EG='0.86', time_epoch_completed='1630627154.95', return_code='0', job_id='218606', GAL2='1.03', EG2='0.81', return_code2='0', photon_flux_error2='4.02e-08', ts2='1.47', photon_index='2.59' WHERE bin_id='56' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 16:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 218606: <4FGL_J1049.8+1429_daily_bin56> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin56> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  2 16:46:27 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:51:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 16:51:15 2021
Terminated at Thu Sep  2 16:59:15 2021
Results reported at Thu Sep  2 16:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin56 162.467 14.4835 253843201 254102401 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 :                                   456.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   480 sec.
    Turnaround time :                            768 sec.

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

