/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 183 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1354.8-1041_daily_bin284
RA = 208.718, Dec = -10.6932
tmin = 312940801, tmax = 313200001
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='53666', job_status='RUN', time_executed='2021-09-08 17:28:39.856309', time_epoch_executed='1631147319.86' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/53666

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/53666/ft1_4FGL_J1354.8-1041_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/53666/ft1_4FGL_J1354.8-1041_daily_bin284.fits outfile=/scratch/kocevski/53666/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin284.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=312940801.0 tmax=313200001.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.49
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/53666/ft1_filtered_4FGL_J1354.8-1041_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/53666/ltcube_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.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/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits
.....................!
real 14.13
user 13.73
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/53666/ft1_filtered_4FGL_J1354.8-1041_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/53666/ltcube_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.fits outfile=/scratch/kocevski/53666/expmap_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.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/53666/ltcube_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.fits
.....................!
real 190.05
user 185.67
sys 4.00

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/53666/ft1_filtered_4FGL_J1354.8-1041_daily_bin284.fits scfile=/scratch/kocevski/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits outfile=/scratch/kocevski/53666/cmap_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.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.76
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/53666/ft1_filtered_4FGL_J1354.8-1041_daily_bin284.fits scfile=/scratch/kocevski/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits outfile=/scratch/kocevski/53666/cmap_HighResolution_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/53666/ft1_filtered_4FGL_J1354.8-1041_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/53666/ft2_4FGL_J1354.8-1041_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/53666/Model_4FGL_J1354.8-1041_daily_bin284.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/53666/ft1_filtered_4FGL_J1354.8-1041_daily_bin284.fits.....................!
real 56.68
user 55.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    66.305       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0399       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.945       1.0000         .10000E-03   10000.    
     9 'norm      '    31.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12732E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.814       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4277       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4303       1.0000         .10000E-03   10000.    
    18 'norm      '    .11590E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.190       1.0000         .10000E-03   10000.    
    21 'norm      '    8.8870       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7775       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79915       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=   6556.743     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2689 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4346        .33386E-07** at limit **
   2  Prefactor     .10000E-03    10.793        .41205E-06** at limit **
   3  Prefactor     3.2327        9.4889        .30174E-05    .37792E-04
   4  Prefactor     66.328        28.164       -.10180E-05   -.44276E-05
   5  norm          1.0411        1.8310        .18594E-06    .45176E-04
   6  norm          .10000E-03    2.7827        .33213E-06** at limit **
   7  norm          12.009        9.6175        .38728E-06   -.22849E-04
   8  Prefactor     13.951        17.229        .13638E-06   -.12815E-05
   9  norm          31.586        34.278       -.42606E-06    .24411E-05
  10  Prefactor     .10000E-03    14.601        .58058E-07** at limit **
  11  norm          2.3375        4.6401       -.11702E-06   -.29646E-05
  12  Prefactor     .10000E-03    2.7535       -.74547E-08** at limit **
  13  Prefactor     .10000E-03    8.1420        .18504E-07** at limit **
  14  Prefactor     13.804        45.738        .17308E-05   -.29027E-05
  15  norm          .10000E-03    2.2696       -.84208E-08** at limit **
  16  norm          7.4243        3.5453        .14433E-06   -.10957E-03
  17  norm          7.4330        7.4671       -.22744E-08   -.22298E-05
  18  norm          .10003E-03    6.2578        .50271E-06** at limit **
  19  Prefactor     .10000E-03    10.677       -.13556E-06** at limit **
  20  Prefactor     51.157        48.496        .31789E-05   -.14541E-04
  21  norm          8.9032        24.367       -.21769E-05   -.49670E-05
  22  Normalizat    1.7773        .28010       -.19346E-05   -.19618E-04
  23  Prefactor     .79916        .13708        .90455E-06   -.70382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2327
  Prefactor  = 66.3277
  norm       = 1.04107
  norm       = 0.0001
  norm       = 12.009
  Prefactor  = 13.9508
  norm       = 31.5856
  Prefactor  = 0.0001
  norm       = 2.33754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8038
  norm       = 0.0001
  norm       = 7.42433
  norm       = 7.43304
  norm       = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 51.157
  norm       = 8.90316
  Normalizat = 1.77731
  Prefactor  = 0.799156
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.743     FROM HESSE     STATUS=OK           378 CALLS     3067 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2327        9.5219        .11262E-02   -1.5348    
   4  Prefactor     66.328        28.273        .49288E-04   -1.4077    
   5  norm          1.0411        1.7951        .13406E-03   -1.5504    
   6  norm          .10000E-03    2.8004        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.009        9.5777        .11560E-03   -1.5015    
   8  Prefactor     13.951        17.165        .10726E-03   -1.4961    
   9  norm          31.586        34.272        .71301E-04   -1.4583    
  10  Prefactor     .10000E-03    14.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3375        4.6170        .23473E-03   -1.5402    
  12  Prefactor     .10000E-03    5.5575        .25964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.1464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.804        45.779        .10777E-03   -1.4965    
  15  norm          .10000E-03    2.2730        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4243        3.4900        .49415E-03   -1.5163    
  17  norm          7.4330        7.4707        .14713E-03   -1.5163    
  18  norm          .10003E-03    57.848        .37597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.157        48.535        .56053E-04   -1.4276    
  21  norm          8.9032        24.347        .13445E-03   -1.5111    
  22  Normalizat    1.7773        .31647        .31751E-03   -.70257    
  23  Prefactor     .79916        .15722        .22849E-03   -.99759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70539e-10
