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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1611
RA = 162.467, Dec = 14.4835
tmin = 656899201, tmax = 657158401
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='299941', job_status='RUN', time_executed='2021-12-07 21:17:04.327762', time_epoch_executed='1638940624.33' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299941/ft1_4FGL_J1049.8+1429_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299941/ft2_4FGL_J1049.8+1429_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299941/ft1_4FGL_J1049.8+1429_daily_bin1611.fits outfile=/scratch/kocevski/299941/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1611.fits ra=162.467 dec=14.4835 rad=12.0 tmin=656899201.0 tmax=657158401.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.54
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299941/ft2_4FGL_J1049.8+1429_daily_bin1611.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/299941/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/299941/ft1_filtered_4FGL_J1049.8+1429_daily_bin1611.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299941/ft1_filtered_4FGL_J1049.8+1429_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/299941/ft2_4FGL_J1049.8+1429_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/299941/ltcube_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.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/299941/ft2_4FGL_J1049.8+1429_daily_bin1611.fits
.....................!
real 13.92
user 13.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299941/ft1_filtered_4FGL_J1049.8+1429_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/299941/ft2_4FGL_J1049.8+1429_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/299941/ltcube_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.fits outfile=/scratch/kocevski/299941/expmap_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.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/299941/ltcube_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.fits
.....................!
real 192.22
user 185.55
sys 5.84

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/299941/ft1_filtered_4FGL_J1049.8+1429_daily_bin1611.fits scfile=/scratch/kocevski/299941/ft2_4FGL_J1049.8+1429_daily_bin1611.fits outfile=/scratch/kocevski/299941/cmap_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.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.36
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4727       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.811       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.924       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1184       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.765       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4796       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76719       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=   6170.164     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2398 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5582        129.72       -.15221E-04   -.99389E-05
   2  Prefactor     .10000E-03    19.965       -.11857E-06** at limit **
   3  Prefactor     21.681        87.957        .11554E-04    .76645E-05
   4  Prefactor     .10000E-03    14.331       -.22849E-05** at limit **
   5  Prefactor     3.2061        7.2406        .56131E-06   -.41942E-04
   6  Prefactor     .10000E-03    1.8312       -.18240E-06** at limit **
   7  Prefactor     .60599        1.4625        .32294E-06    .39261E-03
   8  Prefactor     .10000E-03    4.9254       -.16495E-06** at limit **
   9  Prefactor     8.8224        8.3678        .17712E-06    .75584E-05
  10  Prefactor     15.922        8.9042        .70441E-07   -.81769E-04
  11  Prefactor     .10000E-03    6.9818       -.85952E-07** at limit **
  12  Prefactor     .10000E-03    7.2499       -.98986E-07** at limit **
  13  norm          1.5023        1.1204        .35648E-07   -.19647E-05
  14  Prefactor     .10000E-03    18.571       -.12423E-06** at limit **
  15  Prefactor     .10000E-03    4.7465       -.16253E-06** at limit **
  16  norm          11.079        10.213        .11569E-06   -.77763E-05
  17  Prefactor     2.1133        17.749        .18312E-05   -.14072E-05
  18  Prefactor     11.789        45.667        .37046E-06   -.10555E-05
  19  Normalizat    1.4798        .20263       -.18133E-05    .10837E-03
  20  Prefactor     .76699        .18219        .22281E-05   -.79428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.5582
  Prefactor  = 0.0001
  Prefactor  = 21.6811
  Prefactor  = 0.0001
  Prefactor  = 3.20609
  Prefactor  = 0.0001
  Prefactor  = 0.605992
  Prefactor  = 0.0001
  Prefactor  = 8.82235
  Prefactor  = 15.9216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0793
  Prefactor  = 2.11327
  Prefactor  = 11.7893
  Normalizat = 1.47976
  Prefactor  = 0.766989
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.164     FROM HESSE     STATUS=OK           295 CALLS     2693 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5582        131.47        .14671E-03   -1.5158    
   2  Prefactor     .10000E-03    20.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.681        88.992        .85765E-04   -1.4776    
   4  Prefactor     .10000E-03    14.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2061        7.1138        .22626E-03   -1.5350    
   6  Prefactor     .10000E-03    1.8578        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .60599        1.2279        .14104E-02   -1.5552    
   8  Prefactor     .10000E-03    5.0219        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8224        8.3620        .13492E-03   -1.5114    
  10  Prefactor     15.922        8.8983        .10037E-03   -1.4910    
  11  Prefactor     .10000E-03    7.0091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5023        1.1212        .69009E-04   -1.5463    
  14  Prefactor     .10000E-03    18.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8262        .16704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.079        10.201        .12034E-03   -1.5042    
  17  Prefactor     2.1133        17.762        .28338E-03   -1.5417    
  18  Prefactor     11.789        45.664        .11679E-03   -1.5021    
  19  Normalizat    1.4798        .23278        .22515E-03   -.78349    
  20  Prefactor     .76699        .20766        .28819E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84189e-10
Minuit parameter uncertainties:
  1  63.2074
  2  5.96685e-07
  3  88.0779
  4  3.69931e-05
  5  7.11572
  6  2.43744e-08
  7  1.22792
  8  4.75706e-06
  9  8.36313
  10  8.89902
  11  2.65278e-06
  12  3.02413e-06
  13  1.1212
  14  3.14134e-06
  15  4.70199e-06
  16  10.2023
  17  12.2579
  18  45.8002
  19  0.232949
  20  0.207875
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  4.757e-06  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:  7.670e-01  2.079e-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.480e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/299941/likelihoodResults_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.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): 102
logL (Free Index) = 6170.16512954
delta logL = -0.000948661769144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6170.16418254
delta logL = -1.65938035934e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6201       1.0000          .0000       10.000    
     3 'Normalizat'    1.4794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76734       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=   6170.164     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.8957        .35058E-03** at limit **
   2  Index         2.6483        6.3229        .50000       -.49843E-04
   3  Normalizat    1.4798        .21189        .22515E-03   -.29703E-03
   4  Prefactor     .76699        .20357        .28819E-03   -.18628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.64832
  Normalizat = 1.47976
  Prefactor  = 0.766992
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.164     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.3727        .70116E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6483        6.3163        .50000       -.48967    
   3  Normalizat    1.4798        .21206        .45030E-04   -.78349    
   4  Prefactor     .76699        .20374        .11528E-04   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80154e-09
Minuit parameter uncertainties:
  1  0.00054198
  2  4.42153
  3  0.212191
  4  0.203938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299941': 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) = 6170.16418026
delta logL = 6.23334926786e-07

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  5.420e-04  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.648e+00  4.422e+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.670e-01  2.039e-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.480e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/299941/cmap_HighResolution_656899201_657158401_4FGL_J1049.8+1429_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-12-07 21:27:23.600196', job_id='299941', GAL2='0.77', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1638941243.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='6.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1611' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:27:23 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 299941: <4FGL_J1049.8+1429_daily_bin1611> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1611> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 21:15:19 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:16:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:16:57 2021
Terminated at Tue Dec  7 21:27:24 2021
Results reported at Tue Dec  7 21:27:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1611 162.467 14.4835 656899201 657158401 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 :                                   617.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            725 sec.

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

