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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1048
RA = 31.2637, Dec = -17.0022
tmin = 510969601, tmax = 511228801
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='90926', job_status='RUN', time_executed='2021-08-15 05:59:23.423037', time_epoch_executed='1629032363.42' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90926/ft1_4FGL_J0205.0-1700_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90926/ft1_4FGL_J0205.0-1700_daily_bin1048.fits outfile=/scratch/kocevski/90926/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1048.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=510969601.0 tmax=511228801.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 5.88
user 3.25
sys 2.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.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/90926/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.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 2.84
user 0.33
sys 2.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/90926/ltcube_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.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/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits
.....................!
real 17.49
user 14.09
sys 2.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/90926/ltcube_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.fits outfile=/scratch/kocevski/90926/expmap_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.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/90926/ltcube_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.fits
.....................!
real 198.37
user 186.98
sys 8.18

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

Setting source of interest to:
4FGL J0205.0-1700 @ 31.2637 -17.0022

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits scfile=/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits outfile=/scratch/kocevski/90926/cmap_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.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=31.2637 yref=-17.0022 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 2.89
user 0.37
sys 2.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits scfile=/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits outfile=/scratch/kocevski/90926/cmap_HighResolution_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.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=31.2637 yref=-17.0022 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 2.82
user 0.38
sys 2.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90926/Model_4FGL_J0205.0-1700_daily_bin1048.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/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits.....................!
real 58.40
user 53.65
sys 4.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits', '/scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits', expMap='/scratch/kocevski/90926/expmap_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.fits', expCube='/scratch/kocevski/90926/ltcube_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90926/Model_4FGL_J0205.0-1700_daily_bin1048.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0205.0-1700'

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.877e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.564e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.165e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90926/ft1_filtered_4FGL_J0205.0-1700_daily_bin1048.fits
Spacecraft file(s): /scratch/kocevski/90926/ft2_4FGL_J0205.0-1700_daily_bin1048.fits
Exposure map: /scratch/kocevski/90926/expmap_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.fits
Exposure cube: /scratch/kocevski/90926/ltcube_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90926/Model_4FGL_J0205.0-1700_daily_bin1048.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) = 6167.93136824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55594       1.0000         .10000E-03   10000.    
     4 'norm      '    .10126E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.6758       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.727       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53391E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5687       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2295       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2736       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .74608       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6167.926     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2304 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9359        .90712E-02** at limit **
   2  norm          .10000E-03    .65170        .90712E-02** at limit **
   3  Prefactor     .55778        2.5879        .39735E-01    .95556E-03
   4  norm          .10000E-03    14.049        .10528    ** at limit **
   5  norm          .10000E-03    .31671        .21677E-01** at limit **
   6  norm          .10000E-03    .65774        .90712E-02** at limit **
   7  norm          9.6757        4.9010        .32207E-02   -.11455E-03
   8  norm          .10000E-03    1.0821        .90712E-02** at limit **
   9  Prefactor     29.717        32.128        .18371E-02    .34980E-03
  10  norm          2.2921        1.7615        .67786E-02    .57527E-03
  11  Prefactor     .68881        3.1160        .12016E-01    .14506E-02
  12  Prefactor     .90293E-01    5.5404        .66264E-01    .25872E-03
  13  Prefactor     2.6619        7.5608        .62474E-02    .21437E-02
  14  Prefactor     .10000E-03    2.9620        .42411E-01** at limit **
  15  Prefactor     3.5721        5.4546        .53484E-02    .59870E-03
  16  Prefactor     2.2307        13.945        .68834E-02    .81314E-03
  17  norm          .10000E-03    21.663        .90712E-02** at limit **
  18  Prefactor     2.2730        3.3180        .68087E-02    .34609E-03
  19  Prefactor     .10000E-03    18.574        .90712E-02** at limit **
  20  Normalizat    .74598        .13990        .42902E-01    .39279E-04
  21  Prefactor     1.0175        .15476        .42396E-01    .34554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.557781
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.67571
  norm       = 0.0001
  Prefactor  = 29.7169
  norm       = 2.29206
  Prefactor  = 0.68881
  Prefactor  = 0.0902927
  Prefactor  = 2.66191
  Prefactor  = 0.0001
  Prefactor  = 3.57207
  Prefactor  = 2.23066
  norm       = 0.0001
  Prefactor  = 2.27301
  Prefactor  = 0.0001
  Normalizat = 0.745979
  Prefactor  = 1.01747
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.926     FROM HESSE     STATUS=OK           341 CALLS     2645 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9373        .13138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .65245        .61819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55778        4.9336        .23456E-02   -1.5559    
   4  norm          .10000E-03    18.476        .86779E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .41879        .85672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .67078        .62088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.6757        4.9013        .11833E-03   -1.5086    
   8  norm          .10000E-03    1.0992        .79738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.717        32.133        .73484E-04   -1.4617    
  10  norm          2.2921        1.7556        .85465E-04   -1.5405    
  11  Prefactor     .68881        3.1406        .25870E-03   -1.5542    
  12  Prefactor     .90293E-01    6.4049        .58524E-01   -1.5648    
  13  Prefactor     2.6619        7.5080        .24989E-03   -1.5382    
  14  Prefactor     .10000E-03    5.8314        .25724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5721        5.4333        .21394E-03   -1.5330    
  16  Prefactor     2.2307        13.848        .27534E-03   -1.5409    
  17  norm          .10000E-03    21.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2730        3.2945        .16685E-03   -1.5406    
  19  Prefactor     .10000E-03    18.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .74598        .16220        .21773E-03   -1.0210    
  21  Prefactor     1.0175        .18190        .21898E-03   -.92149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46304e-09
