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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin184
RA = 208.718, Dec = -10.6932
tmin = 287020801, tmax = 287280001
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='52421', job_status='RUN', time_executed='2021-09-08 17:22:37.394910', time_epoch_executed='1631146957.39' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52421/ft1_4FGL_J1354.8-1041_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52421/ft2_4FGL_J1354.8-1041_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52421/ft1_4FGL_J1354.8-1041_daily_bin184.fits outfile=/scratch/kocevski/52421/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin184.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=287020801.0 tmax=287280001.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.67
user 4.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52421/ft1_filtered_4FGL_J1354.8-1041_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/52421/ft2_4FGL_J1354.8-1041_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/52421/ltcube_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.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/52421/ft2_4FGL_J1354.8-1041_daily_bin184.fits
.....................!
real 14.58
user 14.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52421/ft1_filtered_4FGL_J1354.8-1041_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/52421/ft2_4FGL_J1354.8-1041_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/52421/ltcube_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.fits outfile=/scratch/kocevski/52421/expmap_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.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/52421/ltcube_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.fits
.....................!
real 190.92
user 186.10
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/52421/ft1_filtered_4FGL_J1354.8-1041_daily_bin184.fits scfile=/scratch/kocevski/52421/ft2_4FGL_J1354.8-1041_daily_bin184.fits outfile=/scratch/kocevski/52421/cmap_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52421/ft1_filtered_4FGL_J1354.8-1041_daily_bin184.fits scfile=/scratch/kocevski/52421/ft2_4FGL_J1354.8-1041_daily_bin184.fits outfile=/scratch/kocevski/52421/cmap_HighResolution_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88577E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6046       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.479       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2852       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.917       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1921       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51205E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    117.36       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.957       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0874       1.0000         .10000E-03   10000.    
    17 'norm      '    24.162       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.517       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    47.236       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3092       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77265       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=   7029.949     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2545 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    13.772       -.12116E-04** at limit **
   2  Prefactor     9.6038        9.6004        .15027E-06    .15441E-03
   3  Prefactor     4.3574        11.558        .32077E-06    .17326E-03
   4  Prefactor     .10000E-03    11.484       -.14338E-05** at limit **
   5  norm          11.478        2.7048       -.64153E-07   -.53682E-04
   6  norm          9.2842        5.1646       -.10749E-05    .15485E-02
   7  norm          2.5483        5.8461        .70109E-05    .85913E-03
   8  Prefactor     27.917        14.938       -.52915E-06   -.52252E-03
   9  norm          4.7868        20.888        .66522E-06   -.31474E-07
  10  Prefactor     .10000E-03    9.5900        .75058E-06** at limit **
  11  norm          4.1923        3.6738        .12659E-06   -.33423E-04
  12  Prefactor     .10003E-03    2.7674        .30824E-05** at limit **
  13  Prefactor     117.34        41.537        .98215E-06    .28925E-04
  14  Prefactor     30.956        37.707        .13780E-06   -.16575E-04
  15  norm          .10000E-03    6.6861       -.37443E-07** at limit **
  16  norm          2.0869        2.8085        .17070E-08   -.11984E-03
  17  norm          24.163        16.216        .35604E-07   -.23776E-04
  18  norm          .10000E-03    5.6972        .10145E-06** at limit **
  19  Prefactor     20.516        26.634        .19399E-06   -.72569E-04
  20  Prefactor     .10000E-03    9.6309        .11231E-05** at limit **
  21  norm          47.237        21.975       -.18071E-06   -.18091E-03
  22  Normalizat    1.3096        .24591        .24505E-05    .74690E-04
  23  Prefactor     .77243        .11776       -.20887E-05   -.39653E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100059
  Prefactor  = 9.60376
  Prefactor  = 4.35738
  Prefactor  = 0.0001
  norm       = 11.478
  norm       = 9.28419
  norm       = 2.54831
  Prefactor  = 27.9175
  norm       = 4.78677
  Prefactor  = 0.0001
  norm       = 4.19228
  Prefactor  = 0.00010003
  Prefactor  = 117.343
  Prefactor  = 30.9563
  norm       = 0.0001
  norm       = 2.08688
  norm       = 24.1633
  norm       = 0.0001
  Prefactor  = 20.5155
  Prefactor  = 0.0001
  norm       = 47.237
  Normalizat = 1.30965
  Prefactor  = 0.772429
 **********
 **   18 **HESSE 
 **********

 FCN=   7029.949     FROM HESSE     STATUS=OK           376 CALLS     2921 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    33.349        .38149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6038        9.5840        .12931E-03   -1.5088    
   3  Prefactor     4.3574        11.537        .19284E-03   -1.5290    
   4  Prefactor     .10000E-03    11.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.478        2.7199        .62883E-04   -1.5030    
   6  norm          9.2842        5.3738        .11916E-03   -1.5098    
   7  norm          2.5483        6.7598        .12789E-02   -1.5389    
   8  Prefactor     27.917        14.977        .75824E-04   -1.4651    
   9  norm          4.7868        20.872        .18386E-03   -1.5270    
  10  Prefactor     .10000E-03    9.7774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1923        3.6704        .14545E-03   -1.5298    
  12  Prefactor     .10003E-03    17.616        .23578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     117.34        41.655        .18571E-03   -1.3537    
  14  Prefactor     30.956        37.712        .72013E-04   -1.4595    
  15  norm          .10000E-03    6.8102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0869        2.8013        .15303E-03   -1.5419    
  17  norm          24.163        16.221        .81491E-04   -1.4724    
  18  norm          .10000E-03    5.8228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.516        26.667        .88426E-04   -1.4802    
  20  Prefactor     .10000E-03    9.6470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          47.237        21.988        .58341E-04   -1.4332    
  22  Normalizat    1.3096        .28559        .32995E-03   -.83279    
  23  Prefactor     .77243        .13678        .21188E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32546e-09
