/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 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1941.3-6210_daily_bin345
RA = 295.347, Dec = -62.1753
tmin = 328752001, tmax = 329011201
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='92762', job_status='RUN', time_executed='2021-09-23 08:27:45.693687', time_epoch_executed='1632410865.69' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92762/ft1_4FGL_J1941.3-6210_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92762/ft1_4FGL_J1941.3-6210_daily_bin345.fits outfile=/scratch/kocevski/92762/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin345.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=328752001.0 tmax=329011201.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.51
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92762/ft1_filtered_4FGL_J1941.3-6210_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/92762/ltcube_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.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/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits
.....................!
real 16.04
user 15.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92762/ft1_filtered_4FGL_J1941.3-6210_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/92762/ltcube_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.fits outfile=/scratch/kocevski/92762/expmap_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.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/92762/ltcube_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.fits
.....................!
real 192.19
user 186.43
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/92762/ft1_filtered_4FGL_J1941.3-6210_daily_bin345.fits scfile=/scratch/kocevski/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits outfile=/scratch/kocevski/92762/cmap_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92762/ft1_filtered_4FGL_J1941.3-6210_daily_bin345.fits scfile=/scratch/kocevski/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits outfile=/scratch/kocevski/92762/cmap_HighResolution_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.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/92762/ft1_filtered_4FGL_J1941.3-6210_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/92762/ft2_4FGL_J1941.3-6210_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92762/Model_4FGL_J1941.3-6210_daily_bin345.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/92762/ft1_filtered_4FGL_J1941.3-6210_daily_bin345.fits.....................!
real 77.86
user 76.16
sys 1.46

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49072E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28237E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .18790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22155E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.522       1.0000         .10000E-03   10000.    
     6 'norm      '    60.282       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6167       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6652       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.431       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1537       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .79763       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=   9388.410     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1697 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    75.824        .22609E-04** at limit **
   2  Prefactor     .10033E-03    36.909       -.16707E-04** at limit **
   3  norm          .18746        .55962       -.20602E-06    .26992E-02
   4  Prefactor     .10002E-03    227.09        .18288E-05** at limit **
   5  Prefactor     33.565        72.959       -.10356E-04    .14075E-04
   6  norm          60.287        29.221       -.57082E-06    .96102E-04
   7  Prefactor     .10000E-03    43.689       -.86371E-07** at limit **
   8  Prefactor     3.6460        185.25       -.12755E-04    .77786E-05
   9  norm          .10000E-03    8.1652       -.16625E-06** at limit **
  10  Prefactor     .10000E-03    5.9013       -.18320E-07** at limit **
  11  norm          2.5933        1.6017       -.50087E-06    .21130E-03
  12  Prefactor     3.2715        10.906       -.32994E-05   -.12739E-05
  13  Prefactor     2.6655        2.4143       -.74277E-06   -.23744E-04
  14  norm          1.2301        1.4840       -.26476E-06   -.20557E-04
  15  Prefactor     30.443        60.137       -.44721E-05   -.12648E-04
  16  Normalizat    1.1536        .19721        .16554E-05    .88757E-03
  17  Prefactor     .79770        .83171E-01    .15205E-05    .99242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100075
  Prefactor  = 0.000100332
  norm       = 0.187456
  Prefactor  = 0.000100021
  Prefactor  = 33.5654
  norm       = 60.2869
  Prefactor  = 0.0001
  Prefactor  = 3.64604
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59331
  Prefactor  = 3.27147
  Prefactor  = 2.66551
  norm       = 1.23013
  Prefactor  = 30.4432
  Normalizat = 1.15355
  Prefactor  = 0.797702
 **********
 **   18 **HESSE 
 **********

 FCN=   9388.410     FROM HESSE     STATUS=OK           233 CALLS     1930 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    111.70        .59901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10033E-03    7.9640        .73891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .18746        .69145        .11364E-02   -1.5621    
   4  Prefactor     .10002E-03    228.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.565        73.441        .69210E-04   -1.4549    
   6  norm          60.287        29.236        .51677E-04   -1.4154    
   7  Prefactor     .10000E-03    44.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6460        185.21        .21245E-03   -1.5326    
   9  norm          .10000E-03    8.3041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5933        1.6052        .91051E-04   -1.5386    
  12  Prefactor     3.2715        10.949        .22404E-03   -1.5346    
  13  Prefactor     2.6655        2.4267        .13867E-03   -1.5381    
  14  norm          1.2301        1.4677        .12598E-03   -1.5486    
  15  Prefactor     30.443        60.201        .72631E-04   -1.4604    
  16  Normalizat    1.1536        .24144        .32750E-03   -.88051    
  17  Prefactor     .79770        .99040E-01    .15892E-03   -.99813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63404e-09
