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


Performing analysis on: 4FGL_J1941.3-6210_daily_bin594
RA = 295.347, Dec = -62.1753
tmin = 393292801, tmax = 393552001
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='95279', job_status='RUN', time_executed='2021-09-23 08:39:05.524580', time_epoch_executed='1632411545.52' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95279/ft1_4FGL_J1941.3-6210_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95279/ft1_4FGL_J1941.3-6210_daily_bin594.fits outfile=/scratch/kocevski/95279/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin594.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=393292801.0 tmax=393552001.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.71
user 4.45
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.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/95279/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.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.48
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/95279/ltcube_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.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/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits
.....................!
real 15.94
user 15.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/95279/ltcube_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.fits outfile=/scratch/kocevski/95279/expmap_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.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/95279/ltcube_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.fits
.....................!
real 192.78
user 187.08
sys 5.18

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/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.fits scfile=/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits outfile=/scratch/kocevski/95279/cmap_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.fits scfile=/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits outfile=/scratch/kocevski/95279/cmap_HighResolution_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/95279/ft2_4FGL_J1941.3-6210_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95279/Model_4FGL_J1941.3-6210_daily_bin594.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/95279/ft1_filtered_4FGL_J1941.3-6210_daily_bin594.fits....................!
real 79.32
user 77.94
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1749       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1834       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    32.975       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .65594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90310       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=   9805.849     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1623 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.040       -.15170E-05** at limit **
   2  Prefactor     3.1789        11.296        .40037E-05    .28251E-04
   3  norm          1.1833        .85086        .10615E-07   -.88926E-04
   4  Prefactor     .10000E-03    29.771        .18200E-05** at limit **
   5  Prefactor     .10000E-03    51.226       -.44803E-05** at limit **
   6  norm          32.943        26.493        .65761E-06   -.24220E-05
   7  Prefactor     .10000E-03    20.205        .62820E-06** at limit **
   8  Prefactor     .10000E-03    115.52        .24638E-05** at limit **
   9  norm          .77908        6.2149        .28392E-07   -.67223E-04
  10  Prefactor     .10000E-03    6.4346       -.54565E-07** at limit **
  11  norm          .10000E-03    .47673        .77939E-08** at limit **
  12  Prefactor     9.3112        14.931        .12078E-06    .74419E-06
  13  Prefactor     .10000E-03    1.1207        .35009E-07** at limit **
  14  norm          .10000E-03    .78786       -.45373E-08** at limit **
  15  Prefactor     .10000E-03    39.973        .28789E-05** at limit **
  16  Normalizat    1.1985        .20325        .10917E-06    .98546E-05
  17  Prefactor     .90305        .84511E-01   -.20696E-06    .80422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.17888
  norm       = 1.18333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.9426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.779077
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.31124
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19845
  Prefactor  = 0.903055
 **********
 **   18 **HESSE 
 **********

 FCN=   9805.849     FROM HESSE     STATUS=OK           223 CALLS     1846 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1789        11.309        .11372E-02   -1.5351    
   3  norm          1.1833        .83580        .73758E-04   -1.5490    
   4  Prefactor     .10000E-03    29.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          32.943        26.417        .69781E-04   -1.4559    
   7  Prefactor     .10000E-03    20.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    115.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77908        26.546        .45929E-02   -1.5531    
  10  Prefactor     .10000E-03    6.4608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .80485        .13232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3112        14.966        .13137E-03   -1.5098    
  13  Prefactor     .10000E-03    2.2331        .20332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .80614        .85825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1985        .24770        .33909E-03   -.86651    
  17  Prefactor     .90305        .10393        .16105E-03   -.96034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25325e-08
Minuit parameter uncertainties:
  1  4.98763e-05
  2  11.3167
  3  0.83581
  4  3.94022e-05
  5  0.000122591
  6  26.4263
  7  1.40254e-05
  8  0.000122348
  9  9.09924
  10  6.98405e-06
  11  4.06191e-07
  12  14.9716
  13  1.37083e-07
  14  1.18789e-07
  15  7.27363e-05
  16  0.247939
  17  0.103949
Done.

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

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  1.000e-04  4.062e-07  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.031e-01  1.039e-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.198e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 295.347 -62.175
Photon Flux Upper Limit: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95279/likelihoodResults_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9805.85502701
delta logL = -0.00593341894819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9805.84909449
delta logL = -8.95523044164e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3469       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90298       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9805.849     FROM MIGRAD    STATUS=FAILED        90 CALLS      253 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10022E-03    120.28        .13244E-02** at limit **
   2  alpha         2.2749        3.6371        .50000        .99951E-05
   3  Normalizat    1.1985        .79419E-01    .33909E-03    .13840E-03
   4  Prefactor     .90305        .33481E-01    .16105E-03    .26884E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9805.849     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      409 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10022E-03    120.28        .12309E-03** at limit **
   2  alpha         2.2749        3.6371        .44578E-04    .99951E-05
   3  Normalizat    1.1985        .79419E-01    .13080E-05    .13840E-03
   4  Prefactor     .90305        .33481E-01    .55036E-06    .26884E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9805.849     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      458 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .96480        .26488E-03** at limit **
   2  alpha         2.2142        3.0697        .50000       -.20101E-05
   3  Normalizat    1.1985        .24231        .13564E-04   -.12371E-03
   4  Prefactor     .90305        .10220        .32210E-04   -.25328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21421
  Normalizat = 1.19845
  Prefactor  = 0.903054
 **********
 **   18 **HESSE 
 **********

 FCN=   9805.849     FROM HESSE     STATUS=OK            27 CALLS      485 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81971        .52976E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2142        2.5094        .50000       -.11457    
   3  Normalizat    1.1985        .24236        .27127E-05   -.86651    
   4  Prefactor     .90305        .10220        .64421E-05   -.96034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76818e-09
Minuit parameter uncertainties:
  1  1.54311e-06
  2  85.2395
  3  0.242587
  4  0.102225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95279': 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) = 9805.84909299
delta logL = 6.06709363637e-07

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  1.000e-04  1.543e-06  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.214e+00  8.524e+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.031e-01  1.022e-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.198e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 295.347 -62.175

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/95279/cmap_HighResolution_393292801_393552001_4FGL_J1941.3-6210_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-23 08:52:03.935984', job_id='95279', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632412323.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='594' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 95279: <4FGL_J1941.3-6210_daily_bin594> in cluster <slac> Done

Job <4FGL_J1941.3-6210_daily_bin594> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 23 08:36:39 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 08:36:48 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:36:48 2021
Terminated at Thu Sep 23 08:52:04 2021
Results reported at Thu Sep 23 08:52:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin594 295.347 -62.1753 393292801 393552001 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 :                                   779.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             305.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            925 sec.

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

