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


Performing analysis on: 4FGL_J1941.3-6210_daily_bin238
RA = 295.347, Dec = -62.1753
tmin = 301017601, tmax = 301276801
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='88401', job_status='RUN', time_executed='2021-09-23 08:13:23.003366', time_epoch_executed='1632410003.0' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88401/ft1_4FGL_J1941.3-6210_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88401/ft1_4FGL_J1941.3-6210_daily_bin238.fits outfile=/scratch/kocevski/88401/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin238.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=301017601.0 tmax=301276801.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 3.61
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88401/ft1_filtered_4FGL_J1941.3-6210_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/88401/ltcube_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.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/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits
.....................!
real 14.12
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88401/ft1_filtered_4FGL_J1941.3-6210_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/88401/ltcube_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.fits outfile=/scratch/kocevski/88401/expmap_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.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/88401/ltcube_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.fits
.....................!
real 191.81
user 186.34
sys 5.11

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/88401/ft1_filtered_4FGL_J1941.3-6210_daily_bin238.fits scfile=/scratch/kocevski/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits outfile=/scratch/kocevski/88401/cmap_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88401/ft1_filtered_4FGL_J1941.3-6210_daily_bin238.fits scfile=/scratch/kocevski/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits outfile=/scratch/kocevski/88401/cmap_HighResolution_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88401/ft1_filtered_4FGL_J1941.3-6210_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/88401/ft2_4FGL_J1941.3-6210_daily_bin238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88401/Model_4FGL_J1941.3-6210_daily_bin238.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/88401/ft1_filtered_4FGL_J1941.3-6210_daily_bin238.fits.....................!
real 86.62
user 85.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3201       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.0921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2382       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91921       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=   10773.38     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1371 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.661       -.55806E-06** at limit **
   2  Prefactor     4.3008        16.729        .46408E-05   -.58074E-04
   3  norm          .10000E-03    .38298       -.17543E-06** at limit **
   4  Prefactor     .10000E-03    28.010       -.56126E-05** at limit **
   5  Prefactor     .10000E-03    26.889       -.96656E-05** at limit **
   6  norm          .10000E-03    22.650        .37134E-05** at limit **
   7  Prefactor     .10000E-03    7.6749       -.31153E-06** at limit **
   8  Prefactor     .10000E-03    77.042       -.34276E-05** at limit **
   9  norm          5.0916        7.2191       -.75315E-06   -.18275E-03
  10  Prefactor     .10000E-03    7.1085       -.36680E-06** at limit **
  11  norm          2.2969        1.3463        .14039E-06   -.73776E-03
  12  Prefactor     2.5097        11.050       -.70443E-06   -.19671E-03
  13  Prefactor     .10000E-03    1.3707        .42655E-06** at limit **
  14  norm          1.3485        1.1536        .57904E-07    .13816E-03
  15  Prefactor     .10000E-03    30.675        .10930E-04** at limit **
  16  Normalizat    1.2380        .19308       -.14468E-06   -.42616E-04
  17  Prefactor     .91928        .81073E-01   -.33331E-06    .11136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.30077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09156
  Prefactor  = 0.0001
  norm       = 2.29687
  Prefactor  = 2.50971
  Prefactor  = 0.0001
  norm       = 1.34855
  Prefactor  = 0.0001
  Normalizat = 1.23801
  Prefactor  = 0.919277
 **********
 **   18 **HESSE 
 **********

 FCN=   10773.38     FROM HESSE     STATUS=OK           219 CALLS     1590 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3008        16.554        .19381E-03   -1.5293    
   3  norm          .10000E-03    .82433        .12352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    22.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    77.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0916        7.2508        .17818E-03   -1.5257    
  10  Prefactor     .10000E-03    7.1393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2969        1.3360        .87312E-04   -1.5405    
  12  Prefactor     2.5097        11.207        .25788E-03   -1.5391    
  13  Prefactor     .10000E-03    1.4247        .23716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3485        1.1487        .10061E-03   -1.5476    
  15  Prefactor     .10000E-03    30.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2380        .23455        .34065E-03   -.85436    
  17  Prefactor     .91928        .98432E-01    .16259E-03   -.95471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7027e-10
Minuit parameter uncertainties:
  1  4.9218e-05
  2  16.5721
  3  2.63407e-05
  4  1.92587e-05
  5  4.4251e-06
  6  4.77466e-06
  7  2.37106e-06
  8  4.75699e-05
  9  7.25204
  10  8.90493e-06
  11  1.33605
  12  10.6099
  13  2.18206e-07
  14  1.14877
  15  1.25816e-06
  16  0.234752
  17  0.0984506
Done.

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

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  2.297e+00  1.336e+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:  9.193e-01  9.845e-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:  1.238e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 295.347 -62.175
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.28e-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) = 10772.8246715
delta logL = 0.550455803605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10772.8193563
delta logL = 0.555771004363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7630       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93427       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10772.82     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      266 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7629        1.5669        .65590E-04   -.19239E-03
   2  alpha         3.0397        .81943        .16082E-01    .27658E-03
   3  Normalizat    1.1835        .24020        .34714E-03   -.55331E-03
   4  Prefactor     .93415        .99164E-01    .16140E-03   -.12020E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76293
  alpha      = 3.03974
  Normalizat = 1.1835
  Prefactor  = 0.934153
 **********
 **   18 **HESSE 
 **********

 FCN=   10772.82     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7629        1.4152        .26236E-05   -1.5442    
   2  alpha         3.0397        .74213        .32164E-02    .21761    
   3  Normalizat    1.1835        .23995        .69428E-04   -.87114    
   4  Prefactor     .93415        .99028E-01    .32280E-04   -.94958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06215e-10
Minuit parameter uncertainties:
  1  1.41523
  2  0.754061
  3  0.240175
  4  0.0990474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88401': 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) = 10772.8193547
delta logL = 0.555772586129

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  1.763e+00  1.415e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  3.040e+00  7.541e-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.342e-01  9.905e-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:  1.183e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 295.347 -62.175
Photon Index (Free Index): 3.04 +/- 0.75
Photon Flux (Free Index): 1.04e-07 +/- 5.65e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.07e-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/88401/cmap_HighResolution_301017601_301276801_4FGL_J1941.3-6210_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='2.07e-05', photon_flux_error='3.98e-08', dlogl='5.56e-01', energy_flux='2.20e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-23 08:24:43.815761', photon_index_error2='0.75', photon_index2='3.04', ts='4.44', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.24', time_epoch_completed='1632410683.82', return_code='0', job_id='88401', GAL2='0.93', EG2='1.18', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.65e-08', ts2='5.66', photon_index='2.35' WHERE bin_id='238' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:24:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 88401: <4FGL_J1941.3-6210_daily_bin238> in cluster <slac> Done

Job <4FGL_J1941.3-6210_daily_bin238> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 08:11:58 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 08:13:12 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:13:12 2021
Terminated at Thu Sep 23 08:24:44 2021
Results reported at Thu Sep 23 08:24:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin238 295.347 -62.1753 301017601 301276801 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 :                                   679.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            766 sec.

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

