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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1032
RA = 162.467, Dec = 14.4835
tmin = 506822401, tmax = 507081601
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='231449', job_status='RUN', time_executed='2021-09-02 17:30:50.312274', time_epoch_executed='1630629050.31' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231449/ft1_4FGL_J1049.8+1429_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231449/ft2_4FGL_J1049.8+1429_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231449/ft1_4FGL_J1049.8+1429_daily_bin1032.fits outfile=/scratch/kocevski/231449/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1032.fits ra=162.467 dec=14.4835 rad=12.0 tmin=506822401.0 tmax=507081601.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.53
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231449/ft2_4FGL_J1049.8+1429_daily_bin1032.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/231449/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/231449/ft1_filtered_4FGL_J1049.8+1429_daily_bin1032.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231449/ft1_filtered_4FGL_J1049.8+1429_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/231449/ft2_4FGL_J1049.8+1429_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/231449/ltcube_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.fits outfile=/scratch/kocevski/231449/expmap_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.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/231449/ltcube_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.fits
.....................!
real 190.35
user 185.62
sys 3.88

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/231449/ft1_filtered_4FGL_J1049.8+1429_daily_bin1032.fits scfile=/scratch/kocevski/231449/ft2_4FGL_J1049.8+1429_daily_bin1032.fits outfile=/scratch/kocevski/231449/cmap_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231449/ft1_filtered_4FGL_J1049.8+1429_daily_bin1032.fits scfile=/scratch/kocevski/231449/ft2_4FGL_J1049.8+1429_daily_bin1032.fits outfile=/scratch/kocevski/231449/cmap_HighResolution_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.467 yref=14.4835 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39732E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.795       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31284       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.085       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11336E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.310       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6852       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15417E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0458       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=   5242.262     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2081 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    451.32        .97514E-02** at limit **
   2  Prefactor     .10000E-03    30.489        .90712E-02** at limit **
   3  Prefactor     .10000E-03    37.699        .90712E-02** at limit **
   4  Prefactor     .10000E-03    11.703        .90712E-02** at limit **
   5  Prefactor     15.795        7.6297        .25194E-02    .10214E-03
   6  Prefactor     11.740        5.1443        .29234E-02    .44241E-03
   7  Prefactor     .10000E-03    .83295        .90712E-02** at limit **
   8  Prefactor     .31892        3.6584        .80429E-01    .81377E-03
   9  Prefactor     13.073        11.239        .27683E-02   -.16193E-02
  10  Prefactor     .10000E-03    7.3797        .90712E-02** at limit **
  11  Prefactor     .67155        7.0765        .58310E-01    .65711E-03
  12  Prefactor     11.322        12.970        .29781E-02   -.36578E-03
  13  norm          1.6854        1.2058        .81098E-02    .31062E-03
  14  Prefactor     29.408        21.767        .18471E-02    .17591E-02
  15  Prefactor     .10000E-03    3.6952        .48681E-01** at limit **
  16  norm          24.323        14.715        .20301E-02   -.19220E-02
  17  Prefactor     .10000E-03    3.3925        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.740        .90712E-02** at limit **
  19  Normalizat    .91386        .19883        .45079E-01    .74937E-05
  20  Prefactor     1.0460        .19003        .40160E-01   -.43228E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100055
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7946
  Prefactor  = 11.7405
  Prefactor  = 0.0001
  Prefactor  = 0.318918
  Prefactor  = 13.0729
  Prefactor  = 0.0001
  Prefactor  = 0.671548
  Prefactor  = 11.3219
  norm       = 1.68542
  Prefactor  = 29.4079
  Prefactor  = 0.0001
  norm       = 24.3226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.913859
  Prefactor  = 1.04603
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.262     FROM HESSE     STATUS=OK           295 CALLS     2376 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    466.38        .39005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.795        7.6461        .10078E-03   -1.4913    
   6  Prefactor     11.740        5.1456        .96844E-04   -1.5023    
   7  Prefactor     .10000E-03    .84386        .64468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31892        32.458        .25842E-02   -1.5595    
   9  Prefactor     13.073        11.235        .11073E-03   -1.4985    
  10  Prefactor     .10000E-03    7.6509        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .67155        16.312        .35630E-02   -1.5544    
  12  Prefactor     11.322        12.899        .11912E-03   -1.5035    
  13  norm          1.6854        1.1949        .64446E-04   -1.5448    
  14  Prefactor     29.408        21.766        .73885E-04   -1.4623    
  15  Prefactor     .10000E-03    15.577        .27065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.323        14.718        .81202E-04   -1.4721    
  17  Prefactor     .10000E-03    3.4002        .13024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91386        .23115        .25481E-03   -.95975    
  20  Prefactor     1.0460        .21990        .24195E-03   -.91210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68994e-08
