/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7417
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1049.8+1429_daily_bin140
RA = 162.467, Dec = 14.4835
tmin = 275616001, tmax = 275875201
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='219885', job_status='RUN', time_executed='2021-09-02 16:54:36.465920', time_epoch_executed='1630626876.47' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219885/ft1_4FGL_J1049.8+1429_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219885/ft2_4FGL_J1049.8+1429_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219885/ft1_4FGL_J1049.8+1429_daily_bin140.fits outfile=/scratch/kocevski/219885/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin140.fits ra=162.467 dec=14.4835 rad=12.0 tmin=275616001.0 tmax=275875201.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.27
user 3.96
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219885/ft1_filtered_4FGL_J1049.8+1429_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/219885/ft2_4FGL_J1049.8+1429_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/219885/ltcube_275616001_275875201_4FGL_J1049.8+1429_daily_bin140.fits outfile=/scratch/kocevski/219885/expmap_275616001_275875201_4FGL_J1049.8+1429_daily_bin140.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/219885/ltcube_275616001_275875201_4FGL_J1049.8+1429_daily_bin140.fits
.....................!
real 192.14
user 186.55
sys 5.17

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/219885/ft1_filtered_4FGL_J1049.8+1429_daily_bin140.fits scfile=/scratch/kocevski/219885/ft2_4FGL_J1049.8+1429_daily_bin140.fits outfile=/scratch/kocevski/219885/cmap_275616001_275875201_4FGL_J1049.8+1429_daily_bin140.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219885/ft1_filtered_4FGL_J1049.8+1429_daily_bin140.fits scfile=/scratch/kocevski/219885/ft2_4FGL_J1049.8+1429_daily_bin140.fits outfile=/scratch/kocevski/219885/cmap_HighResolution_275616001_275875201_4FGL_J1049.8+1429_daily_bin140.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.133       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25541E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1287       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .23183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.925       1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0196       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.001       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2791       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86216       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=   5604.515     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2043 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.131        49.727       -.11533E-06   -.20350E-04
   2  Prefactor     .10000E-03    67.818       -.30467E-06** at limit **
   3  Prefactor     44.419        70.904        .43588E-05   -.28379E-04
   4  Prefactor     .10000E-03    46.739        .66922E-06** at limit **
   5  Prefactor     .10000E-03    3.4529       -.30686E-07** at limit **
   6  Prefactor     .10000E-03    2.2632        .49559E-07** at limit **
   7  Prefactor     4.1292        3.1771        .13026E-06   -.68477E-04
   8  Prefactor     12.192        7.9666       -.38684E-07   -.56178E-04
   9  Prefactor     2.8304        7.2627        .81665E-06    .35390E-04
  10  Prefactor     .10000E-03    2.0799       -.73360E-08** at limit **
  11  Prefactor     4.8149        5.3342       -.34989E-07    .66656E-05
  12  Prefactor     .10000E-03    3.1636       -.44881E-09** at limit **
  13  norm          .23206        1.1139        .94856E-06   -.16021E-03
  14  Prefactor     .10000E-03    21.392       -.79929E-07** at limit **
  15  Prefactor     11.926        7.7953        .41565E-07    .53448E-04
  16  norm          .10000E-03    5.4760        .27959E-07** at limit **
  17  Prefactor     5.0214        12.244        .39065E-06   -.19779E-04
  18  Prefactor     44.007        53.661        .39142E-06    .19102E-04
  19  Normalizat    1.2790        .20094       -.72905E-06   -.67585E-04
  20  Prefactor     .86211        .17920        .35374E-07   -.96730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1313
  Prefactor  = 0.0001
  Prefactor  = 44.4189
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1292
  Prefactor  = 12.1921
  Prefactor  = 2.83042
  Prefactor  = 0.0001
  Prefactor  = 4.81494
  Prefactor  = 0.0001
  norm       = 0.232057
  Prefactor  = 0.0001
  Prefactor  = 11.9259
  norm       = 0.0001
  Prefactor  = 5.02139
  Prefactor  = 44.007
  Normalizat = 1.27901
  Prefactor  = 0.862112
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.515     FROM HESSE     STATUS=OK           291 CALLS     2334 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.131        49.733        .74228E-04   -1.4628    
   2  Prefactor     .10000E-03    68.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.419        70.415        .60155E-04   -1.4374    
   4  Prefactor     .10000E-03    46.698        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4674        .13580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3088        .10979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1292        3.1788        .11121E-03   -1.5302    
   8  Prefactor     12.192        7.9818        .11473E-03   -1.5009    
   9  Prefactor     2.8304        7.2479        .24175E-03   -1.5371    
  10  Prefactor     .10000E-03    2.0815        .10543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8149        5.3352        .17721E-03   -1.5269    
  12  Prefactor     .10000E-03    3.1644        .13004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23206        1.1188        .15056E-03   -1.5612    
  14  Prefactor     .10000E-03    21.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.926        7.7909        .11600E-03   -1.5017    
  16  norm          .10000E-03    5.4976        .17106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0214        12.257        .17948E-03   -1.5260    
  18  Prefactor     44.007        53.816        .60439E-04   -1.4380    
  19  Normalizat    1.2790        .23526        .24210E-03   -.84195    
  20  Prefactor     .86211        .20919        .26909E-03   -.97478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04137e-11
