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


Performing analysis on: 4FGL_J1941.3-6210_daily_bin419
RA = 295.347, Dec = -62.1753
tmin = 347932801, tmax = 348192001
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='94027', job_status='RUN', time_executed='2021-09-23 08:34:20.626815', time_epoch_executed='1632411260.63' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94027/ft1_4FGL_J1941.3-6210_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94027/ft1_4FGL_J1941.3-6210_daily_bin419.fits outfile=/scratch/kocevski/94027/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin419.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=347932801.0 tmax=348192001.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 2.87
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/94027/ltcube_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.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/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits
.....................!
real 15.19
user 14.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/94027/ltcube_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.fits outfile=/scratch/kocevski/94027/expmap_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.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/94027/ltcube_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.fits
.....................!
real 157.44
user 152.89
sys 3.81

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/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits scfile=/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits outfile=/scratch/kocevski/94027/cmap_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits scfile=/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits outfile=/scratch/kocevski/94027/cmap_HighResolution_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.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.50
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94027/Model_4FGL_J1941.3-6210_daily_bin419.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/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits.....................!
real 68.09
user 65.94
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits', '/scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits', expMap='/scratch/kocevski/94027/expmap_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.fits', expCube='/scratch/kocevski/94027/ltcube_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94027/Model_4FGL_J1941.3-6210_daily_bin419.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/94027/ft1_filtered_4FGL_J1941.3-6210_daily_bin419.fits
Spacecraft file(s): /scratch/kocevski/94027/ft2_4FGL_J1941.3-6210_daily_bin419.fits
Exposure map: /scratch/kocevski/94027/expmap_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.fits
Exposure cube: /scratch/kocevski/94027/ltcube_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94027/Model_4FGL_J1941.3-6210_daily_bin419.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) = 9810.78090838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6059       1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.507       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.671       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15385E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.096       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1488       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2744       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89045       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=   9810.731     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1603 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    34.329       -.11361E-04** at limit **
   2  Prefactor     3.6089        10.350       -.16732E-04    .17341E-04
   3  norm          .10000E-03    .33606       -.30878E-06** at limit **
   4  Prefactor     .10000E-03    40.813        .95389E-05** at limit **
   5  Prefactor     34.567        88.434        .81199E-04    .27626E-04
   6  norm          .10000E-03    27.609        .47171E-05** at limit **
   7  Prefactor     15.669        29.287        .85081E-06    .27051E-04
   8  Prefactor     .10000E-03    271.63       -.66053E-04** at limit **
   9  norm          .10000E-03    1.8488       -.13692E-06** at limit **
  10  Prefactor     19.095        12.285        .60142E-06   -.38335E-04
  11  norm          3.3018        1.5620       -.39560E-07   -.46205E-03
  12  Prefactor     .10000E-03    7.8653       -.24454E-07** at limit **
  13  Prefactor     .10000E-03    .68487        .53965E-07** at limit **
  14  norm          1.1487        1.1538        .10845E-06    .13491E-04
  15  Prefactor     .10000E-03    249.69        .45031E-04** at limit **
  16  Normalizat    1.2746        .20484        .52611E-06    .83731E-04
  17  Prefactor     .89034        .85604E-01   -.65172E-06    .64808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  Prefactor  = 3.60886
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.5674
  norm       = 0.0001
  Prefactor  = 15.6692
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 19.0949
  norm       = 3.30177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1487
  Prefactor  = 0.0001
  Normalizat = 1.27465
  Prefactor  = 0.890343
 **********
 **   18 **HESSE 
 **********

 FCN=   9810.731     FROM HESSE     STATUS=OK           219 CALLS     1822 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    34.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6089        10.339        .21278E-03   -1.5328    
   3  norm          .10000E-03    .68658        .11095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.567        88.783        .68219E-04   -1.4531    
   6  norm          .10000E-03    28.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.669        29.253        .10118E-03   -1.4916    
   8  Prefactor     .10000E-03    275.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8516        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.095        12.285        .91655E-04   -1.4834    
  11  norm          3.3018        1.5610        .80742E-04   -1.5345    
  12  Prefactor     .10000E-03    7.9138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .68898        .80042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1487        1.1540        .43212E-04   -1.5494    
  15  Prefactor     .10000E-03    252.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2746        .25003        .33828E-03   -.84326    
  17  Prefactor     .89034        .10478        .16476E-03   -.96479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08737e-09
Minuit parameter uncertainties:
  1  0.00234899
  2  10.3446
  3  3.20261e-05
  4  0.000298976
  5  89.1251
  6  5.45087e-06
  7  29.2794
  8  0.00190289
  9  4.47032e-07
  10  12.2866
  11  1.56101
  12  2.99443e-06
  13  1.5812e-07
  14  1.15405
  15  0.000672081
  16  0.250264
  17  0.104807
Done.

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

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  3.302e+00  1.561e+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:  8.903e-01  1.048e-01  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:  1.275e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.72
Ra Dec: 295.347 -62.175
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 9.85e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.49e-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) = 9809.85580199
delta logL = 0.875672583923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9809.84326123
delta logL = 0.888213344142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5478       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0166       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90900       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=   9809.843     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5486        13.791        .63954E-02    .61405E-03
   2  alpha         3.0160        3.9875        .31477        .72735E-04
   3  Normalizat    1.2045        .85230E-01    .78218E-01    .23511E-04
   4  Prefactor     .90895        .34391E-01    .45120E-01   -.89739E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54857
  alpha      = 3.01599
  Normalizat = 1.20451
  Prefactor  = 0.908953
 **********
 **   18 **HESSE 
 **********

 FCN=   9809.843     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5486        1.6149        .59923E-04   -1.5389    
   2  alpha         3.0160        .57649        .12864E-01    .20789    
   3  Normalizat    1.2045        .25445        .34622E-03   -.86464    
   4  Prefactor     .90895        .10432        .16317E-03   -.95829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46393e-12
Minuit parameter uncertainties:
  1  1.61488
  2  0.581961
  3  0.254713
  4  0.104339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94027': 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) = 9809.84325903
delta logL = 0.88821553868

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  2.549e+00  1.615e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  3.016e+00  5.820e-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:  9.090e-01  1.043e-01  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:  1.205e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.67
Ra Dec: 295.347 -62.175
Photon Index (Free Index): 3.02 +/- 0.58
Photon Flux (Free Index): 1.47e-07 +/- 6.28e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.23e-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/94027/cmap_HighResolution_347932801_348192001_4FGL_J1941.3-6210_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.85e-08', energy_flux2='2.95e-05', photon_flux_error='4.65e-08', dlogl='8.88e-01', energy_flux='3.16e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-23 08:43:52.145857', photon_index_error2='0.58', photon_index2='3.02', ts='7.72', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.27', time_epoch_completed='1632411832.15', return_code='0', job_id='94027', GAL2='0.91', EG2='1.20', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.28e-08', ts2='9.67', photon_index='2.35' WHERE bin_id='419' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 94027: <4FGL_J1941.3-6210_daily_bin419> in cluster <slac> Done

Job <4FGL_J1941.3-6210_daily_bin419> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 23 08:31:59 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 08:32:39 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:32:39 2021
Terminated at Thu Sep 23 08:43:52 2021
Results reported at Thu Sep 23 08:43:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin419 295.347 -62.1753 347932801 348192001 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 :                                   570.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            713 sec.

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