Minuit parameter uncertainties:
  1  0.00580835
  2  0.00325223
  3  0.691479
  4  0.00436273
  5  73.6395
  6  29.2433
  7  0.000147182
  8  52.1432
  9  6.25116e-05
  10  2.17531e-05
  11  1.60523
  12  10.9558
  13  2.42682
  14  1.46772
  15  60.3213
  16  0.241676
  17  0.0990619
Done.

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

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  2.593e+00  1.605e+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:  7.977e-01  9.906e-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.154e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 295.347 -62.175
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.54e-05

TS (Fixed Index): 3.37
Ra Dec: 295.347 -62.175
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92762/likelihoodResults_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9387.95966753
delta logL = 0.450389231375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9387.95315598
delta logL = 0.456900782125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9139       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9575       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81033       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=   9387.953     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9138        16.084        .75112E-02    .10457E-02
   2  alpha         2.9572        3.9786        .39154        .61439E-04
   3  Normalizat    1.1114        .65011E-01    .75188E-01   -.59118E-04
   4  Prefactor     .81039        .27628E-01    .43852E-01   -.18900E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9138
  alpha      = 2.95723
  Normalizat = 1.11136
  Prefactor  = 0.810386
 **********
 **   18 **HESSE 
 **********

 FCN=   9387.953     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9138        1.8362        .69609E-04   -1.5431    
   2  alpha         2.9572        .80017        .15272E-01    .18393    
   3  Normalizat    1.1114        .24018        .33276E-03   -.89388    
   4  Prefactor     .81039        .98001E-01    .15777E-03   -.99347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72787e-09
Minuit parameter uncertainties:
  1  1.8363
  2  0.815029
  3  0.240416
  4  0.0980225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92762': 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) = 9387.95315547
delta logL = 0.456901299787

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  1.914e+00  1.836e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.957e+00  8.150e-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:  8.104e-01  9.802e-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.111e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 295.347 -62.175
Photon Index (Free Index): 2.96 +/- 0.82
Photon Flux (Free Index): 1.03e-07 +/- 5.78e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.34e-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/92762/cmap_HighResolution_328752001_329011201_4FGL_J1941.3-6210_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-05', comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='2.13e-05', photon_flux_error='4.78e-08', dlogl='4.57e-01', energy_flux='2.48e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-23 08:40:11.990714', photon_index_error2='0.82', photon_index2='2.96', ts='3.37', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.34e-05', EG='1.15', time_epoch_completed='1632411611.99', return_code='0', job_id='92762', GAL2='0.81', EG2='1.11', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='5.78e-08', ts2='4.35', photon_index='2.35' WHERE bin_id='345' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 92762: <4FGL_J1941.3-6210_daily_bin345> in cluster <slac> Done

Job <4FGL_J1941.3-6210_daily_bin345> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 23 08:26:59 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 08:27:33 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:27:33 2021
Terminated at Thu Sep 23 08:40:12 2021
Results reported at Thu Sep 23 08:40:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin345 295.347 -62.1753 328752001 329011201 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 :                                   746.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            793 sec.

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

