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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1424
RA = 162.467, Dec = 14.4835
tmin = 608428801, tmax = 608688001
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='233097', job_status='RUN', time_executed='2021-09-02 17:37:16.060426', time_epoch_executed='1630629436.06' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233097/ft1_4FGL_J1049.8+1429_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233097/ft2_4FGL_J1049.8+1429_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233097/ft1_4FGL_J1049.8+1429_daily_bin1424.fits outfile=/scratch/kocevski/233097/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1424.fits ra=162.467 dec=14.4835 rad=12.0 tmin=608428801.0 tmax=608688001.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 5.00
user 4.74
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233097/ft1_filtered_4FGL_J1049.8+1429_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/233097/ft2_4FGL_J1049.8+1429_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/233097/ltcube_608428801_608688001_4FGL_J1049.8+1429_daily_bin1424.fits outfile=/scratch/kocevski/233097/expmap_608428801_608688001_4FGL_J1049.8+1429_daily_bin1424.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/233097/ltcube_608428801_608688001_4FGL_J1049.8+1429_daily_bin1424.fits
.....................!
real 192.09
user 186.63
sys 4.75

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/233097/ft1_filtered_4FGL_J1049.8+1429_daily_bin1424.fits scfile=/scratch/kocevski/233097/ft2_4FGL_J1049.8+1429_daily_bin1424.fits outfile=/scratch/kocevski/233097/cmap_608428801_608688001_4FGL_J1049.8+1429_daily_bin1424.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=162.467 yref=14.4835 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15800E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9691       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4736       1.0000         .10000E-03   10000.    
    13 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.4136       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2992       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69734       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=   5025.942     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2155 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.283        73.865       -.31821E-06    .27574E-04
   2  Prefactor     1.1637        125.34       -.12577E-04   -.20875E-04
   3  Prefactor     .10001E-03    67.191        .42062E-05** at limit **
   4  Prefactor     7.9817        28.483        .48197E-06    .73910E-05
   5  Prefactor     .41187        9.0698        .33612E-05    .47724E-03
   6  Prefactor     .17059E-03    4.4807       -.19292E-05** at limit **
   7  Prefactor     .77637        1.8511        .23610E-06    .64297E-04
   8  Prefactor     5.5914        9.1778        .43957E-06   -.65442E-04
   9  Prefactor     .10000E-03    5.2836        .11942E-06** at limit **
  10  Prefactor     .10000E-03    3.2273       -.75022E-07** at limit **
  11  Prefactor     3.1907        7.5165        .33473E-06    .16343E-04
  12  Prefactor     8.4777        13.319        .60928E-06   -.70042E-05
  13  norm          .10000E-03    1.1410        .17522E-06** at limit **
  14  Prefactor     11.433        17.573       -.18688E-06   -.44044E-04
  15  Prefactor     .10000E-03    6.0414       -.74907E-07** at limit **
  16  norm          9.4158        12.447       -.48038E-07   -.11979E-03
  17  Prefactor     36.927        17.657        .28291E-06   -.41825E-04
  18  Prefactor     .10000E-03    104.73       -.21207E-05** at limit **
  19  Normalizat    1.2987        .20341       -.29144E-05   -.28717E-03
  20  Prefactor     .69762        .18039        .15832E-05   -.28561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.2833
  Prefactor  = 1.16371
  Prefactor  = 0.000100005
  Prefactor  = 7.98166
  Prefactor  = 0.411865
  Prefactor  = 0.000170592
  Prefactor  = 0.776371
  Prefactor  = 5.5914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19074
  Prefactor  = 8.47773
  norm       = 0.0001
  Prefactor  = 11.4325
  Prefactor  = 0.0001
  norm       = 9.41578
  Prefactor  = 36.9267
  Prefactor  = 0.000100001
  Normalizat = 1.2987
  Prefactor  = 0.69762
 **********
 **   18 **HESSE 
 **********

 FCN=   5025.942     FROM HESSE     STATUS=OK           313 CALLS     2468 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.283        74.224        .22830E-03   -1.3947    
   2  Prefactor     1.1637        128.50        .21162E-02   -1.5492    
   3  Prefactor     .10001E-03    67.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9817        28.431        .14203E-03   -1.5143    
   5  Prefactor     .41187        4.2413        .46444E-01   -1.5580    
   6  Prefactor     .17059E-03    5.7521        .33250E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .77637        1.7941        .14004E-03   -1.5532    
   8  Prefactor     5.5914        9.2006        .17001E-03   -1.5235    
   9  Prefactor     .10000E-03    5.3067        .15914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2368        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1907        7.4742        .22693E-03   -1.5351    
  12  Prefactor     8.4777        13.317        .13771E-03   -1.5126    
  13  norm          .10000E-03    2.3669        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.433        17.568        .59245E-03   -1.5032    
  15  Prefactor     .10000E-03    6.0903        .16997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.4158        12.442        .13062E-03   -1.5094    
  17  Prefactor     36.927        17.726        .65955E-04   -1.4492    
  18  Prefactor     .10000E-03    106.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2987        .23716        .22237E-03   -.83605    
  20  Prefactor     .69762        .20601        .27745E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68345e-09
