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


Performing analysis on: 4FGL_J1354.8-1041_daily_bin990
RA = 208.718, Dec = -10.6932
tmin = 495936001, tmax = 496195201
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='55406', job_status='RUN', time_executed='2021-09-08 17:34:04.877542', time_epoch_executed='1631147644.88' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55406/ft1_4FGL_J1354.8-1041_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55406/ft1_4FGL_J1354.8-1041_daily_bin990.fits outfile=/scratch/kocevski/55406/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin990.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=495936001.0 tmax=496195201.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.49
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55406/ft1_filtered_4FGL_J1354.8-1041_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/55406/ltcube_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.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/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits
.....................!
real 16.07
user 15.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55406/ft1_filtered_4FGL_J1354.8-1041_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/55406/ltcube_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.fits outfile=/scratch/kocevski/55406/expmap_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.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/55406/ltcube_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.fits
.....................!
real 191.48
user 185.26
sys 5.72

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/55406/ft1_filtered_4FGL_J1354.8-1041_daily_bin990.fits scfile=/scratch/kocevski/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits outfile=/scratch/kocevski/55406/cmap_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55406/ft1_filtered_4FGL_J1354.8-1041_daily_bin990.fits scfile=/scratch/kocevski/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits outfile=/scratch/kocevski/55406/cmap_HighResolution_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55406/ft1_filtered_4FGL_J1354.8-1041_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/55406/ft2_4FGL_J1354.8-1041_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55406/Model_4FGL_J1354.8-1041_daily_bin990.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/55406/ft1_filtered_4FGL_J1354.8-1041_daily_bin990.fits.....................!
real 59.22
user 57.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20969       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9569       1.0000         .10000E-03   10000.    
     7 'norm      '    8.8640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9769       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1768       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9183       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5995       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.532       1.0000         .10000E-03   10000.    
    18 'norm      '    .93386       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4096       1.0000         .10000E-03   10000.    
    21 'norm      '    11.621       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5554       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81873       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=   7438.443     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2565 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6055        .68784E-07** at limit **
   2  Prefactor     .10000E-03    8.3551       -.20201E-06** at limit **
   3  Prefactor     6.4181        6.8524        .14237E-05   -.21057E-03
   4  Prefactor     .10000E-03    11.076        .74008E-06** at limit **
   5  norm          .21005        .79747        .43055E-08   -.56110E-04
   6  norm          9.9564        4.4323        .18260E-07   -.81782E-04
   7  norm          8.8640        7.5937        .46807E-07   -.64587E-04
   8  Prefactor     6.9591        14.673       -.88788E-06   -.14454E-03
   9  norm          .10000E-03    13.413       -.77570E-06** at limit **
  10  Prefactor     3.1887        12.655        .16620E-05    .61575E-04
  11  norm          .10000E-03    .98187        .86234E-08** at limit **
  12  Prefactor     3.9181        5.2118       -.49885E-06   -.35088E-03
  13  Prefactor     .10000E-03    17.234       -.51185E-06** at limit **
  14  Prefactor     .10000E-03    25.887        .28496E-05** at limit **
  15  norm          1.5991        5.7868        .75842E-06   -.18264E-03
  16  norm          .10000E-03    .92481       -.41397E-07** at limit **
  17  norm          19.532        12.932        .34928E-07   -.18855E-05
  18  norm          .93483        4.9808        .23099E-05   -.10242E-03
  19  Prefactor     .10000E-03    32.737       -.21842E-05** at limit **
  20  Prefactor     4.4017        22.923       -.12265E-05   -.55407E-04
  21  norm          11.624        17.179        .50478E-06    .33658E-04
  22  Normalizat    1.5554        .22860       -.64291E-06   -.30876E-04
  23  Prefactor     .81870        .11545       -.18843E-06   -.72607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41807
  Prefactor  = 0.0001
  norm       = 0.210048
  norm       = 9.95638
  norm       = 8.86397
  Prefactor  = 6.9591
  norm       = 0.0001
  Prefactor  = 3.18869
  norm       = 0.0001
  Prefactor  = 3.91809
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.59909
  norm       = 0.0001
  norm       = 19.5315
  norm       = 0.934833
  Prefactor  = 0.000100001
  Prefactor  = 4.40171
  norm       = 11.624
  Normalizat = 1.55544
  Prefactor  = 0.818703
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.443     FROM HESSE     STATUS=OK           376 CALLS     2941 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.8319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4181        6.8955        .79204E-03   -1.5201    
   4  Prefactor     .10000E-03    11.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .21005        2.5633        .14032E-02   -1.5616    
   6  norm          9.9564        4.4350        .10584E-03   -1.5077    
   7  norm          8.8640        7.5919        .13463E-03   -1.5112    
   8  Prefactor     6.9591        14.441        .15188E-03   -1.5180    
   9  norm          .10000E-03    13.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1887        12.368        .22737E-03   -1.5351    
  11  norm          .10000E-03    .98387        .83456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9181        5.1504        .20076E-03   -1.5312    
  13  Prefactor     .10000E-03    17.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5991        5.7277        .33525E-03   -1.5455    
  16  norm          .10000E-03    .93934        .80951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.532        12.933        .90627E-04   -1.4824    
  18  norm          .93483        5.0483        .37856E-03   -1.5515    
  19  Prefactor     .10000E-03    33.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4017        23.216        .19178E-03   -1.5288    
  21  norm          11.624        17.177        .11752E-03   -1.5026    
  22  Normalizat    1.5554        .27075        .29934E-03   -.76232    
  23  Prefactor     .81870        .13715        .20641E-03   -.99043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82435e-08
