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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1006
RA = 31.2637, Dec = -17.0022
tmin = 500083201, tmax = 500342401
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='90865', job_status='RUN', time_executed='2021-08-15 05:59:37.979892', time_epoch_executed='1629032377.98' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90865/ft1_4FGL_J0205.0-1700_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90865/ft1_4FGL_J0205.0-1700_daily_bin1006.fits outfile=/scratch/kocevski/90865/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1006.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=500083201.0 tmax=500342401.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 6.94
user 5.34
sys 1.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90865/ft1_filtered_4FGL_J0205.0-1700_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/90865/ltcube_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.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/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits
.....................!
real 15.07
user 13.10
sys 1.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90865/ft1_filtered_4FGL_J0205.0-1700_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/90865/ltcube_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.fits outfile=/scratch/kocevski/90865/expmap_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.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/90865/ltcube_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.fits
.....................!
real 193.22
user 185.74
sys 6.76

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/90865/ft1_filtered_4FGL_J0205.0-1700_daily_bin1006.fits scfile=/scratch/kocevski/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits outfile=/scratch/kocevski/90865/cmap_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.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.88
user 0.38
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90865/ft1_filtered_4FGL_J0205.0-1700_daily_bin1006.fits scfile=/scratch/kocevski/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits outfile=/scratch/kocevski/90865/cmap_HighResolution_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.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.79
user 0.39
sys 1.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90865/ft1_filtered_4FGL_J0205.0-1700_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/90865/ft2_4FGL_J0205.0-1700_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90865/Model_4FGL_J0205.0-1700_daily_bin1006.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/90865/ft1_filtered_4FGL_J0205.0-1700_daily_bin1006.fits.....................!
real 32.44
user 28.85
sys 2.83

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1102       1.0000         .10000E-03   10000.    
     4 'norm      '    .24780E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9741       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2747       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9762       1.0000         .10000E-03   10000.    
     8 'norm      '    7.4784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.930       1.0000         .10000E-03   10000.    
    10 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7669       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.918       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5076       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .59710       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0700       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=   2405.072     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2182 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.112        .90712E-02** at limit **
   2  norm          .10000E-03    3.7182        .90712E-02** at limit **
   3  Prefactor     7.1147        8.9015        .37609E-02    .10596E-02
   4  norm          .10000E-03    112.68        .90712E-02** at limit **
   5  norm          1.9742        1.7780        .73769E-02    .23777E-04
   6  norm          3.2762        5.2493        .55942E-02    .74159E-04
   7  norm          2.9709        8.8828        .58836E-02   -.46156E-03
   8  norm          7.4799        7.7849        .36664E-02    .16415E-02
   9  Prefactor     65.930        82.406        .12357E-02    .10881E-03
  10  norm          .10000E-03    2.5758        .30794E-01** at limit **
  11  Prefactor     24.338        8.9769        .20299E-02    .13476E-03
  12  Prefactor     .10000E-03    10.857        .90712E-02** at limit **
  13  Prefactor     .10000E-03    9.8639        .90712E-02** at limit **
  14  Prefactor     1.7682        6.8389        .78777E-02    .23412E-03
  15  Prefactor     .10000E-03    9.1728        .90712E-02** at limit **
  16  Prefactor     18.916        28.786        .23021E-02    .24558E-03
  17  norm          .10000E-03    28.893        .90712E-02** at limit **
  18  Prefactor     1.5087        8.7975        .87118E-02    .32317E-03
  19  Prefactor     .10000E-03    29.286        .90712E-02** at limit **
  20  Normalizat    .59682        .26220        .60997E-01    .22538E-05
  21  Prefactor     1.0702        .27359        .38857E-01   -.54228E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.11466
  norm       = 0.0001
  norm       = 1.97415
  norm       = 3.27619
  norm       = 2.97092
  norm       = 7.4799
  Prefactor  = 65.9303
  norm       = 0.0001
  Prefactor  = 24.3379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76822
  Prefactor  = 0.0001
  Prefactor  = 18.9157
  norm       = 0.000100003
  Prefactor  = 1.50871
  Prefactor  = 0.000100004
  Normalizat = 0.596819
  Prefactor  = 1.07017
 **********
 **   18 **HESSE 
 **********

 FCN=   2405.072     FROM HESSE     STATUS=OK           317 CALLS     2499 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7355        .92144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1147        8.8555        .15044E-03   -1.5174    
   4  norm          .10000E-03    114.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9742        1.7763        .59854E-04   -1.5427    
   6  norm          3.2762        5.2172        .12557E-03   -1.5346    
   7  norm          2.9709        8.8554        .23534E-03   -1.5363    
   8  norm          7.4799        7.7708        .64779E-03   -1.5161    
   9  Prefactor     65.930        82.337        .49427E-04   -1.4082    
  10  norm          .10000E-03    3.8022        .15051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.338        8.9917        .81197E-04   -1.4721    
  12  Prefactor     .10000E-03    10.901        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8764        .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7682        6.8061        .23936E-03   -1.5442    
  15  Prefactor     .10000E-03    9.2171        .14503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.916        28.773        .92086E-04   -1.4838    
  17  norm          .10000E-03    28.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5087        8.7375        .27882E-03   -1.5462    
  19  Prefactor     .10000E-03    29.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .59682        .30884        .26986E-03   -1.0812    
  21  Prefactor     1.0702        .32579        .22319E-03   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03224e-09
