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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin981
RA = 162.467, Dec = 14.4835
tmin = 493603201, tmax = 493862401
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='231376', job_status='RUN', time_executed='2021-09-02 17:27:31.361434', time_epoch_executed='1630628851.36' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231376

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231376/ft1_4FGL_J1049.8+1429_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231376/ft2_4FGL_J1049.8+1429_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231376/ft1_4FGL_J1049.8+1429_daily_bin981.fits outfile=/scratch/kocevski/231376/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin981.fits ra=162.467 dec=14.4835 rad=12.0 tmin=493603201.0 tmax=493862401.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 3.57
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231376/ft2_4FGL_J1049.8+1429_daily_bin981.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/231376/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/231376/ft1_filtered_4FGL_J1049.8+1429_daily_bin981.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.74
user 0.33
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231376/ft1_filtered_4FGL_J1049.8+1429_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/231376/ft2_4FGL_J1049.8+1429_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/231376/ltcube_493603201_493862401_4FGL_J1049.8+1429_daily_bin981.fits outfile=/scratch/kocevski/231376/expmap_493603201_493862401_4FGL_J1049.8+1429_daily_bin981.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/231376/ltcube_493603201_493862401_4FGL_J1049.8+1429_daily_bin981.fits
.....................!
real 193.68
user 187.70
sys 5.44

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/231376/ft1_filtered_4FGL_J1049.8+1429_daily_bin981.fits scfile=/scratch/kocevski/231376/ft2_4FGL_J1049.8+1429_daily_bin981.fits outfile=/scratch/kocevski/231376/cmap_493603201_493862401_4FGL_J1049.8+1429_daily_bin981.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231376/ft1_filtered_4FGL_J1049.8+1429_daily_bin981.fits scfile=/scratch/kocevski/231376/ft2_4FGL_J1049.8+1429_daily_bin981.fits outfile=/scratch/kocevski/231376/cmap_HighResolution_493603201_493862401_4FGL_J1049.8+1429_daily_bin981.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11183E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8859       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19368E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    28.865       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12144E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0476       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4983       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=   6127.338     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2090 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.141        63.800        .15085E-02    .11933E-02
   2  Prefactor     .10001E-03    39.878        .90712E-02** at limit **
   3  Prefactor     .10001E-03    26.779        .90712E-02** at limit **
   4  Prefactor     .10001E-03    8.9610        .90712E-02** at limit **
   5  Prefactor     .10000E-03    5.2691        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.4447        .36466E-01** at limit **
   7  Prefactor     2.1801        2.2654        .69704E-02    .34163E-03
   8  Prefactor     21.791        9.1310        .21451E-02   -.22267E-03
   9  Prefactor     .10000E-03    1.9778        .90712E-02** at limit **
  10  Prefactor     .27152        7.8446        .68246E-01    .53560E-03
  11  Prefactor     .10000E-03    4.7267        .90712E-02** at limit **
  12  Prefactor     .10000E-03    13.168        .90712E-02** at limit **
  13  norm          .10022E-03    .63361        .40108E-01** at limit **
  14  Prefactor     6.8866        17.396        .38223E-02    .63415E-04
  15  Prefactor     .10001E-03    3.7555        .55020E-01** at limit **
  16  norm          28.861        13.426        .18643E-02    .22234E-03
  17  Prefactor     .10000E-03    5.0859        .90712E-02** at limit **
  18  Prefactor     .10001E-03    112.38        .90712E-02** at limit **
  19  Normalizat    1.0476        .20522        .64027E-01   -.52538E-03
  20  Prefactor     1.4982        .19782        .56667E-01   -.64411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1407
  Prefactor  = 0.000100009
  Prefactor  = 0.000100011
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18011
  Prefactor  = 21.7909
  Prefactor  = 0.0001
  Prefactor  = 0.271516
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100224
  Prefactor  = 6.88662
  Prefactor  = 0.000100006
  norm       = 28.8613
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 1.04758
  Prefactor  = 1.49822
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.338     FROM HESSE     STATUS=OK           289 CALLS     2379 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.141        63.893        .60341E-04   -1.4378    
   2  Prefactor     .10001E-03    40.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    26.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    8.9622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3179        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6932        .18283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1801        2.2477        .11319E-03   -1.5413    
   8  Prefactor     21.791        9.1386        .85803E-04   -1.4774    
   9  Prefactor     .10000E-03    1.9809        .10751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27152        64.956        .39579E-02   -1.5604    
  11  Prefactor     .10000E-03    4.7385        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10022E-03    11.492        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8866        17.379        .15289E-03   -1.5183    
  15  Prefactor     .10001E-03    17.065        .29474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          28.861        13.412        .74571E-04   -1.4633    
  17  Prefactor     .10000E-03    5.1139        .17239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    115.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0476        .24166        .28321E-03   -.91453    
  20  Prefactor     1.4982        .23437        .25055E-03   -.77590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81355e-08
Minuit parameter uncertainties:
  1  63.9918
  2  0.00121621
  3  0.00106785
  4  0.000625446
  5  1.29817e-05
  6  1.2599e-05
  7  2.24783
  8  9.13918
  9  9.09393e-06
  10  8.40685
  11  9.37413e-06
  12  0.000247308
  13  0.00320796
  14  17.3916
  15  0.000613167
  16  13.4136
  17  2.34602e-05
  18  0.00223301
  19  0.241913
  20  0.234535
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.179e+01  9.139e+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.498e+00  2.345e-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.048e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.20
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 5.43e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.44e-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) = 6127.29544378
delta logL = 0.0424521217074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6127.28901787
delta logL = 0.0488780347969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.383       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4583       1.0000          .0000       10.000    
     3 'Normalizat'    1.0604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6127.289     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      271 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.383        10.942        .82836E-04   -.54916E-03
   2  Index         2.4582        .42699        .59048E-02   -.17298E-03
   3  Normalizat    1.0604        .22957        .28173E-03    .51974E-04
   4  Prefactor     1.4895        .23313        .25114E-03    .74585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.383
  Index      = 2.4582
  Normalizat = 1.06044
  Prefactor  = 1.48946
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.289     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.383        10.801        .16567E-04   -1.4740    
   2  Index         2.4582        .42115        .23619E-03   -.53328    
   3  Normalizat    1.0604        .22970        .11269E-04   -.91032    
   4  Prefactor     1.4895        .23326        .50228E-04   -.77835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15115e-10
Minuit parameter uncertainties:
  1  10.8018
  2  0.421823
  3  0.229916
  4  0.233432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231376': 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) = 6127.28901786
delta logL = 0.0488780452642

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.489e+00  2.334e-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.060e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.25
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.46 +/- 0.42
Photon Flux (Free Index): 1.20e-07 +/- 6.03e-08
Energy Flux (Free Index): 3.66e-05 +/- 1.77e-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/231376/cmap_HighResolution_493603201_493862401_4FGL_J1049.8+1429_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.66e-05', photon_flux_error='5.43e-08', dlogl='4.89e-02', energy_flux='3.43e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-02 17:36:56.409836', photon_index_error2='0.42', photon_index2='2.46', ts='10.20', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.05', time_epoch_completed='1630629416.41', return_code='0', job_id='231376', GAL2='1.49', EG2='1.06', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.03e-08', ts2='10.25', photon_index='2.59' WHERE bin_id='981' 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 <scs@bullet0146>
Subject: Job 231376: <4FGL_J1049.8+1429_daily_bin981> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin981> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 17:26:16 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:27:16 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:16 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_bin981 162.467 14.4835 493603201 493862401 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 :                                   563.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            641 sec.

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