Minuit parameter uncertainties:
  1  74.3132
  2  24.5101
  3  0.00119357
  4  28.4794
  5  2.6433
  6  0.0403053
  7  1.7942
  8  9.20297
  9  2.18205e-05
  10  4.22938e-06
  11  7.47643
  12  13.3219
  13  4.39082e-05
  14  17.5759
  15  1.15135e-06
  16  12.4455
  17  17.7284
  18  0.000706559
  19  0.237356
  20  0.206234
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  5.591e+00  9.203e+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:  6.976e-01  2.062e-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.299e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/233097/likelihoodResults_608428801_608688001_4FGL_J1049.8+1429_daily_bin1424.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) = 5025.25304906
delta logL = 0.688451038759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5025.23547576
delta logL = 0.70602434612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8543       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1915       1.0000          .0000       10.000    
     3 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74378       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=   5025.235     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      250 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8425        26.602        .76529E-02    .51069E-03
   2  Index         4.1955        3.6614        .16703        .89637E-04
   3  Normalizat    1.2268        .54053E-01    .51503E-01    .31753E-05
   4  Prefactor     .74345        .51178E-01    .42981E-01    .14788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84253
  Index      = 4.19552
  Normalizat = 1.22677
  Prefactor  = 0.74345
 **********
 **   18 **HESSE 
 **********

 FCN=   5025.235     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8425        56.599        .73133E-04   -1.5436    
   2  Index         4.1955        7.0799        .59221E-02   -.16160    
   3  Normalizat    1.2268        .21933        .22771E-03   -.85779    
   4  Prefactor     .74345        .20619        .26936E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.61366e-10
Minuit parameter uncertainties:
  1  20.4446
  2  7.54511
  3  0.219496
  4  0.206403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233097': 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) = 5025.23547129
delta logL = 0.706028810537

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.843e+00  2.044e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  4.196e+00  7.545e+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:  7.435e-01  2.064e-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.227e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 162.467 14.483
Photon Index (Free Index): 4.20 +/- 7.55
Photon Flux (Free Index): 9.14e-08 +/- 7.72e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.99e-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/233097/cmap_HighResolution_608428801_608688001_4FGL_J1049.8+1429_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='7.06e-01', photon_flux2='9.14e-08', job_status='DONE', time_completed='2021-09-02 17:46:35.292092', photon_index_error2='7.55', photon_index2='4.20', ts='0.45', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.99e-05', EG='1.30', time_epoch_completed='1630629995.29', return_code='0', job_id='233097', GAL2='0.74', EG2='1.23', return_code2='102', photon_flux_error2='7.72e-08', ts2='1.99', photon_index='2.59' WHERE bin_id='1424' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 233097: <4FGL_J1049.8+1429_daily_bin1424> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1424> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 17:31:54 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:34:14 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:34:14 2021
Terminated at Thu Sep  2 17:46:35 2021
Results reported at Thu Sep  2 17:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1424 162.467 14.4835 608428801 608688001 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 :                                   556.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            881 sec.

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

