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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1255
RA = 208.718, Dec = -10.6932
tmin = 564624001, tmax = 564883201
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='57626', job_status='RUN', time_executed='2021-09-08 17:36:27.230358', time_epoch_executed='1631147787.23' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57626/ft1_4FGL_J1354.8-1041_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57626/ft1_4FGL_J1354.8-1041_daily_bin1255.fits outfile=/scratch/kocevski/57626/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1255.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=564624001.0 tmax=564883201.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.65
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57626/ft1_filtered_4FGL_J1354.8-1041_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/57626/ltcube_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.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/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits
.....................!
real 11.97
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57626/ft1_filtered_4FGL_J1354.8-1041_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/57626/ltcube_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.fits outfile=/scratch/kocevski/57626/expmap_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.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/57626/ltcube_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.fits
.....................!
real 189.69
user 185.35
sys 3.96

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/57626/ft1_filtered_4FGL_J1354.8-1041_daily_bin1255.fits scfile=/scratch/kocevski/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits outfile=/scratch/kocevski/57626/cmap_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57626/ft1_filtered_4FGL_J1354.8-1041_daily_bin1255.fits scfile=/scratch/kocevski/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits outfile=/scratch/kocevski/57626/cmap_HighResolution_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=208.718 yref=-10.6932 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57626/ft1_filtered_4FGL_J1354.8-1041_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/57626/ft2_4FGL_J1354.8-1041_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57626/Model_4FGL_J1354.8-1041_daily_bin1255.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/57626/ft1_filtered_4FGL_J1354.8-1041_daily_bin1255.fits....................!
real 36.97
user 35.62
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.063       1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.105       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4027       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.298       1.0000         .10000E-03   10000.    
    15 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.415       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2484       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    72.733       1.0000         .10000E-03   10000.    
    21 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3998       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77692       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=   4017.370     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2479 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5421       -.99354E-07** at limit **
   2  Prefactor     .10000E-03    9.5101        .11513E-06** at limit **
   3  Prefactor     19.250        19.652        .10653E-06   -.32585E-04
   4  Prefactor     .10000E-03    26.871        .55049E-06** at limit **
   5  norm          .10000E-03    .47651       -.17004E-07** at limit **
   6  norm          16.063        8.8760       -.18918E-06   -.53274E-04
   7  norm          .10000E-03    24.558       -.25579E-06** at limit **
   8  Prefactor     .10000E-03    28.262        .10752E-05** at limit **
   9  norm          .10000E-03    12.238       -.51756E-06** at limit **
  10  Prefactor     27.091        52.923       -.17468E-05   -.95275E-04
  11  norm          .10000E-03    5.1455        .44337E-06** at limit **
  12  Prefactor     1.3986        14.061        .24359E-05   -.16153E-04
  13  Prefactor     .10000E-03    13.673        .68009E-06** at limit **
  14  Prefactor     29.379        78.401        .17401E-04    .26252E-03
  15  norm          .10000E-03    23.763       -.20042E-05** at limit **
  16  norm          12.414        4.5218        .27214E-07   -.12313E-04
  17  norm          3.2501        9.2354        .97106E-05   -.23897E-03
  18  norm          .10000E-03    4.8987       -.24999E-07** at limit **
  19  Prefactor     .10000E-03    24.443       -.64883E-06** at limit **
  20  Prefactor     72.760        69.609        .45102E-05    .16681E-03
  21  norm          .10000E-03    49.480        .10298E-05** at limit **
  22  Normalizat    1.4004        .29895        .26447E-05   -.13710E-03
  23  Prefactor     .77656        .16298       -.41680E-05    .13032E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2496
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.0625
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 27.0914
  norm       = 0.0001
  Prefactor  = 1.39863
  Prefactor  = 0.0001
  Prefactor  = 29.3794
  norm       = 0.0001
  norm       = 12.4141
  norm       = 3.25012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.7596
  norm       = 0.0001
  Normalizat = 1.4004
  Prefactor  = 0.776564
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.370     FROM HESSE     STATUS=OK           358 CALLS     2837 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.250        19.686        .91279E-04   -1.4830    
   4  Prefactor     .10000E-03    26.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .47863        .42708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.063        8.8261        .99934E-04   -1.4906    
   7  norm          .10000E-03    24.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.091        53.221        .76949E-04   -1.4667    
  11  norm          .10000E-03    5.1497        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3986        13.920        .36623E-03   -1.5471    
  13  Prefactor     .10000E-03    13.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.379        82.477        .74018E-04   -1.4623    
  15  norm          .10000E-03    24.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.414        4.5334        .76750E-04   -1.5003    
  17  norm          3.2501        9.4724        .11236E-02   -1.5347    
  18  norm          .10000E-03    4.9242        .13697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     72.760        70.150        .47075E-04   -1.4000    
  21  norm          .10000E-03    49.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4004        .34644        .31212E-03   -.80617    
  23  Prefactor     .77656        .18702        .21633E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43948e-09
