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


Performing analysis on: 4FGL_J0354.7-1617_daily_bin789
RA = 58.6779, Dec = -16.287
tmin = 443836801, tmax = 444096001
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='99562', job_status='RUN', time_executed='2021-08-19 19:47:14.585304', time_epoch_executed='1629427634.59' WHERE source_name='4FGL J0354.7-1617' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99562/ft1_4FGL_J0354.7-1617_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99562/ft1_4FGL_J0354.7-1617_daily_bin789.fits outfile=/scratch/kocevski/99562/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin789.fits ra=58.6779 dec=-16.287 rad=12.0 tmin=443836801.0 tmax=444096001.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 8.97
user 3.23
sys 5.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.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/99562/ft1_filteredMKT_4FGL_J0354.7-1617_daily_bin789.fits evtable="EVENTS" outfile="/scratch/kocevski/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.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.98
user 0.32
sys 5.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/99562/ltcube_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.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/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits
.....................!
real 18.37
user 11.79
sys 6.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/99562/ltcube_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.fits outfile=/scratch/kocevski/99562/expmap_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.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/99562/ltcube_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.fits
.....................!
real 196.33
user 184.85
sys 11.14

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/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.fits scfile=/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits outfile=/scratch/kocevski/99562/cmap_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.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.92
user 0.38
sys 5.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.fits scfile=/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits outfile=/scratch/kocevski/99562/cmap_HighResolution_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.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.96
user 0.37
sys 5.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/99562/ft2_4FGL_J0354.7-1617_daily_bin789.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99562/Model_4FGL_J0354.7-1617_daily_bin789.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/99562/ft1_filtered_4FGL_J0354.7-1617_daily_bin789.fits.....................!
real 67.30
user 58.78
sys 8.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15459E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0531       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7826       1.0000         .10000E-03   10000.    
    11 'norm      '    .18260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.639       1.0000         .10000E-03   10000.    
    13 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18174E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8533       1.0000         .10000E-03   10000.    
    20 'norm      '    15.360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16574E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5079       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .57134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4392.540     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2311 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.724        .17670E-06** at limit **
   2  Prefactor     6.3865        2.7520       -.45888E-06    .48401E-02
   3  Prefactor     .10162E-03    55.194        .11771E-04** at limit **
   4  Prefactor     3.0525        3.7960        .69385E-06    .93138E-05
   5  Prefactor     14.180        4.7077       -.25746E-05    .13485E-03
   6  Prefactor     24.230        6.7248       -.12255E-05    .41303E-04
   7  Prefactor     26.993        2.8825       -.12341E-05    .14683E-02
   8  Prefactor     2.6824        2.6445       -.62558E-06   -.29702E-03
   9  Prefactor     .10000E-03    3.7852        .51964E-06** at limit **
  10  Prefactor     7.7826        4.5526        .16226E-05    .41632E-02
  11  norm          .18089        2.0172       -.53079E-05   -.20225E-03
  12  Prefactor     50.664        14.746        .49104E-05   -.12454E-01
  13  norm          .10000E-03    1.0895       -.45600E-08** at limit **
  14  Prefactor     5.1033        30.400       -.23954E-04   -.51755E-03
  15  Prefactor     .10000E-03    4.3470       -.89135E-06** at limit **
  16  norm          .10000E-03    5.1673        .47733E-06** at limit **
  17  Prefactor     19.944        1.1589       -.29145E-06    .44833E-03
  18  Prefactor     5.9949        7.3595       -.42712E-05   -.80027E-02
  19  Prefactor     2.8541        4.2339       -.57769E-06   -.67134E-03
  20  norm          15.352        2.5870       -.88940E-06   -.30454E-03
  21  Prefactor     7.7019        9.7314       -.71639E-05   -.57754E-03
  22  Prefactor     .10189E-03    52.387        .50998E-05** at limit **
  23  Normalizat    1.5082        .26426       -.27343E-05   -.94292E-04
  24  Prefactor     .57122        .17913        .19417E-07   -.70190E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.38649
  Prefactor  = 0.000101621
  Prefactor  = 3.05252
  Prefactor  = 14.1798
  Prefactor  = 24.23
  Prefactor  = 26.9935
  Prefactor  = 2.68239
  Prefactor  = 0.0001
  Prefactor  = 7.78261
  norm       = 0.180892
  Prefactor  = 50.6643
  norm       = 0.0001
  Prefactor  = 5.10326
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.944
  Prefactor  = 5.99495
  Prefactor  = 2.85408
  norm       = 15.3524
  Prefactor  = 7.70191
  Prefactor  = 0.000101886
  Normalizat = 1.50819
  Prefactor  = 0.571219
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.540     FROM HESSE     STATUS=OK           469 CALLS     2780 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3865        5.5538        .39705E-02   -1.5202    
   3  Prefactor     .10162E-03    73.053        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0525        3.8838        .58046E-02   -1.5359    
   5  Prefactor     14.180        26.658        .26576E-02   -1.4955    
   6  Prefactor     24.230        15.785        .20339E-02   -1.4723    
   7  Prefactor     26.993        67.096        .19274E-02   -1.4668    
   8  Prefactor     2.6824        2.6712        .62203E-02   -1.5380    
   9  Prefactor     .10000E-03    3.7347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7826        5.0949        .35934E-02   -1.5150    
  11  norm          .18089        1.1212        .24637E-01   -1.5623    
  12  Prefactor     50.664        46.170        .14089E-02   -1.4283    
  13  norm          .10000E-03    .78627        .29789E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1033        44.364        .44061E-02   -1.5256    
  15  Prefactor     .10000E-03    2.2335        .34614E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.944        21.401        .22424E-02   -1.4814    
  18  Prefactor     5.9949        10.204        .40985E-02   -1.5218    
  19  Prefactor     2.8541        4.2624        .60171E-02   -1.5370    
  20  norm          15.352        15.423        .25549E-02   -1.4924    
  21  Prefactor     7.7019        26.493        .36033E-02   -1.5153    
  22  Prefactor     .10189E-03    80.246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5082        .24025        .54654E-01   -.77548    
  24  Prefactor     .57122        .15966        .59918E-01   -1.0881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74159e-07
