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


Performing analysis on: 4FGL_J1941.3-6210_daily_bin813
RA = 295.347, Dec = -62.1753
tmin = 450057601, tmax = 450316801
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='96874', job_status='RUN', time_executed='2021-09-23 08:45:46.078360', time_epoch_executed='1632411946.08' WHERE source_name='4FGL J1941.3-6210' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96874/ft1_4FGL_J1941.3-6210_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96874/ft1_4FGL_J1941.3-6210_daily_bin813.fits outfile=/scratch/kocevski/96874/ft1_filteredMKT_4FGL_J1941.3-6210_daily_bin813.fits ra=295.347 dec=-62.1753 rad=12.0 tmin=450057601.0 tmax=450316801.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.58
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96874/ft1_filtered_4FGL_J1941.3-6210_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/96874/ltcube_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.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/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits
.....................!
real 16.60
user 16.19
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96874/ft1_filtered_4FGL_J1941.3-6210_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/96874/ltcube_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.fits outfile=/scratch/kocevski/96874/expmap_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.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/96874/ltcube_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.fits
.....................!
real 192.05
user 186.79
sys 4.87

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/96874/ft1_filtered_4FGL_J1941.3-6210_daily_bin813.fits scfile=/scratch/kocevski/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits outfile=/scratch/kocevski/96874/cmap_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96874/ft1_filtered_4FGL_J1941.3-6210_daily_bin813.fits scfile=/scratch/kocevski/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits outfile=/scratch/kocevski/96874/cmap_HighResolution_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96874/ft1_filtered_4FGL_J1941.3-6210_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/96874/ft2_4FGL_J1941.3-6210_daily_bin813.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96874/Model_4FGL_J1941.3-6210_daily_bin813.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/96874/ft1_filtered_4FGL_J1941.3-6210_daily_bin813.fits.....................!
real 75.95
user 74.32
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12254E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    119.72       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2595       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12794E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.222       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26139E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5279       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.217       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1514       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7992       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2691       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8786.484     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1655 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.801       -.33354E-04** at limit **
   2  Prefactor     .10000E-03    7.8186       -.58627E-05** at limit **
   3  norm          .10000E-03    1.1202        .13520E-05** at limit **
   4  Prefactor     119.73        2.8111       -.56160E-07    .66201E-03
   5  Prefactor     7.2715        2.4706       -.43011E-06    .31375E-03
   6  norm          6.6777        7.9357       -.85749E-05    .24460E-02
   7  Prefactor     .10517E-03    47.215        .34111E-05** at limit **
   8  Prefactor     25.271        9.5803        .71974E-06   -.35286E-02
   9  norm          7.0899        8.1350        .23950E-05    .55397E-04
  10  Prefactor     .10114E-03    894.99        .11513E-04** at limit **
  11  norm          1.5276        1.5305       -.58185E-06   -.43761E-04
  12  Prefactor     19.221        13.052       -.81912E-05   -.29398E-02
  13  Prefactor     .10000E-03    3.8931       -.62306E-05** at limit **
  14  norm          2.1514        1.8718       -.24630E-06   -.48733E-05
  15  Prefactor     9.7954        1.2366       -.36512E-07    .12512E-03
  16  Normalizat    1.2696        .27307        .92006E-05   -.19446E-04
  17  Prefactor     .93528        .11217       -.37300E-06    .84513E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 119.732
  Prefactor  = 7.2715
  norm       = 6.67774
  Prefactor  = 0.000105171
  Prefactor  = 25.2708
  norm       = 7.08988
  Prefactor  = 0.000101143
  norm       = 1.52758
  Prefactor  = 19.2212
  Prefactor  = 0.0001
  norm       = 2.15138
  Prefactor  = 9.79539
  Normalizat = 1.26962
  Prefactor  = 0.935278
 **********
 **   18 **HESSE 
 **********

 FCN=   8786.484     FROM HESSE     STATUS=OK           283 CALLS     1938 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .66914        .22853E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     119.73        96.454        .91947E-03   -1.3515    
   5  Prefactor     7.2715        99.209        .37217E-02   -1.5169    
   6  norm          6.6777        17.859        .38848E-02   -1.5191    
   7  Prefactor     .10517E-03    33.695        .15255       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.271        98.184        .19941E-02   -1.4702    
   9  norm          7.0899        8.2269        .37671E-02   -1.5175    
  10  Prefactor     .10114E-03    7.9526        .91530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5276        1.5508        .86348E-02   -1.5461    
  12  Prefactor     19.221        14.387        .22841E-02   -1.4831    
  13  Prefactor     .10000E-03    1.6162        .40093E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1514        1.8736        .70227E-02   -1.5415    
  15  Prefactor     9.7954        96.692        .32003E-02   -1.5082    
  16  Normalizat    1.2696        .22729        .79589E-01   -.84478    
  17  Prefactor     .93528        .93429E-01    .45456E-01   -.94919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52269e-07
