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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1013
RA = 31.2637, Dec = -17.0022
tmin = 501897601, tmax = 502156801
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='90874', job_status='RUN', time_executed='2021-08-15 06:01:11.442744', time_epoch_executed='1629032471.44' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90874/ft1_4FGL_J0205.0-1700_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90874/ft1_4FGL_J0205.0-1700_daily_bin1013.fits outfile=/scratch/kocevski/90874/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1013.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=501897601.0 tmax=502156801.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 9.38
user 3.26
sys 5.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/90874/ltcube_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.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/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits
.....................!
real 22.25
user 15.48
sys 6.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/90874/ltcube_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.fits outfile=/scratch/kocevski/90874/expmap_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.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/90874/ltcube_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.fits
.....................!
real 198.77
user 185.78
sys 12.34

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/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits scfile=/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits outfile=/scratch/kocevski/90874/cmap_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.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 6.03
user 0.39
sys 5.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits scfile=/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits outfile=/scratch/kocevski/90874/cmap_HighResolution_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.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 6.10
user 0.40
sys 5.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90874/Model_4FGL_J0205.0-1700_daily_bin1013.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/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits.....................!
real 62.40
user 52.81
sys 8.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits', '/scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits', expMap='/scratch/kocevski/90874/expmap_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.fits', expCube='/scratch/kocevski/90874/ltcube_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90874/Model_4FGL_J0205.0-1700_daily_bin1013.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/90874/ft1_filtered_4FGL_J0205.0-1700_daily_bin1013.fits
Spacecraft file(s): /scratch/kocevski/90874/ft2_4FGL_J0205.0-1700_daily_bin1013.fits
Exposure map: /scratch/kocevski/90874/expmap_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.fits
Exposure cube: /scratch/kocevski/90874/ltcube_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90874/Model_4FGL_J0205.0-1700_daily_bin1013.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) = 6043.00985126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27517E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19312       1.0000         .10000E-03   10000.    
     4 'norm      '    .12780E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.479       1.0000         .10000E-03   10000.    
     8 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0826       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15949       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65306E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6503       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26056E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .20065E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5153       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21671E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97717       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72945       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=   6042.895     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1916 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6559        .10713E-01** at limit **
   2  norm          1.5320        1.3570        .86167E-02   -.44151E-03
   3  Prefactor     .19821        2.3301        .99462E-02    .25389E-02
   4  norm          .10001E-03    10.371        .90712E-02** at limit **
   5  norm          .10000E-03    .45346        .19091E-01** at limit **
   6  norm          .10000E-03    .39858        .90712E-02** at limit **
   7  norm          11.511        5.5403        .29561E-02   -.60695E-03
   8  norm          .10000E-03    .54429        .90712E-02** at limit **
   9  Prefactor     .10001E-03    11.049        .90712E-02** at limit **
  10  norm          2.0817        1.3577        .71534E-02    .16904E-03
  11  Prefactor     .17712        1.7699        .63036E-01    .22372E-03
  12  Prefactor     2.1374        5.6388        .70508E-02    .90525E-03
  13  Prefactor     .10000E-03    16.074        .10509E-01** at limit **
  14  Prefactor     1.6512        3.9412        .82166E-02    .73266E-03
  15  Prefactor     .10000E-03    2.4984        .90712E-02** at limit **
  16  Prefactor     .10020E-03    24.837        .10724E-01** at limit **
  17  norm          .10000E-03    12.820        .90712E-02** at limit **
  18  Prefactor     3.5391        4.7701        .53905E-02    .58783E-03
  19  Prefactor     .10000E-03    39.653        .90712E-02** at limit **
  20  Normalizat    .97686        .13645        .45880E-01    .11641E-04
  21  Prefactor     .72953        .14802        .42792E-01    .21560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.53205
  Prefactor  = 0.198211
  norm       = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.5111
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 2.08166
  Prefactor  = 0.177123
  Prefactor  = 2.13744
  Prefactor  = 0.000100001
  Prefactor  = 1.65122
  Prefactor  = 0.0001
  Prefactor  = 0.0001002
  norm       = 0.0001
  Prefactor  = 3.53911
  Prefactor  = 0.000100001
  Normalizat = 0.976865
  Prefactor  = 0.72953
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.895     FROM HESSE     STATUS=OK           323 CALLS     2239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6732        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5320        1.3474        .41366E-03   -1.5460    
   3  Prefactor     .19821        2.4090        .22932E-03   -1.5619    
   4  norm          .10001E-03    10.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .47005        .18310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .40496        .47907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.511        5.5400        .11824E-03   -1.5029    
   8  norm          .10000E-03    .54783        .56002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    11.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0817        1.3536        .70061E-04   -1.5419    
  11  Prefactor     .17712        13.313        .19251E-02   -1.5624    
  12  Prefactor     2.1374        5.6032        .28203E-03   -1.5416    
  13  Prefactor     .10000E-03    16.333        .21018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6512        3.9075        .22183E-03   -1.5451    
  15  Prefactor     .10000E-03    2.5091        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10020E-03    25.132        .21448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5391        4.7531        .18668E-03   -1.5332    
  19  Prefactor     .10000E-03    39.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97686        .16210        .19036E-03   -.93810    
  21  Prefactor     .72953        .17550        .24505E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07797e-08
