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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1300
RA = 162.467, Dec = 14.4835
tmin = 576288001, tmax = 576547201
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='232923', job_status='RUN', time_executed='2021-09-02 17:35:18.852894', time_epoch_executed='1630629318.85' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232923

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232923/ft1_4FGL_J1049.8+1429_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232923/ft2_4FGL_J1049.8+1429_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232923/ft1_4FGL_J1049.8+1429_daily_bin1300.fits outfile=/scratch/kocevski/232923/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1300.fits ra=162.467 dec=14.4835 rad=12.0 tmin=576288001.0 tmax=576547201.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.36
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232923/ft1_filtered_4FGL_J1049.8+1429_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/232923/ft2_4FGL_J1049.8+1429_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/232923/ltcube_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.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/232923/ft2_4FGL_J1049.8+1429_daily_bin1300.fits
.....................!
real 14.87
user 14.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232923/ft1_filtered_4FGL_J1049.8+1429_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/232923/ft2_4FGL_J1049.8+1429_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/232923/ltcube_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.fits outfile=/scratch/kocevski/232923/expmap_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.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/232923/ltcube_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.fits
.....................!
real 192.81
user 186.39
sys 5.49

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/232923/ft1_filtered_4FGL_J1049.8+1429_daily_bin1300.fits scfile=/scratch/kocevski/232923/ft2_4FGL_J1049.8+1429_daily_bin1300.fits outfile=/scratch/kocevski/232923/cmap_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232923/ft1_filtered_4FGL_J1049.8+1429_daily_bin1300.fits scfile=/scratch/kocevski/232923/ft2_4FGL_J1049.8+1429_daily_bin1300.fits outfile=/scratch/kocevski/232923/cmap_HighResolution_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65211       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1610       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .69971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4800       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .59990       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=   4430.388     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2003 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.846        .62566E-06** at limit **
   2  Prefactor     51.017        38.928        .91464E-07   -.17883E-06
   3  Prefactor     .10000E-03    54.267       -.52357E-06** at limit **
   4  Prefactor     .10000E-03    22.759       -.88703E-07** at limit **
   5  Prefactor     11.071        8.5686       -.13857E-06   -.79127E-04
   6  Prefactor     3.2075        3.6814        .42620E-07   -.18012E-04
   7  Prefactor     .65190        2.3149        .88470E-06   -.20557E-04
   8  Prefactor     7.0023        6.3979        .91034E-07   -.84349E-05
   9  Prefactor     4.1628        13.239        .55332E-06   -.44764E-05
  10  Prefactor     .10000E-03    5.0208       -.34356E-07** at limit **
  11  Prefactor     14.412        11.317        .33225E-07   -.38147E-04
  12  Prefactor     .10000E-03    17.508        .19053E-06** at limit **
  13  norm          .69973        1.0012       -.20101E-08   -.20621E-04
  14  Prefactor     25.219        30.429       -.15332E-07   -.13659E-04
  15  Prefactor     .10000E-03    1.8791        .52856E-08** at limit **
  16  norm          6.1299        8.9524        .20476E-05   -.43368E-04
  17  Prefactor     .10000E-03    6.5372        .17316E-07** at limit **
  18  Prefactor     .10000E-03    21.794       -.18144E-06** at limit **
  19  Normalizat    1.4800        .21334       -.44037E-06   -.33896E-04
  20  Prefactor     .59987        .19111       -.16801E-06   -.37128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 51.0168
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.0708
  Prefactor  = 3.20754
  Prefactor  = 0.651902
  Prefactor  = 7.00234
  Prefactor  = 4.16277
  Prefactor  = 0.0001
  Prefactor  = 14.4123
  Prefactor  = 0.0001
  norm       = 0.699731
  Prefactor  = 25.2189
  Prefactor  = 0.0001
  norm       = 6.12989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.47998
  Prefactor  = 0.599866
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.388     FROM HESSE     STATUS=OK           291 CALLS     2294 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.017        38.943        .56149E-04   -1.4278    
   3  Prefactor     .10000E-03    54.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.071        8.5569        .12042E-03   -1.5042    
   6  Prefactor     3.2075        3.6522        .12697E-03   -1.5350    
   7  Prefactor     .65190        2.3028        .17757E-03   -1.5546    
   8  Prefactor     7.0023        6.4034        .15160E-03   -1.5179    
   9  Prefactor     4.1628        13.137        .19759E-03   -1.5300    
  10  Prefactor     .10000E-03    5.0413        .14554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.412        11.304        .10550E-03   -1.4949    
  12  Prefactor     .10000E-03    17.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .69973        1.0015        .48243E-04   -1.5541    
  14  Prefactor     25.219        30.430        .79764E-04   -1.4703    
  15  Prefactor     .10000E-03    1.8797        .89110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1299        8.9338        .81079E-03   -1.5213    
  17  Prefactor     .10000E-03    6.5644        .16620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4800        .24737        .21793E-03   -.78342    
  20  Prefactor     .59987        .21944        .30507E-03   -1.0759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9233e-11
