/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0354.7-1617_daily_bin83
RA = 58.6779, Dec = -16.287
tmin = 260841601, tmax = 261100801
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='92656', job_status='RUN', time_executed='2021-08-19 19:27:28.288457', time_epoch_executed='1629426448.29' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92656/ft1_4FGL_J0354.7-1617_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92656/ft1_4FGL_J0354.7-1617_daily_bin83.fits outfile=/scratch/kocevski/92656/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin83.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=260841601.0 tmax=261100801.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 2.43
user 1.41
sys 0.99

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.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/92656/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.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 1.30
user 0.31
sys 0.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/92656/ltcube_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.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/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits
.....................!
real 13.73
user 12.46
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/92656/ltcube_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.fits outfile=/scratch/kocevski/92656/expmap_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.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/92656/ltcube_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.fits
.....................!
real 191.33
user 185.91
sys 5.09

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0354.7-1617 @ 58.6779 -16.287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits scfile=/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits outfile=/scratch/kocevski/92656/cmap_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.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=58.6779 yref=-16.287 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 1.36
user 0.34
sys 0.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits scfile=/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits outfile=/scratch/kocevski/92656/cmap_HighResolution_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.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=58.6779 yref=-16.287 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 1.35
user 0.38
sys 0.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92656/Model_4FGL_J0354.7-1617_daily_bin83.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/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits.....................!
real 87.43
user 84.97
sys 2.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits', '/scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits', expMap='/scratch/kocevski/92656/expmap_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.fits', expCube='/scratch/kocevski/92656/ltcube_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92656/Model_4FGL_J0354.7-1617_daily_bin83.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0354.7-1617'

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  2.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/92656/ft1_filtered_4FGL_J0354.7-1617_daily_bin83.fits
Spacecraft file(s): /scratch/kocevski/92656/ft2_4FGL_J0354.7-1617_daily_bin83.fits
Exposure map: /scratch/kocevski/92656/expmap_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.fits
Exposure cube: /scratch/kocevski/92656/ltcube_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92656/Model_4FGL_J0354.7-1617_daily_bin83.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) = 7290.25080218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13792E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9071       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16077       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2138       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.8816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3714       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.337       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8345       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .93289       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0055       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7290.201     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2339 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.075        .19153E-05** at limit **
   2  Prefactor     .10000E-03    3.7590       -.10848E-08** at limit **
   3  Prefactor     8.3036        325.52        .10837E-04    .17700E-04
   4  Prefactor     .10000E-03    1.3441       -.92952E-07** at limit **
   5  Prefactor     .10000E-03    24.683       -.24386E-05** at limit **
   6  Prefactor     4.5568        9.6371        .19080E-06    .77018E-04
   7  Prefactor     .10000E-03    11.878       -.14721E-05** at limit **
   8  Prefactor     .54141        1.6755       -.88540E-06   -.31665E-04
   9  Prefactor     6.9078        5.4593        .86699E-06   -.27707E-03
  10  Prefactor     .10000E-03    1.5022       -.72152E-07** at limit **
  11  norm          .16307        1.1562       -.83637E-06   -.23464E-02
  12  Prefactor     9.2093        16.779        .37888E-05    .24004E-03
  13  norm          1.5058        1.5009        .22806E-06    .83653E-03
  14  Prefactor     .10000E-03    5.0581       -.68562E-07** at limit **
  15  Prefactor     .10000E-03    1.3292        .92036E-07** at limit **
  16  norm          7.8820        8.4684        .17576E-06   -.65391E-04
  17  Prefactor     9.3728        18.552       -.73532E-06   -.76064E-04
  18  Prefactor     .10000E-03    1.9792       -.67423E-07** at limit **
  19  Prefactor     11.337        4.4244       -.79697E-07   -.10687E-03
  20  norm          2.8279        12.074        .60588E-06    .75920E-04
  21  Prefactor     4.5448        13.376        .20790E-06    .33141E-04
  22  Prefactor     .90885        94.006       -.21272E-04    .16196E-03
  23  Normalizat    1.0055        .18087       -.30581E-06   -.17867E-04
  24  Prefactor     1.0771        .13410        .17343E-06   -.13624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55683
  Prefactor  = 0.0001
  Prefactor  = 0.541414
  Prefactor  = 6.9078
  Prefactor  = 0.0001
  norm       = 0.163068
  Prefactor  = 9.20933
  norm       = 1.50585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.88204
  Prefactor  = 9.37281
  Prefactor  = 0.0001
  Prefactor  = 11.3372
  norm       = 2.82786
  Prefactor  = 4.54477
  Prefactor  = 0.908849
  Normalizat = 1.00552
  Prefactor  = 1.07706
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.201     FROM HESSE     STATUS=OK           405 CALLS     2744 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8465        .16162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3036        329.40        .13910E-03   -1.5132    
   4  Prefactor     .10000E-03    1.3532        .96647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5568        9.7171        .18857E-03   -1.5281    
   7  Prefactor     .10000E-03    11.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54141        1.8202        .19949E-03   -1.5561    
   9  Prefactor     6.9078        5.4067        .15154E-03   -1.5182    
  10  Prefactor     .10000E-03    1.5106        .10205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16307        2.0661        .14668E-02   -1.5627    
  12  Prefactor     9.2093        17.260        .13203E-03   -1.5101    
  13  norm          1.5058        1.4608        .94534E-04   -1.5463    
  14  Prefactor     .10000E-03    5.0615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3700        .19196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.8820        8.4626        .14283E-03   -1.5146    
  17  Prefactor     9.3728        18.532        .13091E-03   -1.5096    
  18  Prefactor     .10000E-03    1.9875        .11729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.337        4.4340        .10706E-03   -1.5034    
  20  norm          2.8279        12.545        .24154E-03   -1.5372    
  21  Prefactor     4.5448        13.438        .18886E-03   -1.5282    
  22  Prefactor     .90885        105.56        .58300E-02   -1.5517    
  23  Normalizat    1.0055        .20642        .27662E-03   -.92846    
  24  Prefactor     1.0771        .15321        .20881E-03   -.90203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36769e-09