Minuit parameter uncertainties:
  1  1.19402e-07
  2  2.13451e-05
  3  6.89636
  4  6.68683e-05
  5  1.46726
  6  4.43514
  7  7.5927
  8  14.4486
  9  7.82701e-05
  10  12.378
  11  4.41441e-07
  12  5.15097
  13  5.81699e-05
  14  0.000411338
  15  5.72969
  16  7.4402e-07
  17  12.9346
  18  4.34511
  19  0.000334093
  20  20.2298
  21  17.184
  22  0.271
  23  0.137202
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.599e+00  5.730e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.187e-01  1.372e-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.555e+00  2.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 208.718 -10.693
Photon Flux Upper Limit: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55406/likelihoodResults_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.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) = 7438.24183315
delta logL = 0.2010192974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7438.23682029
delta logL = 0.20603216118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7018       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82581       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=   7438.237     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      243 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7018        4.9107        .16678E-03    .45262E-04
   2  alpha         3.2822        1.7035        .28402E-01    .10213E-04
   3  Normalizat    1.5281        .26389        .30145E-03   -.13370E-03
   4  Prefactor     .82589        .13620        .20555E-03   -.17356E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70183
  alpha      = 3.28217
  Normalizat = 1.52806
  Prefactor  = 0.825886
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.237     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7018        3.8418        .66712E-05   -1.5447    
   2  alpha         3.2822        1.3898        .11361E-02    .31821    
   3  Normalizat    1.5281        .26401        .60291E-04   -.76993    
   4  Prefactor     .82589        .13614        .82219E-05   -.98781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7321e-11
Minuit parameter uncertainties:
  1  3.84239
  2  1.48465
  3  0.264253
  4  0.136197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55406': 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) = 7438.23681955
delta logL = 0.206032902218

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.702e+00  3.842e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  3.282e+00  1.485e+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:  8.259e-01  1.362e-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.528e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 208.718 -10.693

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/55406/cmap_HighResolution_495936001_496195201_4FGL_J1354.8-1041_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-08 17:45:25.368722', job_id='55406', GAL2='0.83', fit_tolerance='1e-08', EG2='1.53', EG='1.56', time_epoch_completed='1631148325.37', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.06e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='990' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:45:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 55406: <4FGL_J1354.8-1041_daily_bin990> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin990> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 17:30:59 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:31:01 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:31:01 2021
Terminated at Wed Sep  8 17:45:26 2021
Results reported at Wed Sep  8 17:45:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin990 208.718 -10.6932 495936001 496195201 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 :                                   676.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

