/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 56 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1354.8-1041_daily_bin139
RA = 208.718, Dec = -10.6932
tmin = 275356801, tmax = 275616001
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='52344', job_status='RUN', time_executed='2021-09-08 17:22:13.304698', time_epoch_executed='1631146933.3' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52344

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52344/ft1_4FGL_J1354.8-1041_daily_bin139.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52344/ft1_4FGL_J1354.8-1041_daily_bin139.fits outfile=/scratch/kocevski/52344/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin139.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=275356801.0 tmax=275616001.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 4.57
user 4.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.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/52344/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin139.fits evtable="EVENTS" outfile="/scratch/kocevski/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits" evtable="EVENTS" scfile=/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits sctable="SC_DATA" outfile=/scratch/kocevski/52344/ltcube_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.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/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits
.....................!
real 13.12
user 12.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/52344/ltcube_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.fits outfile=/scratch/kocevski/52344/expmap_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.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/52344/ltcube_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.fits
.....................!
real 193.52
user 187.33
sys 5.84

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits scfile=/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits outfile=/scratch/kocevski/52344/cmap_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits scfile=/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits outfile=/scratch/kocevski/52344/cmap_HighResolution_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.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.63
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/52344/ft2_4FGL_J1354.8-1041_daily_bin139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52344/Model_4FGL_J1354.8-1041_daily_bin139.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/52344/ft1_filtered_4FGL_J1354.8-1041_daily_bin139.fits.....................!
real 65.70
user 64.09
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11613E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16542E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.474       1.0000         .10000E-03   10000.    
     6 'norm      '    7.9838       1.0000         .10000E-03   10000.    
     7 'norm      '    .92563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.258       1.0000         .10000E-03   10000.    
     9 'norm      '    58.549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0263       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.516       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.427       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1218       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93216       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.

 FCN=   8135.054     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2565 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.719        11.518        .26100E-02    .24837E-04
   2  Prefactor     .10000E-03    2.8096        .90712E-02** at limit **
   3  Prefactor     .10000E-03    3.8161        .90712E-01** at limit **
   4  Prefactor     .10000E-03    73.918        .90712E-02** at limit **
   5  norm          20.473        3.0057        .22130E-02   -.34945E-03
   6  norm          7.9872        5.0243        .35475E-02    .38873E-03
   7  norm          .90819        5.4427        .91471E-01    .29543E-03
   8  Prefactor     34.250        16.114        .17116E-02   -.94910E-03
   9  norm          58.548        35.701        .13108E-02    .74555E-03
  10  Prefactor     .10000E-03    7.8902        .90712E-02** at limit **
  11  norm          3.0263        3.0946        .58318E-02   -.91344E-03
  12  Prefactor     5.1067        6.9223        .44490E-02    .41197E-03
  13  Prefactor     29.224        35.552        .18528E-02    .70992E-04
  14  Prefactor     .10000E-03    10.782        .90712E-02** at limit **
  15  norm          15.517        10.877        .25420E-02    .11544E-03
  16  norm          .10000E-03    1.2263        .33639E-01** at limit **
  17  norm          .10000E-03    5.9150        .90712E-02** at limit **
  18  norm          11.427        7.7299        .29628E-02    .51326E-04
  19  Prefactor     3.0841        39.230        .57693E-02    .26285E-03
  20  Prefactor     .10000E-03    23.933        .90712E-02** at limit **
  21  norm          .10000E-03    5.6634        .90712E-02** at limit **
  22  Normalizat    1.1218        .24073        .82431E-01   -.80459E-04
  23  Prefactor     .93221        .11811        .45414E-01   -.80794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.7187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.4731
  norm       = 7.9872
  norm       = 0.908187
  Prefactor  = 34.2499
  norm       = 58.5481
  Prefactor  = 0.0001
  norm       = 3.02631
  Prefactor  = 5.10674
  Prefactor  = 29.2244
  Prefactor  = 0.0001
  norm       = 15.5175
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.4273
  Prefactor  = 3.08412
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.1218
  Prefactor  = 0.932212
 **********
 **   18 **HESSE 
 **********

 FCN=   8135.054     FROM HESSE     STATUS=OK           374 CALLS     2939 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.719        11.506        .10440E-03   -1.4940    
   2  Prefactor     .10000E-03    2.8136        .14763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.341        .33700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    75.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.473        3.0174        .56588E-04   -1.4803    
   6  norm          7.9872        5.3627        .12323E-03   -1.5143    
   7  norm          .90819        24.329        .31759E-02   -1.5517    
   8  Prefactor     34.250        16.081        .68465E-04   -1.4537    
   9  norm          58.548        35.704        .26216E-03   -1.4176    
  10  Prefactor     .10000E-03    7.9324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0263        3.0956        .77635E-03   -1.5360    
  12  Prefactor     5.1067        6.8271        .17796E-03   -1.5256    
  13  Prefactor     29.224        35.725        .74113E-04   -1.4626    
  14  Prefactor     .10000E-03    10.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.517        10.792        .10168E-03   -1.4920    
  16  norm          .10000E-03    2.9879        .19256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.9367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.427        7.6894        .11851E-03   -1.5032    
  19  Prefactor     3.0841        38.977        .23077E-03   -1.5357    
  20  Prefactor     .10000E-03    24.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.6689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1218        .28055        .36495E-03   -.89055    
  23  Prefactor     .93221        .13941        .20583E-03   -.95024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83668e-09
