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


Performing analysis on: 4FGL_J0205.0-1700_daily_bin1602
RA = 31.2637, Dec = -17.0022
tmin = 654566401, tmax = 654825601
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='855252', job_status='RUN', time_executed='2021-10-02 00:00:55.872650', time_epoch_executed='1633158055.87' WHERE source_name='4FGL J0205.0-1700' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/855252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/855252/ft1_4FGL_J0205.0-1700_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/855252/ft1_4FGL_J0205.0-1700_daily_bin1602.fits outfile=/scratch/kocevski/855252/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1602.fits ra=31.2637 dec=-17.0022 rad=12.0 tmin=654566401.0 tmax=654825601.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.02
user 4.71
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.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/855252/ft1_filteredMKT_4FGL_J0205.0-1700_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.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 0.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/855252/ltcube_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.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/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits
.....................!
real 12.00
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/855252/ltcube_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.fits outfile=/scratch/kocevski/855252/expmap_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.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/855252/ltcube_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.fits
.....................!
real 191.12
user 186.36
sys 4.36

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/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.fits scfile=/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits outfile=/scratch/kocevski/855252/cmap_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.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 0.76
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.fits scfile=/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits outfile=/scratch/kocevski/855252/cmap_HighResolution_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.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 0.64
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/855252/ft2_4FGL_J0205.0-1700_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/855252/Model_4FGL_J0205.0-1700_daily_bin1602.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/855252/ft1_filtered_4FGL_J0205.0-1700_daily_bin1602.fits......................!
real 38.92
user 34.09
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3441       1.0000         .10000E-03   10000.    
     4 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6767       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.400       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .41910       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.781       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.585       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27037E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3912       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62180       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=   3192.315     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2256 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    151.03        .21246E-05** at limit **
   2  norm          22.668        10.860        .11669E-05    .73212E-05
   3  Prefactor     2.3447        15.246        .53360E-06   -.49754E-04
   4  norm          .10000E-03    87.513       -.38539E-05** at limit **
   5  norm          3.6767        2.3118        .23816E-07   -.20415E-04
   6  norm          .10000E-03    .98131       -.37992E-07** at limit **
   7  norm          17.400        10.709       -.52629E-06    .96908E-05
   8  norm          4.8775        5.7407        .33188E-07   -.21121E-04
   9  Prefactor     .10000E-03    62.092        .98741E-06** at limit **
  10  norm          .41839        3.0156        .12633E-06   -.27115E-04
  11  Prefactor     .10000E-03    3.3761       -.58608E-07** at limit **
  12  Prefactor     13.780        21.927       -.29312E-06   -.40803E-06
  13  Prefactor     .10000E-03    4.8946       -.16486E-08** at limit **
  14  Prefactor     1.4309        12.161        .26959E-05   -.67084E-05
  15  Prefactor     .10000E-03    4.5557        .19654E-07** at limit **
  16  Prefactor     26.585        27.288        .21173E-07    .18443E-05
  17  norm          .10000E-03    23.532        .25898E-07** at limit **
  18  Prefactor     .10000E-03    3.8893        .43029E-08** at limit **
  19  Prefactor     .10000E-03    402.38        .68357E-05** at limit **
  20  Normalizat    1.3912        .25605        .13362E-07    .51830E-05
  21  Prefactor     .62186        .25229        .70202E-07    .49382E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 22.6677
  Prefactor  = 2.34468
  norm       = 0.000100002
  norm       = 3.67665
  norm       = 0.0001
  norm       = 17.3999
  norm       = 4.87748
  Prefactor  = 0.0001
  norm       = 0.418386
  Prefactor  = 0.0001
  Prefactor  = 13.7796
  Prefactor  = 0.0001
  Prefactor  = 1.43091
  Prefactor  = 0.0001
  Prefactor  = 26.5846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39123
  Prefactor  = 0.621856
 **********
 **   18 **HESSE 
 **********

 FCN=   3192.315     FROM HESSE     STATUS=OK           315 CALLS     2571 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    149.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.668        10.643        .84135E-04   -1.4755    
   3  Prefactor     2.3447        14.040        .26777E-03   -1.5402    
   4  norm          .10000E-03    89.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6767        2.3089        .65161E-04   -1.5324    
   6  norm          .10000E-03    .98416        .54655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.400        10.705        .96016E-04   -1.4873    
   8  norm          4.8775        5.7598        .14035E-03   -1.5266    
   9  Prefactor     .10000E-03    62.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .41839        3.0203        .18538E-03   -1.5579    
  11  Prefactor     .10000E-03    13.775        .20053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.780        22.017        .10790E-03   -1.4965    
  13  Prefactor     .10000E-03    4.8952        .12209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4309        12.263        .17911E-02   -1.5469    
  15  Prefactor     .10000E-03    4.5607        .11777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.585        27.288        .77696E-04   -1.4676    
  17  norm          .10000E-03    23.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9018        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    414.45        .42866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3912        .30097        .22260E-03   -.80883    
  21  Prefactor     .62186        .29516        .32660E-03   -1.0667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56478e-09