Minuit parameter uncertainties:
  1  0.0101672
  2  0.000370772
  3  1.9635e-05
  4  7.87453e-05
  5  7.64656
  6  5.14575
  7  4.2682e-07
  8  6.4373
  9  11.2369
  10  2.12037e-06
  11  6.62107
  12  12.9021
  13  1.1949
  14  21.772
  15  6.78346e-05
  16  14.7197
  17  5.09202e-07
  18  4.67109e-05
  19  0.231397
  20  0.220093
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.189e-01  6.437e+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.046e+00  2.201e-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.139e-01  2.314e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231449/likelihoodResults_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.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) = 5241.80417289
delta logL = 0.457680308573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5241.5997102
delta logL = 0.662142996121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55975E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5197       1.0000          .0000       10.000    
     3 'Normalizat'    .84326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0946       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=   5241.600     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55193E-02    .98859E-01    .95213E-03    .97890E-02
   2  Index         7.5285        3.5153        .21750        .82339E-04
   3  Normalizat    .84333        .42338E-01    .44172E-01    .65655E-05
   4  Prefactor     1.0946        .42962E-01    .37794E-01   -.12531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00551925
  Index      = 7.52851
  Normalizat = 0.843327
  Prefactor  = 1.09456
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.600     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      299 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55193E-02    .27851        .52910E-04   -1.5693    
   2  Index         7.5285        8.7473        .80154E-02    .53020    
   3  Normalizat    .84333        .15871        .26417E-03   -.98481    
   4  Prefactor     1.0946        .15863        .23730E-03   -.89641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.05488e-07
Minuit parameter uncertainties:
  1  0.0777004
  2  8.55975
  3  0.158795
  4  0.158697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231449': 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): 102
logL (Free Index) = 5241.59970901
delta logL = 0.662144189597

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  5.519e-03  7.770e-02  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  7.529e+00  8.560e+00  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.095e+00  1.587e-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.433e-01  1.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 162.467 14.483
Photon Index (Free Index): 7.53 +/- 8.56
Photon Flux (Free Index): 4.72e-08 +/- 4.59e-08
Energy Flux (Free Index): 5.54e-06 +/- 5.98e-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/231449/cmap_HighResolution_506822401_507081601_4FGL_J1049.8+1429_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', comment='SUCCESS', energy_flux2='5.54e-06', dlogl='6.62e-01', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-02 17:40:12.881346', photon_index_error2='8.56', photon_index2='7.53', ts='0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.27e-08', energy_flux_error2='5.98e-06', EG='0.91', time_epoch_completed='1630629612.88', return_code='0', job_id='231449', GAL2='1.09', EG2='0.84', return_code2='102', photon_flux_error2='4.59e-08', ts2='1.42', photon_index='2.59' WHERE bin_id='1032' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 231449: <4FGL_J1049.8+1429_daily_bin1032> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1032> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 17:26:20 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:27:28 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:27:28 2021
Terminated at Thu Sep  2 17:40:13 2021
Results reported at Thu Sep  2 17:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1032 162.467 14.4835 506822401 507081601 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 :                                   560.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            833 sec.

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

