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


Performing analysis on: 4FGL_J0354.7-1617_daily_bin681
RA = 58.6779, Dec = -16.287
tmin = 415843201, tmax = 416102401
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='99404', job_status='RUN', time_executed='2021-08-19 19:47:01.851304', time_epoch_executed='1629427621.85' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99404/ft1_4FGL_J0354.7-1617_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99404/ft1_4FGL_J0354.7-1617_daily_bin681.fits outfile=/scratch/kocevski/99404/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin681.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=415843201.0 tmax=416102401.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 11.21
user 5.55
sys 5.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99404/ft1_filtered_4FGL_J0354.7-1617_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/99404/ltcube_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.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/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits
.....................!
real 19.36
user 13.00
sys 6.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99404/ft1_filtered_4FGL_J0354.7-1617_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/99404/ltcube_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.fits outfile=/scratch/kocevski/99404/expmap_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.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/99404/ltcube_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.fits
.....................!
real 198.41
user 185.98
sys 12.02

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/99404/ft1_filtered_4FGL_J0354.7-1617_daily_bin681.fits scfile=/scratch/kocevski/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits outfile=/scratch/kocevski/99404/cmap_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.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 5.73
user 0.37
sys 5.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99404/ft1_filtered_4FGL_J0354.7-1617_daily_bin681.fits scfile=/scratch/kocevski/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits outfile=/scratch/kocevski/99404/cmap_HighResolution_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.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 5.75
user 0.38
sys 5.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99404/ft1_filtered_4FGL_J0354.7-1617_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/99404/ft2_4FGL_J0354.7-1617_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99404/Model_4FGL_J0354.7-1617_daily_bin681.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/99404/ft1_filtered_4FGL_J0354.7-1617_daily_bin681.fits.....................!
real 67.55
user 59.35
sys 8.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .23995E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2719       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.233       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0085       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.688       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.125       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75371       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0093       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=   4637.391     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2770 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7648        .14276E-05** at limit **
   2  Prefactor     .10000E-03    6.8977       -.45163E-06** at limit **
   3  Prefactor     .10000E-03    119.59        .13952E-06** at limit **
   4  Prefactor     2.1648        2.0755        .24080E-08   -.63036E-03
   5  Prefactor     .10000E-03    8.9686        .33692E-05** at limit **
   6  Prefactor     .10000E-03    5.9270        .38230E-06** at limit **
   7  Prefactor     80.662        67.225        .91867E-06    .24715E-04
   8  Prefactor     .10005E-03    1.7287       -.39636E-06** at limit **
   9  Prefactor     3.2426        7.8470       -.97942E-07    .91383E-04
  10  Prefactor     3.2705        7.2529       -.36091E-07    .18092E-03
  11  norm          .10000E-03    .53197       -.72251E-07** at limit **
  12  Prefactor     .10000E-03    51.355       -.28033E-06** at limit **
  13  norm          1.6585        1.8005       -.37143E-06    .27035E-03
  14  Prefactor     44.233        30.630       -.14513E-07    .31063E-04
  15  Prefactor     2.0081        2.4297        .30911E-07   -.40812E-03
  16  norm          .10000E-03    8.9778       -.25491E-05** at limit **
  17  Prefactor     33.167        29.820        .67269E-06    .43552E-04
  18  Prefactor     19.743        11.582       -.11538E-06    .19054E-04
  19  Prefactor     .10000E-03    3.8343       -.51498E-07** at limit **
  20  norm          14.691        14.931        .36946E-07   -.80523E-07
  21  Prefactor     20.123        20.445        .15220E-06    .60259E-05
  22  Prefactor     .10000E-03    16.714       -.16232E-06** at limit **
  23  Normalizat    .75364        .21745        .18439E-05    .11332E-03
  24  Prefactor     1.0092        .15271       -.45625E-06    .20384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.6619
  Prefactor  = 0.000100052
  Prefactor  = 3.24256
  Prefactor  = 3.2705
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65855
  Prefactor  = 44.2327
  Prefactor  = 2.00815
  norm       = 0.0001
  Prefactor  = 33.1674
  Prefactor  = 19.7431
  Prefactor  = 0.0001
  norm       = 14.6908
  Prefactor  = 20.1233
  Prefactor  = 0.0001
  Normalizat = 0.753635
  Prefactor  = 1.00922
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.391     FROM HESSE     STATUS=OK           399 CALLS     3169 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.546        .33698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    119.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1648        4.3567        .97507E-03   -1.5414    
   5  Prefactor     .10000E-03    8.8876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9289        .16182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     80.662        66.947        .44719E-04   -1.3909    
   8  Prefactor     .10005E-03    18.160        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2426        7.4686        .19982E-03   -1.5348    
  10  Prefactor     3.2705        6.8018        .17867E-03   -1.5346    
  11  norm          .10000E-03    .54123        .96514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6585        1.7430        .85929E-04   -1.5450    
  14  Prefactor     44.233        30.615        .60280E-04   -1.4377    
  15  Prefactor     2.0081        2.7213        .62747E-03   -1.5425    
  16  norm          .10000E-03    9.0317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.167        29.868        .69582E-04   -1.4556    
  18  Prefactor     19.743        11.586        .90145E-04   -1.4819    
  19  Prefactor     .10000E-03    3.9659        .26020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.691        14.926        .10451E-03   -1.4941    
  21  Prefactor     20.123        20.438        .89283E-04   -1.4810    
  22  Prefactor     .10000E-03    16.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75364        .24129        .29766E-03   -1.0181    
  24  Prefactor     1.0092        .17436        .19988E-03   -.92423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25244e-09
