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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin854
RA = 208.718, Dec = -10.6932
tmin = 460684801, tmax = 460944001
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='55168', job_status='RUN', time_executed='2021-09-08 17:33:47.113978', time_epoch_executed='1631147627.11' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55168/ft1_4FGL_J1354.8-1041_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55168/ft2_4FGL_J1354.8-1041_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55168/ft1_4FGL_J1354.8-1041_daily_bin854.fits outfile=/scratch/kocevski/55168/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin854.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=460684801.0 tmax=460944001.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.37
user 3.11
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55168/ft1_filtered_4FGL_J1354.8-1041_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/55168/ft2_4FGL_J1354.8-1041_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/55168/ltcube_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.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/55168/ft2_4FGL_J1354.8-1041_daily_bin854.fits
.....................!
real 12.12
user 11.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55168/ft1_filtered_4FGL_J1354.8-1041_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/55168/ft2_4FGL_J1354.8-1041_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/55168/ltcube_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.fits outfile=/scratch/kocevski/55168/expmap_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.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/55168/ltcube_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.fits
.....................!
real 193.79
user 188.96
sys 4.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/55168/ft1_filtered_4FGL_J1354.8-1041_daily_bin854.fits scfile=/scratch/kocevski/55168/ft2_4FGL_J1354.8-1041_daily_bin854.fits outfile=/scratch/kocevski/55168/cmap_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55168/ft1_filtered_4FGL_J1354.8-1041_daily_bin854.fits scfile=/scratch/kocevski/55168/ft2_4FGL_J1354.8-1041_daily_bin854.fits outfile=/scratch/kocevski/55168/cmap_HighResolution_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.750       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.328       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1241       1.0000         .10000E-03   10000.    
     6 'norm      '    .18867E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76837E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6720       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1907       1.0000         .10000E-03   10000.    
    17 'norm      '    16.859       1.0000         .10000E-03   10000.    
    18 'norm      '    22.086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    23.165       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2612       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82093       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=   5640.932     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2213 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5211       -.51375E-06** at limit **
   2  Prefactor     12.751        9.8951       -.32318E-06    .19837E-03
   3  Prefactor     .10000E-03    3.5502        .68669E-08** at limit **
   4  Prefactor     23.314        18.442        .39265E-05    .12837E-02
   5  norm          1.1242        1.5087       -.17020E-06   -.71118E-03
   6  norm          .10028E-03    2.7841       -.23975E-05** at limit **
   7  norm          5.4877        6.5618       -.52110E-06    .56714E-03
   8  Prefactor     .10000E-03    7.3174       -.21871E-05** at limit **
   9  norm          .10000E-03    24.562        .19342E-04** at limit **
  10  Prefactor     .10000E-03    6.7815        .33639E-06** at limit **
  11  norm          .10000E-03    2.2914        .30449E-07** at limit **
  12  Prefactor     29.443        8.7076        .28192E-07    .25051E-03
  13  Prefactor     .10000E-03    6.5856        .84969E-06** at limit **
  14  Prefactor     5.6706        127.93       -.49868E-05    .13145E-04
  15  norm          .10000E-03    8.4611        .25126E-05** at limit **
  16  norm          2.1912        2.9777       -.21336E-06   -.43380E-03
  17  norm          16.860        14.145       -.22908E-07    .40576E-05
  18  norm          22.086        11.262        .71157E-07    .56814E-04
  19  Prefactor     .10000E-03    18.278       -.60354E-05** at limit **
  20  Prefactor     .10000E-03    18.482       -.42397E-05** at limit **
  21  norm          23.164        21.434       -.88736E-06    .51336E-04
  22  Normalizat    1.2611        .24813        .16353E-06    .22977E-03
  23  Prefactor     .82092        .12868        .21453E-06    .32717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.7506
  Prefactor  = 0.0001
  Prefactor  = 23.3142
  norm       = 1.12417
  norm       = 0.000100278
  norm       = 5.48768
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 29.443
  Prefactor  = 0.0001
  Prefactor  = 5.67063
  norm       = 0.0001
  norm       = 2.19123
  norm       = 16.8596
  norm       = 22.0855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1637
  Normalizat = 1.26112
  Prefactor  = 0.820921
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.932     FROM HESSE     STATUS=OK           370 CALLS     2583 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.751        9.8904        .11218E-03   -1.4994    
   3  Prefactor     .10000E-03    3.5626        .13819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.314        16.996        .82934E-04   -1.4742    
   5  norm          1.1242        1.4852        .10117E-03   -1.5496    
   6  norm          .10028E-03    31.722        .20441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4877        6.5167        .17151E-03   -1.5239    
   8  Prefactor     .10000E-03    7.3442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.064        .37944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3059        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.443        8.7003        .73836E-04   -1.4622    
  13  Prefactor     .10000E-03    6.5865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6706        128.75        .16866E-03   -1.5232    
  15  norm          .10000E-03    8.5170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1912        2.9631        .14179E-03   -1.5412    
  17  norm          16.860        14.146        .97545E-04   -1.4887    
  18  norm          22.086        11.244        .85231E-04   -1.4768    
  19  Prefactor     .10000E-03    18.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          23.164        21.435        .83225E-04   -1.4745    
  22  Normalizat    1.2611        .28801        .31844E-03   -.84735    
  23  Prefactor     .82092        .14974        .20278E-03   -.98962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86492e-09
Minuit parameter uncertainties:
  1  9.36511e-06
  2  9.89162
  3  1.00855e-06
  4  16.9998
  5  1.48523
  6  0.00593974
  7  6.51754
  8  3.48212e-05
  9  0.000571764
  10  0.000571276
  11  8.21135e-07
  12  8.70072
  13  1.38096e-05
  14  54.1728
  15  5.36089e-05
  16  2.96327
  17  14.1493
  18  11.2447
  19  0.000156764
  20  0.000123345
  21  21.4417
  22  0.288373
  23  0.149818
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  5.361e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.209e-01  1.498e-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.261e+00  2.884e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55168/likelihoodResults_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.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) = 5640.93216595
delta logL = -0.000559611255085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5640.9316065
delta logL = -1.64887751453e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2654       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82097       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=   5640.932     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    556.63        .18142E-02** at limit **
   2  alpha         2.1370        2.5064        .50000       -.40927E-08
   3  Normalizat    1.2611        .56137E-01    .31844E-03   -.29203E-04
   4  Prefactor     .82092        .29704E-01    .20278E-03   -.41881E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.13703
  Normalizat = 1.26112
  Prefactor  = 0.820921
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.932     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1749.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1370        2.7440        .50000       -.14570    
   3  Normalizat    1.2611        .16273        .12738E-04   -.84735    
   4  Prefactor     .82092        .86123E-01    .81110E-05   -.98962    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75416e-09
Minuit parameter uncertainties:
  1  0.000948762
  2  3869.36
  3  0.162797
  4  0.0861375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55168': 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): 102
logL (Free Index) = 5640.93160625
delta logL = 8.31978468341e-08

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  9.488e-04  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.137e+00  3.869e+03  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:  8.209e-01  8.614e-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:  1.261e+00  1.628e-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/55168/cmap_HighResolution_460684801_460944001_4FGL_J1354.8-1041_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-08 17:43:21.363564', job_id='55168', GAL2='0.82', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631148201.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='854' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:43:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 55168: <4FGL_J1354.8-1041_daily_bin854> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin854> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:30:39 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:30:42 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:30:42 2021
Terminated at Wed Sep  8 17:43:21 2021
Results reported at Wed Sep  8 17:43:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin854 208.718 -10.6932 460684801 460944001 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