Minuit parameter uncertainties:
  1  11.5082
  2  1.458e-05
  3  3.90618e-05
  4  8.94045e-05
  5  3.01742
  6  5.363
  7  9.40483
  8  16.0833
  9  35.7169
  10  2.7751e-06
  11  3.09578
  12  6.82817
  13  35.7512
  14  8.85651e-06
  15  10.7935
  16  1.82747e-05
  17  9.48966e-06
  18  7.69004
  19  21.9454
  20  2.05477e-05
  21  4.46507e-07
  22  0.280926
  23  0.139464
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.552e+01  1.079e+01  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:  9.322e-01  1.395e-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.122e+00  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 208.718 -10.693
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 8.06e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.10e-05

TS (Fixed Index): 3.84
Ra Dec: 208.718 -10.693
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/52344/likelihoodResults_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.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) = 8134.96157293
delta logL = 0.0921604076557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8134.95767185
delta logL = 0.0960614829191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.869       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94034       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=   8134.958     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      301 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.883        10.298        .53776E-03   -.11963E-03
   2  alpha         2.5321        .62987        .13584E-01   -.74444E-05
   3  Normalizat    1.0984        .26874        .36828E-03   -.12657E-05
   4  Prefactor     .94025        .13823        .20504E-03   -.15358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.8831
  alpha      = 2.53214
  Normalizat = 1.09841
  Prefactor  = 0.940249
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.958     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.883        9.8597        .21511E-04   -1.4963    
   2  alpha         2.5321        .60292        .54336E-03    .12855E-01
   3  Normalizat    1.0984        .26862        .14731E-04   -.89803    
   4  Prefactor     .94025        .13815        .82018E-05   -.94749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16463e-11
Minuit parameter uncertainties:
  1  9.86083
  2  0.608921
  3  0.268958
  4  0.1382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52344': 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) = 8134.95766302
delta logL = 0.0960703140563

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.388e+01  9.861e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.532e+00  6.089e-01  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:  9.402e-01  1.382e-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.098e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.03
Ra Dec: 208.718 -10.693
Photon Index (Free Index): 2.53 +/- 0.61
Photon Flux (Free Index): 9.79e-08 +/- 6.78e-08
Energy Flux (Free Index): 2.92e-05 +/- 1.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/52344/cmap_HighResolution_275356801_275616001_4FGL_J1354.8-1041_daily_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-05', comment='SUCCESS', photon_flux='8.06e-08', energy_flux2='2.92e-05', photon_flux_error='5.61e-08', dlogl='9.61e-02', energy_flux='3.02e-05', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-09-08 17:34:18.753146', photon_index_error2='0.61', photon_index2='2.53', ts='3.84', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.76e-05', EG='1.12', time_epoch_completed='1631147658.75', return_code='0', job_id='52344', GAL2='0.94', EG2='1.10', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.78e-08', ts2='4.03', photon_index='2.27' WHERE bin_id='139' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:34:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 52344: <4FGL_J1354.8-1041_daily_bin139> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin139> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:20:59 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:21:00 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:21:00 2021
Terminated at Wed Sep  8 17:34:19 2021
Results reported at Wed Sep  8 17:34:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin139 208.718 -10.6932 275356801 275616001 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 :                                   721.54 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