Minuit parameter uncertainties:
  1  0.000354477
  2  38.9623
  3  0.000391922
  4  3.34886e-05
  5  8.55787
  6  3.65242
  7  2.30316
  8  6.40401
  9  13.1465
  10  3.6428e-06
  11  11.3054
  12  3.72567e-05
  13  1.00155
  14  30.4484
  15  3.30105e-07
  16  8.93578
  17  1.44164e-06
  18  7.00795e-05
  19  0.247575
  20  0.219756
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  7.002e+00  6.404e+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:  5.999e-01  2.198e-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.480e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.01e-05

TS (Fixed Index): 2.14
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232923/likelihoodResults_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.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): 0
logL (Free Index) = 4430.33028946
delta logL = 0.0578182868348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4430.32743077
delta logL = 0.0606769785545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8056       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3082       1.0000          .0000       10.000    
     3 'Normalizat'    1.4892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59393       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=   4430.327     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8056        7.2605        .71762E-03   -.17776E-03
   2  Index         2.3082        .77263        .95732E-02   -.28924E-04
   3  Normalizat    1.4892        .23456        .21736E-03    .27595E-04
   4  Prefactor     .59393        .21829        .30640E-03   -.31835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80556
  Index      = 2.30823
  Normalizat = 1.48916
  Prefactor  = 0.593928
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.327     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8056        7.2196        .28705E-04   -1.5149    
   2  Index         2.3082        .76822        .38293E-03   -.56848    
   3  Normalizat    1.4892        .23466        .43472E-04   -.78083    
   4  Prefactor     .59393        .21840        .12256E-04   -1.0784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9658e-11
Minuit parameter uncertainties:
  1  7.22043
  2  0.772539
  3  0.234835
  4  0.218709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232923': 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) = 4430.32743077
delta logL = 0.0606769791784

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  7.806e+00  7.220e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.308e+00  7.725e-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:  5.939e-01  2.187e-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.489e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.31 +/- 0.77
Photon Flux (Free Index): 3.43e-08 +/- 3.82e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.38e-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/232923/cmap_HighResolution_576288001_576547201_4FGL_J1049.8+1429_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='1.28e-05', photon_flux_error='3.81e-08', dlogl='6.07e-02', energy_flux='1.10e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-09-02 17:43:56.247894', photon_index_error2='0.77', photon_index2='2.31', ts='2.14', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.38e-05', EG='1.48', time_epoch_completed='1630629836.25', return_code='0', job_id='232923', GAL2='0.59', EG2='1.49', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='3.82e-08', ts2='2.26', photon_index='2.59' WHERE bin_id='1300' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:43:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 232923: <4FGL_J1049.8+1429_daily_bin1300> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1300> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 17:31:42 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:32:19 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:32:19 2021
Terminated at Thu Sep  2 17:43:56 2021
Results reported at Thu Sep  2 17:43:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1300 162.467 14.4835 576288001 576547201 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 :                                   516.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            734 sec.

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

