/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 3 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0205.0-1700_daily_bin148
RA = 31.2637, Dec = -17.0022
tmin = 277689601, tmax = 277948801
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='86114', job_status='RUN', time_executed='2021-08-15 05:43:34.565991', time_epoch_executed='1629031414.57' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86114/ft1_4FGL_J0205.0-1700_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86114/ft1_4FGL_J0205.0-1700_daily_bin148.fits outfile=/scratch/kocevski/86114/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin148.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=277689601.0 tmax=277948801.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 12.92
user 3.34
sys 9.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.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/86114/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.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 9.90
user 0.34
sys 9.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/86114/ltcube_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.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/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits
.....................!
real 24.49
user 13.77
sys 10.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/86114/ltcube_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.fits outfile=/scratch/kocevski/86114/expmap_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.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/86114/ltcube_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.fits
.....................!
real 205.46
user 187.33
sys 16.95

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/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.fits scfile=/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits outfile=/scratch/kocevski/86114/cmap_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.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 8.76
user 0.36
sys 8.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.fits scfile=/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits outfile=/scratch/kocevski/86114/cmap_HighResolution_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.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 9.90
user 0.38
sys 9.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/86114/ft2_4FGL_J0205.0-1700_daily_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86114/Model_4FGL_J0205.0-1700_daily_bin148.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/86114/ft1_filtered_4FGL_J0205.0-1700_daily_bin148.fits.....................!
real 60.72
user 46.63
sys 13.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
     2 'norm      '    11.434       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4466       1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8567       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1819       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.180       1.0000         .10000E-03   10000.    
    17 'norm      '    .79446E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37253E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10982E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3233       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .64291       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=   4865.188     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     1968 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.861        16.886        .55536E-05   -.34691E-03
   2  norm          11.436        5.6443       -.67996E-06    .24224E-03
   3  Prefactor     1.4448        5.1394       -.20798E-05   -.77302E-03
   4  norm          .10000E-03    25.705        .87058E-07** at limit **
   5  norm          1.8568        1.5799       -.12819E-06   -.39511E-03
   6  norm          2.1823        2.0016        .19162E-07   -.21661E-04
   7  norm          .10000E-03    3.6365        .55149E-08** at limit **
   8  norm          6.1183        3.5223       -.28587E-07   -.12453E-04
   9  Prefactor     .10000E-03    12.089        .16021E-07** at limit **
  10  norm          .10000E-03    .78678        .94692E-08** at limit **
  11  Prefactor     3.4606        4.3425       -.68094E-07   -.15377E-03
  12  Prefactor     .10000E-03    18.083       -.11812E-06** at limit **
  13  Prefactor     .10000E-03    5.1997        .14696E-07** at limit **
  14  Prefactor     .10000E-03    6.1394       -.29182E-07** at limit **
  15  Prefactor     .60606        11.824       -.11088E-05    .10311E-04
  16  Prefactor     18.178        19.345       -.34468E-05    .23782E-03
  17  norm          .10001E-03    188.90       -.11388E-04** at limit **
  18  Prefactor     .10007E-03    7.3934       -.27817E-06** at limit **
  19  Prefactor     .10000E-03    152.73        .80240E-05** at limit **
  20  Normalizat    1.3234        .19154        .32045E-06    .20597E-03
  21  Prefactor     .64274        .19570        .49810E-06    .11585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8608
  norm       = 11.4358
  Prefactor  = 1.44482
  norm       = 0.0001
  norm       = 1.85681
  norm       = 2.18233
  norm       = 0.0001
  norm       = 6.11832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.46062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.606056
  Prefactor  = 18.1777
  norm       = 0.00010001
  Prefactor  = 0.000100068
  Prefactor  = 0.000100002
  Normalizat = 1.32339
  Prefactor  = 0.642742
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.188     FROM HESSE     STATUS=OK           323 CALLS     2291 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.861        16.555        .10391E-03   -1.4937    
   2  norm          11.436        5.4831        .94206E-04   -1.5032    
   3  Prefactor     1.4448        5.4955        .28360E-03   -1.5468    
   4  norm          .10000E-03    25.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8568        1.5777        .76313E-04   -1.5435    
   6  norm          2.1823        1.9954        .89930E-04   -1.5413    
   7  norm          .10000E-03    3.6817        .12986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1183        3.5226        .95824E-04   -1.5213    
   9  Prefactor     .10000E-03    12.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .79408        .60363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4606        4.3447        .15505E-03   -1.5336    
  12  Prefactor     .10000E-03    18.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2089        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2610        .16849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .60606        61.097        .43389E-02   -1.5552    
  16  Prefactor     18.178        19.121        .93933E-04   -1.4855    
  17  norm          .10001E-03    186.96        .20906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    9.9993        .50464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    153.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3234        .22960        .20842E-03   -.82871    
  21  Prefactor     .64274        .23077        .30639E-03   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90787e-09