Minuit parameter uncertainties:
  1  1.40122e-06
  2  2.08788e-05
  3  19.6923
  4  0.000111508
  5  6.31739e-07
  6  8.82677
  7  0.000170765
  8  0.000289064
  9  6.01294e-05
  10  53.3146
  11  1.35896e-05
  12  8.82693
  13  0.0001061
  14  82.8
  15  0.000196677
  16  4.53351
  17  9.47673
  18  7.81673e-06
  19  7.00968e-05
  20  70.2295
  21  0.000186644
  22  0.347018
  23  0.187172
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  1.967e-04  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.766e-01  1.872e-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.400e+00  3.470e-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: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57626/likelihoodResults_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.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) = 4017.37022246
delta logL = -0.000195029202587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4017.37002703
delta logL = 4.0015538616e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1925       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77657       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=   4017.370     FROM MIGRAD    STATUS=FAILED        95 CALLS      260 TOTAL
                     EDM=   .22E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    132.07        .33510E-02** at limit **
   2  alpha         2.0927        3.4854        .50000        .15475E-04
   3  Normalizat    1.4004        .12337E-01    .31212E-03   -.22886E-03
   4  Prefactor     .77656        .66225E-02    .21634E-03   -.23353E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4017.370     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      386 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    132.07        .12144E-02** at limit **
   2  alpha         2.0927        3.4854        .59102E-04    .15475E-04
   3  Normalizat    1.4004        .12337E-01    .44225E-06   -.22886E-03
   4  Prefactor     .77656        .66225E-02    .26567E-06   -.23353E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4017.269     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      474 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7372        468.42        .67021E-02    .41208E-03
   2  alpha         .87650        3.9393        .20000        .38895E-04
   3  Normalizat    1.4060        .14005        .62424E-04    .72848E-07
   4  Prefactor     .76958        .81939E-01    .43267E-04    .11561E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73722
  alpha      = 0.8765
  Normalizat = 1.40604
  Prefactor  = 0.769584
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.269     FROM HESSE     STATUS=OK            27 CALLS      501 TOTAL
                     EDM=   .90E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7372        6.2688        .20762E-03   -1.5444    
   2  alpha         .87650        1.4136        .35798E-02   -40.134    
   3  Normalizat    1.4060        .33236        .12485E-04   -.80454    
   4  Prefactor     .76958        .17905        .86535E-05   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02619e-14
Minuit parameter uncertainties:
  1  6.27117
  2  1.59392
  3  0.332871
  4  0.179188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57626': 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) = 4017.2688759
delta logL = 0.101151530484

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.737e+00  6.271e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  8.765e-01  1.594e+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.696e-01  1.792e-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.406e+00  3.329e-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/57626/cmap_HighResolution_564624001_564883201_4FGL_J1354.8-1041_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-08 17:45:23.229794', job_id='57626', GAL2='0.77', fit_tolerance='1e-08', EG2='1.41', EG='1.40', time_epoch_completed='1631148323.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.01e-01', ts2='0.20', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1255' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 57626: <4FGL_J1354.8-1041_daily_bin1255> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1255 208.718 -10.6932 564624001 564883201 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 :                                   491.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            589 sec.

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

