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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin917
RA = 31.2637, Dec = -17.0022
tmin = 477014401, tmax = 477273601
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='89670', job_status='RUN', time_executed='2021-08-15 05:54:28.310773', time_epoch_executed='1629032068.31' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89670/ft1_4FGL_J0205.0-1700_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89670/ft1_4FGL_J0205.0-1700_daily_bin917.fits outfile=/scratch/kocevski/89670/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin917.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=477014401.0 tmax=477273601.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.45
user 3.40
sys 4.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89670/ft1_filtered_4FGL_J0205.0-1700_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/89670/ltcube_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.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/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits
.....................!
real 20.62
user 13.61
sys 6.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89670/ft1_filtered_4FGL_J0205.0-1700_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/89670/ltcube_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.fits outfile=/scratch/kocevski/89670/expmap_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.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/89670/ltcube_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.fits
.....................!
real 198.59
user 185.84
sys 12.02

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/89670/ft1_filtered_4FGL_J0205.0-1700_daily_bin917.fits scfile=/scratch/kocevski/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits outfile=/scratch/kocevski/89670/cmap_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.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 5.30
user 0.39
sys 4.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89670/ft1_filtered_4FGL_J0205.0-1700_daily_bin917.fits scfile=/scratch/kocevski/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits outfile=/scratch/kocevski/89670/cmap_HighResolution_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.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 5.28
user 0.40
sys 4.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89670/ft1_filtered_4FGL_J0205.0-1700_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/89670/ft2_4FGL_J0205.0-1700_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89670/Model_4FGL_J0205.0-1700_daily_bin917.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/89670/ft1_filtered_4FGL_J0205.0-1700_daily_bin917.fits......................!
real 42.13
user 34.36
sys 7.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.235       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5207       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17654E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5873       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18458E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0140       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.687       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.379       1.0000         .10000E-03   10000.    
    17 'norm      '    .13263E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1158       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11162E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0095       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .69358       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=   3203.762     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2179 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.212        36.078        .23930E-05    .54171E-03
   2  norm          6.5205        7.4247        .17011E-06    .19249E-02
   3  Prefactor     .10000E-03    7.2087       -.48709E-05** at limit **
   4  norm          .10000E-03    15.631        .84623E-07** at limit **
   5  norm          .10000E-03    .40533       -.61989E-07** at limit **
   6  norm          .10000E-03    .70935       -.69971E-08** at limit **
   7  norm          7.5879        6.3733        .34038E-06   -.16272E-03
   8  norm          .10000E-03    1.1836        .95430E-08** at limit **
   9  Prefactor     .10000E-03    14.977       -.78238E-06** at limit **
  10  norm          .10000E-03    1.8226        .24655E-06** at limit **
  11  Prefactor     2.5145        6.6410        .69105E-06   -.71159E-04
  12  Prefactor     2.0164        20.899        .10477E-04   -.37858E-04
  13  Prefactor     .10000E-03    10.517        .23241E-06** at limit **
  14  Prefactor     .10000E-03    1.8276        .55858E-07** at limit **
  15  Prefactor     10.662        13.922       -.78614E-06   -.79561E-05
  16  Prefactor     16.387        31.044       -.44708E-06    .91949E-05
  17  norm          .10001E-03    88.916        .10412E-05** at limit **
  18  Prefactor     6.1176        8.3709       -.16761E-06    .40489E-05
  19  Prefactor     .10000E-03    91.028        .27119E-05** at limit **
  20  Normalizat    1.0092        .21592       -.21189E-06    .29938E-03
  21  Prefactor     .69380        .20896       -.11754E-05    .77025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2115
  norm       = 6.5205
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.5879
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.51445
  Prefactor  = 2.01636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.662
  Prefactor  = 16.3869
  norm       = 0.000100005
  Prefactor  = 6.11765
  Prefactor  = 0.000100001
  Normalizat = 1.00916
  Prefactor  = 0.693805
 **********
 **   18 **HESSE 
 **********

 FCN=   3203.762     FROM HESSE     STATUS=OK           311 CALLS     2490 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.212        36.502        .89040E-04   -1.4809    
   2  norm          6.5205        7.4889        .10875E-03   -1.5197    
   3  Prefactor     .10000E-03    15.866        .23788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .40770        .35191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .71198        .46545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5879        6.3585        .12608E-03   -1.5157    
   8  norm          .10000E-03    1.1873        .60138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.696        .14278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5145        6.6463        .21401E-03   -1.5391    
  12  Prefactor     2.0164        22.978        .14584E-02   -1.5424    
  13  Prefactor     .10000E-03    10.534        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8291        .74729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.662        13.982        .12256E-03   -1.5055    
  16  Prefactor     16.387        31.021        .98963E-04   -1.4898    
  17  norm          .10001E-03    88.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1176        8.4071        .16234E-03   -1.5213    
  19  Prefactor     .10000E-03    91.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0092        .25713        .20600E-03   -.92724    
  21  Prefactor     .69380        .24852        .25596E-03   -1.0377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04855e-09
