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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin696
RA = 162.467, Dec = 14.4835
tmin = 419731201, tmax = 419990401
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='229996', job_status='RUN', time_executed='2021-09-02 17:24:09.402742', time_epoch_executed='1630628649.4' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229996/ft1_4FGL_J1049.8+1429_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229996/ft2_4FGL_J1049.8+1429_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229996/ft1_4FGL_J1049.8+1429_daily_bin696.fits outfile=/scratch/kocevski/229996/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin696.fits ra=162.467 dec=14.4835 rad=12.0 tmin=419731201.0 tmax=419990401.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.73
user 4.63
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229996/ft1_filtered_4FGL_J1049.8+1429_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/229996/ft2_4FGL_J1049.8+1429_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/229996/ltcube_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.fits outfile=/scratch/kocevski/229996/expmap_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.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/229996/ltcube_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.fits
.....................!
real 155.85
user 152.03
sys 3.42

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/229996/ft1_filtered_4FGL_J1049.8+1429_daily_bin696.fits scfile=/scratch/kocevski/229996/ft2_4FGL_J1049.8+1429_daily_bin696.fits outfile=/scratch/kocevski/229996/cmap_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.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.50
user 0.35
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229996/ft1_filtered_4FGL_J1049.8+1429_daily_bin696.fits scfile=/scratch/kocevski/229996/ft2_4FGL_J1049.8+1429_daily_bin696.fits outfile=/scratch/kocevski/229996/cmap_HighResolution_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.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.51
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.716       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25144E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20700E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5835       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.532       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94115       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96005       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=   3593.211     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     2689 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.724        53.168        .71149E-04   -.38077E-04
   2  Prefactor     23.484        29.166        .82671E-04   -.62213E-04
   3  Prefactor     .10000E-03    27.437        .18142E-02** at limit **
   4  Prefactor     .10000E-03    9.5285        .18073E-02** at limit **
   5  Prefactor     3.8073        9.2482        .20645E-03   -.15939E-03
   6  Prefactor     .10000E-03    3.6457        .17004E-02** at limit **
   7  Prefactor     2.5247        2.5070        .88693E-04   -.40319E-03
   8  Prefactor     3.5246        6.6821        .20298E-03   -.14114E-04
   9  Prefactor     14.374        9.7789        .10564E-03   -.16175E-03
  10  Prefactor     .10000E-03    50.500        .28229E-02** at limit **
  11  Prefactor     .10001E-03    24.372        .56154E-01** at limit **
  12  Prefactor     .10000E-03    5.3835        .13573E-02** at limit **
  13  norm          1.1887        1.1876        .64025E-04   -.15093E-04
  14  Prefactor     .10000E-03    20.874        .18142E-02** at limit **
  15  Prefactor     .10000E-03    2.4399        .91417E-03** at limit **
  16  norm          9.5851        13.836        .64725E-03    .31906E-04
  17  Prefactor     .10000E-03    16.262        .18142E-02** at limit **
  18  Prefactor     42.535        49.303        .61469E-04   -.19697E-04
  19  Normalizat    .94112        .25159        .23505E-03   -.24766E-03
  20  Prefactor     .96011        .23441        .23403E-03   -.40334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7239
  Prefactor  = 23.4842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80732
  Prefactor  = 0.0001
  Prefactor  = 2.52469
  Prefactor  = 3.52463
  Prefactor  = 14.3737
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 1.18867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.58511
  Prefactor  = 0.0001
  Prefactor  = 42.5347
  Normalizat = 0.94112
  Prefactor  = 0.960108
 **********
 **   18 **HESSE 
 **********

 FCN=   3593.211     FROM HESSE     STATUS=OK           281 CALLS     2970 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.724        53.165        .14230E-04   -1.4581    
   2  Prefactor     23.484        29.165        .16534E-04   -1.4738    
   3  Prefactor     .10000E-03    27.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5286        .36145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8073        9.2454        .82579E-05   -1.5318    
   6  Prefactor     .10000E-03    3.6538        .34009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5247        2.5064        .35477E-05   -1.5390    
   8  Prefactor     3.5246        6.6813        .81191E-05   -1.5332    
   9  Prefactor     14.374        9.7783        .42257E-05   -1.4950    
  10  Prefactor     .10000E-03    50.781        .56458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    17.331        .68975E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3836        .27146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1887        1.1875        .25610E-05   -1.5490    
  14  Prefactor     .10000E-03    20.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4400        .18283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5851        13.833        .25890E-04   -1.5089    
  17  Prefactor     .10000E-03    16.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.535        49.294        .24588E-05   -1.4403    
  19  Normalizat    .94112        .25155        .47011E-04   -.95030    
  20  Prefactor     .96011        .23456        .46806E-04   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56843e-10
