/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: Dan/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 137 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_gnumber of points = 7502
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0206.4-1151_daily_bin1643
RA = 31.6018, Dec = -11.8576
tmin = 665193601, tmax = 665452801
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='487073', job_status='RUN', time_executed='2022-02-02 00:09:10.774476', time_epoch_executed='1643789350.77' WHERE source_name='4FGL J0206.4-1151' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487073/ft1_4FGL_J0206.4-1151_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487073/ft1_4FGL_J0206.4-1151_daily_bin1643.fits outfile=/scratch/kocevski/487073/ft1_filteredMKT_4FGL_J0206.4-1151_daily_bin1643.fits ra=31.6018 dec=-11.8576 rad=12.0 tmin=665193601.0 tmax=665452801.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.39
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.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/487073/ft1_filteredMKT_4FGL_J0206.4-1151_daily_bin1643.fits evtable="EVENTS" outfile="/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.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 2.62
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/487073/ltcube_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.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/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits
.....................!
real 19.80
user 18.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/487073/ltcube_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.fits outfile=/scratch/kocevski/487073/expmap_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.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/487073/ltcube_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.fits
.....................!
real 193.87
user 185.43
sys 5.31

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 J0206.4-1151 @ 31.6018 -11.8576

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits scfile=/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits outfile=/scratch/kocevski/487073/cmap_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.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.6018 yref=-11.8576 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.35
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits scfile=/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits outfile=/scratch/kocevski/487073/cmap_HighResolution_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.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.6018 yref=-11.8576 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.72
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487073/Model_4FGL_J0206.4-1151_daily_bin1643.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/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits.....................!
real 59.98
user 49.26
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits', '/scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits', expMap='/scratch/kocevski/487073/expmap_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.fits', expCube='/scratch/kocevski/487073/ltcube_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/487073/Model_4FGL_J0206.4-1151_daily_bin1643.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0206.4-1151'

4FGL J0206.4-1151
   Spectrum: PowerLaw
285    Prefactor:  3.081e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.399e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  7.401e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/487073/ft1_filtered_4FGL_J0206.4-1151_daily_bin1643.fits
Spacecraft file(s): /scratch/kocevski/487073/ft2_4FGL_J0206.4-1151_daily_bin1643.fits
Exposure map: /scratch/kocevski/487073/expmap_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.fits
Exposure cube: /scratch/kocevski/487073/ltcube_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/487073/Model_4FGL_J0206.4-1151_daily_bin1643.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) = 4871.7765509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.624       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2653       1.0000         .10000E-03   10000.    
     3 'norm      '    .86250       1.0000         .10000E-03   10000.    
     4 'norm      '    21.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.916       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0705       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9068       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5064       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .87249       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4871.773     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1634 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.624        12.046       -.17155E-06    .16471E-04
   2  norm          6.2628        23.265       -.71843E-05    .30476E-04
   3  norm          .86260        1.3435       -.26786E-06   -.10027E-02
   4  norm          21.419        8.6397        .47778E-06    .52081E-04
   5  Prefactor     46.910        93.463       -.91189E-05    .35991E-04
   6  norm          4.6540        2.2484       -.52321E-07   -.18073E-05
   7  Prefactor     .10000E-03    2.9522       -.22609E-06** at limit **
   8  Prefactor     .10000E-03    4.9779        .38112E-08** at limit **
   9  Prefactor     5.2105        7.0069       -.11448E-06   -.16681E-03
  10  Prefactor     9.0698        6.8363        .43296E-07   -.17244E-04
  11  Prefactor     .10000E-03    10.410       -.83593E-07** at limit **
  12  norm          .10000E-03    18.349        .19757E-06** at limit **
  13  Prefactor     54.353        38.328       -.64461E-05    .17073E-03
  14  Prefactor     5.9054        11.621       -.13734E-05   -.49263E-04
  15  Prefactor     2.5061        13.134       -.19686E-05   -.16072E-03
  16  Normalizat    .87259        .18571        .15670E-05    .54231E-04
  17  Prefactor     .88813        .18151        .67161E-06    .83727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6238
  norm       = 6.2628
  norm       = 0.862598
  norm       = 21.4187
  Prefactor  = 46.9099
  norm       = 4.654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21049
  Prefactor  = 9.06982
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.3525
  Prefactor  = 5.90542
  Prefactor  = 2.50614
  Normalizat = 0.872587
  Prefactor  = 0.888127
 **********
 **   18 **HESSE 
 **********

 FCN=   4871.773     FROM HESSE     STATUS=OK           231 CALLS     1865 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.624        12.043        .10852E-03   -1.4970    
   2  norm          6.2628        23.286        .16037E-03   -1.5207    
   3  norm          .86260        1.2757        .96240E-03   -1.5522    
   4  norm          21.419        8.6228        .86547E-04   -1.4782    
   5  Prefactor     46.910        93.388        .58539E-04   -1.4337    
   6  norm          4.6540        2.2575        .68919E-04   -1.5276    
   7  Prefactor     .10000E-03    7.5038        .23078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9844        .15208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2105        7.0293        .17608E-03   -1.5251    
  10  Prefactor     9.0698        6.8329        .13308E-03   -1.5106    
  11  Prefactor     .10000E-03    10.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     54.353        37.849        .54404E-04   -1.4232    
  14  Prefactor     5.9054        11.653        .16523E-03   -1.5222    
  15  Prefactor     2.5061        13.519        .25811E-03   -1.5391    
  16  Normalizat    .87259        .21707        .23562E-03   -.97430    
  17  Prefactor     .88813        .21316        .24108E-03   -.96557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57598e-10
