/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 62 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0354.7-1617_daily_bin46
RA = 58.6779, Dec = -16.287
tmin = 251251201, tmax = 251510401
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='92542', job_status='RUN', time_executed='2021-08-19 19:27:54.187647', time_epoch_executed='1629426474.19' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92542/ft1_4FGL_J0354.7-1617_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92542/ft1_4FGL_J0354.7-1617_daily_bin46.fits outfile=/scratch/kocevski/92542/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin46.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=251251201.0 tmax=251510401.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 4.77
user 1.31
sys 3.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.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/92542/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin46.fits evtable="EVENTS" outfile="/scratch/kocevski/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.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 3.80
user 0.35
sys 3.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/92542/ltcube_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.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/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits
.....................!
real 16.52
user 12.52
sys 3.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/92542/ltcube_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.fits outfile=/scratch/kocevski/92542/expmap_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.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/92542/ltcube_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.fits
.....................!
real 195.82
user 186.54
sys 8.93

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/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits scfile=/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits outfile=/scratch/kocevski/92542/cmap_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.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 3.89
user 0.36
sys 3.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits scfile=/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits outfile=/scratch/kocevski/92542/cmap_HighResolution_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.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 3.74
user 0.37
sys 3.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92542/Model_4FGL_J0354.7-1617_daily_bin46.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/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits....................!
real 82.10
user 76.47
sys 5.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits', '/scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits', expMap='/scratch/kocevski/92542/expmap_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.fits', expCube='/scratch/kocevski/92542/ltcube_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92542/Model_4FGL_J0354.7-1617_daily_bin46.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/92542/ft1_filtered_4FGL_J0354.7-1617_daily_bin46.fits
Spacecraft file(s): /scratch/kocevski/92542/ft2_4FGL_J0354.7-1617_daily_bin46.fits
Exposure map: /scratch/kocevski/92542/expmap_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.fits
Exposure cube: /scratch/kocevski/92542/ltcube_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92542/Model_4FGL_J0354.7-1617_daily_bin46.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) = 6233.6175387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12807E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    195.74       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.109       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .56264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9181       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6081       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6411       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4712       1.0000         .10000E-03   10000.    
    20 'norm      '    10.864       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49483E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91054       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88075       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=   6233.607     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2796 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2653        .11810E-07** at limit **
   2  Prefactor     .10000E-03    3.6564        .28009E-07** at limit **
   3  Prefactor     195.75        181.27        .28072E-05    .60451E-04
   4  Prefactor     .10000E-03    1.1425       -.51902E-08** at limit **
   5  Prefactor     14.114        16.051        .44426E-06    .11747E-04
   6  Prefactor     .10002E-03    6.4664        .50611E-06** at limit **
   7  Prefactor     29.683        42.047       -.49516E-05   -.28543E-03
   8  Prefactor     .10000E-03    1.1743        .10912E-07** at limit **
   9  Prefactor     2.0190        4.0243        .31032E-06   -.19871E-03
  10  Prefactor     .10000E-03    2.1326       -.87437E-07** at limit **
  11  norm          .56241        .82510       -.96388E-08   -.34585E-03
  12  Prefactor     .10000E-03    13.794        .15568E-06** at limit **
  13  norm          4.9181        1.8095        .30790E-08   -.43308E-04
  14  Prefactor     33.344        24.551        .12761E-05    .18535E-03
  15  Prefactor     2.6081        2.3038       -.35193E-08    .24835E-05
  16  norm          4.3065        8.6185        .34451E-05   -.66012E-03
  17  Prefactor     .10000E-03    76.136       -.11985E-05** at limit **
  18  Prefactor     7.6421        6.0504       -.81087E-06   -.69140E-03
  19  Prefactor     6.4719        4.5103        .61088E-07    .50614E-04
  20  norm          10.866        13.966        .20131E-06    .45187E-05
  21  Prefactor     .10011E-03    10.056       -.12571E-05** at limit **
  22  Prefactor     .10000E-03    18.530       -.78090E-07** at limit **
  23  Normalizat    .91023        .18698       -.75686E-06    .77926E-04
  24  Prefactor     .88092        .12997        .32914E-06   -.27857E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 195.754
  Prefactor  = 0.0001
  Prefactor  = 14.1136
  Prefactor  = 0.000100016
  Prefactor  = 29.6835
  Prefactor  = 0.0001
  Prefactor  = 2.01902
  Prefactor  = 0.0001
  norm       = 0.562413
  Prefactor  = 0.0001
  norm       = 4.91809
  Prefactor  = 33.3436
  Prefactor  = 2.6081
  norm       = 4.30654
  Prefactor  = 0.000100001
  Prefactor  = 7.64212
  Prefactor  = 6.47195
  norm       = 10.8655
  Prefactor  = 0.000100114
  Prefactor  = 0.0001
  Normalizat = 0.91023
  Prefactor  = 0.880917
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.607     FROM HESSE     STATUS=OK           405 CALLS     3201 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2662        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.147        .28978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     195.75        181.98        .14437E-03   -1.2901    
   4  Prefactor     .10000E-03    1.1445        .82385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.114        16.084        .10663E-03   -1.4956    
   6  Prefactor     .10002E-03    48.487        .38009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.683        44.597        .73518E-04   -1.4618    
   8  Prefactor     .10000E-03    1.8069        .16326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0190        3.9528        .20248E-03   -1.5424    
  10  Prefactor     .10000E-03    2.1475        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .56241        .70049        .81851E-03   -1.5558    
  12  Prefactor     .10000E-03    13.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9181        1.7883        .59807E-04   -1.5264    
  14  Prefactor     33.344        24.751        .69411E-04   -1.4552    
  15  Prefactor     2.6081        2.3018        .10672E-03   -1.5385    
  16  norm          4.3065        9.5065        .97019E-03   -1.5293    
  17  Prefactor     .10000E-03    77.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6421        6.2277        .14507E-03   -1.5155    
  19  Prefactor     6.4719        4.5135        .13038E-03   -1.5199    
  20  norm          10.866        13.943        .12155E-03   -1.5049    
  21  Prefactor     .10011E-03    55.605        .47011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91023        .20904        .26525E-03   -.96102    
  24  Prefactor     .88092        .14877        .20750E-03   -.96811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28289e-09
