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


Performing analysis on: 4FGL_J0210.7-5101_daily_bin1582
RA = 32.6946, Dec = -51.0218
tmin = 649382401, tmax = 649641601
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='184969', job_status='RUN', time_executed='2021-08-15 10:51:14.225322', time_epoch_executed='1629049874.23' WHERE source_name='4FGL J0210.7-5101' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184969/ft1_4FGL_J0210.7-5101_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184969/ft1_4FGL_J0210.7-5101_daily_bin1582.fits outfile=/scratch/kocevski/184969/ft1_filteredMKT_4FGL_J0210.7-5101_daily_bin1582.fits ra=32.6946 dec=-51.0218 rad=12.0 tmin=649382401.0 tmax=649641601.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 4.37
user 2.55
sys 1.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.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/184969/ft1_filteredMKT_4FGL_J0210.7-5101_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.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.06
user 0.33
sys 1.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/184969/ltcube_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.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/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits
.....................!
real 16.77
user 14.67
sys 2.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/184969/ltcube_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.fits outfile=/scratch/kocevski/184969/expmap_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.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/184969/ltcube_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.fits
.....................!
real 194.50
user 186.26
sys 7.74

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 188 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0210.7-5101 @ 32.6946 -51.0218

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits scfile=/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits outfile=/scratch/kocevski/184969/cmap_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.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=32.6946 yref=-51.0218 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 2.08
user 0.38
sys 1.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits scfile=/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits outfile=/scratch/kocevski/184969/cmap_HighResolution_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.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=32.6946 yref=-51.0218 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 2.07
user 0.39
sys 1.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184969/Model_4FGL_J0210.7-5101_daily_bin1582.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits.....................!
real 115.76
user 112.16
sys 3.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits', '/scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits', expMap='/scratch/kocevski/184969/expmap_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.fits', expCube='/scratch/kocevski/184969/ltcube_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/184969/Model_4FGL_J0210.7-5101_daily_bin1582.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0210.7-5101'

4FGL J0210.7-5101
   Spectrum: LogParabola
281         norm:  4.294e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
282        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
283         beta:  8.525e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
284           Eb:  4.766e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/184969/ft1_filtered_4FGL_J0210.7-5101_daily_bin1582.fits
Spacecraft file(s): /scratch/kocevski/184969/ft2_4FGL_J0210.7-5101_daily_bin1582.fits
Exposure map: /scratch/kocevski/184969/expmap_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.fits
Exposure cube: /scratch/kocevski/184969/ltcube_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/184969/Model_4FGL_J0210.7-5101_daily_bin1582.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) = 5780.49685308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8114       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61884E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1155       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .70325E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3677       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5129       1.0000         .10000E-03   10000.    
    14 'Prefactor '    93.759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.652       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29366E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13966E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33277       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.633       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4269       1.0000         .10000E-03   10000.    
    22 'Prefactor '    123.09       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.010       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3519       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5780.453     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3752 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.894        .71307E-06** at limit **
   2  norm          3.8088        9.5101       -.29424E-05   -.72727E-04
   3  Prefactor     .10000E-03    39.805       -.20083E-05** at limit **
   4  Prefactor     .10033E-03    38.119       -.13581E-04** at limit **
   5  norm          3.2952        12.280       -.46662E-06    .47304E-05
   6  Prefactor     1.1128        6.5193       -.49777E-06    .52461E-04
   7  Prefactor     .10000E-03    5.2396        .79929E-07** at limit **
   8  norm          .10000E-03    17.755       -.53230E-07** at limit **
   9  norm          .10000E-03    1.4420        .20140E-07** at limit **
  10  Prefactor     .10000E-03    9.0226        .56110E-07** at limit **
  11  Prefactor     .10014E-03    29.505        .10742E-04** at limit **
  12  Prefactor     3.3675        3.9305        .44992E-07   -.54514E-04
  13  norm          2.5133        1.7802       -.22540E-08   -.18292E-04
  14  Prefactor     93.749        65.064       -.12224E-05   -.10661E-03
  15  Prefactor     20.619        19.442        .75125E-06    .90663E-04
  16  Prefactor     .10002E-03    76.764       -.53493E-05** at limit **
  17  norm          .10000E-03    1.0990        .86586E-07** at limit **
  18  Prefactor     .37224        34.187       -.14007E-04    .17331E-03
  19  Prefactor     6.4487        4.1190        .49274E-07   -.76810E-04
  20  Prefactor     14.633        14.676        .12699E-07   -.38941E-04
  21  norm          1.4268        1.0982        .60194E-07    .18848E-03
  22  Prefactor     123.05        72.412       -.19611E-05    .26203E-04
  23  Prefactor     .10000E-03    2.1845        .18918E-06** at limit **
  24  Prefactor     19.007        21.613       -.11991E-06   -.51404E-04
  25  Prefactor     .10003E-03    17.710        .89417E-05** at limit **
  26  Prefactor     .10000E-03    7.7780        .44114E-07** at limit **
  27  Prefactor     .10000E-03    2.8713        .69736E-07** at limit **
  28  Normalizat    1.3518        .20571        .52109E-06   -.27785E-03
  29  Prefactor     .92806        .20302       -.35530E-06   -.23458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.80881
  Prefactor  = 0.0001
  Prefactor  = 0.000100332
  norm       = 3.29518
  Prefactor  = 1.11278
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100136
  Prefactor  = 3.36753
  norm       = 2.51328
  Prefactor  = 93.7485
  Prefactor  = 20.6189
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 0.372239
  Prefactor  = 6.44869
  Prefactor  = 14.6327
  norm       = 1.42684
  Prefactor  = 123.046
  Prefactor  = 0.0001
  Prefactor  = 19.0074
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35184
  Prefactor  = 0.928064
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.453     FROM HESSE     STATUS=OK           561 CALLS     4313 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8088        9.5416        .10337E-02   -1.5318    
   3  Prefactor     .10000E-03    39.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10033E-03    152.74        .51405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2952        12.206        .22291E-03   -1.5345    
   6  Prefactor     1.1128        6.5747        .36948E-03   -1.5497    
   7  Prefactor     .10000E-03    5.2950        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4434        .89144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    74.173        .59469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3675        3.9197        .15549E-03   -1.5341    
  13  norm          2.5133        1.7707        .79257E-04   -1.5391    
  14  Prefactor     93.749        64.909        .41505E-04   -1.3768    
  15  Prefactor     20.619        19.194        .88137E-04   -1.4799    
  16  Prefactor     .10002E-03    79.407        .42797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0471        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .37224        79.789        .39009E-02   -1.5586    
  19  Prefactor     6.4487        4.1166        .11716E-03   -1.5200    
  20  Prefactor     14.633        14.674        .10471E-03   -1.4943    
  21  norm          1.4268        1.0847        .65792E-04   -1.5469    
  22  Prefactor     123.05        72.123        .18139E-03   -1.3485    
  23  Prefactor     .10000E-03    2.2026        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.007        21.594        .91861E-04   -1.4836    
  25  Prefactor     .10003E-03    48.282        .41683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.7843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.8775        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3518        .24534        .23565E-03   -.82032    
  29  Prefactor     .92806        .24573        .28752E-03   -.95167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41776e-09
