/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 161 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 = 7630
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1049.8+1429_daily_bin97
RA = 162.467, Dec = 14.4835
tmin = 264470401, tmax = 264729601
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='219816', job_status='RUN', time_executed='2021-09-02 16:56:14.303871', time_epoch_executed='1630626974.3' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='97'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219816/ft1_4FGL_J1049.8+1429_daily_bin97.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219816/ft2_4FGL_J1049.8+1429_daily_bin97.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219816/ft1_4FGL_J1049.8+1429_daily_bin97.fits outfile=/scratch/kocevski/219816/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin97.fits ra=162.467 dec=14.4835 rad=12.0 tmin=264470401.0 tmax=264729601.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 1.56
user 1.39
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219816/ft2_4FGL_J1049.8+1429_daily_bin97.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/219816/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin97.fits evtable="EVENTS" outfile="/scratch/kocevski/219816/ft1_filtered_4FGL_J1049.8+1429_daily_bin97.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.55
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219816/ft1_filtered_4FGL_J1049.8+1429_daily_bin97.fits" evtable="EVENTS" scfile=/scratch/kocevski/219816/ft2_4FGL_J1049.8+1429_daily_bin97.fits sctable="SC_DATA" outfile=/scratch/kocevski/219816/ltcube_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.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/219816/ft2_4FGL_J1049.8+1429_daily_bin97.fits
.....................!
real 16.96
user 16.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219816/ft1_filtered_4FGL_J1049.8+1429_daily_bin97.fits evtable="EVENTS" scfile=/scratch/kocevski/219816/ft2_4FGL_J1049.8+1429_daily_bin97.fits sctable="SC_DATA" expcube=/scratch/kocevski/219816/ltcube_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.fits outfile=/scratch/kocevski/219816/expmap_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.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/219816/ltcube_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.fits
.....................!
real 193.05
user 188.32
sys 3.97

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/219816/ft1_filtered_4FGL_J1049.8+1429_daily_bin97.fits scfile=/scratch/kocevski/219816/ft2_4FGL_J1049.8+1429_daily_bin97.fits outfile=/scratch/kocevski/219816/cmap_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.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 1.38
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219816/ft1_filtered_4FGL_J1049.8+1429_daily_bin97.fits scfile=/scratch/kocevski/219816/ft2_4FGL_J1049.8+1429_daily_bin97.fits outfile=/scratch/kocevski/219816/cmap_HighResolution_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.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 2.08
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2923       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6592       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .64142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7794       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6792       1.0000         .10000E-03   10000.    
    16 'norm      '    12.104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86570       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1793       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=   7557.944     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2060 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.00        .20280E-06** at limit **
   2  Prefactor     2.2849        134.64       -.12958E-04   -.95028E-05
   3  Prefactor     25.645        47.659        .14518E-04    .64186E-04
   4  Prefactor     .10001E-03    21.201       -.11488E-05** at limit **
   5  Prefactor     8.4584        6.3842        .71681E-07   -.23734E-04
   6  Prefactor     5.1481        2.9429       -.47512E-07   -.56991E-04
   7  Prefactor     1.9172        1.6608        .45163E-07   -.34323E-04
   8  Prefactor     4.6591        4.2494        .22382E-06   -.17668E-02
   9  Prefactor     .10000E-03    7.2007        .18062E-06** at limit **
  10  Prefactor     .59374        4.4437       -.46767E-07   -.18719E-03
  11  Prefactor     .10000E-03    3.0308       -.78083E-07** at limit **
  12  Prefactor     2.8193        10.172        .88924E-06   -.62945E-03
  13  norm          .10000E-03    .37872       -.12028E-06** at limit **
  14  Prefactor     .10000E-03    8.2221        .20141E-06** at limit **
  15  Prefactor     9.6785        5.8133        .31541E-06    .18236E-04
  16  norm          12.102        9.1273        .75973E-06    .60820E-04
  17  Prefactor     .10000E-03    8.7992        .29301E-06** at limit **
  18  Prefactor     .10000E-03    43.205       -.12096E-05** at limit **
  19  Normalizat    .86581        .16177        .47174E-06    .40659E-04
  20  Prefactor     1.1793        .15319       -.58493E-06    .12149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 2.28486
  Prefactor  = 25.6454
  Prefactor  = 0.000100006
  Prefactor  = 8.45841
  Prefactor  = 5.14806
  Prefactor  = 1.91718
  Prefactor  = 4.65906
  Prefactor  = 0.0001
  Prefactor  = 0.593735
  Prefactor  = 0.0001
  Prefactor  = 2.81927
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.6785
  norm       = 12.1024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.865809
  Prefactor  = 1.17928
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.944     FROM HESSE     STATUS=OK           295 CALLS     2355 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2849        135.82        .27110E-03   -1.5406    
   3  Prefactor     25.645        47.694        .79124E-04   -1.4695    
   4  Prefactor     .10001E-03    21.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4584        6.3914        .13788E-03   -1.5126    
   6  Prefactor     5.1481        2.9420        .10736E-03   -1.5254    
   7  Prefactor     1.9172        1.6625        .99070E-04   -1.5431    
   8  Prefactor     4.6591        5.2561        .93223E-03   -1.5276    
   9  Prefactor     .10000E-03    7.3267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .59374        30.144        .30768E-02   -1.5554    
  11  Prefactor     .10000E-03    3.0351        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8193        19.062        .12204E-02   -1.5372    
  13  norm          .10000E-03    .67063        .10287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6785        5.8137        .12881E-03   -1.5086    
  16  norm          12.102        9.1290        .11514E-03   -1.5012    
  17  Prefactor     .10000E-03    8.9050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86581        .19116        .26116E-03   -.97672    
  20  Prefactor     1.1793        .18039        .22820E-03   -.86971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7418e-09
