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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin580
RA = 208.718, Dec = -10.6932
tmin = 389664001, tmax = 389923201
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='54112', job_status='RUN', time_executed='2021-09-08 17:28:11.677804', time_epoch_executed='1631147291.68' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54112/ft1_4FGL_J1354.8-1041_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54112/ft1_4FGL_J1354.8-1041_daily_bin580.fits outfile=/scratch/kocevski/54112/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin580.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=389664001.0 tmax=389923201.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.90
user 4.64
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.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/54112/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/54112/ltcube_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.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/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits
.....................!
real 15.26
user 14.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/54112/ltcube_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.fits outfile=/scratch/kocevski/54112/expmap_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.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/54112/ltcube_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.fits
.....................!
real 191.51
user 185.69
sys 5.40

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/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.fits scfile=/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits outfile=/scratch/kocevski/54112/cmap_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=208.718 yref=-10.6932 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.fits scfile=/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits outfile=/scratch/kocevski/54112/cmap_HighResolution_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/54112/ft2_4FGL_J1354.8-1041_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54112/Model_4FGL_J1354.8-1041_daily_bin580.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/54112/ft1_filtered_4FGL_J1354.8-1041_daily_bin580.fits.....................!
real 67.17
user 65.82
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2837       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5746       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.779       1.0000         .10000E-03   10000.    
     9 'norm      '    12.059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7850       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.719       1.0000         .10000E-03   10000.    
    15 'norm      '    .25090       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6031       1.0000         .10000E-03   10000.    
    17 'norm      '    21.810       1.0000         .10000E-03   10000.    
    18 'norm      '    .10710E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64064       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.0026       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62260       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9250.401     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     2130 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5652        1.7625        .13400E-05    .25062E-02
   2  Prefactor     5.9659        1.0507        .67721E-06   -.11076E-03
   3  Prefactor     .10000E-03    5.9067       -.18131E-05** at limit **
   4  Prefactor     .10011E-03    54.304       -.48005E-05** at limit **
   5  norm          1.2841        .99677       -.20065E-06    .29097E-03
   6  norm          3.5743        2.3697       -.18755E-06    .24011E-03
   7  norm          4.6551        3.4279       -.41625E-05   -.71236E-03
   8  Prefactor     19.779        1.0012       -.15157E-07    .13199E-03
   9  norm          12.057        1.0168       -.12540E-06    .36156E-03
  10  Prefactor     .10000E-03    1.9039        .10817E-06** at limit **
  11  norm          .10000E-03    1.0529       -.82616E-06** at limit **
  12  Prefactor     1.7842        3.4025       -.13713E-05   -.23395E-04
  13  Prefactor     .10000E-03    16.510        .78731E-05** at limit **
  14  Prefactor     28.722        1.0281        .15187E-06   -.11075E-02
  15  norm          .24940        .58051       -.14817E-05    .11987E-03
  16  norm          3.6014        2.0153       -.46697E-07   -.60146E-03
  17  norm          21.809        1.0005        .17031E-07   -.46841E-04
  18  norm          .10000E-03    8.4989       -.23716E-04** at limit **
  19  Prefactor     .63902        .95052        .96410E-07   -.69357E-05
  20  Prefactor     .10000E-03    7.7707        .22801E-04** at limit **
  21  norm          6.9993        1.0293        .40326E-06   -.52904E-03
  22  Normalizat    .62242        .19674       -.73159E-07    .38172E-03
  23  Prefactor     1.0789        .10861        .23213E-06    .74708E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56517
  Prefactor  = 5.96588
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  norm       = 1.28411
  norm       = 3.57426
  norm       = 4.65513
  Prefactor  = 19.779
  norm       = 12.0573
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.78419
  Prefactor  = 0.0001
  Prefactor  = 28.7215
  norm       = 0.249396
  norm       = 3.60137
  norm       = 21.8094
  norm       = 0.000100001
  Prefactor  = 0.639022
  Prefactor  = 0.0001
  norm       = 6.99932
  Normalizat = 0.622415
  Prefactor  = 1.07887
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.401     FROM HESSE     STATUS=OK           434 CALLS     2564 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5652        4.1957        .85032E-02   -1.5458    
   2  Prefactor     5.9659        7.0878        .41116E-02   -1.5219    
   3  Prefactor     .10000E-03    5.7877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10011E-03    10.448        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2841        1.0150        .97865E-02   -1.5481    
   6  norm          3.5743        2.7839        .53438E-02   -1.5330    
   7  norm          4.6551        3.6012        .46639E-02   -1.5276    
   8  Prefactor     19.779        10.113        .22515E-02   -1.4818    
   9  norm          12.057        19.563        .28839E-02   -1.5013    
  10  Prefactor     .10000E-03    1.9020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7842        3.8416        .78293E-02   -1.5441    
  13  Prefactor     .10000E-03    16.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.722        25.827        .18690E-02   -1.4636    
  15  norm          .24940        3.7208        .52485E-01   -1.5608    
  16  norm          3.6014        2.0272        .53217E-02   -1.5328    
  17  norm          21.809        11.396        .21442E-02   -1.4774    
  18  norm          .10000E-03    8.2787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63902        8.3272        .11832       -1.5548    
  20  Prefactor     .10000E-03    7.8813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.9993        11.729        .37900E-02   -1.5179    
  22  Normalizat    .62242        .18036        .84344E-01   -1.0704    
  23  Prefactor     1.0789        .97417E-01    .38454E-01   -.90145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55873e-08
