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


Performing analysis on: 4FGL_J1941.3-6210_daily_bin1087
RA = 295.347, Dec = -62.1753
tmin = 521078401, tmax = 521337601
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='97303', job_status='RUN', time_executed='2021-09-23 08:45:34.908392', time_epoch_executed='1632411934.91' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97303

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97303/ft1_4FGL_J1941.3-6210_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97303/ft1_4FGL_J1941.3-6210_daily_bin1087.fits outfile=/scratch/kocevski/97303/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin1087.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=521078401.0 tmax=521337601.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.74
user 4.54
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.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/97303/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/97303/ltcube_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.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/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits
.....................!
real 15.66
user 15.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/97303/ltcube_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.fits outfile=/scratch/kocevski/97303/expmap_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.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/97303/ltcube_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.fits
.....................!
real 192.03
user 187.42
sys 4.25

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1941.3-6210 @ 295.347 -62.1753

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits scfile=/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits outfile=/scratch/kocevski/97303/cmap_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.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=295.347 yref=-62.1753 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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits scfile=/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits outfile=/scratch/kocevski/97303/cmap_HighResolution_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.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=295.347 yref=-62.1753 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97303/Model_4FGL_J1941.3-6210_daily_bin1087.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/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits.....................!
real 89.28
user 87.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits', '/scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits', expMap='/scratch/kocevski/97303/expmap_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.fits', expCube='/scratch/kocevski/97303/ltcube_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/97303/Model_4FGL_J1941.3-6210_daily_bin1087.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1941.3-6210'

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  2.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.350e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  6.669e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  4.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/97303/ft1_filtered_4FGL_J1941.3-6210_daily_bin1087.fits
Spacecraft file(s): /scratch/kocevski/97303/ft2_4FGL_J1941.3-6210_daily_bin1087.fits
Exposure map: /scratch/kocevski/97303/expmap_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.fits
Exposure cube: /scratch/kocevski/97303/ltcube_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/97303/Model_4FGL_J1941.3-6210_daily_bin1087.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) = 11284.8658192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30621E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.283       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27421E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.637       1.0000         .10000E-03   10000.    
     9 'norm      '    8.7212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3934       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    132.31       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .79697       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11284.85     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1633 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    55.884       -.22308E-04** at limit **
   2  Prefactor     12.277        13.927       -.16952E-05   -.39139E-03
   3  norm          4.0590        1.0229        .10828E-06   -.24316E-03
   4  Prefactor     .10008E-03    306.97       -.17016E-06** at limit **
   5  Prefactor     .10001E-03    79.115       -.27971E-05** at limit **
   6  norm          24.360        17.495       -.76252E-07   -.20566E-04
   7  Prefactor     .10000E-03    18.148       -.70235E-06** at limit **
   8  Prefactor     39.578        66.144        .34605E-05    .19308E-03
   9  norm          8.7197        6.9590        .41663E-07    .10212E-03
  10  Prefactor     .10000E-03    2.8753       -.14136E-07** at limit **
  11  norm          6.3934        1.7016        .14909E-08   -.13591E-03
  12  Prefactor     .10000E-03    10.851       -.24757E-06** at limit **
  13  Prefactor     .10000E-03    1.1242       -.10626E-06** at limit **
  14  norm          .10000E-03    1.1288       -.30946E-07** at limit **
  15  Prefactor     132.30        89.596        .57273E-06    .53291E-04
  16  Normalizat    .79702        .20021       -.24411E-05   -.12250E-03
  17  Prefactor     1.0224        .84490E-01    .10128E-05    .60502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Prefactor  = 12.2768
  norm       = 4.05903
  Prefactor  = 0.000100079
  Prefactor  = 0.000100014
  norm       = 24.3596
  Prefactor  = 0.000100001
  Prefactor  = 39.5778
  norm       = 8.71966
  Prefactor  = 0.0001
  norm       = 6.39343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 132.301
  Normalizat = 0.797022
  Prefactor  = 1.02237
 **********
 **   18 **HESSE 
 **********

 FCN=   11284.85     FROM HESSE     STATUS=OK           221 CALLS     1854 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    55.381        .52286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.277        12.859        .11430E-03   -1.5007    
   3  norm          4.0590        1.0212        .10008E-03   -1.5305    
   4  Prefactor     .10008E-03    304.49        .39848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    79.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.360        17.494        .81163E-04   -1.4720    
   7  Prefactor     .10000E-03    18.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.578        66.814        .63666E-04   -1.4449    
   9  norm          8.7197        6.9582        .13573E-03   -1.5117    
  10  Prefactor     .10000E-03    2.8792        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3934        1.7006        .67457E-04   -1.5202    
  12  Prefactor     .10000E-03    10.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1534        .21994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7004        .21893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     132.30        89.566        .17504E-03   -1.3402    
  16  Normalizat    .79702        .23272        .41720E-03   -1.0018    
  17  Prefactor     1.0224        .99758E-01    .15853E-03   -.91987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29961e-09
