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


Performing analysis on: 4FGL_J0354.7-1617_daily_bin31
RA = 58.6779, Dec = -16.287
tmin = 247363201, tmax = 247622401
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='92497', job_status='RUN', time_executed='2021-08-19 19:27:59.045776', time_epoch_executed='1629426479.05' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92497/ft1_4FGL_J0354.7-1617_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92497/ft1_4FGL_J0354.7-1617_daily_bin31.fits outfile=/scratch/kocevski/92497/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin31.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=247363201.0 tmax=247622401.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.30
user 1.26
sys 1.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.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/92497/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin31.fits evtable="EVENTS" outfile="/scratch/kocevski/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.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.34
user 0.33
sys 1.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/92497/ltcube_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.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/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits
.....................!
real 13.50
user 12.22
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/92497/ltcube_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.fits outfile=/scratch/kocevski/92497/expmap_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.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/92497/ltcube_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.fits
.....................!
real 192.79
user 185.90
sys 6.41

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/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.fits scfile=/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits outfile=/scratch/kocevski/92497/cmap_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.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.37
user 0.37
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.fits scfile=/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits outfile=/scratch/kocevski/92497/cmap_HighResolution_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.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.37
user 0.37
sys 0.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/92497/ft2_4FGL_J0354.7-1617_daily_bin31.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92497/Model_4FGL_J0354.7-1617_daily_bin31.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/92497/ft1_filtered_4FGL_J0354.7-1617_daily_bin31.fits.....................!
real 89.18
user 86.74
sys 2.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14299E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11785E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.6771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47178E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .78681       1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5761       1.0000         .10000E-03   10000.    
    20 'norm      '    9.2966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5661       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85375       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68039       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=   7369.398     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2771 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4998       -.69305E-08** at limit **
   2  Prefactor     23.342        6.9783        .30792E-07    .15953E-03
   3  Prefactor     .10010E-03    512.29        .17123E-05** at limit **
   4  Prefactor     1.0402        2.4901       -.86137E-06    .18831E-04
   5  Prefactor     .10000E-03    5.3406        .57079E-07** at limit **
   6  Prefactor     11.235        11.247        .10682E-06    .14020E-03
   7  Prefactor     .10000E-03    8.1155       -.50508E-07** at limit **
   8  Prefactor     .10000E-03    1.0873       -.24853E-06** at limit **
   9  Prefactor     1.9871        3.8769       -.15968E-06    .91912E-03
  10  Prefactor     .10000E-03    1.9818       -.42040E-06** at limit **
  11  norm          .10000E-03    .37501        .64632E-07** at limit **
  12  Prefactor     .10000E-03    8.9356        .83309E-07** at limit **
  13  norm          6.6780        1.7462        .43062E-07    .30450E-03
  14  Prefactor     .10001E-03    74.955        .21223E-04** at limit **
  15  Prefactor     .78443        1.3150       -.80236E-06   -.26887E-02
  16  norm          .10000E-03    3.9583       -.17387E-07** at limit **
  17  Prefactor     .10000E-03    6.0689        .26861E-07** at limit **
  18  Prefactor     .10000E-03    3.0190       -.72895E-07** at limit **
  19  Prefactor     5.5752        3.8228        .18077E-06    .43028E-03
  20  norm          9.2947        8.3890        .19205E-07    .10618E-03
  21  Prefactor     9.5705        10.243        .11564E-07    .27598E-04
  22  Prefactor     .84581        20.225        .76496E-05   -.11106E-03
  23  Normalizat    1.2505        .16200        .31019E-06   -.37268E-03
  24  Prefactor     .68044        .11527        .61771E-08   -.35024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3417
  Prefactor  = 0.000100102
  Prefactor  = 1.04017
  Prefactor  = 0.0001
  Prefactor  = 11.2351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98714
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.67797
  Prefactor  = 0.000100008
  Prefactor  = 0.784435
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57518
  norm       = 9.29473
  Prefactor  = 9.57046
  Prefactor  = 0.845814
  Normalizat = 1.25048
  Prefactor  = 0.680442
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.398     FROM HESSE     STATUS=OK           409 CALLS     3180 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.342        6.9796        .82907E-04   -1.4741    
   3  Prefactor     .10010E-03    516.27        .20508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0402        2.2666        .21516E-02   -1.5504    
   5  Prefactor     .10000E-03    5.3532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.235        11.243        .11948E-03   -1.5037    
   7  Prefactor     .10000E-03    8.1170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8062        .17138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9871        3.6426        .21031E-03   -1.5426    
  10  Prefactor     .10000E-03    14.800        .21213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .58441        .10078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6780        1.7173        .54465E-04   -1.5191    
  14  Prefactor     .10001E-03    78.880        .59445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .78443        1.1431        .13870E-02   -1.5531    
  16  norm          .10000E-03    3.9632        .16680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0470        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5752        3.8405        .13196E-03   -1.5236    
  20  norm          9.2947        8.3890        .13144E-03   -1.5098    
  21  Prefactor     9.5705        10.246        .12957E-03   -1.5089    
  22  Prefactor     .84581        90.397        .54980E-02   -1.5524    
  23  Normalizat    1.2505        .18294        .23840E-03   -.85057    
  24  Prefactor     .68044        .13271        .23215E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58378e-09
Minuit parameter uncertainties:
  1  2.5957e-06
  2  6.97984
  3  0.0146261
  4  2.26681
  5  5.15639e-07
  6  11.2453
  7  2.1159e-06
  8  3.42491e-05
  9  3.64302
  10  3.42946e-05
  11  4.00105e-07
  12  8.66211e-06
  13  1.71727
  14  0.00157695
  15  1.14314
  16  4.00995e-06
  17  4.93731e-06
  18  1.46951e-05
  19  3.84066
  20  8.39002
  21  10.248
  22  17.5144
  23  0.183039
  24  0.132771
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.577e-03  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:  6.804e-01  1.328e-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.250e+00  1.830e-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: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92497/likelihoodResults_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.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) = 7369.3980257
delta logL = -5.90998806729e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7369.39802564
delta logL = -5.90418585489e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96205E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5286       1.0000          .0000       10.000    
     3 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68048       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.

 FCN=   7369.398     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .53948        .11236    ** at limit **
   2  Index         2.4582        6.2777        .50000        .56614E-05
   3  Normalizat    1.2505        .84076E-03    .53917E-01    .17831E-04
   4  Prefactor     .68044        .62581E-03    .42141E-01    .27445E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.4582
  Normalizat = 1.25048
  Prefactor  = 0.680442
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.398     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      273 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    94.862        .61326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4582        8.0766        .50000       -.53328    
   3  Normalizat    1.2505        .41770E-02    .23840E-03   -.85057    
   4  Prefactor     .68044        .31091E-02    .23215E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89803e-08
Minuit parameter uncertainties:
  1  0.0016936
  2  122.921
  3  0.00417696
  4  0.00310908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92497': 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) = 7369.39796649
delta logL = 1.09191205411e-07

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.694e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.458e+00  1.229e+02  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:  6.804e-01  3.109e-03  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.250e+00  4.177e-03  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/92497/cmap_HighResolution_247363201_247622401_4FGL_J0354.7-1617_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-08-19 19:40:06.431960', job_id='92497', GAL2='0.68', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1629427206.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='31' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:40:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 92497: <4FGL_J0354.7-1617_daily_bin31> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin31 58.6779 -16.287 247363201 247622401 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 :                                   738.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            871 sec.

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