Minuit parameter uncertainties:
  1  1.87988e-06
  2  1.06312e-07
  3  3.31781
  4  0.000150888
  5  3.84325e-08
  6  2.05501e-07
  7  4.90155
  8  4.54792e-07
  9  32.1515
  10  1.75564
  11  2.94165
  12  1.52027
  13  7.5107
  14  2.55264e-06
  15  5.43404
  16  11.1194
  17  1.56612e-05
  18  3.29478
  19  1.52953e-05
  20  0.162307
  21  0.182008
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  2.292e+00  1.756e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.564e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.165e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.017e+00  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  7.460e-01  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 8.48e-06

TS (Fixed Index): 2.26
Ra Dec: 31.264 -17.002
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90926/likelihoodResults_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.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) = 6167.46718782
delta logL = 0.458648445618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6167.45205253
delta logL = 0.473783739236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8073       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2676       1.0000          .0000       5.0000    
     3 'Normalizat'    .72199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   6167.452     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8073        1.6523        .64035E-04    .10283E-02
   2  alpha         3.2676        .81443        .17610E-01    .37917E-04
   3  Normalizat    .72199        .15835        .22091E-03    .90986E-04
   4  Prefactor     1.0363        .18078        .21715E-03    .10889E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80732
  alpha      = 3.26763
  Normalizat = 0.721995
  Prefactor  = 1.03632
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8073        1.5630        .25614E-05   -1.5439    
   2  alpha         3.2676        .77161        .70438E-03    .31210    
   3  Normalizat    .72199        .15858        .88365E-05   -1.0303    
   4  Prefactor     1.0363        .18095        .86862E-05   -.91528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05721e-11
Minuit parameter uncertainties:
  1  1.56299
  2  0.78582
  3  0.158676
  4  0.181057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90926': 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) = 6167.4520525
delta logL = 0.473783768969

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.807e+00  1.563e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  3.268e+00  7.858e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.165e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.036e+00  1.811e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  7.220e-01  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 3.27 +/- 0.79
Photon Flux (Free Index): 6.06e-08 +/- 3.99e-08
Energy Flux (Free Index): 1.09e-05 +/- 7.20e-06

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/90926/cmap_HighResolution_510969601_511228801_4FGL_J0205.0-1700_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-05', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.09e-05', photon_flux_error='3.33e-08', dlogl='4.74e-01', energy_flux='1.11e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-08-15 06:11:11.358931', photon_index_error2='0.79', photon_index2='3.27', ts='2.26', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='7.20e-06', EG='0.75', time_epoch_completed='1629033071.36', return_code='0', job_id='90926', GAL2='1.04', EG2='0.72', return_code2='0', energy_flux_error='8.48e-06', photon_flux_error2='3.99e-08', ts2='3.27', photon_index='2.56' WHERE bin_id='1048' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 90926: <4FGL_J0205.0-1700_daily_bin1048> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1048> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 05:55:23 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:55:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 05:55:54 2021
Terminated at Sun Aug 15 06:11:12 2021
Results reported at Sun Aug 15 06:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1048 31.2637 -17.0022 510969601 511228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0205.0-1700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            949 sec.

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