Minuit parameter uncertainties:
  1  4.30781e-07
  2  1.6127e-05
  3  182.506
  4  4.06088e-07
  5  16.0892
  6  0.00176117
  7  44.647
  8  5.76792e-06
  9  3.95329
  10  3.52778e-06
  11  0.700495
  12  1.5654e-05
  13  1.78835
  14  24.7586
  15  2.30183
  16  9.50981
  17  0.000420012
  18  6.2282
  19  4.51377
  20  13.9474
  21  0.00504925
  22  2.14038e-05
  23  0.209226
  24  0.148837
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  3.334e+01  2.476e+01  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:  8.809e-01  1.488e-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:  9.102e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 58.678 -16.287
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.24e-05

TS (Fixed Index): 2.55
Ra Dec: 58.678 -16.287
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92542/likelihoodResults_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.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) = 6233.6074137
delta logL = 6.49014446026e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6233.60735492
delta logL = 0.000123678847558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.665       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5160       1.0000          .0000       10.000    
     3 'Normalizat'    .91104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88057       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=   6233.607     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      260 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.689        35.308        .69064E-04    .95639E-04
   2  Index         2.5170        .78514        .76669E-02    .38425E-03
   3  Normalizat    .91086        .19177        .26517E-03   -.79444E-04
   4  Prefactor     .88058        .14536        .20753E-03    .15284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6885
  Index      = 2.51697
  Normalizat = 0.910855
  Prefactor  = 0.880581
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.607     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.689        33.187        .27625E-05   -1.4546    
   2  Index         2.5170        .73756        .15334E-02   -.51969    
   3  Normalizat    .91086        .19144        .10607E-04   -.96080    
   4  Prefactor     .88058        .14519        .83013E-05   -.96823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10942e-11
Minuit parameter uncertainties:
  1  33.2047
  2  0.741158
  3  0.191579
  4  0.145251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92542': 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) = 6233.60735137
delta logL = 0.000127228957354

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  3.369e+01  3.320e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.517e+00  7.412e-01  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:  8.806e-01  1.453e-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:  9.109e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 58.678 -16.287
Photon Index (Free Index): 2.52 +/- 0.74
Photon Flux (Free Index): 5.89e-08 +/- 5.24e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.33e-05

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/92542/cmap_HighResolution_251251201_251510401_4FGL_J0354.7-1617_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='1.68e-05', photon_flux_error='4.40e-08', dlogl='1.27e-04', energy_flux='1.67e-05', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-08-19 19:39:35.793656', photon_index_error2='0.74', photon_index2='2.52', ts='2.55', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.33e-05', EG='0.91', time_epoch_completed='1629427175.79', return_code='0', job_id='92542', GAL2='0.88', EG2='0.91', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.24e-08', ts2='2.55', photon_index='2.53' WHERE bin_id='46' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:39:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 92542: <4FGL_J0354.7-1617_daily_bin46> in cluster <slac> Done

Job <4FGL_J0354.7-1617_daily_bin46> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 19:25:39 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:25:41 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:41 2021
Terminated at Thu Aug 19 19:39:37 2021
Results reported at Thu Aug 19 19:39:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin46 58.6779 -16.287 251251201 251510401 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 :                                   750.08 sec.
    Max Memory :                                 1073 MB
    Average Memory :                             245.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