Minuit parameter uncertainties:
  1  4.64132e-05
  2  9.54541
  3  0.000239527
  4  0.014284
  5  12.2153
  6  5.41035
  7  1.54726e-05
  8  5.62309e-06
  9  2.46927e-06
  10  1.11144e-05
  11  0.00636901
  12  3.92001
  13  1.77077
  14  64.958
  15  19.2001
  16  0.00269223
  17  1.99837e-05
  18  10.9129
  19  4.11674
  20  14.6781
  21  1.08467
  22  72.1744
  23  1.51252e-05
  24  21.603
  25  0.00233804
  26  6.91121e-06
  27  6.10143e-06
  28  0.24555
  29  0.246022
Done.

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

Extracting fit parameters...

4FGL J0210.7-5101
   Spectrum: LogParabola
281         norm:  2.513e+00  1.771e+00  1.000e-04  1.000e+04 ( 1.000e-11)
282        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
283         beta:  8.525e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
284           Eb:  4.766e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.281e-01  2.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.352e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 32.695 -51.022
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.51e-05

TS (Fixed Index): 3.67
Ra Dec: 32.695 -51.022
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184969/likelihoodResults_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.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) = 5778.42450719
delta logL = 2.02897994055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.41670269
delta logL = 2.03678443748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2277       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8250       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   5778.417     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      268 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2277        1.4683        .35827E-04    .55467E-03
   2  alpha         3.8250        .98590        .12940E-02   -.43051E-05
   3  Normalizat    1.2217        .24378        .24525E-03   -.16966E-04
   4  Prefactor     1.0230        .24843        .27523E-03   -.80175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22768
  alpha      = 3.82504
  Normalizat = 1.22168
  Prefactor  = 1.02301
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.417     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2277        1.4175        .14331E-05   -1.5486    
   2  alpha         3.8250        .95430        .51758E-04    .55862    
   3  Normalizat    1.2217        .24401        .98100E-05   -.85936    
   4  Prefactor     1.0230        .24860        .11009E-04   -.91967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2143e-10
Minuit parameter uncertainties:
  1  1.41752
  2  0.989882
  3  0.244235
  4  0.248877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184969': 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) = 5778.41670262
delta logL = 2.03678450869

Extracting fit parameters...

4FGL J0210.7-5101
   Spectrum: LogParabola
281         norm:  1.228e+00  1.418e+00  1.000e-04  1.000e+04 ( 1.000e-11)
282        alpha:  3.825e+00  9.899e-01  0.000e+00  5.000e+00 ( 1.000e+00)
283         beta:  8.525e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
284           Eb:  4.766e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.023e+00  2.489e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.222e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 32.695 -51.022
Photon Index (Free Index): 3.83 +/- 0.99
Photon Flux (Free Index): 1.50e-07 +/- 6.98e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.09e-05

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/184969/cmap_HighResolution_649382401_649641601_4FGL_J0210.7-5101_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-05', comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='2.37e-05', photon_flux_error='4.27e-08', dlogl='2.04e+00', energy_flux='2.15e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-08-15 11:06:42.282170', photon_index_error2='0.99', photon_index2='3.83', ts='3.67', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.09e-05', EG='1.35', time_epoch_completed='1629050802.28', return_code='0', job_id='184969', GAL2='1.02', EG2='1.22', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='6.98e-08', ts2='8.06', photon_index='2.24' WHERE bin_id='1582' AND source_name='4FGL J0210.7-5101' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 184969: <4FGL_J0210.7-5101_daily_bin1582> in cluster <slac> Done

Job <4FGL_J0210.7-5101_daily_bin1582> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 10:50:26 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 10:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 10:50:37 2021
Terminated at Sun Aug 15 11:06:43 2021
Results reported at Sun Aug 15 11:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0210.7-5101_daily_bin1582 32.6946 -51.0218 649382401 649641601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0210.7-5101 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   943.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            977 sec.

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