Minuit parameter uncertainties:
  1  0.00189779
  2  12.8624
  3  1.02122
  4  0.00988181
  5  0.00214091
  6  17.4977
  7  0.000254552
  8  66.9406
  9  6.9588
  10  3.14502e-06
  11  1.70065
  12  6.01525e-05
  13  8.07215e-06
  14  8.73094e-07
  15  89.6579
  16  0.233007
  17  0.0997756
Done.

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

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  6.393e+00  1.701e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.350e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  6.669e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  4.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.022e+00  9.978e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  7.970e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.00
Ra Dec: 295.347 -62.175
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.91e-07 +/- 5.07e-08
Energy Flux (Fixed Index): 6.12e-05 +/- 1.63e-05

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) = 11284.6882935
delta logL = 0.166436062234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11284.6875614
delta logL = 0.167168169526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0660       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5119       1.0000          .0000       5.0000    
     3 'Normalizat'    .77033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11284.69     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      265 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0644        21.080        .40754E-02    .30131E-03
   2  alpha         2.5116        3.7090        .22916        .60929E-04
   3  Normalizat    .77044        .17516        .95594E-01    .56014E-04
   4  Prefactor     1.0295        .71286E-01    .41295E-01   -.83461E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.06443
  alpha      = 2.51158
  Normalizat = 0.770444
  Prefactor  = 1.02952
 **********
 **   18 **HESSE 
 **********

 FCN=   11284.69     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0644        1.7590        .63702E-04   -1.5215    
   2  alpha         2.5116        .28631        .96088E-02    .46306E-02
   3  Normalizat    .77044        .23503        .42354E-03   -1.0117    
   4  Prefactor     1.0295        .98842E-01    .15801E-03   -.91752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5529e-12
Minuit parameter uncertainties:
  1  1.75902
  2  0.286942
  3  0.23534
  4  0.0988594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97303': 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) = 11284.6875596
delta logL = 0.167169993358

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  6.064e+00  1.759e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.512e+00  2.869e-01  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  6.669e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  4.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.030e+00  9.886e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  7.704e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.27
Ra Dec: 295.347 -62.175
Photon Index (Free Index): 2.51 +/- 0.29
Photon Flux (Free Index): 2.09e-07 +/- 6.08e-08
Energy Flux (Free Index): 5.74e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/97303/cmap_HighResolution_521078401_521337601_4FGL_J1941.3-6210_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.91e-07', energy_flux2='5.74e-05', photon_flux_error='5.07e-08', dlogl='1.67e-01', energy_flux='6.12e-05', photon_flux2='2.09e-07', job_status='DONE', time_completed='2021-09-23 08:57:58.945916', photon_index_error2='0.29', photon_index2='2.51', ts='31.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.80', time_epoch_completed='1632412678.95', return_code='0', job_id='97303', GAL2='1.03', EG2='0.77', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.08e-08', ts2='31.27', photon_index='2.35' WHERE bin_id='1087' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:57:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 97303: <4FGL_J1941.3-6210_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1941.3-6210_daily_bin1087> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep 23 08:42:37 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 08:43:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 08:43:53 2021
Terminated at Thu Sep 23 08:57:59 2021
Results reported at Thu Sep 23 08:57:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin1087 295.347 -62.1753 521078401 521337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1941.3-6210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             314.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            922 sec.

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

