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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin622
RA = 162.467, Dec = 14.4835
tmin = 400550401, tmax = 400809601
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='229877', job_status='RUN', time_executed='2021-09-02 17:23:40.960696', time_epoch_executed='1630628620.96' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229877/ft1_4FGL_J1049.8+1429_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229877/ft2_4FGL_J1049.8+1429_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229877/ft1_4FGL_J1049.8+1429_daily_bin622.fits outfile=/scratch/kocevski/229877/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin622.fits ra=162.467 dec=14.4835 rad=12.0 tmin=400550401.0 tmax=400809601.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 4.41
user 4.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229877/ft1_filtered_4FGL_J1049.8+1429_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/229877/ft2_4FGL_J1049.8+1429_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/229877/ltcube_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.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/229877/ft2_4FGL_J1049.8+1429_daily_bin622.fits
.....................!
real 14.22
user 13.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229877/ft1_filtered_4FGL_J1049.8+1429_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/229877/ft2_4FGL_J1049.8+1429_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/229877/ltcube_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.fits outfile=/scratch/kocevski/229877/expmap_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.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/229877/ltcube_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.fits
.....................!
real 192.63
user 186.78
sys 4.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/229877/ft1_filtered_4FGL_J1049.8+1429_daily_bin622.fits scfile=/scratch/kocevski/229877/ft2_4FGL_J1049.8+1429_daily_bin622.fits outfile=/scratch/kocevski/229877/cmap_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229877/ft1_filtered_4FGL_J1049.8+1429_daily_bin622.fits scfile=/scratch/kocevski/229877/ft2_4FGL_J1049.8+1429_daily_bin622.fits outfile=/scratch/kocevski/229877/cmap_HighResolution_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13863E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15126E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0617       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26478E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5610       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.431       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3076       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25960       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8301       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.535       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96473       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2221       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=   5625.628     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     2498 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.666        .18142E-02** at limit **
   2  Prefactor     .10000E-03    125.70        .18142E-02** at limit **
   3  Prefactor     .10000E-03    53.313        .18142E-02** at limit **
   4  Prefactor     4.0168        23.489        .20006E-03   -.19378E-04
   5  Prefactor     .10000E-03    2.5940        .11764E-02** at limit **
   6  Prefactor     6.3353        3.9345        .11084E-03   -.24124E-03
   7  Prefactor     1.4946        2.2646        .13316E-03   -.86056E-04
   8  Prefactor     1.4004        10.223        .36620E-03   -.64294E-04
   9  Prefactor     .10007E-03    6.6145        .56515E-01** at limit **
  10  Prefactor     1.5567        15.749        .34056E-03   -.19128E-04
  11  Prefactor     14.437        11.887        .10544E-03    .91651E-05
  12  Prefactor     .10000E-03    9.3422        .18142E-02** at limit **
  13  norm          1.3096        1.5203        .94494E-04   -.15544E-03
  14  Prefactor     .35679E-03    32.160        .93047E-01** at limit **
  15  Prefactor     .10000E-03    3.0987        .12877E-02** at limit **
  16  norm          .10000E-03    5.8834        .17738E-02** at limit **
  17  Prefactor     1.8243        30.674        .30851E-03   -.86598E-05
  18  Prefactor     13.435        36.485        .10887E-03   -.26941E-04
  19  Normalizat    .96442        .23683        .26445E-03   -.19978E-03
  20  Prefactor     1.2229        .21612        .23721E-03    .15576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 4.01676
  Prefactor  = 0.0001
  Prefactor  = 6.33528
  Prefactor  = 1.49458
  Prefactor  = 1.40044
  Prefactor  = 0.000100068
  Prefactor  = 1.55671
  Prefactor  = 14.4367
  Prefactor  = 0.0001
  norm       = 1.30956
  Prefactor  = 0.000356794
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.82433
  Prefactor  = 13.4354
  Normalizat = 0.964421
  Prefactor  = 1.22286
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.628     FROM HESSE     STATUS=OK           291 CALLS     2789 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    125.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0168        23.489        .80025E-05   -1.5307    
   5  Prefactor     .10000E-03    2.5942        .23528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3353        3.9344        .44337E-05   -1.5205    
   7  Prefactor     1.4946        2.2642        .53266E-05   -1.5463    
   8  Prefactor     1.4004        10.206        .14648E-04   -1.5471    
   9  Prefactor     .10007E-03    6.5635        .56852E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5567        15.694        .13622E-04   -1.5458    
  11  Prefactor     14.437        11.874        .42175E-05   -1.4948    
  12  Prefactor     .10000E-03    9.3430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3096        1.5201        .37798E-05   -1.5479    
  14  Prefactor     .35679E-03    27.691        .10178       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0988        .25753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.8841        .35476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8243        30.639        .12340E-04   -1.5438    
  18  Prefactor     13.435        36.479        .43549E-05   -1.4975    
  19  Normalizat    .96442        .23682        .10578E-04   -.94232    
  20  Prefactor     1.2229        .21628        .94884E-05   -.85631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62794e-10