Minuit parameter uncertainties:
  1  12.0448
  2  23.3201
  3  1.2757
  4  8.62326
  5  93.6816
  6  2.25749
  7  4.04825e-05
  8  4.13303e-06
  9  7.03036
  10  6.83353
  11  6.272e-06
  12  1.90778e-05
  13  37.8658
  14  11.6576
  15  11.6452
  16  0.217292
  17  0.213362
Done.

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

Extracting fit parameters...

4FGL J0206.4-1151
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.048e-05  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.399e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  7.401e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.881e-01  2.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  8.726e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 31.602 -11.858
Photon Flux Upper Limit: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487073/likelihoodResults_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.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) = 4871.77404405
delta logL = -0.000633697250123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4871.77341309
delta logL = -2.73788009508e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4421       1.0000          .0000       10.000    
     3 'Normalizat'    .87269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+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=   4871.773     FROM MIGRAD    STATUS=FAILED       104 CALLS      271 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12646E-03    90.049        .18766E-02** at limit **
   2  Index         2.8194        6.0242        .50000       -.19258E-04
   3  Normalizat    .87259        .10382E-01    .23562E-03    .23236E-03
   4  Prefactor     .88813        .10770E-01    .24108E-03    .15840E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4871.773     FROM SIMPLEX   STATUS=PROGRESS     118 CALLS      389 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10278E-03    90.049        .53611E-03** at limit **
   2  Index         2.8179        6.0242        .47176E-03   -.19258E-04
   3  Normalizat    .87258        .10382E-01    .34130E-05    .23236E-03
   4  Prefactor     .88812        .10770E-01    .30923E-05    .15840E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4871.773     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      432 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    188.17        .75066E-03** at limit **
   2  Index         2.8641        6.4120        .50000       -.91281E-05
   3  Normalizat    .87259        .14617E-01    .47124E-04    .24189E-02
   4  Prefactor     .88813        .15163E-01    .96431E-05    .23381E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010038
  Index      = 2.86415
  Normalizat = 0.872591
  Prefactor  = 0.888131
 **********
 **   18 **HESSE 
 **********

 FCN=   4871.773     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      461 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    972.18        .15013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8641        7.3764        .50000       -.44136    
   3  Normalizat    .87259        .35602E-01    .94249E-05   -.97430    
   4  Prefactor     .88813        .36923E-01    .19286E-05   -.96557    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13363e-09
Minuit parameter uncertainties:
  1  0.0390922
  2  535.217
  3  0.0356029
  4  0.0369238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487073': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4871.77340668
delta logL = 3.66934636986e-06

Extracting fit parameters...

4FGL J0206.4-1151
   Spectrum: PowerLaw
285    Prefactor:  1.004e-04  3.909e-02  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.864e+00  5.352e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  7.401e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.881e-01  3.692e-02  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  8.726e-01  3.560e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.602 -11.858

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/487073/cmap_HighResolution_665193601_665452801_4FGL_J0206.4-1151_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2022-02-02 00:18:16.318465', job_id='487073', GAL2='0.89', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1643789896.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1643' AND source_name='4FGL J0206.4-1151' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:18:16 PST 2022

'SUCCESS', return_code='0', GAL='0.89', dlogl='3.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1643' AND source_name='4FGL J0206.4-1151' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:18:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 487074: <4FGL_J0206.4-1151_daily_bin1643> in cluster <slac> Done

Job <4FGL_J0206.4-1151_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:05:50 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:06:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:06:06 2022
Terminated at Wed Feb  2 00:18:01 2022
Results reported at Wed Feb  2 00:18:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0206.4-1151_daily_bin1643 31.6018 -11.8576 665193601 665452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0206.4-1151 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   514.29 sec.
    Max Memory :                                 619 MB
    Average Memory :                             240.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            731 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 487073: <4FGL_J0206.4-1151_daily_bin1643> in cluster <slac> Done

Job <4FGL_J0206.4-1151_daily_bin1643> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb  2 00:05:50 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:06:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:06:01 2022
Terminated at Wed Feb  2 00:18:17 2022
Results reported at Wed Feb  2 00:18:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0206.4-1151_daily_bin1643 31.6018 -11.8576 665193601 665452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0206.4-1151 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            747 sec.

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