Minuit parameter uncertainties:
  1  2.30794e-06
  2  6.21916e-05
  3  1.3039e-05
  4  4.3573
  5  7.64581e-06
  6  4.42103e-06
  7  67.0099
  8  0.00193632
  9  7.47073
  10  6.80344
  11  4.91226e-07
  12  5.16993e-05
  13  1.74306
  14  30.6258
  15  2.72149
  16  6.60216e-06
  17  29.8817
  18  11.5872
  19  9.82172e-06
  20  14.9295
  21  20.4454
  22  7.29505e-06
  23  0.241635
  24  0.174454
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  4.423e+01  3.063e+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:  1.009e+00  1.745e-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:  7.536e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.96
Ra Dec: 58.678 -16.287
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 7.87e-08 +/- 5.45e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/99404/likelihoodResults_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.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) = 4637.20761912
delta logL = 0.183724340071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4637.20722495
delta logL = 0.184118507694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1376       1.0000          .0000       10.000    
     3 'Normalizat'    .77952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99795       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=   4637.207     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      269 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.364        1281.4        .13736E-02   -.10801E-04
   2  Index         2.1390        5.2719        .16301        .69643E-05
   3  Normalizat    .77940        .30539        .66287E-01    .21600E-05
   4  Prefactor     .99795        .14221        .46241E-01   -.28369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.3637
  Index      = 2.139
  Normalizat = 0.779398
  Prefactor  = 0.997947
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.207     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.364        38.989        .54945E-04   -1.4246    
   2  Index         2.1390        .62197        .82522E-02   -.60919    
   3  Normalizat    .77940        .22607        .29327E-03   -1.0084    
   4  Prefactor     .99795        .17180        .20090E-03   -.92798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06661e-12
Minuit parameter uncertainties:
  1  39.008
  2  0.624382
  3  0.226344
  4  0.171895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99404': 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) = 4637.20722008
delta logL = 0.184123380372

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  5.336e+01  3.901e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.139e+00  6.244e-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:  9.979e-01  1.719e-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:  7.794e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 58.678 -16.287
Photon Index (Free Index): 2.14 +/- 0.62
Photon Flux (Free Index): 5.37e-08 +/- 5.64e-08
Energy Flux (Free Index): 2.72e-05 +/- 2.41e-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/99404/cmap_HighResolution_415843201_416102401_4FGL_J0354.7-1617_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='7.87e-08', energy_flux2='2.72e-05', photon_flux_error='5.45e-08', dlogl='1.84e-01', energy_flux='2.22e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-08-19 19:57:59.710709', photon_index_error2='0.62', photon_index2='2.14', ts='3.96', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='2.41e-05', EG='0.75', time_epoch_completed='1629428279.71', return_code='0', job_id='99404', GAL2='1.00', EG2='0.78', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.64e-08', ts2='4.32', photon_index='2.53' WHERE bin_id='681' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:57:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 99404: <4FGL_J0354.7-1617_daily_bin681> in cluster <slac> Done

Job <4FGL_J0354.7-1617_daily_bin681> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 19:45:24 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 19:45:26 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:45:26 2021
Terminated at Thu Aug 19 19:58:01 2021
Results reported at Thu Aug 19 19:58:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin681 58.6779 -16.287 415843201 416102401 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 :                                   739.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