Minuit parameter uncertainties:
  1  2.04291e-05
  2  5.55424
  3  0.021789
  4  3.88414
  5  26.6807
  6  15.7874
  7  67.2843
  8  2.6713
  9  1.88039e-06
  10  5.09514
  11  0.90049
  12  46.2027
  13  1.61097e-07
  14  30.1228
  15  1.60321e-05
  16  2.73349e-05
  17  21.4089
  18  10.2066
  19  4.26281
  20  15.4274
  21  26.5339
  22  0.0246345
  23  0.240434
  24  0.159785
Done.

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

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  5.103e+00  3.012e+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:  5.712e-01  1.598e-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.508e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99562/likelihoodResults_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.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) = 4392.460894
delta logL = 0.0794583106644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4392.46066769
delta logL = 0.0796846264811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.833       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8470       1.0000          .0000       10.000    
     3 'Normalizat'    1.5133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56646       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=   4392.461     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      276 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.833        6771.3        .29114E-02   -.46253E-04
   2  Index         1.8470        9.0536        .26751        .82242E-05
   3  Normalizat    1.5132        .32655        .54572E-01   -.81906E-04
   4  Prefactor     .56646        .25410        .60123E-01   -.95795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8326
  Index      = 1.84699
  Normalizat = 1.51325
  Prefactor  = 0.566462
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.461     FROM HESSE     STATUS=OK            31 CALLS      307 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.833        30.939        .11646E-03   -1.5020    
   2  Index         1.8470        1.2766        .16603E-01   -.68233    
   3  Normalizat    1.5132        .24984        .24129E-03   -.77407    
   4  Prefactor     .56646        .17801        .26598E-03   -1.0902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2315e-10
Minuit parameter uncertainties:
  1  30.9811
  2  1.30087
  3  0.250043
  4  0.178184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99562': 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) = 4392.46066769
delta logL = 0.0796846272569

Extracting fit parameters...

4FGL J0354.7-1617
   Spectrum: PowerLaw
273    Prefactor:  1.183e+01  3.098e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.847e+00  1.301e+00  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:  5.665e-01  1.782e-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.513e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/99562/cmap_HighResolution_443836801_444096001_4FGL_J0354.7-1617_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-08-19 19:57:33.960847', job_id='99562', GAL2='0.57', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1629428253.96', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='7.97e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='789' AND source_name='4FGL J0354.7-1617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 19:57:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 99562: <4FGL_J0354.7-1617_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0354.7-1617_daily_bin789 58.6779 -16.287 443836801 444096001 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.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

