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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1121
RA = 208.718, Dec = -10.6932
tmin = 529891201, tmax = 530150401
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='57429', job_status='RUN', time_executed='2021-09-08 17:35:35.237299', time_epoch_executed='1631147735.24' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57429/ft1_4FGL_J1354.8-1041_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57429/ft1_4FGL_J1354.8-1041_daily_bin1121.fits outfile=/scratch/kocevski/57429/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1121.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=529891201.0 tmax=530150401.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.55
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57429/ft1_filtered_4FGL_J1354.8-1041_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/57429/ltcube_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.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/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits
.....................!
real 11.69
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57429/ft1_filtered_4FGL_J1354.8-1041_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/57429/ltcube_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.fits outfile=/scratch/kocevski/57429/expmap_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.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/57429/ltcube_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.fits
.....................!
real 190.96
user 186.01
sys 4.59

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/57429/ft1_filtered_4FGL_J1354.8-1041_daily_bin1121.fits scfile=/scratch/kocevski/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits outfile=/scratch/kocevski/57429/cmap_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57429/ft1_filtered_4FGL_J1354.8-1041_daily_bin1121.fits scfile=/scratch/kocevski/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits outfile=/scratch/kocevski/57429/cmap_HighResolution_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57429/ft1_filtered_4FGL_J1354.8-1041_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/57429/ft2_4FGL_J1354.8-1041_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57429/Model_4FGL_J1354.8-1041_daily_bin1121.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/57429/ft1_filtered_4FGL_J1354.8-1041_daily_bin1121.fits.....................!
real 58.98
user 56.98
sys 1.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.991       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.055       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6619       1.0000         .10000E-03   10000.    
     6 'norm      '    11.429       1.0000         .10000E-03   10000.    
     7 'norm      '    12.152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26248       1.0000         .10000E-03   10000.    
     9 'norm      '    18.230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.784       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .45708       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5647       1.0000         .10000E-03   10000.    
    18 'norm      '    .15605E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8887       1.0000         .10000E-03   10000.    
    21 'norm      '    8.7958       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6223       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95364       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=   6988.458     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2236 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6711       -.84361E-06** at limit **
   2  Prefactor     11.991        10.058       -.13348E-06   -.30999E-05
   3  Prefactor     32.049        17.107        .19984E-05    .21202E-03
   4  Prefactor     .10000E-03    16.839       -.32118E-06** at limit **
   5  norm          3.6610        2.2963       -.14606E-07   -.19403E-03
   6  norm          11.429        6.4301        .22768E-06    .12381E-03
   7  norm          12.147        11.095        .58964E-06    .73236E-04
   8  Prefactor     .15369        15.536       -.40862E-06    .13161E-04
   9  norm          18.228        23.464        .12389E-05    .36900E-04
  10  Prefactor     .10000E-03    10.934        .16721E-05** at limit **
  11  norm          4.1408        3.3668        .75736E-06   -.21388E-02
  12  Prefactor     .10000E-03    4.2196        .74599E-07** at limit **
  13  Prefactor     .10000E-03    8.5406        .31868E-05** at limit **
  14  Prefactor     31.782        31.233        .11218E-05    .35035E-04
  15  norm          .10000E-03    2.9002       -.62600E-08** at limit **
  16  norm          .43842        1.9286        .28488E-06   -.28480E-03
  17  norm          7.5631        13.434        .54921E-06   -.25496E-05
  18  norm          .10000E-03    5.3119        .19517E-06** at limit **
  19  Prefactor     .10000E-03    9.4501       -.36335E-05** at limit **
  20  Prefactor     4.8868        13.964        .15082E-05    .23516E-04
  21  norm          8.7923        15.722        .26720E-05    .82171E-04
  22  Normalizat    1.6225        .27668       -.15186E-05   -.50647E-04
  23  Prefactor     .95369        .13362       -.19757E-06   -.13896E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.9905
  Prefactor  = 32.0495
  Prefactor  = 0.0001
  norm       = 3.66099
  norm       = 11.4287
  norm       = 12.1471
  Prefactor  = 0.153686
  norm       = 18.2279
  Prefactor  = 0.0001
  norm       = 4.14085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7816
  norm       = 0.0001
  norm       = 0.438425
  norm       = 7.56309
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88682
  norm       = 8.79231
  Normalizat = 1.62248
  Prefactor  = 0.953691
 **********
 **   18 **HESSE 
 **********

 FCN=   6988.458     FROM HESSE     STATUS=OK           384 CALLS     2620 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.991        10.056        .11568E-03   -1.5015    
   3  Prefactor     32.049        17.238        .70772E-04   -1.4575    
   4  Prefactor     .10000E-03    16.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6610        2.3061        .93912E-04   -1.5325    
   6  norm          11.429        6.4233        .11850E-03   -1.5032    
   7  norm          12.147        11.092        .11491E-03   -1.5011    
   8  Prefactor     .15369        24.126        .87696E-01   -1.5630    
   9  norm          18.228        23.471        .93804E-04   -1.4854    
  10  Prefactor     .10000E-03    10.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1408        6.1569        .99093E-03   -1.5301    
  12  Prefactor     .10000E-03    4.2724        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.782        31.344        .71072E-04   -1.4580    
  15  norm          .10000E-03    2.9088        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .43842        6.9574        .20633E-02   -1.5576    
  17  norm          7.5631        13.435        .14581E-03   -1.5158    
  18  norm          .10000E-03    24.654        .35748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8868        13.955        .18192E-03   -1.5266    
  21  norm          8.7923        15.745        .13515E-03   -1.5115    
  22  Normalizat    1.6225        .32629        .34122E-03   -.74392    
  23  Prefactor     .95369        .15820        .21948E-03   -.94289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12606e-09
