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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1070
RA = 208.718, Dec = -10.6932
tmin = 516672001, tmax = 516931201
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='55524', job_status='RUN', time_executed='2021-09-08 17:35:03.160245', time_epoch_executed='1631147703.16' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55524/ft1_4FGL_J1354.8-1041_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55524/ft1_4FGL_J1354.8-1041_daily_bin1070.fits outfile=/scratch/kocevski/55524/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1070.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=516672001.0 tmax=516931201.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.47
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.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/55524/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/55524/ltcube_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.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/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits
.....................!
real 12.33
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/55524/ltcube_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.fits outfile=/scratch/kocevski/55524/expmap_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.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/55524/ltcube_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.fits
.....................!
real 189.02
user 184.01
sys 4.42

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/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits scfile=/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits outfile=/scratch/kocevski/55524/cmap_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits scfile=/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits outfile=/scratch/kocevski/55524/cmap_HighResolution_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55524/Model_4FGL_J1354.8-1041_daily_bin1070.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/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits.....................!
real 56.47
user 55.09
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits', '/scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits', expMap='/scratch/kocevski/55524/expmap_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.fits', expCube='/scratch/kocevski/55524/ltcube_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55524/Model_4FGL_J1354.8-1041_daily_bin1070.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/55524/ft1_filtered_4FGL_J1354.8-1041_daily_bin1070.fits
Spacecraft file(s): /scratch/kocevski/55524/ft2_4FGL_J1354.8-1041_daily_bin1070.fits
Exposure map: /scratch/kocevski/55524/expmap_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.fits
Exposure cube: /scratch/kocevski/55524/ltcube_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55524/Model_4FGL_J1354.8-1041_daily_bin1070.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) = 6915.0633926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10664E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4861       1.0000         .10000E-03   10000.    
     9 'norm      '    16.792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4886       1.0000         .10000E-03   10000.    
    18 'norm      '    9.5417       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6498       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75738       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=   6915.041     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2581 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3495       -.23271E-06** at limit **
   2  Prefactor     .10000E-03    16.853       -.27124E-05** at limit **
   3  Prefactor     9.9051        11.222       -.16070E-06   -.21502E-03
   4  Prefactor     .10000E-03    26.724        .23787E-05** at limit **
   5  norm          .10000E-03    .96682       -.28863E-07** at limit **
   6  norm          .10000E-03    1.5383       -.14909E-06** at limit **
   7  norm          .10000E-03    5.8606        .38228E-05** at limit **
   8  Prefactor     1.4913        2.5024        .23100E-06   -.58074E-03
   9  norm          16.793        27.667       -.45763E-07    .65901E-06
  10  Prefactor     10.638        11.767       -.12723E-05   -.20343E-04
  11  norm          .10000E-03    1.3716        .24248E-07** at limit **
  12  Prefactor     .10000E-03    2.6198        .18888E-08** at limit **
  13  Prefactor     6.1472        18.170       -.15084E-05   -.45742E-05
  14  Prefactor     .10000E-03    24.948        .14452E-04** at limit **
  15  norm          .10000E-03    4.1714        .14553E-05** at limit **
  16  norm          .10000E-03    1.6186       -.17980E-07** at limit **
  17  norm          4.4889        10.199       -.87517E-07   -.12934E-04
  18  norm          9.5408        8.1558       -.57210E-07   -.93101E-06
  19  Prefactor     .10000E-03    6.9971       -.16972E-05** at limit **
  20  Prefactor     .10000E-03    28.764       -.14876E-04** at limit **
  21  norm          .10000E-03    4.9563       -.33932E-05** at limit **
  22  Normalizat    1.6499        .23054        .28390E-06   -.21314E-04
  23  Prefactor     .75734        .11394        .10517E-06    .32680E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.90509
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.49126
  norm       = 16.7925
  Prefactor  = 10.6375
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14723
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.48891
  norm       = 9.54075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.64988
  Prefactor  = 0.757337
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.041     FROM HESSE     STATUS=OK           370 CALLS     2951 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3500        .14863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9051        11.365        .63657E-03   -1.5078    
   4  Prefactor     .10000E-03    27.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9511        .15696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    34.097        .19673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.9277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4913        48.538        .17593E-02   -1.5464    
   9  norm          16.793        27.659        .97738E-04   -1.4888    
  10  Prefactor     10.638        14.301        .12285E-03   -1.5056    
  11  norm          .10000E-03    1.3781        .95098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6424        .13137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1472        18.179        .16191E-03   -1.5212    
  14  Prefactor     .10000E-03    25.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.1992        .16578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6701        .20627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4889        10.196        .19004E-03   -1.5284    
  18  norm          9.5408        8.1533        .12973E-03   -1.5090    
  19  Prefactor     .10000E-03    7.0076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.9669        .18090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6499        .27139        .28645E-03   -.73650    
  23  Prefactor     .75734        .13552        .20609E-03   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48031e-09
Minuit parameter uncertainties:
  1  7.30048e-08
  2  4.32845e-05
  3  11.3679
  4  6.48706e-05
  5  2.31122e-06
  6  0.000545569
  7  1.97365e-05
  8  17.0301
  9  27.6801
  10  14.306
  11  1.5461e-07
  12  4.24834e-06
  13  18.1952
  14  4.39622e-06
  15  4.8445e-06
  16  1.32171e-06
  17  10.2001
  18  8.15425
  19  1.17427e-06
  20  0.000220054
  21  3.6123e-07
  22  0.271635
  23  0.135581
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  4.845e-06  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:  7.573e-01  1.356e-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.650e+00  2.716e-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: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55524/likelihoodResults_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.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) = 6915.04237379
delta logL = -0.00113452943515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6915.04123921
delta logL = 5.73500074097e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2548       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75735       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=   6915.041     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      232 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    145.85        .16746E-01** at limit **
   2  alpha         1.8191        3.1487        .16562        .12184E-06
   3  Normalizat    1.6499        .33299E-01    .28645E-03    .22048E-03
   4  Prefactor     .75734        .17139E-01    .20609E-03    .33074E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81909
  Normalizat = 1.64988
  Prefactor  = 0.757337
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.041     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9415        .35597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8191        3.0754        .66247E-02   -.27585    
   3  Normalizat    1.6499        .25883        .57289E-04   -.73650    
   4  Prefactor     .75734        .13322        .41217E-04   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75327e-10
Minuit parameter uncertainties:
  1  7.69802e-05
  2  231.627
  3  0.259043
  4  0.133273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55524': 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) = 6915.04123748
delta logL = 1.78234404302e-06

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  7.698e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.819e+00  2.316e+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:  7.573e-01  1.333e-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.650e+00  2.590e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/55524/cmap_HighResolution_516672001_516931201_4FGL_J1354.8-1041_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-08 17:45:57.552477', job_id='55524', GAL2='0.76', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1631148357.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1070' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:45:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 55524: <4FGL_J1354.8-1041_daily_bin1070> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1070> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:31:10 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:31:11 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:11 2021
Terminated at Wed Sep  8 17:45:58 2021
Results reported at Wed Sep  8 17:45:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1070 208.718 -10.6932 516672001 516931201 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 :                                   649.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

