/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 8 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1354.8-1041_daily_bin197
RA = 208.718, Dec = -10.6932
tmin = 290390401, tmax = 290649601
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='52440', job_status='RUN', time_executed='2021-09-08 17:21:24.619787', time_epoch_executed='1631146884.62' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52440/ft1_4FGL_J1354.8-1041_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52440/ft2_4FGL_J1354.8-1041_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52440/ft1_4FGL_J1354.8-1041_daily_bin197.fits outfile=/scratch/kocevski/52440/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin197.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=290390401.0 tmax=290649601.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.46
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52440/ft1_filtered_4FGL_J1354.8-1041_daily_bin197.fits" evtable="EVENTS" scfile=/scratch/kocevski/52440/ft2_4FGL_J1354.8-1041_daily_bin197.fits sctable="SC_DATA" outfile=/scratch/kocevski/52440/ltcube_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.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/52440/ft2_4FGL_J1354.8-1041_daily_bin197.fits
.....................!
real 13.36
user 13.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52440/ft1_filtered_4FGL_J1354.8-1041_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/52440/ft2_4FGL_J1354.8-1041_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/52440/ltcube_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.fits outfile=/scratch/kocevski/52440/expmap_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.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/52440/ltcube_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.fits
.....................!
real 191.04
user 186.36
sys 4.29

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/52440/ft1_filtered_4FGL_J1354.8-1041_daily_bin197.fits scfile=/scratch/kocevski/52440/ft2_4FGL_J1354.8-1041_daily_bin197.fits outfile=/scratch/kocevski/52440/cmap_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.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.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52440/ft1_filtered_4FGL_J1354.8-1041_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/52440/ft2_4FGL_J1354.8-1041_daily_bin197.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52440/Model_4FGL_J1354.8-1041_daily_bin197.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/52440/ft1_filtered_4FGL_J1354.8-1041_daily_bin197.fits.....................!
real 49.23
user 47.82
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6372       1.0000         .10000E-03   10000.    
     6 'norm      '    .79805       1.0000         .10000E-03   10000.    
     7 'norm      '    9.4522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.483       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .71227E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.580       1.0000         .10000E-03   10000.    
    18 'norm      '    11.440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82086       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0552       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=   5707.058     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     2924 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.626        12.457        .98224E-04   -.24306E-05
   2  Prefactor     9.7308        9.0933        .64233E-03   -.21593E-04
   3  Prefactor     10.121        10.763        .12596E-03   -.40706E-04
   4  Prefactor     .10000E-03    9.9252        .18142E-02** at limit **
   5  norm          6.6375        2.2570        .61869E-04   -.92980E-04
   6  norm          .79903        7.6656        .30305E-03   -.29524E-04
   7  norm          9.4527        10.772        .65175E-03   -.10084E-03
   8  Prefactor     .10000E-03    9.4101        .18142E-02** at limit **
   9  norm          .10000E-03    35.396        .18142E-02** at limit **
  10  Prefactor     .10000E-03    5.4852        .17249E-02** at limit **
  11  norm          5.0955        4.7111        .15163E-03    .12896E-04
  12  Prefactor     4.6317        6.9497        .18705E-03    .32820E-05
  13  Prefactor     72.441        32.677        .47169E-04   -.30224E-04
  14  Prefactor     38.484        53.673        .64610E-04   -.98537E-05
  15  norm          .10000E-03    2.7007        .12109E-02** at limit **
  16  norm          .10000E-03    5.2059        .29166E-01** at limit **
  17  norm          16.581        13.038        .98360E-04    .72817E-05
  18  norm          11.442        9.1918        .59222E-03    .25891E-03
  19  Prefactor     17.945        25.872        .94541E-04    .31265E-04
  20  Prefactor     .10000E-03    9.5032        .18142E-02** at limit **
  21  norm          .10000E-03    16.679        .18142E-02** at limit **
  22  Normalizat    .82067        .32604        .38757E-03    .55704E-04
  23  Prefactor     1.0553        .16293        .18568E-03    .16439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6264
  Prefactor  = 9.73077
  Prefactor  = 10.1206
  Prefactor  = 0.0001
  norm       = 6.63755
  norm       = 0.799034
  norm       = 9.45273
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09552
  Prefactor  = 4.63165
  Prefactor  = 72.4407
  Prefactor  = 38.4845
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.5805
  norm       = 11.4417
  Prefactor  = 17.9449
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.820669
  Prefactor  = 1.0553
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.058     FROM HESSE     STATUS=OK           356 CALLS     3280 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.626        12.458        .39290E-05   -1.4892    
   2  Prefactor     9.7308        9.0922        .25693E-04   -1.5084    
   3  Prefactor     10.121        10.762        .50384E-05   -1.5072    
   4  Prefactor     .10000E-03    9.9258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6375        2.2570        .24747E-05   -1.5193    
   6  norm          .79903        7.6217        .12122E-04   -1.5529    
   7  norm          9.4527        10.742        .26070E-04   -1.5093    
   8  Prefactor     .10000E-03    9.4124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    35.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4859        .34497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0955        4.7109        .60652E-05   -1.5256    
  12  Prefactor     4.6317        6.9476        .74821E-05   -1.5278    
  13  Prefactor     72.441        32.676        .94339E-05   -1.4004    
  14  Prefactor     38.484        53.652        .25844E-05   -1.4466    
  15  norm          .10000E-03    2.7008        .24217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2684        .38929E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.581        13.038        .39344E-05   -1.4893    
  18  norm          11.442        9.1921        .23689E-04   -1.5031    
  19  Prefactor     17.945        25.869        .37816E-05   -1.4860    
  20  Prefactor     .10000E-03    9.5034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    16.686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .82067        .32633        .15503E-04   -.99307    
  23  Prefactor     1.0553        .16307        .37135E-04   -.90908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.927e-11