Minuit parameter uncertainties:
  1  36.5421
  2  7.48994
  3  0.000534542
  4  5.5707e-05
  5  1.91143e-06
  6  5.79426e-07
  7  6.35905
  8  2.59051e-07
  9  7.21833e-05
  10  7.81564e-05
  11  6.64826
  12  13.6199
  13  2.45407e-05
  14  3.02613e-06
  15  13.9867
  16  31.0513
  17  0.0013385
  18  8.40869
  19  0.000594268
  20  0.257442
  21  0.248919
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.000e-04  7.816e-05  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:  6.938e-01  2.489e-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:  1.009e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89670/likelihoodResults_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.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): 102
logL (Free Index) = 3203.7627588
delta logL = -0.000410224773532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3203.76234804
delta logL = 5.40070686839e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10786E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69372       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3203.762     FROM MIGRAD    STATUS=FAILED       109 CALLS      276 TOTAL
                     EDM=   .26E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10784E-03    6359.5        .13697E-02** at limit **
   2  alpha         1.9087        .27428        .50000       -.16692E-05
   3  Normalizat    1.0092        .16572        .20600E-03   -.56843E-05
   4  Prefactor     .69381        .17441        .25596E-03    .47925E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3203.762     FROM SIMPLEX   STATUS=PROGRESS     161 CALLS      437 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52611E-01    6359.5        .54684E-03   -1.5754    
   2  alpha         1.9087        .27428        .89084E-06   -.23878    
   3  Normalizat    1.0092        .16572        .15226E-06   -.92724    
   4  Prefactor     .69381        .17441        .67540E-07   -1.0377    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3203.762     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      495 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57028E-01    121.13        .54788E-03    .33481E-04
   2  alpha         1.9507        4.0233        .50000       -.18309E-04
   3  Normalizat    1.0093        .23332        .82401E-05    .11438E-03
   4  Prefactor     .69296        .25842        .10238E-04    .81837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0570279
  alpha      = 1.95068
  Normalizat = 1.00927
  Prefactor  = 0.69296
 **********
 **   18 **HESSE 
 **********

 FCN=   3203.762     FROM HESSE     STATUS=OK            29 CALLS      524 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57028E-01    17.874        .21915E-04   -1.5756    
   2  alpha         1.9507        2.6324        .87858E-01   -.22153    
   3  Normalizat    1.0093        .23257        .16480E-05   -.92720    
   4  Prefactor     .69296        .24678        .20477E-05   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03784e-10
Minuit parameter uncertainties:
  1  2.01805
  2  6.31272
  3  0.232802
  4  0.24717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89670': 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) = 3203.7618811
delta logL = 0.000467479836516

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  5.703e-02  2.018e+00  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  1.951e+00  6.313e+00  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:  6.930e-01  2.472e-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:  1.009e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.264 -17.002

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/89670/cmap_HighResolution_477014401_477273601_4FGL_J0205.0-1700_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-08-15 06:03:51.872908', job_id='89670', GAL2='0.69', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629032631.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='4.67e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='917' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:03:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 89670: <4FGL_J0205.0-1700_daily_bin917> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin917> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 05:51:03 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:52: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:52:54 2021
Terminated at Sun Aug 15 06:03:53 2021
Results reported at Sun Aug 15 06:03:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin917 31.2637 -17.0022 477014401 477273601 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 :                                   629.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            770 sec.

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