Minuit parameter uncertainties:
  1  0.000146963
  2  4.31675e-06
  3  2.94963e-06
  4  96.5813
  5  53.8263
  6  17.8735
  7  0.0264157
  8  98.821
  9  8.22819
  10  0.00602976
  11  1.55085
  12  14.3897
  13  4.10414e-08
  14  1.87365
  15  61.681
  16  0.227466
  17  0.093445
Done.

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

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  1.528e+00  1.551e+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.353e-01  9.344e-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.270e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 295.347 -62.175
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/96874/likelihoodResults_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.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) = 8783.86154022
delta logL = 2.62258946109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8783.79451817
delta logL = 2.68961151205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24654       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98714       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=   8783.795     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      285 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24658        2.3838        .45156E-02    .15046E-02
   2  alpha         5.0000        3.9268        .46409    ** at limit **
   3  Normalizat    1.0827        .14884        .85082E-01    .16487E-04
   4  Prefactor     .98721        .58901E-01    .46106E-01   -.19267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.246578
  alpha      = 5
  Normalizat = 1.0827
  Prefactor  = 0.987208
 **********
 **   18 **HESSE 
 **********

 FCN=   8783.795     FROM HESSE     STATUS=OK            35 CALLS      320 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24658        .14384        .20299E-04   -1.5609    
   2  alpha         5.0000        .64519        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0827        .28325        .37673E-03   -.90309    
   4  Prefactor     .98721        .11460        .16276E-03   -.93157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83713e-12
Minuit parameter uncertainties:
  1  0.143845
  2  2.59021e-06
  3  0.283649
  4  0.114625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96874': 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) = 8783.79451779
delta logL = 2.68961189115

Extracting fit parameters...

4FGL J1941.3-6210
   Spectrum: LogParabola
387         norm:  2.466e-01  1.438e-01  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  5.000e+00  2.590e-06  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.872e-01  1.146e-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.083e+00  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.31
Ra Dec: 295.347 -62.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.70e-07 +/- 9.83e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.33e-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/96874/cmap_HighResolution_450057601_450316801_4FGL_J1941.3-6210_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-05', comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='2.28e-05', photon_flux_error='4.62e-08', dlogl='2.69e+00', energy_flux='1.46e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-23 08:57:55.396190', photon_index_error2='0.00', photon_index2='5.00', ts='1.37', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.33e-05', EG='1.27', time_epoch_completed='1632412675.4', return_code='0', job_id='96874', GAL2='0.99', EG2='1.08', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='9.83e-08', ts2='7.31', photon_index='2.35' WHERE bin_id='813' AND source_name='4FGL J1941.3-6210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 08:57:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 96874: <4FGL_J1941.3-6210_daily_bin813> in cluster <slac> Done

Job <4FGL_J1941.3-6210_daily_bin813> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep 23 08:41:58 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 08:42:25 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:42:25 2021
Terminated at Thu Sep 23 08:57:56 2021
Results reported at Thu Sep 23 08:57:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.3-6210_daily_bin813 295.347 -62.1753 450057601 450316801 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 :                                   728.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            958 sec.

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

