/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7248
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1049.8+1429_daily_bin465
RA = 162.467, Dec = 14.4835
tmin = 359856001, tmax = 360115201
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='223035', job_status='RUN', time_executed='2021-09-02 17:02:58.435476', time_epoch_executed='1630627378.44' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223035

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223035/ft1_4FGL_J1049.8+1429_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223035/ft2_4FGL_J1049.8+1429_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223035/ft1_4FGL_J1049.8+1429_daily_bin465.fits outfile=/scratch/kocevski/223035/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin465.fits ra=162.467 dec=14.4835 rad=12.0 tmin=359856001.0 tmax=360115201.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.25
user 3.03
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223035/ft1_filtered_4FGL_J1049.8+1429_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/223035/ft2_4FGL_J1049.8+1429_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/223035/ltcube_359856001_360115201_4FGL_J1049.8+1429_daily_bin465.fits outfile=/scratch/kocevski/223035/expmap_359856001_360115201_4FGL_J1049.8+1429_daily_bin465.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/223035/ltcube_359856001_360115201_4FGL_J1049.8+1429_daily_bin465.fits
.....................!
real 191.77
user 186.79
sys 4.60

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/223035/ft1_filtered_4FGL_J1049.8+1429_daily_bin465.fits scfile=/scratch/kocevski/223035/ft2_4FGL_J1049.8+1429_daily_bin465.fits outfile=/scratch/kocevski/223035/cmap_359856001_360115201_4FGL_J1049.8+1429_daily_bin465.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.62       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7899       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.952       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2965       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2255       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2008       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0166       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1630       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=   5564.844     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1995 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.61        81.533        .97824E-03    .11093E-02
   2  Prefactor     .10000E-03    13.265        .90712E-02** at limit **
   3  Prefactor     .10000E-03    28.322        .90712E-02** at limit **
   4  Prefactor     .10000E-03    8.8814        .90712E-02** at limit **
   5  Prefactor     14.169        7.9271        .26603E-02    .11099E-03
   6  Prefactor     5.7900        3.9909        .41728E-02   -.19305E-02
   7  Prefactor     .10000E-03    1.4456        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.0931        .90712E-02** at limit **
   9  Prefactor     13.952        9.8657        .26808E-02   -.31099E-03
  10  Prefactor     .10000E-03    2.1135        .90712E-02** at limit **
  11  Prefactor     2.2975        6.2052        .67688E-02    .55988E-03
  12  Prefactor     3.2968        7.1925        .55748E-02    .22399E-03
  13  norm          1.2256        1.0228        .10170E-01    .38813E-04
  14  Prefactor     13.578        23.167        .27176E-02    .36426E-03
  15  Prefactor     .10000E-03    4.0656        .90712E-02** at limit **
  16  norm          12.909        10.201        .27872E-02    .58128E-04
  17  Prefactor     14.150        12.550        .26622E-02   -.16295E-03
  18  Prefactor     9.2016        34.571        .33032E-02   -.46929E-03
  19  Normalizat    1.0164        .19928        .43901E-01    .10433E-04
  20  Prefactor     1.1631        .19276        .56587E-01    .40528E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1686
  Prefactor  = 5.78997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9521
  Prefactor  = 0.0001
  Prefactor  = 2.29754
  Prefactor  = 3.29676
  norm       = 1.2256
  Prefactor  = 13.5775
  Prefactor  = 0.0001
  norm       = 12.9089
  Prefactor  = 14.1505
  Prefactor  = 9.20156
  Normalizat = 1.01645
  Prefactor  = 1.16313
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.844     FROM HESSE     STATUS=OK           293 CALLS     2288 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.61        81.739        .39130E-04   -1.3649    
   2  Prefactor     .10000E-03    13.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.169        7.9472        .10641E-03   -1.4955    
   6  Prefactor     5.7900        3.9867        .11708E-03   -1.5227    
   7  Prefactor     .10000E-03    1.4904        .17478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1786        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.952        9.8593        .10723E-03   -1.4961    
  10  Prefactor     .10000E-03    2.1183        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2975        6.1723        .27075E-03   -1.5405    
  12  Prefactor     3.2968        7.1716        .22299E-03   -1.5345    
  13  norm          1.2256        1.0258        .66467E-04   -1.5487    
  14  Prefactor     13.578        23.171        .54352E-03   -1.4971    
  15  Prefactor     .10000E-03    4.0835        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.909        10.199        .11149E-03   -1.4989    
  17  Prefactor     14.150        12.559        .10649E-03   -1.4955    
  18  Prefactor     9.2016        34.580        .13213E-03   -1.5101    
  19  Normalizat    1.0164        .23184        .26204E-03   -.92481    
  20  Prefactor     1.1631        .22461        .25022E-03   -.87473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19053e-08
Minuit parameter uncertainties:
  1  81.8267
  2  1.81788e-05
  3  3.94803e-07
  4  5.04257e-06
  5  7.94779
  6  3.9869
  7  1.0451e-06
  8  2.57573e-06
  9  9.8604
  10  9.16988e-08
  11  6.17404
  12  7.17345
  13  1.02586
  14  23.1865
  15  6.03045e-07
  16  10.1999
  17  12.561
  18  34.6555
  19  0.232069
  20  0.224799
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  2.576e-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:  1.163e+00  2.248e-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.016e+00  2.321e-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: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223035/likelihoodResults_359856001_360115201_4FGL_J1049.8+1429_daily_bin465.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) = 5564.84507817
delta logL = -0.000920398335438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5564.84415843
delta logL = -6.59164470562e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5981       1.0000          .0000       10.000    
     3 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1633       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=   5564.844     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    143.33        .16446E-02** at limit **
   2  Index         2.6476        5.7355        .50000       -.82122E-05
   3  Normalizat    1.0164        .26077E-01    .26204E-03    .82433E-05
   4  Prefactor     1.1631        .26545E-01    .25022E-03    .62700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100437
  Index      = 2.64764
  Normalizat = 1.01645
  Prefactor  = 1.16313
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.844     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    617.50        .32892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6476        6.3222        .50000       -.48983    
   3  Normalizat    1.0164        .63214E-01    .10482E-04   -.92481    
   4  Prefactor     1.1631        .64325E-01    .10009E-04   -.87473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79565e-08
Minuit parameter uncertainties:
  1  0.0331917
  2  1640.2
  3  0.0632185
  4  0.0643291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223035': 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) = 5564.8441577
delta logL = 7.09242158337e-08

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.004e-04  3.319e-02  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.648e+00  1.640e+03  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.163e+00  6.433e-02  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.016e+00  6.322e-02  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/223035/cmap_HighResolution_359856001_360115201_4FGL_J1049.8+1429_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-02 17:12:29.508040', job_id='223035', GAL2='1.16', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630627949.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='7.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='465' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:12:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 223035: <4FGL_J1049.8+1429_daily_bin465> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin465> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 17:01:55 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:02:45 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:02:45 2021
Terminated at Thu Sep  2 17:12:30 2021
Results reported at Thu Sep  2 17:12:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin465 162.467 14.4835 359856001 360115201 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            635 sec.

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

