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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1543
RA = 162.467, Dec = 14.4835
tmin = 639273601, tmax = 639532801
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='233258', job_status='RUN', time_executed='2021-09-02 17:36:02.548515', time_epoch_executed='1630629362.55' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233258/ft1_4FGL_J1049.8+1429_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233258/ft2_4FGL_J1049.8+1429_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233258/ft1_4FGL_J1049.8+1429_daily_bin1543.fits outfile=/scratch/kocevski/233258/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1543.fits ra=162.467 dec=14.4835 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.32
user 5.05
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233258/ft1_filtered_4FGL_J1049.8+1429_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/233258/ft2_4FGL_J1049.8+1429_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/233258/ltcube_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.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/233258/ft2_4FGL_J1049.8+1429_daily_bin1543.fits
.....................!
real 16.63
user 16.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233258/ft1_filtered_4FGL_J1049.8+1429_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/233258/ft2_4FGL_J1049.8+1429_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/233258/ltcube_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.fits outfile=/scratch/kocevski/233258/expmap_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.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/233258/ltcube_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.fits
.....................!
real 192.33
user 187.69
sys 4.20

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/233258/ft1_filtered_4FGL_J1049.8+1429_daily_bin1543.fits scfile=/scratch/kocevski/233258/ft2_4FGL_J1049.8+1429_daily_bin1543.fits outfile=/scratch/kocevski/233258/cmap_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233258/ft1_filtered_4FGL_J1049.8+1429_daily_bin1543.fits scfile=/scratch/kocevski/233258/ft2_4FGL_J1049.8+1429_daily_bin1543.fits outfile=/scratch/kocevski/233258/cmap_HighResolution_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.185       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19788E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2028       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71752       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.567       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.125       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .54807       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5658       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=   5498.959     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2563 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.224        73.411        .41007E-05    .55869E-04
   2  Prefactor     .10000E-03    82.559       -.21593E-05** at limit **
   3  Prefactor     15.854        90.692       -.53955E-05    .87008E-05
   4  Prefactor     .10001E-03    71.811       -.14716E-04** at limit **
   5  Prefactor     12.850        8.6472       -.39445E-06   -.17024E-03
   6  Prefactor     2.2023        3.0466        .14698E-06   -.24531E-04
   7  Prefactor     .71689        2.5345        .14262E-05    .22361E-04
   8  Prefactor     21.586        8.9674        .27768E-06    .44488E-04
   9  Prefactor     .82604        5.2412        .21453E-05   -.13867E-04
  10  Prefactor     14.526        9.6106        .39050E-06    .20200E-04
  11  Prefactor     .10000E-03    7.1088        .66277E-06** at limit **
  12  Prefactor     .10000E-03    7.3180       -.59661E-07** at limit **
  13  norm          .10000E-03    .78998        .64919E-07** at limit **
  14  Prefactor     12.565        13.390       -.72058E-07   -.26547E-04
  15  Prefactor     .10000E-03    8.2435        .22314E-06** at limit **
  16  norm          .10000E-03    7.0479        .23569E-06** at limit **
  17  Prefactor     .10000E-03    4.7744        .18975E-07** at limit **
  18  Prefactor     22.128        34.538        .63891E-06    .72172E-06
  19  Normalizat    .54808        .20282       -.25097E-05   -.42101E-04
  20  Prefactor     1.5657        .19650        .69184E-06   -.11821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2243
  Prefactor  = 0.0001
  Prefactor  = 15.8536
  Prefactor  = 0.000100005
  Prefactor  = 12.8503
  Prefactor  = 2.2023
  Prefactor  = 0.716886
  Prefactor  = 21.586
  Prefactor  = 0.82604
  Prefactor  = 14.5265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.565
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1278
  Normalizat = 0.548081
  Prefactor  = 1.56568
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.959     FROM HESSE     STATUS=OK           293 CALLS     2856 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.224        73.894        .65724E-04   -1.4487    
   2  Prefactor     .10000E-03    84.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.854        91.904        .10034E-03   -1.4911    
   4  Prefactor     .10001E-03    70.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.850        8.5418        .11175E-03   -1.4991    
   6  Prefactor     2.2023        3.0247        .14526E-03   -1.5411    
   7  Prefactor     .71689        2.4893        .19863E-03   -1.5539    
   8  Prefactor     21.586        8.9703        .86211E-04   -1.4778    
   9  Prefactor     .82604        5.2500        .32971E-03   -1.5526    
  10  Prefactor     14.526        9.5824        .10510E-03   -1.4946    
  11  Prefactor     .10000E-03    7.1392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4788        .12718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.565        13.384        .11299E-03   -1.4999    
  15  Prefactor     .10000E-03    8.3897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7861        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.128        34.542        .85156E-04   -1.4767    
  19  Normalizat    .54808        .22733        .33045E-03   -1.1024    
  20  Prefactor     1.5657        .22373        .21660E-03   -.75716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58059e-10
