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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1364
RA = 208.718, Dec = -10.6932
tmin = 592876801, tmax = 593136001
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='59372', job_status='RUN', time_executed='2021-09-08 17:41:28.303668', time_epoch_executed='1631148088.3' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59372

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59372/ft1_4FGL_J1354.8-1041_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59372/ft1_4FGL_J1354.8-1041_daily_bin1364.fits outfile=/scratch/kocevski/59372/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1364.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=592876801.0 tmax=593136001.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.80
user 3.61
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.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/59372/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1364.fits evtable="EVENTS" outfile="/scratch/kocevski/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/59372/ltcube_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.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/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits
.....................!
real 12.26
user 11.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/59372/ltcube_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.fits outfile=/scratch/kocevski/59372/expmap_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.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/59372/ltcube_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.fits
.....................!
real 190.91
user 184.88
sys 5.61

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/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.fits scfile=/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits outfile=/scratch/kocevski/59372/cmap_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.fits scfile=/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits outfile=/scratch/kocevski/59372/cmap_HighResolution_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/59372/ft2_4FGL_J1354.8-1041_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59372/Model_4FGL_J1354.8-1041_daily_bin1364.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/59372/ft1_filtered_4FGL_J1354.8-1041_daily_bin1364.fits.....................!
real 55.09
user 53.61
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8480       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.619       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.288       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1385       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    30.961       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5026       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87931       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4035       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=   6624.095     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2504 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.944       -.10337E-05** at limit **
   2  Prefactor     .10000E-03    7.5040        .78987E-07** at limit **
   3  Prefactor     46.083        19.702        .13806E-05    .41343E-03
   4  Prefactor     .10000E-03    31.111       -.12553E-05** at limit **
   5  norm          3.8487        2.6412       -.93557E-07   -.14284E-03
   6  norm          .10000E-03    3.8149        .56386E-08** at limit **
   7  norm          15.621        9.6364       -.22284E-06    .13151E-04
   8  Prefactor     .10000E-03    13.564        .21125E-06** at limit **
   9  norm          23.807        24.428       -.61875E-07   -.10957E-04
  10  Prefactor     15.285        18.291       -.57074E-06   -.59877E-04
  11  norm          5.1380        4.9536        .14109E-08   -.33368E-04
  12  Prefactor     .10000E-03    6.8485       -.42405E-06** at limit **
  13  Prefactor     39.848        39.127       -.52348E-05   -.28536E-03
  14  Prefactor     .10000E-03    22.734       -.33427E-06** at limit **
  15  norm          .10000E-03    3.7096       -.44039E-08** at limit **
  16  norm          .10000E-03    2.3074       -.71028E-07** at limit **
  17  norm          30.961        17.326       -.11205E-06   -.24704E-04
  18  norm          3.5019        3.8640        .11884E-05   -.14573E-02
  19  Prefactor     .10000E-03    27.973        .25708E-05** at limit **
  20  Prefactor     .10000E-03    6.6058        .35588E-06** at limit **
  21  norm          .10000E-03    5.5740       -.52726E-07** at limit **
  22  Normalizat    .87882        .30490        .11234E-05   -.17629E-04
  23  Prefactor     1.4038        .15240       -.31378E-06    .52170E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.083
  Prefactor  = 0.0001
  norm       = 3.84865
  norm       = 0.0001
  norm       = 15.6209
  Prefactor  = 0.0001
  norm       = 23.807
  Prefactor  = 15.2849
  norm       = 5.13805
  Prefactor  = 0.0001
  Prefactor  = 39.8482
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.9608
  norm       = 3.50189
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.878819
  Prefactor  = 1.40383
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.095     FROM HESSE     STATUS=OK           364 CALLS     2868 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.083        19.934        .59068E-04   -1.4349    
   4  Prefactor     .10000E-03    31.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8487        2.6437        .10043E-03   -1.5316    
   6  norm          .10000E-03    3.8637        .15480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.621        9.6071        .10134E-03   -1.4917    
   8  Prefactor     .10000E-03    13.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.807        24.429        .82096E-04   -1.4732    
  10  Prefactor     15.285        18.296        .10244E-03   -1.4926    
  11  norm          5.1380        4.9550        .17184E-03   -1.5255    
  12  Prefactor     .10000E-03    7.0167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.848        40.324        .63491E-04   -1.4445    
  14  Prefactor     .10000E-03    22.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7253        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3963        .24116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.961        17.329        .72008E-04   -1.4595    
  18  norm          3.5019        5.5533        .10802E-02   -1.5334    
  19  Prefactor     .10000E-03    28.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.5757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87882        .34284        .44742E-03   -.97208    
  23  Prefactor     1.4038        .17315        .19858E-03   -.80270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38913e-09
Minuit parameter uncertainties:
  1  0.000141445
  2  7.72987e-06
  3  19.9367
  4  0.000213727
  5  2.64374
  6  1.07585e-05
  7  9.60805
  8  3.13105e-05
  9  24.4392
  10  18.3026
  11  4.95543
  12  3.32867e-05
  13  40.3521
  14  3.46051e-05
  15  1.82752e-06
  16  4.44121e-06
  17  17.3317
  18  5.55409
  19  0.0002611
  20  1.87683e-05
  21  3.19856e-06
  22  0.343692
  23  0.17322
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  1.828e-06  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.404e+00  1.732e-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:  8.788e-01  3.437e-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: 8.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59372/likelihoodResults_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.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) = 6624.0965147
delta logL = -0.00127261618582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6624.09524209
delta logL = -1.18316165754e-08

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 'alpha     '    2.2699       1.0000          .0000       5.0000    
     3 'Normalizat'    .87882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4038       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=   6624.095     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    816.15        .15307E-02** at limit **
   2  alpha         2.2510        2.8731        .16550        .66036E-06
   3  Normalizat    .87882        .19963        .44742E-03   -.86393E-06
   4  Prefactor     1.4038        .10975        .19858E-03   -.14885E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 2.25104
  Normalizat = 0.87882
  Prefactor  = 1.40383
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.095     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    3.7316        .30615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2510        3.1653        .66198E-02   -.99748E-01
   3  Normalizat    .87882        .30632        .17897E-04   -.97208    
   4  Prefactor     1.4038        .16856        .79430E-05   -.80270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00661e-08
Minuit parameter uncertainties:
  1  0.000514376
  2  282.791
  3  0.306928
  4  0.168624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59372': 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) = 6624.09524208
delta logL = 5.3350959206e-09

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  5.144e-04  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.251e+00  2.828e+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:  1.404e+00  1.686e-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:  8.788e-01  3.069e-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/59372/cmap_HighResolution_592876801_593136001_4FGL_J1354.8-1041_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', job_status='DONE', photon_flux_upper_limit='8.27e-08', time_completed='2021-09-08 17:52:52.556887', job_id='59372', GAL2='1.40', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631148772.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='5.34e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1364' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:52:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 59372: <4FGL_J1354.8-1041_daily_bin1364> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1364> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:40:24 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:40:25 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:40:25 2021
Terminated at Wed Sep  8 17:52:53 2021
Results reported at Wed Sep  8 17:52:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1364 208.718 -10.6932 592876801 593136001 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 :                                   631.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

