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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1089
RA = 162.467, Dec = 14.4835
tmin = 521596801, tmax = 521856001
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='231535', job_status='RUN', time_executed='2021-09-02 17:27:54.441343', time_epoch_executed='1630628874.44' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231535/ft1_4FGL_J1049.8+1429_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231535/ft2_4FGL_J1049.8+1429_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231535/ft1_4FGL_J1049.8+1429_daily_bin1089.fits outfile=/scratch/kocevski/231535/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1089.fits ra=162.467 dec=14.4835 rad=12.0 tmin=521596801.0 tmax=521856001.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.52
user 4.15
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231535/ft1_filtered_4FGL_J1049.8+1429_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/231535/ft2_4FGL_J1049.8+1429_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/231535/ltcube_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.fits outfile=/scratch/kocevski/231535/expmap_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.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/231535/ltcube_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.fits
.....................!
real 192.36
user 186.73
sys 4.87

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/231535/ft1_filtered_4FGL_J1049.8+1429_daily_bin1089.fits scfile=/scratch/kocevski/231535/ft2_4FGL_J1049.8+1429_daily_bin1089.fits outfile=/scratch/kocevski/231535/cmap_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231535/ft1_filtered_4FGL_J1049.8+1429_daily_bin1089.fits scfile=/scratch/kocevski/231535/ft2_4FGL_J1049.8+1429_daily_bin1089.fits outfile=/scratch/kocevski/231535/cmap_HighResolution_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.27       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13858E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.9726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1789       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95779       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=   4797.418     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2021 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.25        77.272       -.22182E-05   -.15040E-03
   2  Prefactor     .10000E-03    16.284        .10242E-05** at limit **
   3  Prefactor     .10002E-03    43.357       -.70202E-05** at limit **
   4  Prefactor     .10000E-03    14.558       -.23692E-05** at limit **
   5  Prefactor     .10000E-03    2.9947       -.32135E-07** at limit **
   6  Prefactor     .10000E-03    1.9424        .11098E-09** at limit **
   7  Prefactor     .45992        1.3222        .44623E-06    .22621E-03
   8  Prefactor     5.7636        7.9837        .33878E-05   -.90230E-03
   9  Prefactor     4.3251        8.6598        .25433E-06   -.71707E-04
  10  Prefactor     11.002        10.629       -.61680E-06   -.25718E-03
  11  Prefactor     .10000E-03    7.3873       -.10068E-06** at limit **
  12  Prefactor     .10000E-03    6.2366       -.52343E-07** at limit **
  13  norm          4.2396        1.9214       -.11884E-06   -.17039E-03
  14  Prefactor     .10001E-03    38.657        .67804E-05** at limit **
  15  Prefactor     .10000E-03    5.4974        .61989E-06** at limit **
  16  norm          6.9742        12.688        .12136E-06   -.33272E-04
  17  Prefactor     14.922        12.450       -.28234E-07   -.89064E-04
  18  Prefactor     .10000E-03    11.650        .76919E-06** at limit **
  19  Normalizat    1.1786        .21599       -.19938E-06   -.12828E-03
  20  Prefactor     .95792        .19809       -.38234E-06   -.96160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.254
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.459918
  Prefactor  = 5.76359
  Prefactor  = 4.32507
  Prefactor  = 11.0018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.23959
  Prefactor  = 0.000100014
  Prefactor  = 0.000100003
  norm       = 6.97416
  Prefactor  = 14.9224
  Prefactor  = 0.0001
  Normalizat = 1.17862
  Prefactor  = 0.957922
 **********
 **   18 **HESSE 
 **********

 FCN=   4797.418     FROM HESSE     STATUS=OK           291 CALLS     2312 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.25        77.920        .38653E-04   -1.3623    
   2  Prefactor     .10000E-03    16.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    46.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0081        .11701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9869        .94205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .45992        1.1287        .13164E-02   -1.5572    
   8  Prefactor     5.7636        8.6204        .83668E-03   -1.5228    
   9  Prefactor     4.3251        8.6563        .19366E-03   -1.5292    
  10  Prefactor     11.002        10.742        .12084E-03   -1.5044    
  11  Prefactor     .10000E-03    7.4072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2437        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2396        1.9229        .61236E-04   -1.5296    
  14  Prefactor     .10001E-03    41.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.054        .31127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.9742        12.684        .15193E-03   -1.5180    
  17  Prefactor     14.922        12.380        .10369E-03   -1.4935    
  18  Prefactor     .10000E-03    11.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1786        .25819        .24584E-03   -.87266    
  20  Prefactor     .95792        .23472        .26024E-03   -.94146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41667e-09
Minuit parameter uncertainties:
  1  77.994
  2  0.000173141
  3  0.00197328
  4  0.000365844
  5  7.70135e-07
  6  9.23129e-07
  7  1.1287
  8  8.62223
  9  8.65881
  10  10.7435
  11  5.35734e-06
  12  2.85026e-06
  13  1.92291
  14  0.00153041
  15  0.000432715
  16  12.6893
  17  12.3822
  18  0.000110813
  19  0.258472
  20  0.234965
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  5.764e+00  8.622e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.579e-01  2.350e-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.179e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231535/likelihoodResults_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.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) = 4796.84025685
delta logL = 0.577444175055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4796.83804859
delta logL = 0.579652438159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9932       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8424       1.0000          .0000       10.000    
     3 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99979       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=   4796.838     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      272 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9904        48.940        .58659E-02    .39467E-03
   2  Index         3.8444        3.8617        .18025        .76998E-04
   3  Normalizat    1.1113        .61747E-01    .56972E-01    .43843E-05
   4  Prefactor     1.0001        .59109E-01    .46265E-01    .45508E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99039
  Index      = 3.8444
  Normalizat = 1.1113
  Prefactor  = 1.00007
 **********
 **   18 **HESSE 
 **********

 FCN=   4796.838     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9904        8.4743        .94196E-04   -1.5362    
   2  Index         3.8444        1.9753        .61636E-02   -.23323    
   3  Normalizat    1.1113        .25237        .25194E-03   -.89390    
   4  Prefactor     1.0001        .23780        .25532E-03   -.92727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66879e-08
Minuit parameter uncertainties:
  1  8.47769
  2  2.03408
  3  0.252642
  4  0.238046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231535': 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) = 4796.83804313
delta logL = 0.579657901611

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.990e+00  8.478e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  3.844e+00  2.034e+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.000e+00  2.380e-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.111e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 162.467 14.483
Photon Index (Free Index): 3.84 +/- 2.03
Photon Flux (Free Index): 8.99e-08 +/- 7.83e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.23e-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/231535/cmap_HighResolution_521596801_521856001_4FGL_J1049.8+1429_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='5.80e-01', photon_flux2='8.99e-08', job_status='DONE', time_completed='2021-09-02 17:36:56.454944', photon_index_error2='2.03', photon_index2='3.84', ts='0.56', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.23e-05', EG='1.18', time_epoch_completed='1630629416.46', return_code='0', job_id='231535', GAL2='1.00', EG2='1.11', return_code2='0', photon_flux_error2='7.83e-08', ts2='1.83', photon_index='2.59' WHERE bin_id='1089' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:36:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 231535: <4FGL_J1049.8+1429_daily_bin1089> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1089 162.467 14.4835 521596801 521856001 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 :                                   539.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            631 sec.

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

