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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1077
RA = 208.718, Dec = -10.6932
tmin = 518486401, tmax = 518745601
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='55534', job_status='RUN', time_executed='2021-09-08 17:35:15.810890', time_epoch_executed='1631147715.81' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55534/ft1_4FGL_J1354.8-1041_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55534/ft1_4FGL_J1354.8-1041_daily_bin1077.fits outfile=/scratch/kocevski/55534/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1077.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.86
user 6.56
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.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/55534/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/55534/ltcube_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.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/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits
.....................!
real 12.50
user 12.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/55534/ltcube_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.fits outfile=/scratch/kocevski/55534/expmap_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.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/55534/ltcube_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.fits
.....................!
real 191.44
user 184.87
sys 5.88

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1354.8-1041 @ 208.718 -10.6932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits scfile=/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits outfile=/scratch/kocevski/55534/cmap_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.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=208.718 yref=-10.6932 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits scfile=/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits outfile=/scratch/kocevski/55534/cmap_HighResolution_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.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=208.718 yref=-10.6932 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55534/Model_4FGL_J1354.8-1041_daily_bin1077.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/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits.....................!
real 45.47
user 44.08
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits', '/scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits', expMap='/scratch/kocevski/55534/expmap_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.fits', expCube='/scratch/kocevski/55534/ltcube_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55534/Model_4FGL_J1354.8-1041_daily_bin1077.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1354.8-1041'

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  2.768e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/55534/ft1_filtered_4FGL_J1354.8-1041_daily_bin1077.fits
Spacecraft file(s): /scratch/kocevski/55534/ft2_4FGL_J1354.8-1041_daily_bin1077.fits
Exposure map: /scratch/kocevski/55534/expmap_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.fits
Exposure cube: /scratch/kocevski/55534/ltcube_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55534/Model_4FGL_J1354.8-1041_daily_bin1077.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) = 5179.38852393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.770       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.623       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10900E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4919       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3042       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.272       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.596       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.567       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6208       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .53948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5179.341     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2498 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0016       -.55352E-06** at limit **
   2  Prefactor     11.769        9.9809       -.11595E-06   -.14997E-04
   3  Prefactor     .10000E-03    10.992        .11380E-05** at limit **
   4  Prefactor     55.626        23.689        .11556E-05    .37790E-03
   5  norm          .10000E-03    .57639        .17803E-07** at limit **
   6  norm          .10000E-03    3.3299       -.80158E-06** at limit **
   7  norm          16.124        8.7899       -.28686E-06    .44689E-04
   8  Prefactor     .10000E-03    4.1732       -.12160E-05** at limit **
   9  norm          .10000E-03    11.269        .13227E-05** at limit **
  10  Prefactor     5.4924        7.4561        .15282E-05   -.93054E-03
  11  norm          5.3043        4.6080        .65824E-06   -.12167E-02
  12  Prefactor     2.8942        3.9180       -.29436E-06   -.32533E-03
  13  Prefactor     11.274        22.596        .19064E-05    .94245E-04
  14  Prefactor     .10000E-03    14.975       -.15713E-05** at limit **
  15  norm          .10000E-03    3.4598        .14833E-05** at limit **
  16  norm          .10000E-03    1.4268        .20223E-07** at limit **
  17  norm          .10000E-03    4.8071        .13866E-05** at limit **
  18  norm          15.597        9.1564        .10203E-06    .50388E-06
  19  Prefactor     .10000E-03    10.612        .27711E-06** at limit **
  20  Prefactor     .10000E-03    8.0941       -.17833E-05** at limit **
  21  norm          18.566        17.198       -.55961E-06   -.99111E-04
  22  Normalizat    1.6206        .23607       -.65007E-06    .24177E-04
  23  Prefactor     .53955        .11807        .91124E-08   -.23471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.7694
  Prefactor  = 0.0001
  Prefactor  = 55.6259
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.1236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.49244
  norm       = 5.30427
  Prefactor  = 2.89424
  Prefactor  = 11.2745
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.5966
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 18.5659
  Normalizat = 1.62058
  Prefactor  = 0.539552
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.341     FROM HESSE     STATUS=OK           366 CALLS     2864 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0125        .14077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.769        9.9873        .11677E-03   -1.5022    
   3  Prefactor     .10000E-03    11.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     55.626        24.138        .53785E-04   -1.4215    
   5  norm          .10000E-03    .86894        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4336        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.124        8.7742        .99748E-04   -1.4905    
   8  Prefactor     .10000E-03    4.2261        .14438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4924        8.5187        .85726E-03   -1.5239    
  11  norm          5.3043        4.9411        .74273E-03   -1.5247    
  12  Prefactor     2.8942        3.9356        .16034E-03   -1.5368    
  13  Prefactor     11.274        22.665        .11933E-03   -1.5036    
  14  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5614        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4763        .16778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8676        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.597        9.1624        .10142E-03   -1.4918    
  19  Prefactor     .10000E-03    10.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.566        17.231        .92950E-04   -1.4846    
  22  Normalizat    1.6206        .26964        .26298E-03   -.74444    
  23  Prefactor     .53955        .13536        .21976E-03   -1.1019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46233e-09
Minuit parameter uncertainties:
  1  2.88206e-05
  2  9.98875
  3  8.45832e-05
  4  24.1418
  5  9.63695e-07
  6  6.44899e-05
  7  8.77494
  8  6.53224e-05
  9  0.000115001
  10  8.52055
  11  4.94152
  12  3.93591
  13  22.6821
  14  0.000157904
  15  7.38611e-05
  16  1.01157e-06
  17  7.93082e-05
  18  9.16318
  19  2.47587e-05
  20  0.000128803
  21  17.2352
  22  0.269886
  23  0.135446
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  7.386e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  5.396e-01  1.354e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.621e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 208.718 -10.693
Photon Flux Upper Limit: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55534/likelihoodResults_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5179.34244809
delta logL = -0.0013320575008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5179.34111603
delta logL = 1.06028892333e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2634       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   5179.341     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      233 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.772        .13231E-01** at limit **
   2  alpha         1.9589        3.3601        .16555E-01   -.10232E-06
   3  Normalizat    1.6206        .25973        .26298E-03    .54661E-04
   4  Prefactor     .53955        .13352        .21976E-03    .71700E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95886
  Normalizat = 1.62058
  Prefactor  = 0.539552
 **********
 **   18 **HESSE 
 **********

 FCN=   5179.341     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7431        .13465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9589        3.3272        .66219E-03   -.21818    
   3  Normalizat    1.6206        .25990        .52595E-04   -.74444    
   4  Prefactor     .53955        .13359        .87905E-05   -1.1019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24907e-10
Minuit parameter uncertainties:
  1  2.27922e-05
  2  249.888
  3  0.26012
  4  0.133668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55534': 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) = 5179.34111536
delta logL = 6.80765879224e-07

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  2.279e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.959e+00  2.499e+02  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  5.396e-01  1.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.621e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 208.718 -10.693

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/55534/cmap_HighResolution_518486401_518745601_4FGL_J1354.8-1041_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-08 17:44:56.372707', job_id='55534', GAL2='0.54', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1631148296.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='6.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1077' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:44:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 55534: <4FGL_J1354.8-1041_daily_bin1077> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1077> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:31:11 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:31:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:31:12 2021
Terminated at Wed Sep  8 17:44:57 2021
Results reported at Wed Sep  8 17:44:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1077 208.718 -10.6932 518486401 518745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1354.8-1041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