Minuit parameter uncertainties:
  1  0.00108367
  2  35.3162
  3  47.7645
  4  0.000723951
  5  6.39192
  6  2.94213
  7  1.66251
  8  5.2566
  9  5.63927e-06
  10  8.46487
  11  1.84903e-06
  12  14.6681
  13  2.44727e-06
  14  7.49079e-08
  15  5.814
  16  9.13006
  17  1.0012e-05
  18  7.32919e-05
  19  0.191311
  20  0.180488
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.659e+00  5.257e+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.179e+00  1.805e-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.658e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 7.32e-06 +/- 8.26e-06

TS (Fixed Index): 1.03
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219816/likelihoodResults_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.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) = 7557.73135121
delta logL = 0.212598427942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7557.67999399
delta logL = 0.263955649203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6178       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0212       1.0000          .0000       10.000    
     3 'Normalizat'    .88229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1636       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=   7557.680     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      264 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6170        6.4223        .15599E-03   -.24051E-05
   2  Index         2.0211        .62699        .98761E-02   -.15597E-03
   3  Normalizat    .88232        .17812        .25889E-03    .58844E-05
   4  Prefactor     1.1635        .17906        .22941E-03   -.41032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.61701
  Index      = 2.02111
  Normalizat = 0.88232
  Prefactor  = 1.16355
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.680     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6170        6.4319        .62396E-05   -1.5193    
   2  Index         2.0211        .62805        .19752E-02   -.63823    
   3  Normalizat    .88232        .17827        .10356E-04   -.97084    
   4  Prefactor     1.1635        .17920        .91764E-05   -.87460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1089e-12
Minuit parameter uncertainties:
  1  6.43253
  2  0.630636
  3  0.178392
  4  0.17929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219816': 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) = 7557.67999397
delta logL = 0.263955672391

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  6.617e+00  6.433e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.021e+00  6.306e-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.164e+00  1.793e-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.823e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.02 +/- 0.63
Photon Flux (Free Index): 2.25e-08 +/- 2.51e-08
Energy Flux (Free Index): 1.48e-05 +/- 2.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/219816/cmap_HighResolution_264470401_264729601_4FGL_J1049.8+1429_daily_bin97.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.48e-05', photon_flux_error='3.13e-08', dlogl='2.64e-01', energy_flux='7.32e-06', photon_flux2='2.25e-08', job_status='DONE', time_completed='2021-09-02 17:07:20.268044', photon_index_error2='0.63', photon_index2='2.02', ts='1.03', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='9.62e-08', energy_flux_error2='2.01e-05', EG='0.87', time_epoch_completed='1630627640.27', return_code='0', job_id='219816', GAL2='1.16', EG2='0.88', return_code2='0', energy_flux_error='8.26e-06', photon_flux_error2='2.51e-08', ts2='1.55', photon_index='2.59' WHERE bin_id='97' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:07:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 219816: <4FGL_J1049.8+1429_daily_bin97> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin97> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 16:51:21 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:53:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 16:53:23 2021
Terminated at Thu Sep  2 17:07:21 2021
Results reported at Thu Sep  2 17:07:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin97 162.467 14.4835 264470401 264729601 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 :                                   654.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            960 sec.

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