Minuit parameter uncertainties:
  1  53.2442
  2  29.1828
  3  8.55338e-05
  4  6.97744e-06
  5  9.24888
  6  1.66411e-05
  7  2.50647
  8  6.68267
  9  9.77939
  10  2.64637e-05
  11  0.000697291
  12  4.94913e-06
  13  1.18757
  14  0.000152434
  15  2.43522e-06
  16  13.8381
  17  0.000167452
  18  49.3409
  19  0.251861
  20  0.234805
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.525e+00  6.683e+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:  9.601e-01  2.348e-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:  9.411e-01  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229996/likelihoodResults_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.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) = 3590.53230941
delta logL = 2.6790058662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3589.32988398
delta logL = 3.88143129331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48417E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    .35668E-05   1.0000          .0000       10.000    
     3 'Normalizat'    .92709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98159       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=   3589.330     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      248 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48467E-01    .65984E-01    .29207E-02   -.50825E-02
   2  Index         .64337E-12    .41855        .32153    ** at limit **
   3  Normalizat    .92689        .19869        .45247E-01    .83141E-04
   4  Prefactor     .98188        .20130        .46037E-01   -.53107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0484674
  Index      = 6.43374e-13
  Normalizat = 0.926886
  Prefactor  = 0.981882
 **********
 **   18 **HESSE 
 **********

 FCN=   3589.330     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48467E-01    .48958E-01    .12148E-03   -1.5664    
   2  Index         .64337E-12    .59362        .16685E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92689        .22851        .23606E-03   -.95522    
   4  Prefactor     .98188        .23154        .23181E-03   -.93336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88269e-10
Minuit parameter uncertainties:
  1  0.0489584
  2  1.24875e-06
  3  0.228752
  4  0.231774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229996': 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) = 3589.32987962
delta logL = 3.88143565067

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.847e-02  4.896e-02  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  6.434e-13  1.249e-06  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:  9.819e-01  2.318e-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:  9.269e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.13
Ra Dec: 162.467 14.483
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.84e-09 +/- 4.89e-09
Energy Flux (Free Index): 2.43e-04 +/- 2.45e-04

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/229996/cmap_HighResolution_419731201_419990401_4FGL_J1049.8+1429_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', comment='SUCCESS', energy_flux2='2.43e-04', dlogl='3.88e+00', photon_flux2='4.84e-09', job_status='DONE', time_completed='2021-09-02 17:31:16.221172', photon_index_error2='0.00', photon_index2='0.00', ts='0.35', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='2.45e-04', EG='0.94', time_epoch_completed='1630629076.22', return_code='0', job_id='229996', GAL2='0.98', EG2='0.93', return_code2='0', photon_flux_error2='4.89e-09', ts2='8.13', photon_index='2.59' WHERE bin_id='696' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:31:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 229996: <4FGL_J1049.8+1429_daily_bin696> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin696> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 17:21:55 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:23:56 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:23:56 2021
Terminated at Thu Sep  2 17:31:16 2021
Results reported at Thu Sep  2 17:31:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin696 162.467 14.4835 419731201 419990401 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 :                                   425.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   440 sec.
    Turnaround time :                            561 sec.

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