Minuit parameter uncertainties:
  1  49.8042
  2  0.00012697
  3  70.5468
  4  0.00044573
  5  1.00706e-06
  6  4.32761e-06
  7  3.17895
  8  7.9825
  9  7.25019
  10  1.75129e-07
  11  5.3357
  12  3.77372e-07
  13  1.01886
  14  2.18756e-05
  15  7.7916
  16  2.86279e-06
  17  12.2628
  18  53.8755
  19  0.235457
  20  0.209384
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.219e+01  7.983e+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:  8.621e-01  2.094e-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:  1.279e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.26e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.25e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5604.41569761
delta logL = 0.0996793349987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5604.41166883
delta logL = 0.103708110754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.053       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2445       1.0000          .0000       10.000    
     3 'Normalizat'    1.3031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84380       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5604.412     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      303 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.064        9.4719        .53422E-03    .25401E-04
   2  Index         2.2454        .67852        .93170E-02   -.45614E-04
   3  Normalizat    1.3031        .22816        .24017E-03    .23668E-06
   4  Prefactor     .84378        .21100        .27161E-03   -.33486E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0637
  Index      = 2.24535
  Normalizat = 1.30306
  Prefactor  = 0.843777
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.412     FROM HESSE     STATUS=OK            27 CALLS      330 TOTAL
                     EDM=   .96E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.064        9.4095        .10684E-03   -1.4958    
   2  Index         2.2454        .67380        .18634E-02   -.58348    
   3  Normalizat    1.3031        .22826        .96067E-05   -.83475    
   4  Prefactor     .84378        .21108        .10864E-04   -.98134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61347e-14
Minuit parameter uncertainties:
  1  9.41051
  2  0.676759
  3  0.22844
  4  0.211288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219885': 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) = 5604.41166696
delta logL = 0.103709981268

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.406e+01  9.411e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.245e+00  6.768e-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:  8.438e-01  2.113e-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:  1.303e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.94
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.25 +/- 0.68
Photon Flux (Free Index): 5.82e-08 +/- 4.88e-08
Energy Flux (Free Index): 2.41e-05 +/- 2.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/219885/cmap_HighResolution_275616001_275875201_4FGL_J1049.8+1429_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.26e-08', energy_flux2='2.41e-05', photon_flux_error='4.75e-08', dlogl='1.04e-01', energy_flux='1.92e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-02 17:03:27.031380', photon_index_error2='0.68', photon_index2='2.25', ts='4.75', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='1.28', time_epoch_completed='1630627407.03', return_code='0', job_id='219885', GAL2='0.84', EG2='1.30', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.88e-08', ts2='4.94', photon_index='2.59' WHERE bin_id='140' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:03:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 219885: <4FGL_J1049.8+1429_daily_bin140> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin140> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 16:51:26 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:54:27 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:54:27 2021
Terminated at Thu Sep  2 17:03:27 2021
Results reported at Thu Sep  2 17:03:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin140 162.467 14.4835 275616001 275875201 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            721 sec.

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