Minuit parameter uncertainties:
  1  0.00280715
  2  9.58558
  3  11.5427
  4  9.88194e-06
  5  2.71996
  6  5.37408
  7  6.76177
  8  14.9787
  9  20.0026
  10  9.61809e-06
  11  3.67064
  12  0.00144942
  13  41.6649
  14  37.7409
  15  8.83274e-05
  16  2.80144
  17  16.2237
  18  1.87484e-05
  19  26.6825
  20  4.66958e-05
  21  21.9916
  22  0.285936
  23  0.136838
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  8.833e-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:  7.724e-01  1.368e-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.310e+00  2.859e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/52421/likelihoodResults_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.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) = 7029.94979165
delta logL = -0.000699890197211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7029.94054076
delta logL = 0.00855100516947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16680       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77469       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=   7029.941     FROM MIGRAD    STATUS=FAILED       101 CALLS      330 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16421        375.74        .13043E-02    .40711E-02
   2  alpha         3.8705        4.0477        .12299        .21131E-03
   3  Normalizat    1.3002        .13181        .33103E-03    .74044E-04
   4  Prefactor     .77479        .62015E-01    .21160E-03    .20137E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7029.941     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      428 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16421        375.74        .23887E-03    .40711E-02
   2  alpha         3.8705        4.0477        .94609E-02    .21131E-03
   3  Normalizat    1.3002        .13181        .29094E-03    .74044E-04
   4  Prefactor     .77479        .62015E-01    .49898E-04    .20137E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7029.941     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      460 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16422        9.2874        .26085E-03   -.25758E-03
   2  alpha         3.8705        3.5996        .24598E-01   -.45732E-05
   3  Normalizat    1.3002        .26957        .13241E-04    .79849E-04
   4  Prefactor     .77479        .13377        .84639E-05    .20524E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.164217
  alpha      = 3.87048
  Normalizat = 1.30022
  Prefactor  = 0.774787
 **********
 **   18 **HESSE 
 **********

 FCN=   7029.941     FROM HESSE     STATUS=OK            25 CALLS      485 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16422        4.6563        .10434E-04   -1.5627    
   2  alpha         3.8705        4.3979        .98394E-03    .58020    
   3  Normalizat    1.3002        .26940        .26482E-05   -.83560    
   4  Prefactor     .77479        .13388        .16928E-05   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23535e-10
Minuit parameter uncertainties:
  1  1.7485
  2  5.01005
  3  0.269696
  4  0.133936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52421': 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) = 7029.94053879
delta logL = 0.00855297100043

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.642e-01  1.749e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.870e+00  5.010e+00  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.748e-01  1.339e-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.300e+00  2.697e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/52421/cmap_HighResolution_287020801_287280001_4FGL_J1354.8-1041_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='7.79e-08', time_completed='2021-09-08 17:33:55.154682', job_id='52421', GAL2='0.77', fit_tolerance='1e-08', EG2='1.30', EG='1.31', time_epoch_completed='1631147635.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='8.55e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='184' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:33:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 52421: <4FGL_J1354.8-1041_daily_bin184> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin184> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:21:05 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:21:07 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:07 2021
Terminated at Wed Sep  8 17:33:55 2021
Results reported at Wed Sep  8 17:33:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin184 208.718 -10.6932 287020801 287280001 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 :                                   675.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