Minuit parameter uncertainties:
  1  0.000185088
  2  3.14342e-06
  3  8.85709
  4  0.000422868
  5  1.77631
  6  5.21797
  7  8.85933
  8  7.7718
  9  82.4797
  10  1.98088e-06
  11  8.99219
  12  6.0638e-05
  13  8.38836e-05
  14  6.80907
  15  2.11198e-05
  16  28.7936
  17  0.000557555
  18  7.26285
  19  0.000683693
  20  0.309732
  21  0.326399
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.000e-04  1.981e-06  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.070e+00  3.264e-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:  5.968e-01  3.097e-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.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90865/likelihoodResults_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.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) = 2405.07300602
delta logL = -0.00125287633773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2405.07175659
delta logL = -3.45318221662e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5813       1.0000          .0000       5.0000    
     3 'Normalizat'    .59618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0709       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=   2405.072     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    954.43        .15107E-02** at limit **
   2  alpha         2.9754        3.2231        .16472        .66707E-07
   3  Normalizat    .59682        .17705        .26986E-03   -.36789E-03
   4  Prefactor     1.0702        .19133        .22319E-03   -.47914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.97539
  Normalizat = 0.596817
  Prefactor  = 1.07017
 **********
 **   18 **HESSE 
 **********

 FCN=   2405.072     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3826        .30215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9754        3.9569        .65887E-02    .19132    
   3  Normalizat    .59682        .29231        .53973E-04   -1.0812    
   4  Prefactor     1.0702        .31890        .44638E-04   -.90426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50358e-10
Minuit parameter uncertainties:
  1  2.10597e-05
  2  235.1
  3  0.293073
  4  0.319467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90865': 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) = 2405.07175142
delta logL = 1.72335194293e-06

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.000e-04  2.106e-05  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  2.975e+00  2.351e+02  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.070e+00  3.195e-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:  5.968e-01  2.931e-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/90865/cmap_HighResolution_500083201_500342401_4FGL_J0205.0-1700_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-05', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-08-15 06:07:30.899048', job_id='90865', GAL2='1.07', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1629032850.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1006' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 06:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 90865: <4FGL_J0205.0-1700_daily_bin1006> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1006> 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) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:55:31 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:31 2021
Terminated at Sun Aug 15 06:07:31 2021
Results reported at Sun Aug 15 06:07:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1006 31.2637 -17.0022 500083201 500342401 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 :                                   480.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            732 sec.

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