Minuit parameter uncertainties:
  1  8.51128e-06
  2  1.34739
  3  1.38175
  4  0.000713558
  5  1.91774e-11
  6  6.89264e-09
  7  5.54021
  8  4.87956e-08
  9  0.000753688
  10  1.35364
  11  3.071
  12  5.60454
  13  0.000312882
  14  3.90815
  15  4.5467e-07
  16  0.00448754
  17  1.72958e-05
  18  4.75362
  19  0.000347655
  20  0.162186
  21  0.175632
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  2.082e+00  1.354e+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:  7.295e-01  1.756e-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:  9.769e-01  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 31.264 -17.002
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 6.54e-06

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) = 6042.83321763
delta logL = 0.0615505355681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6042.83239873
delta logL = 0.0623694291025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1117       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3392       1.0000          .0000       5.0000    
     3 'Normalizat'    .98369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72437       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=   6042.832     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      195 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1117        2.0301        .70972E-02    .89785E-03
   2  alpha         2.3392        .78666        .41260       -.34866E-04
   3  Normalizat    .98369        .13134        .45962E-01   -.35480E-03
   4  Prefactor     .72437        .14829        .42725E-01   -.21613E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11172
  alpha      = 2.33918
  Normalizat = 0.98369
  Prefactor  = 0.724366
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.832     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1117        1.3875        .71574E-04   -1.5417    
   2  alpha         2.3392        .61636        .16479E-01   -.64373E-01
   3  Normalizat    .98369        .15579        .18977E-03   -.93579    
   4  Prefactor     .72437        .17497        .24582E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83187e-10
Minuit parameter uncertainties:
  1  1.38754
  2  0.622805
  3  0.155865
  4  0.175106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90874': 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) = 6042.83239873
delta logL = 0.0623694300357

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  2.112e+00  1.388e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.339e+00  6.228e-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:  7.244e-01  1.751e-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:  9.837e-01  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 2.34 +/- 0.62
Photon Flux (Free Index): 3.46e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.06e-05 +/- 7.30e-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/90874/cmap_HighResolution_501897601_502156801_4FGL_J0205.0-1700_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.06e-05', photon_flux_error='2.57e-08', dlogl='6.24e-02', energy_flux='1.01e-05', photon_flux2='3.46e-08', job_status='DONE', time_completed='2021-08-15 06:11:46.315384', photon_index_error2='0.62', photon_index2='2.34', ts='5.20', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='7.30e-06', EG='0.98', time_epoch_completed='1629033106.32', return_code='0', job_id='90874', GAL2='0.72', EG2='0.98', return_code2='0', energy_flux_error='6.54e-06', photon_flux_error2='2.67e-08', ts2='5.32', photon_index='2.56' WHERE bin_id='1013' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 90874: <4FGL_J0205.0-1700_daily_bin1013> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1013> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 05:55:20 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:55:35 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:35 2021
Terminated at Sun Aug 15 06:11:47 2021
Results reported at Sun Aug 15 06:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1013 31.2637 -17.0022 501897601 502156801 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 :                                   717.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            987 sec.

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