Minuit parameter uncertainties:
  1  0.00241648
  2  10.6436
  3  11.4787
  4  0.000778817
  5  2.30892
  6  2.45906e-06
  7  10.7063
  8  5.7605
  9  0.000218094
  10  2.24812
  11  4.33473e-05
  12  22.0302
  13  4.03916e-07
  14  8.37975
  15  2.05291e-06
  16  27.3008
  17  9.24179e-06
  18  1.77273e-06
  19  0.000777744
  20  0.301357
  21  0.295898
Done.

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

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  4.184e-01  2.248e+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:  6.219e-01  2.959e-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.391e+00  3.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/855252/likelihoodResults_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.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) = 3192.2918465
delta logL = 0.0228556912484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3192.28448996
delta logL = 0.0302122296885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17858       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8084       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64171       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=   3192.284     FROM MIGRAD    STATUS=FAILED       106 CALLS      317 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17958        .92832        .64424E-03    .46451E-02
   2  alpha         4.8033        2.8828        .50000       -.78782E-03
   3  Normalizat    1.3647        .30482        .22446E-03    .19393E-04
   4  Prefactor     .64245        .30060        .32182E-03   -.20012E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3192.284     FROM SIMPLEX   STATUS=UNCHANGED     63 CALLS      380 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17958        .92832        .13490E-03   -1.5623    
   2  alpha         4.8033        2.8828        .33471E-01    1.1714    
   3  Normalizat    1.3647        .30482        .38690E-03   -.81655    
   4  Prefactor     .64245        .30060        .59213E-03   -1.0583    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3192.284     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      431 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17958        .76315         .0000        .35337E-04
   2  alpha         4.8033        3.3898         .0000       -.78668E-03
   3  Normalizat    1.3647        .30325         .0000        .24564E-05
   4  Prefactor     .64245        .30024         .0000        .70653E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.179581
  alpha      = 4.80327
  Normalizat = 1.36469
  Prefactor  = 0.642448
 **********
 **   18 **HESSE 
 **********

 FCN=   3192.284     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17958        .73521        .51540E-05   -1.5623    
   2  alpha         4.8033        3.4888        .50000        1.1714    
   3  Normalizat    1.3647        .30299        .89786E-05   -.81655    
   4  Prefactor     .64245        .30019        .25745E-05   -1.0583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2222e-05
Minuit parameter uncertainties:
  1  0.726532
  2  4.31959
  3  0.30339
  4  0.300949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/855252': 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) = 3192.28448563
delta logL = 0.0302165562402

Extracting fit parameters...

4FGL J0205.0-1700
   Spectrum: LogParabola
280         norm:  1.796e-01  7.265e-01  1.000e-04  1.000e+04 ( 1.000e-11)
281        alpha:  4.803e+00  4.320e+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.424e-01  3.009e-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.365e+00  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/855252/cmap_HighResolution_654566401_654825601_4FGL_J0205.0-1700_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-10-02 00:09:04.127445', job_id='855252', GAL2='0.64', fit_tolerance='1e-08', EG2='1.36', EG='1.39', time_epoch_completed='1633158544.13', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='3.02e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1602' AND source_name='4FGL J0205.0-1700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:09:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 855252: <4FGL_J0205.0-1700_daily_bin1602> in cluster <slac> Done

Job <4FGL_J0205.0-1700_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:00:39 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:00:41 2021
Terminated at Sat Oct  2 00:09:05 2021
Results reported at Sat Oct  2 00:09:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0205.0-1700_daily_bin1602 31.2637 -17.0022 654566401 654825601 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 :                                   483.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   503 sec.
    Turnaround time :                            506 sec.

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