Minuit parameter uncertainties:
  1  16.5602
  2  5.4833
  3  5.49743
  4  2.40224e-05
  5  1.57779
  6  1.99547
  7  3.9033e-06
  8  3.52276
  9  1.8374e-06
  10  2.2198e-07
  11  4.34514
  12  1.23622e-05
  13  1.09718e-05
  14  4.50203e-06
  15  12.1819
  16  19.1274
  17  0.00280748
  18  0.00164802
  19  0.00116497
  20  0.229777
  21  0.23111
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.000e-04  2.220e-07  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.427e-01  2.311e-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.323e+00  2.298e-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: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86114/likelihoodResults_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.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) = 4865.19380138
delta logL = -0.00582738954836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4865.18797421
delta logL = -2.14432475332e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5580       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64278       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=   4865.188     FROM MIGRAD    STATUS=FAILED       102 CALLS      242 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    79.316        .60458E-02** at limit **
   2  alpha         1.9243        3.0157        .50000       -.26041E-05
   3  Normalizat    1.3234        .50184E-01    .20842E-03    .45387E-03
   4  Prefactor     .64274        .53590E-01    .30639E-03    .36671E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4865.188     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      420 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    79.316        .14198E-03** at limit **
   2  alpha         1.9243        3.0157        .10342E-05   -.26041E-05
   3  Normalizat    1.3234        .50184E-01    .42895E-08    .45387E-03
   4  Prefactor     .64274        .53590E-01    .18696E-08    .36671E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4865.188     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      452 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1051        .63244E-03** at limit **
   2  alpha         1.9239        4.0190        .50000       -.78535E-07
   3  Normalizat    1.3234        .21445        .41684E-04    .45133E-03
   4  Prefactor     .64274        .22845        .12256E-04    .36493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92387
  Normalizat = 1.32339
  Prefactor  = 0.642743
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.188     FROM HESSE     STATUS=OK            29 CALLS      481 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .87804        .12649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9239        2.5622        .50000       -.23254    
   3  Normalizat    1.3234        .21449        .83367E-05   -.82871    
   4  Prefactor     .64274        .22849        .24511E-05   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79937e-10
Minuit parameter uncertainties:
  1  2.17514e-06
  2  91.8361
  3  0.214639
  4  0.228825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86114': 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) = 4865.18796846
delta logL = 5.53081099497e-06

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.000e-04  2.175e-06  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  1.924e+00  9.184e+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:  6.427e-01  2.288e-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.323e+00  2.146e-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/86114/cmap_HighResolution_277689601_277948801_4FGL_J0205.0-1700_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-08-15 05:55:22.136794', job_id='86114', GAL2='0.64', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1629032122.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='5.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='148' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:55:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 86114: <4FGL_J0205.0-1700_daily_bin148> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin148> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 05:40:26 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:40: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:40:31 2021
Terminated at Sun Aug 15 05:55:25 2021
Results reported at Sun Aug 15 05:55:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin148 31.2637 -17.0022 277689601 277948801 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 :                                   851.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            899 sec.

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

