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


Performing analysis on: 4FGL_J1941.3-6210_daily_bin137
RA = 295.347, Dec = -62.1753
tmin = 274838401, tmax = 275097601
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='88222', job_status='RUN', time_executed='2021-09-23 08:15:04.115267', time_epoch_executed='1632410104.12' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88222/ft1_4FGL_J1941.3-6210_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88222/ft2_4FGL_J1941.3-6210_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88222/ft1_4FGL_J1941.3-6210_daily_bin137.fits outfile=/scratch/kocevski/88222/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin137.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=274838401.0 tmax=275097601.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.26
user 3.98
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88222/ft1_filtered_4FGL_J1941.3-6210_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/88222/ft2_4FGL_J1941.3-6210_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/88222/ltcube_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.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/88222/ft2_4FGL_J1941.3-6210_daily_bin137.fits
.....................!
real 13.92
user 13.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88222/ft1_filtered_4FGL_J1941.3-6210_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/88222/ft2_4FGL_J1941.3-6210_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/88222/ltcube_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.fits outfile=/scratch/kocevski/88222/expmap_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.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/88222/ltcube_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.fits
.....................!
real 194.06
user 187.98
sys 5.48

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/88222/ft1_filtered_4FGL_J1941.3-6210_daily_bin137.fits scfile=/scratch/kocevski/88222/ft2_4FGL_J1941.3-6210_daily_bin137.fits outfile=/scratch/kocevski/88222/cmap_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88222/ft1_filtered_4FGL_J1941.3-6210_daily_bin137.fits scfile=/scratch/kocevski/88222/ft2_4FGL_J1941.3-6210_daily_bin137.fits outfile=/scratch/kocevski/88222/cmap_HighResolution_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.194       1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3051       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4384       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7258       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .88590       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0378       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=   8724.680     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1608 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9559       -.59907E-07** at limit **
   2  Prefactor     15.192        12.781       -.88437E-06   -.74501E-03
   3  norm          .10000E-03    .23119        .22459E-07** at limit **
   4  Prefactor     17.194        31.649       -.16111E-05    .21570E-04
   5  Prefactor     .10000E-03    58.441       -.17585E-04** at limit **
   6  norm          3.8378        14.356       -.51624E-06   -.75431E-04
   7  Prefactor     .10000E-03    13.442        .31453E-06** at limit **
   8  Prefactor     .10000E-03    19.640       -.69831E-06** at limit **
   9  norm          .10000E-03    2.3822       -.26109E-07** at limit **
  10  Prefactor     9.3054        10.480       -.11525E-06   -.38935E-04
  11  norm          1.5159        1.4049       -.13601E-06   -.89965E-03
  12  Prefactor     .10000E-03    7.9095       -.98433E-07** at limit **
  13  Prefactor     1.4387        3.2199       -.95528E-06   -.12623E-02
  14  norm          3.7258        2.6538       -.62928E-07   -.24045E-03
  15  Prefactor     .10000E-03    54.623        .16852E-04** at limit **
  16  Normalizat    .88584        .22358        .23327E-06   -.29056E-05
  17  Prefactor     1.0378        .93259E-01    .19652E-06    .27910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.1925
  norm       = 0.0001
  Prefactor  = 17.1939
  Prefactor  = 0.000100004
  norm       = 3.83776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.30538
  norm       = 1.51594
  Prefactor  = 0.0001
  Prefactor  = 1.43866
  norm       = 3.72579
  Prefactor  = 0.000100004
  Normalizat = 0.885838
  Prefactor  = 1.03783
 **********
 **   18 **HESSE 
 **********

 FCN=   8724.680     FROM HESSE     STATUS=OK           225 CALLS     1833 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.192        13.189        .51377E-03   -1.4928    
   3  norm          .10000E-03    .29884        .87088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.194        31.562        .96586E-04   -1.4878    
   5  Prefactor     .10000E-03    55.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8378        14.373        .20601E-03   -1.5316    
   7  Prefactor     .10000E-03    13.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3855        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3054        10.476        .13138E-03   -1.5098    
  11  norm          1.5159        1.3963        .10173E-03   -1.5462    
  12  Prefactor     .10000E-03    8.0233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4387        3.3970        .25464E-03   -1.5468    
  14  norm          3.7258        2.6522        .12477E-03   -1.5322    
  15  Prefactor     .10000E-03    51.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .88584        .26191        .39741E-03   -.96960    
  17  Prefactor     1.0378        .11034        .15549E-03   -.91479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30616e-09
Minuit parameter uncertainties:
  1  2.0493e-05
  2  13.1915
  3  3.12663e-07
  4  31.5924
  5  0.000939112
  6  14.3859
  7  9.84177e-06
  8  2.31146e-05
  9  2.33269e-07
  10  10.4783
  11  1.39637
  12  6.17739e-08
  13  3.39747
  14  2.65224
  15  0.000857395
  16  0.262286
  17  0.11036
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.038e+00  1.104e-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:  8.858e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 295.347 -62.175
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/88222/likelihoodResults_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.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) = 8723.84938199
delta logL = 0.830618966796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8723.82498417
delta logL = 0.855016786372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13221       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .79120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   8723.825     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      341 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13220        2.5965        .47091E-02    .29261E-02
   2  alpha         5.0000        4.6924        .46377    ** at limit **
   3  Normalizat    .79121        .13145        .94379E-01    .68586E-04
   4  Prefactor     1.0694        .50502E-01    .38888E-01    .78238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.132203
  alpha      = 5
  Normalizat = 0.791207
  Prefactor  = 1.06937
 **********
 **   18 **HESSE 
 **********

 FCN=   8723.825     FROM HESSE     STATUS=OK            35 CALLS      376 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13220        .88125E-01    .21582E-03   -1.5635    
   2  alpha         5.0000        3.2687        .68359E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79121        .26554        .41812E-03   -1.0040    
   4  Prefactor     1.0694        .11063        .15341E-03   -.90452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00759e-12
Minuit parameter uncertainties:
  1  0.0881253
  2  6.13576e-07
  3  0.265976
  4  0.110656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88222': 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) = 8723.8249839
delta logL = 0.855017054493

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  1.069e+00  1.107e-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:  7.912e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 295.347 -62.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.09e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.13e-06

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/88222/cmap_HighResolution_274838401_275097601_4FGL_J1941.3-6210_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-05', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.22e-05', photon_flux_error='4.16e-08', dlogl='8.55e-01', energy_flux='1.45e-05', photon_flux2='9.09e-08', job_status='DONE', time_completed='2021-09-23 08:27:00.018718', photon_index_error2='0.00', photon_index2='5.00', ts='1.60', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='8.13e-06', EG='0.89', time_epoch_completed='1632410820.02', return_code='0', job_id='88222', GAL2='1.07', EG2='0.79', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.02e-08', ts2='3.49', photon_index='2.35' WHERE bin_id='137' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 88222: <4FGL_J1941.3-6210_daily_bin137> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin137 295.347 -62.1753 274838401 275097601 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 :                                   718.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            913 sec.

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