Minuit parameter uncertainties:
  1  7.71495e-05
  2  0.000976843
  3  0.000360815
  4  19.4381
  5  1.03354e-05
  6  3.93457
  7  2.26435
  8  7.56266
  9  0.00133812
  10  9.88868
  11  11.8764
  12  4.0164e-05
  13  1.52013
  14  0.168731
  15  1.29428e-05
  16  1.29933e-05
  17  14.9612
  18  36.5397
  19  0.237073
  20  0.216437
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.400e+00  7.563e+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.223e+00  2.164e-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.644e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229877/likelihoodResults_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.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) = 5623.65754036
delta logL = 1.9706127957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5623.6150687
delta logL = 2.01308446259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12399E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5238       1.0000          .0000       10.000    
     3 'Normalizat'    .84082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3061       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=   5623.615     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      352 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12219E-01    .13276        .90849E-03    .60633E-02
   2  Index         7.5328        3.2588        .13998        .10578E-03
   3  Normalizat    .84098        .60759E-01    .63492E-01    .16265E-04
   4  Prefactor     1.3061        .60731E-01    .52163E-01    .72900E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.012219
  Index      = 7.53284
  Normalizat = 0.840979
  Prefactor  = 1.30612
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.615     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      385 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12219E-01    .24073        .49522E-05   -1.5686    
   2  Index         7.5328        7.8999        .58231E-02    .53120    
   3  Normalizat    .84098        .19365        .28085E-03   -.98566    
   4  Prefactor     1.3061        .18976        .23062E-03   -.83125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69056e-10
Minuit parameter uncertainties:
  1  0.108027
  2  5.35976
  3  0.193812
  4  0.189861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229877': 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) = 5623.61506548
delta logL = 2.01308767857

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.222e-02  1.080e-01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  7.533e+00  5.360e+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.306e+00  1.899e-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.410e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 162.467 14.483
Photon Index (Free Index): 7.53 +/- 5.36
Photon Flux (Free Index): 1.05e-07 +/- 6.74e-08
Energy Flux (Free Index): 1.24e-05 +/- 8.77e-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/229877/cmap_HighResolution_400550401_400809601_4FGL_J1049.8+1429_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.72e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='2.01e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-02 17:33:52.059926', photon_index_error2='5.36', photon_index2='7.53', ts='0.04', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='8.77e-06', EG='0.96', time_epoch_completed='1630629232.06', return_code='0', job_id='229877', GAL2='1.31', EG2='0.84', return_code2='102', photon_flux_error2='6.74e-08', ts2='4.39', photon_index='2.59' WHERE bin_id='622' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:33:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 229877: <4FGL_J1049.8+1429_daily_bin622> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin622 162.467 14.4835 400550401 400809601 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            728 sec.

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