Minuit parameter uncertainties:
  1  4.19653
  2  7.08875
  3  9.83071e-05
  4  0.00209913
  5  1.01506
  6  2.78403
  7  3.60135
  8  10.1135
  9  19.573
  10  3.03834e-05
  11  1.91954e-05
  12  3.84213
  13  2.38813e-05
  14  25.8372
  15  1.92635
  16  2.02721
  17  11.3968
  18  0.000135901
  19  4.61401
  20  7.18342e-05
  21  11.7326
  22  0.180526
  23  0.0974331
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  2.494e-01  1.926e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.079e+00  9.743e-02  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:  6.224e-01  1.805e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54112/likelihoodResults_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.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) = 9250.37510352
delta logL = 0.0262536358096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9250.31706366
delta logL = 0.0842934907414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98204       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3380       1.0000          .0000       5.0000    
     3 'Normalizat'    .62562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0762       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=   9250.317     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97613        3.2498        .59812E-01    .13163E-02
   2  alpha         1.3364        1.3432        .48995       -.56949E-04
   3  Normalizat    .62566        .16910        .84137E-01    .50077E-04
   4  Prefactor     1.0762        .96172E-01    .38571E-01   -.68866E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.976128
  alpha      = 1.33639
  Normalizat = 0.62566
  Prefactor  = 1.07617
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.317     FROM HESSE     STATUS=OK            35 CALLS      271 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97613        2.9366        .26376E-02   -1.5510    
   2  alpha         1.3364        1.4176        .52485E-01   -.48414    
   3  Normalizat    .62566        .19008        .37264E-03   -1.0691    
   4  Prefactor     1.0762        .10834        .16390E-03   -.90232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79648e-11
Minuit parameter uncertainties:
  1  2.93701
  2  1.53858
  3  0.190282
  4  0.10836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54112': 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) = 9250.31706162
delta logL = 0.0842955283642

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  9.761e-01  2.937e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.336e+00  1.539e+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:  1.076e+00  1.084e-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:  6.257e-01  1.903e-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/54112/cmap_HighResolution_389664001_389923201_4FGL_J1354.8-1041_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-08 17:41:10.948503', job_id='54112', GAL2='1.08', fit_tolerance='1e-08', EG2='0.63', EG='0.62', time_epoch_completed='1631148070.95', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='8.43e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='580' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:41:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 54112: <4FGL_J1354.8-1041_daily_bin580> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin580> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 17:26:08 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:26:09 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:26:09 2021
Terminated at Wed Sep  8 17:41:11 2021
Results reported at Wed Sep  8 17:41:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin580 208.718 -10.6932 389664001 389923201 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