Minuit parameter uncertainties:
  1  12.4595
  2  9.09351
  3  10.764
  4  1.23326e-05
  5  2.25699
  6  4.9361
  7  10.7445
  8  1.53399e-05
  9  0.000116565
  10  9.1335e-06
  11  4.71125
  12  6.94883
  13  32.6838
  14  53.7193
  15  4.18959e-06
  16  1.51892e-05
  17  13.0407
  18  9.19326
  19  25.8851
  20  4.52011e-06
  21  6.10527e-05
  22  0.327118
  23  0.163149
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  4.190e-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.055e+00  1.631e-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.207e-01  3.271e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/52440/likelihoodResults_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.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) = 5707.05992022
delta logL = -0.00175170410785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5707.05816849
delta logL = 2.57487045019e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2787       1.0000          .0000       5.0000    
     3 'Normalizat'    .82064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0553       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=   5706.839     FROM MIGRAD    STATUS=FAILED       150 CALLS      293 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19730        13.270        .10772E-01    .67068E-02
   2  alpha         5.0000        4.3271        .50000    ** at limit **
   3  Normalizat    .74089        .12478        .38757E-02    .26823E-03
   4  Prefactor     1.0818        .52070E-01    .18568E-03    .18889E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5706.839     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      422 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19730        13.270        .26493E-05    .67068E-02
   2  alpha         5.0000        4.3271        .59736E-02** at limit **
   3  Normalizat    .74089        .12478        .12731E-05    .26823E-03
   4  Prefactor     1.0818        .52070E-01    .16830E-06    .18889E-03
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5706.839     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      481 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19729        .31806        .47252E-04    .57575E-03
   2  alpha         5.0000        3.7994        .95518E-01** at limit **
   3  Normalizat    .74089        .31442        .15503E-03    .12138E-03
   4  Prefactor     1.0818        .16307        .37135E-04    .26328E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.197289
  alpha      = 5
  Normalizat = 0.740887
  Prefactor  = 1.08178
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.839     FROM HESSE     STATUS=OK            23 CALLS      504 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19729        .31404        .18901E-05   -1.5619    
   2  alpha         5.0000        3.8029        .38207E-02    7.8539    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .74089        .31433        .31005E-04   -1.0230    
   4  Prefactor     1.0818        .16306        .74270E-05   -.90051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52681e-09
Minuit parameter uncertainties:
  1  0.31404
  2  0.000241028
  3  0.315099
  4  0.163134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52440': 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) = 5706.83872771
delta logL = 0.219440799474

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.973e-01  3.140e-01  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  5.000e+00  2.410e-04  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.082e+00  1.631e-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:  7.409e-01  3.151e-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/52440/cmap_HighResolution_290390401_290649601_4FGL_J1354.8-1041_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-08 17:31:42.977088', job_id='52440', GAL2='1.08', fit_tolerance='1e-08', EG2='0.74', EG='0.82', time_epoch_completed='1631147502.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.19e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='197' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 52440: <4FGL_J1354.8-1041_daily_bin197> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin197 208.718 -10.6932 290390401 290649601 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 :                                   615.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

