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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1008
RA = 31.2637, Dec = -17.0022
tmin = 500601601, tmax = 500860801
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='90867', job_status='RUN', time_executed='2021-08-15 05:57:23.891723', time_epoch_executed='1629032243.89' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90867/ft1_4FGL_J0205.0-1700_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90867/ft1_4FGL_J0205.0-1700_daily_bin1008.fits outfile=/scratch/kocevski/90867/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1008.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=500601601.0 tmax=500860801.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.84
user 4.85
sys 0.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.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/90867/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.23
user 0.35
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/90867/ltcube_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.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/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits
.....................!
real 14.50
user 13.26
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/90867/ltcube_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.fits outfile=/scratch/kocevski/90867/expmap_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.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/90867/ltcube_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.fits
.....................!
real 194.93
user 188.02
sys 6.49

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/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits scfile=/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits outfile=/scratch/kocevski/90867/cmap_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.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 1.26
user 0.38
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits scfile=/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits outfile=/scratch/kocevski/90867/cmap_HighResolution_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.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 1.25
user 0.41
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/90867/ft2_4FGL_J0205.0-1700_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90867/Model_4FGL_J0205.0-1700_daily_bin1008.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/90867/ft1_filtered_4FGL_J0205.0-1700_daily_bin1008.fits.....................!
real 35.85
user 33.37
sys 2.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15936E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3312       1.0000         .10000E-03   10000.    
     7 'norm      '    10.819       1.0000         .10000E-03   10000.    
     8 'norm      '    .18760E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.500       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .76843       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91527       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.

 FCN=   3006.665     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     1910 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.522        .30360E-05** at limit **
   2  norm          3.2189        4.4806        .50607E-07   -.16315E-03
   3  Prefactor     .10000E-03    3.4475       -.21547E-06** at limit **
   4  norm          .10001E-03    69.585       -.18778E-04** at limit **
   5  norm          .10000E-03    1.3942       -.30761E-06** at limit **
   6  norm          2.3370        3.0960       -.55122E-06   -.63607E-04
   7  norm          10.818        7.8331       -.21557E-07    .89975E-04
   8  norm          .10000E-03    9.4824       -.14682E-05** at limit **
   9  Prefactor     .10002E-03    57.130        .26689E-04** at limit **
  10  norm          1.7534        2.3511       -.33661E-06   -.18251E-03
  11  Prefactor     17.500        7.6929       -.17812E-06    .54620E-04
  12  Prefactor     .10000E-03    7.6335       -.29919E-06** at limit **
  13  Prefactor     7.8187        15.362        .61026E-06   -.32813E-04
  14  Prefactor     .10000E-03    3.6660        .19107E-06** at limit **
  15  Prefactor     5.2820        5.2353        .96353E-06    .17489E-02
  16  Prefactor     .10000E-03    31.043       -.65877E-05** at limit **
  17  norm          .10000E-03    13.526       -.11574E-05** at limit **
  18  Prefactor     .77929        9.6773       -.66718E-05   -.49586E-03
  19  Prefactor     43.494        39.029       -.48940E-05    .13420E-03
  20  Normalizat    .76850        .21506        .12810E-05    .21584E-03
  21  Prefactor     .91548        .22247        .79530E-06    .19440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.21888
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  norm       = 2.33697
  norm       = 10.8179
  norm       = 0.0001
  Prefactor  = 0.000100016
  norm       = 1.75345
  Prefactor  = 17.4998
  Prefactor  = 0.0001
  Prefactor  = 7.81871
  Prefactor  = 0.0001
  Prefactor  = 5.28199
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.77929
  Prefactor  = 43.4943
  Normalizat = 0.768497
  Prefactor  = 0.915478
 **********
 **   18 **HESSE 
 **********

 FCN=   3006.665     FROM HESSE     STATUS=OK           315 CALLS     2225 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2189        4.4579        .13196E-03   -1.5349    
   3  Prefactor     .10000E-03    3.4602        .99346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    68.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.6676        .12276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3370        3.0877        .10513E-03   -1.5402    
   7  norm          10.818        7.8308        .12181E-03   -1.5050    
   8  norm          .10000E-03    9.8045        .32805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    54.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7534        2.3375        .92440E-04   -1.5443    
  11  Prefactor     17.500        7.7007        .93959E-04   -1.4871    
  12  Prefactor     .10000E-03    7.6630        .14795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8187        15.327        .14326E-03   -1.5149    
  14  Prefactor     .10000E-03    3.7248        .10249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2820        5.4036        .62647E-03   -1.5248    
  16  Prefactor     .10000E-03    31.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77929        11.126        .34318E-03   -1.5531    
  19  Prefactor     43.494        38.957        .30392E-03   -1.4388    
  20  Normalizat    .76850        .24699        .23194E-03   -1.0125    
  21  Prefactor     .91548        .25891        .23386E-03   -.95602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51752e-09
Minuit parameter uncertainties:
  1  0.000150807
  2  4.45841
  3  1.99744e-06
  4  0.00150516
  5  5.00624e-05
  6  3.08787
  7  7.8315
  8  6.67916e-05
  9  0.00184696
  10  2.33766
  11  7.70111
  12  3.62193e-06
  13  15.3352
  14  1.24567e-05
  15  5.40409
  16  0.000301471
  17  4.35479e-05
  18  5.89012
  19  38.9798
  20  0.247355
  21  0.25926
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.753e+00  2.338e+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:  9.155e-01  2.593e-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.685e-01  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/90867/likelihoodResults_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.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) = 3006.31814773
delta logL = 0.346665035231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3006.3161379
delta logL = 0.348674863003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88803       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1785       1.0000          .0000       5.0000    
     3 'Normalizat'    .71737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95674       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=   3006.316     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88745        23.631        .10611E-01    .60498E-03
   2  alpha         4.1804        2.6052        .50000        .14524E-04
   3  Normalizat    .71738        .66516E-01    .42522E-01   -.29091E-04
   4  Prefactor     .95674        .74363E-01    .45724E-01   -.28129E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.887446
  alpha      = 4.18038
  Normalizat = 0.717385
  Prefactor  = 0.956739
 **********
 **   18 **HESSE 
 **********

 FCN=   3006.316     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      272 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88745        39.883        .48107E-03   -1.5520    
   2  alpha         4.1804        3.7075        .30503E-01    .73711    
   3  Normalizat    .71738        .22437        .23902E-03   -1.0321    
   4  Prefactor     .95674        .25936        .22935E-03   -.94186    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9401e-11
Minuit parameter uncertainties:
  1  11.9063
  2  13.5468
  3  0.224655
  4  0.259695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90867': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3006.31613695
delta logL = 0.348675819074

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  8.874e-01  1.191e+01  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  4.180e+00  1.355e+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:  9.567e-01  2.597e-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.174e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 31.264 -17.002
Photon Index (Free Index): 4.18 +/- 13.55
Photon Flux (Free Index): 7.21e-08 +/- 7.65e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.89e-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/90867/cmap_HighResolution_500601601_500860801_4FGL_J0205.0-1700_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='3.49e-01', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-08-15 06:05:28.062619', photon_index_error2='13.55', photon_index2='4.18', ts='0.75', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.89e-05', EG='0.77', time_epoch_completed='1629032728.06', return_code='0', job_id='90867', GAL2='0.96', EG2='0.72', return_code2='102', photon_flux_error2='7.65e-08', ts2='1.52', photon_index='2.56' WHERE bin_id='1008' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 90867: <4FGL_J0205.0-1700_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1008 31.2637 -17.0022 500601601 500860801 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 :                                   487.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             229.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            609 sec.

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