Minuit parameter uncertainties:
  1  3.2928e-05
  2  10.057
  3  17.2406
  4  6.80435e-05
  5  2.30616
  6  6.42367
  7  11.0934
  8  3.8515
  9  23.4832
  10  6.38697e-05
  11  6.15786
  12  1.72597e-06
  13  9.71017e-05
  14  31.3604
  15  2.69833e-07
  16  3.4931
  17  13.4404
  18  8.70672e-05
  19  0.000107555
  20  13.9647
  21  15.7525
  22  0.326717
  23  0.158273
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  2.698e-07  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.537e-01  1.583e-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.622e+00  3.267e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57429/likelihoodResults_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.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) = 6988.45953638
delta logL = -0.00162899675342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6988.45790786
delta logL = -4.80788003188e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2794       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95384       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=   6988.449     FROM MIGRAD    STATUS=CONVERGED    195 CALLS      335 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34534E-01    5.3735        .13942E-01    .26358E-02
   2  alpha         5.0000        3.8366        .50000    ** at limit **
   3  Normalizat    1.6097        .42713E-01    .34122E-03   -.54942E-04
   4  Prefactor     .95757        .21692E-01    .21948E-03   -.19994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0345341
  alpha      = 5
  Normalizat = 1.6097
  Prefactor  = 0.957565
 **********
 **   18 **HESSE 
 **********

 FCN=   6988.449     FROM HESSE     STATUS=OK            33 CALLS      368 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34534E-01    .87271        .64330E-03   -1.5671    
   2  alpha         5.0000        4.9749        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6097        .31636        .13649E-04   -.74741    
   4  Prefactor     .95757        .15684        .87791E-05   -.94158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42377e-08
Minuit parameter uncertainties:
  1  0.34671
  2  5.2225e-06
  3  0.316753
  4  0.156915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57429': 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) = 6988.44930098
delta logL = 0.00860639901657

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  3.453e-02  3.467e-01  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  5.000e+00  5.223e-06  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.576e-01  1.569e-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.610e+00  3.168e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/57429/cmap_HighResolution_529891201_530150401_4FGL_J1354.8-1041_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-08 17:46:06.449550', job_id='57429', GAL2='0.96', fit_tolerance='1e-08', EG2='1.61', EG='1.62', time_epoch_completed='1631148366.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.61e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1121' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:46:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 57429: <4FGL_J1354.8-1041_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1121> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 17:35:21 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:35:22 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:35:22 2021
Terminated at Wed Sep  8 17:46:07 2021
Results reported at Wed Sep  8 17:46:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1121 208.718 -10.6932 529891201 530150401 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 :                                   628.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

