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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1387
RA = 162.467, Dec = 14.4835
tmin = 598838401, tmax = 599097601
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='233049', job_status='RUN', time_executed='2021-09-02 17:35:53.750168', time_epoch_executed='1630629353.75' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233049/ft1_4FGL_J1049.8+1429_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233049/ft1_4FGL_J1049.8+1429_daily_bin1387.fits outfile=/scratch/kocevski/233049/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1387.fits ra=162.467 dec=14.4835 rad=12.0 tmin=598838401.0 tmax=599097601.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 2.93
user 2.71
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233049/ft1_filtered_4FGL_J1049.8+1429_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/233049/ltcube_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.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/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits
.....................!
real 18.72
user 18.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233049/ft1_filtered_4FGL_J1049.8+1429_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/233049/ltcube_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.fits outfile=/scratch/kocevski/233049/expmap_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.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/233049/ltcube_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.fits
.....................!
real 193.72
user 188.64
sys 4.56

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/233049/ft1_filtered_4FGL_J1049.8+1429_daily_bin1387.fits scfile=/scratch/kocevski/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits outfile=/scratch/kocevski/233049/cmap_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233049/ft1_filtered_4FGL_J1049.8+1429_daily_bin1387.fits scfile=/scratch/kocevski/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits outfile=/scratch/kocevski/233049/cmap_HighResolution_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.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/233049/ft1_filtered_4FGL_J1049.8+1429_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/233049/ft2_4FGL_J1049.8+1429_daily_bin1387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233049/Model_4FGL_J1049.8+1429_daily_bin1387.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/233049/ft1_filtered_4FGL_J1049.8+1429_daily_bin1387.fits.....................!
real 61.08
user 59.54
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11732E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12759E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2858       1.0000         .10000E-03   10000.    
    16 'norm      '    .45214       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .44447E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21775E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1585       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0763       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=   6534.854     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2151 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.327        .11325E-05** at limit **
   2  Prefactor     .10000E-03    13.981       -.13756E-05** at limit **
   3  Prefactor     .10000E-03    17.562       -.29292E-06** at limit **
   4  Prefactor     .10000E-03    7.4736       -.52743E-07** at limit **
   5  Prefactor     .10000E-03    5.0900        .20726E-06** at limit **
   6  Prefactor     .10000E-03    .90375        .32285E-07** at limit **
   7  Prefactor     .10000E-03    .97098        .53417E-06** at limit **
   8  Prefactor     .61026        3.9653       -.14301E-05   -.20365E-04
   9  Prefactor     4.6655        3.8638        .17861E-05    .55234E-03
  10  Prefactor     3.0676        6.4650       -.27214E-05   -.49463E-03
  11  Prefactor     .10000E-03    5.4402       -.52775E-06** at limit **
  12  Prefactor     .10000E-03    4.3484        .22229E-06** at limit **
  13  norm          .10000E-03    .66386        .77253E-06** at limit **
  14  Prefactor     7.8373        22.639       -.11843E-05    .11746E-03
  15  Prefactor     2.2899        5.3221        .30298E-06   -.47340E-05
  16  norm          .49202        46.607       -.19608E-04    .13298E-03
  17  Prefactor     .10000E-03    5.3747        .59458E-06** at limit **
  18  Prefactor     .10024E-03    17.093       -.20590E-05** at limit **
  19  Normalizat    1.1583        .17646        .49577E-06   -.49114E-03
  20  Prefactor     1.0763        .16599       -.47241E-06   -.41903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.610262
  Prefactor  = 4.66555
  Prefactor  = 3.06763
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 7.83727
  Prefactor  = 2.28985
  norm       = 0.492022
  Prefactor  = 0.000100001
  Prefactor  = 0.00010024
  Normalizat = 1.1583
  Prefactor  = 1.07632
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.854     FROM HESSE     STATUS=OK           305 CALLS     2456 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1707        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .91329        .75035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6810        .15462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61026        21.115        .28188E-02   -1.5552    
   9  Prefactor     4.6655        6.4060        .93149E-03   -1.5276    
  10  Prefactor     3.0676        6.4887        .23134E-03   -1.5358    
  11  Prefactor     .10000E-03    30.704        .33688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3594        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5747        .12013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8373        22.469        .14315E-03   -1.5148    
  15  Prefactor     2.2899        5.2990        .27153E-03   -1.5405    
  16  norm          .49202        57.764        .43872E-02   -1.5568    
  17  Prefactor     .10000E-03    13.830        .35971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10024E-03    15.507        .10599       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1583        .21196        .23506E-03   -.87901    
  20  Prefactor     1.0763        .19956        .24495E-03   -.90227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11839e-08
Minuit parameter uncertainties:
  1  0.000337004
  2  0.000437296
  3  0.000102355
  4  1.28562e-05
  5  8.61581e-05
  6  1.03842e-06
  7  5.93012e-05
  8  7.18154
  9  6.4069
  10  6.4902
  11  0.000403898
  12  6.08696e-05
  13  0.000262985
  14  22.4933
  15  5.30004
  16  10.6717
  17  0.000198505
  18  0.00386024
  19  0.212115
  20  0.199698
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  6.103e-01  7.182e+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.076e+00  1.997e-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.158e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/233049/likelihoodResults_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.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) = 6534.06472098
delta logL = 0.789275826534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6533.76227476
delta logL = 1.09172204922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9935       1.0000          .0000       10.000    
     3 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1286       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=   6533.762     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      485 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11195E-03    .69444E-04    .22698E-03** at limit **
   2  Index        10.0000        .82530        .50000    ** at limit **
   3  Normalizat    1.0850        .17081        .38651E-01   -.12508E-03
   4  Prefactor     1.1284        .17090        .54285E-01   -.12948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111947
  Index      = 10
  Normalizat = 1.08503
  Prefactor  = 1.12843
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.762     FROM HESSE     STATUS=OK            35 CALLS      520 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11195E-03    .21764E-03    .12696E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.0788        .43386        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0850        .20439        .24154E-03   -.90234    
   4  Prefactor     1.1284        .20358        .24002E-03   -.88563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61523e-08
Minuit parameter uncertainties:
  1  0.00010198
  2  5.08806e-06
  3  0.204542
  4  0.203719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233049': 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) = 6533.76223949
delta logL = 1.09175731607

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.119e-04  1.020e-04  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  1.000e+01  5.088e-06  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.128e+00  2.037e-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.085e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 162.467 14.483
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.40e-08 +/- 4.76e-08
Energy Flux (Free Index): 6.03e-06 +/- 5.36e-06

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/233049/cmap_HighResolution_598838401_599097601_4FGL_J1049.8+1429_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', comment='SUCCESS', energy_flux2='6.03e-06', dlogl='1.09e+00', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-02 17:46:43.324920', photon_index_error2='0.00', photon_index2='10.00', ts='0.01', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='9.85e-08', energy_flux_error2='5.36e-06', EG='1.16', time_epoch_completed='1630630003.33', return_code='0', job_id='233049', GAL2='1.13', EG2='1.09', return_code2='0', photon_flux_error2='4.76e-08', ts2='2.32', photon_index='2.59' WHERE bin_id='1387' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:46:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 233049: <4FGL_J1049.8+1429_daily_bin1387> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1387 162.467 14.4835 598838401 599097601 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 :                                   648.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            893 sec.

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