Minuit parameter uncertainties:
  1  2.82923e-07
  2  2.33176e-05
  3  9.52636
  4  28.279
  5  1.79518
  6  1.69626e-05
  7  9.57895
  8  17.1712
  9  34.293
  10  2.9983e-06
  11  4.61765
  12  1.72563e-06
  13  8.29122e-07
  14  45.8957
  15  7.54457e-08
  16  3.49007
  17  7.47168
  18  0.0025082
  19  1.3008e-06
  20  48.573
  21  24.3744
  22  0.316835
  23  0.157304
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  7.545e-08  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.992e-01  1.573e-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.777e+00  3.168e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/53666/likelihoodResults_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.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) = 6556.74455767
delta logL = -0.00204973936252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6556.74250796
delta logL = -2.59433363681e-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.2690       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79914       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6556.743     FROM MIGRAD    STATUS=FAILED        81 CALLS      219 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    27.107        .11914E-02** at limit **
   2  alpha         2.2186        3.7660        .16550        .22343E-05
   3  Normalizat    1.7773        .29297        .31751E-03   -.11708E-04
   4  Prefactor     .79916        .15009        .22848E-03   -.10947E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6556.743     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      354 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    27.107        .28132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2186        3.7660        .24102E-03   -.11280    
   3  Normalizat    1.7773        .29297        .57401E-04   -.70257    
   4  Prefactor     .79916        .15009        .20052E-04   -.99759    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6556.743     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      386 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2848        .23828E-03** at limit **
   2  alpha         2.1623        2.8169        .33101E-01    .20607E-08
   3  Normalizat    1.7773        .29324        .12700E-04    .20409E-04
   4  Prefactor     .79916        .15023        .91393E-05    .20649E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.16229
  Normalizat = 1.77731
  Prefactor  = 0.799156
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.743     FROM HESSE     STATUS=OK            23 CALLS      409 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2828        .47656E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1623        2.7311        .13240E-02   -.13550    
   3  Normalizat    1.7773        .29311        .25401E-05   -.70257    
   4  Prefactor     .79916        .15014        .18279E-05   -.99759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90666e-13
Minuit parameter uncertainties:
  1  7.35785e-08
  2  249.495
  3  0.293395
  4  0.150215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/53666': 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) = 6556.74250784
delta logL = 9.39053279581e-08

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  7.358e-08  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.162e+00  2.495e+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.992e-01  1.502e-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.777e+00  2.934e-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/53666/cmap_HighResolution_312940801_313200001_4FGL_J1354.8-1041_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-08 17:39:50.778584', job_id='53666', GAL2='0.80', fit_tolerance='1e-08', EG2='1.78', EG='1.78', time_epoch_completed='1631147990.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='9.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='284' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:39:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 53666: <4FGL_J1354.8-1041_daily_bin284> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin284> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 17:25:27 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:25:29 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:25:29 2021
Terminated at Wed Sep  8 17:39:51 2021
Results reported at Wed Sep  8 17:39:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin284 208.718 -10.6932 312940801 313200001 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 :                                   647.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