Minuit parameter uncertainties:
  1  0.000129314
  2  7.52179e-06
  3  105.225
  4  5.50298e-08
  5  0.00013088
  6  9.72045
  7  9.63597e-05
  8  1.82036
  9  5.4071
  10  1.1846e-05
  11  1.16057
  12  17.2689
  13  1.46081
  14  2.18459e-05
  15  9.02269e-08
  16  8.46391
  17  18.5429
  18  5.13228e-07
  19  4.43415
  20  11.9163
  21  13.4466
  22  19.6242
  23  0.206585
  24  0.153268
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.185e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  1.077e+00  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  1.006e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 58.678 -16.287
Photon Flux Upper Limit: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92656/likelihoodResults_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.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) = 7290.20153455
delta logL = -0.000938234898967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7290.20059626
delta logL = 5.84841473028e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5136       1.0000          .0000       10.000    
     3 'Normalizat'    1.0055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+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=   7290.201     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.066        .18142E-01** at limit **
   2  Index         1.8624        5.7637        .50000        .23501E-06
   3  Normalizat    1.0055        .80830E-02    .27662E-03    .94200E-04
   4  Prefactor     1.0771        .63238E-02    .20881E-03    .13153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8624
  Normalizat = 1.00552
  Prefactor  = 1.07707
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.201     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.15        .21064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8624        5.9310        .50000       -.67836    
   3  Normalizat    1.0055        .26387E-01    .11065E-04   -.92846    
   4  Prefactor     1.0771        .20644E-01    .41762E-04   -.90203    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.23331e-09
Minuit parameter uncertainties:
  1  0.000154032
  2  1397.77
  3  0.0263877
  4  0.0206446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92656': 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) = 7290.20059427
delta logL = 2.04613934329e-06

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.540e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.862e+00  1.398e+03  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  9.177e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  1.077e+00  2.064e-02  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  1.006e+00  2.639e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 58.678 -16.287

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/92656/cmap_HighResolution_260841601_261100801_4FGL_J0354.7-1617_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-08-19 19:38:58.739349', job_id='92656', GAL2='1.08', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629427138.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='83' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:38:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 92656: <4FGL_J0354.7-1617_daily_bin83> in cluster <slac> Done

Job <4FGL_J0354.7-1617_daily_bin83> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 19:25:44 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:25:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 19:25:46 2021
Terminated at Thu Aug 19 19:38:59 2021
Results reported at Thu Aug 19 19:38:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin83 58.6779 -16.287 260841601 261100801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0354.7-1617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