Minuit parameter uncertainties:
  1  74.0766
  2  0.000159281
  3  76.5196
  4  0.00119
  5  8.5426
  6  3.02494
  7  2.48967
  8  8.97088
  9  4.16524
  10  9.58344
  11  1.16283e-05
  12  2.56596e-05
  13  1.65449e-06
  14  13.3875
  15  2.2403e-05
  16  1.57841e-05
  17  4.3625e-06
  18  34.5732
  19  0.227718
  20  0.223868
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.159e+01  8.971e+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.566e+00  2.239e-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:  5.481e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.61
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 5.33e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 1.41e-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) = 5498.90121542
delta logL = 0.0576063208264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5498.89770165
delta logL = 0.0611200860394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.348       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7467       1.0000          .0000       10.000    
     3 'Normalizat'    .53505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5753       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=   5498.898     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      243 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.360        131.82        .22764E-02    .43984E-04
   2  Index         2.7473        3.5267        .11889        .82107E-04
   3  Normalizat    .53466        .12524        .75508E-01    .33378E-04
   4  Prefactor     1.5756        .11532        .48875E-01   -.35426E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3599
  Index      = 2.74726
  Normalizat = 0.534655
  Prefactor  = 1.57557
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.898     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.360        10.888        .91055E-04   -1.4828    
   2  Index         2.7473        .47105        .48904E-02   -.46738    
   3  Normalizat    .53466        .21485        .33432E-03   -1.1084    
   4  Prefactor     1.5756        .22250        .21604E-03   -.75445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20594e-09
Minuit parameter uncertainties:
  1  10.8893
  2  0.471926
  3  0.215183
  4  0.222636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233258': 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) = 5498.89769675
delta logL = 0.0611249857939

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.936e+01  1.089e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.747e+00  4.719e-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.576e+00  2.226e-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:  5.347e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.74
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.75 +/- 0.47
Photon Flux (Free Index): 1.38e-07 +/- 6.06e-08
Energy Flux (Free Index): 3.20e-05 +/- 1.41e-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/233258/cmap_HighResolution_639273601_639532801_4FGL_J1049.8+1429_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.20e-05', photon_flux_error='5.33e-08', dlogl='6.11e-02', energy_flux='3.39e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-02 17:45:36.132595', photon_index_error2='0.47', photon_index2='2.75', ts='11.61', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.55', time_epoch_completed='1630629936.13', return_code='0', job_id='233258', GAL2='1.58', EG2='0.53', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.06e-08', ts2='11.74', photon_index='2.59' WHERE bin_id='1543' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 233258: <4FGL_J1049.8+1429_daily_bin1543> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1543> 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) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:35:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:35:54 2021
Terminated at Thu Sep  2 17:45:36 2021
Results reported at Thu Sep  2 17:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1543 162.467 14.4835 639273601 639532801 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 :                                   571.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            809 sec.

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

