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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1023
RA = 162.467, Dec = 14.4835
tmin = 504489601, tmax = 504748801
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='231437', job_status='RUN', time_executed='2021-09-02 17:30:54.773814', time_epoch_executed='1630629054.77' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231437

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231437/ft1_4FGL_J1049.8+1429_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231437/ft2_4FGL_J1049.8+1429_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231437/ft1_4FGL_J1049.8+1429_daily_bin1023.fits outfile=/scratch/kocevski/231437/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1023.fits ra=162.467 dec=14.4835 rad=12.0 tmin=504489601.0 tmax=504748801.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.51
user 4.25
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231437/ft1_filtered_4FGL_J1049.8+1429_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/231437/ft2_4FGL_J1049.8+1429_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/231437/ltcube_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.fits outfile=/scratch/kocevski/231437/expmap_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.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/231437/ltcube_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.fits
.....................!
real 192.10
user 186.34
sys 5.26

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/231437/ft1_filtered_4FGL_J1049.8+1429_daily_bin1023.fits scfile=/scratch/kocevski/231437/ft2_4FGL_J1049.8+1429_daily_bin1023.fits outfile=/scratch/kocevski/231437/cmap_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231437/ft1_filtered_4FGL_J1049.8+1429_daily_bin1023.fits scfile=/scratch/kocevski/231437/ft2_4FGL_J1049.8+1429_daily_bin1023.fits outfile=/scratch/kocevski/231437/cmap_HighResolution_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42129E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8694       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25168       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3802       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2809       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17153E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.301       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84541       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2749       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=   5949.402     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2076 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.350        .90712E-02** at limit **
   2  Prefactor     .10001E-03    39.320        .90712E-02** at limit **
   3  Prefactor     52.767        47.680        .13805E-02    .98006E-03
   4  Prefactor     .10001E-03    18.600        .10620E-01** at limit **
   5  Prefactor     1.8263        14.586        .77197E-02    .85683E-03
   6  Prefactor     11.992        4.3853        .28917E-02    .81742E-03
   7  Prefactor     2.0824        3.1418        .71510E-02    .28031E-03
   8  Prefactor     1.8676        6.6069        .76160E-02    .93109E-03
   9  Prefactor     .23372        4.9594        .54222E-01    .13446E-02
  10  Prefactor     13.976        11.843        .26765E-02   -.48004E-03
  11  Prefactor     .10001E-03    14.218        .90712E-02** at limit **
  12  Prefactor     2.3790        23.795        .66380E-02   -.19515E-03
  13  norm          1.2805        1.0678        .98040E-02   -.59788E-03
  14  Prefactor     .10001E-03    12.655        .10181    ** at limit **
  15  Prefactor     .10000E-03    2.4917        .90712E-02** at limit **
  16  norm          8.2770        8.4565        .34835E-02    .11430E-03
  17  Prefactor     .10000E-03    22.525        .90712E-02** at limit **
  18  Prefactor     46.137        51.563        .14731E-02    .14060E-03
  19  Normalizat    .84616        .20421        .65626E-01   -.14036E-03
  20  Prefactor     1.2742        .18237        .53521E-01   -.77867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 52.7671
  Prefactor  = 0.000100013
  Prefactor  = 1.8263
  Prefactor  = 11.9925
  Prefactor  = 2.08245
  Prefactor  = 1.86759
  Prefactor  = 0.233722
  Prefactor  = 13.9764
  Prefactor  = 0.000100006
  Prefactor  = 2.37901
  norm       = 1.28048
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  norm       = 8.27702
  Prefactor  = 0.000100001
  Prefactor  = 46.1368
  Normalizat = 0.846155
  Prefactor  = 1.27425
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.402     FROM HESSE     STATUS=OK           295 CALLS     2371 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    39.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.767        47.529        .55219E-04   -1.4254    
   4  Prefactor     .10001E-03    18.664        .21240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8263        13.726        .30879E-03   -1.5438    
   6  Prefactor     11.992        4.3577        .91333E-04   -1.5015    
   7  Prefactor     2.0824        3.0430        .14635E-03   -1.5419    
   8  Prefactor     1.8676        6.5805        .30464E-03   -1.5435    
   9  Prefactor     .23372        22.363        .32477E-02   -1.5611    
  10  Prefactor     13.976        11.719        .10706E-03   -1.4960    
  11  Prefactor     .10001E-03    14.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3790        23.380        .26552E-03   -1.5399    
  13  norm          1.2805        1.0720        .69794E-04   -1.5482    
  14  Prefactor     .10001E-03    67.190        .52631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4963        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2770        8.4501        .13934E-03   -1.5132    
  17  Prefactor     .10000E-03    22.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.137        51.716        .58925E-04   -1.4348    
  19  Normalizat    .84616        .24161        .29031E-03   -.98379    
  20  Prefactor     1.2742        .21806        .23663E-03   -.84076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59401e-08
Minuit parameter uncertainties:
  1  0.000256306
  2  0.00146617
  3  47.5635
  4  0.000978865
  5  10.0166
  6  4.35778
  7  3.04321
  8  6.58301
  9  4.57314
  10  11.7211
  11  0.000564947
  12  14.9232
  13  1.07197
  14  0.00118343
  15  8.22312e-05
  16  8.45131
  17  0.000231491
  18  51.7663
  19  0.241921
  20  0.218214
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.868e+00  6.583e+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.274e+00  2.182e-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.462e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/231437/likelihoodResults_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.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) = 5949.34789398
delta logL = 0.0536883952736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5949.34276373
delta logL = 0.0588186513896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4107       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4275       1.0000          .0000       10.000    
     3 'Normalizat'    .82948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2847       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=   5949.343     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      240 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4092        50.608        .91191E-02    .84730E-03
   2  Index         3.4278        2.8938        .40740        .13227E-04
   3  Normalizat    .82943        .26674E-01    .66233E-01    .21791E-04
   4  Prefactor     1.2847        .26217E-01    .53337E-01    .13441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40919
  Index      = 3.4278
  Normalizat = 0.829433
  Prefactor  = 1.2847
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.343     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4092        8.6299        .19800E-03   -1.5471    
   2  Index         3.4278        3.3276        .91151E-02   -.31987    
   3  Normalizat    .82943        .22904        .29301E-03   -.98986    
   4  Prefactor     1.2847        .21937        .23582E-03   -.83763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18696e-09
Minuit parameter uncertainties:
  1  6.97582
  2  3.6875
  3  0.229306
  4  0.219526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231437': 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) = 5949.3427636
delta logL = 0.0588187742669

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.409e+00  6.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  3.428e+00  3.688e+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.285e+00  2.195e-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.294e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 162.467 14.483

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/231437/cmap_HighResolution_504489601_504748801_4FGL_J1049.8+1429_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-02 17:40:43.229944', job_id='231437', GAL2='1.28', fit_tolerance='1e-08', EG2='0.83', EG='0.85', time_epoch_completed='1630629643.23', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='5.88e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1023' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 231437: <4FGL_J1049.8+1429_daily_bin1023> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1023 162.467 14.4835 504489601 504748801 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 :                                   586.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            864 sec.

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

