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


Performing analysis on: 4FGL_J1211.0-3800_daily_bin500
RA = 182.762, Dec = -38.0156
tmin = 368928001, tmax = 369187201
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='386309', job_status='RUN', time_executed='2021-09-05 02:51:29.143133', time_epoch_executed='1630835489.14' WHERE source_name='4FGL J1211.0-3800' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386309

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386309/ft1_4FGL_J1211.0-3800_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386309/ft1_4FGL_J1211.0-3800_daily_bin500.fits outfile=/scratch/kocevski/386309/ft1_filteredMKT_4FGL_J1211.0-3800_daily_bin500.fits ra=182.762 dec=-38.0156 rad=12.0 tmin=368928001.0 tmax=369187201.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.34
user 3.10
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.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/386309/ft1_filteredMKT_4FGL_J1211.0-3800_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/386309/ltcube_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.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/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/386309/ltcube_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.fits outfile=/scratch/kocevski/386309/expmap_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.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/386309/ltcube_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.fits
.....................!
real 189.57
user 185.13
sys 4.12

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 198 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1211.0-3800 @ 182.762 -38.0156

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits scfile=/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits outfile=/scratch/kocevski/386309/cmap_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.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=182.762 yref=-38.0156 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits scfile=/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits outfile=/scratch/kocevski/386309/cmap_HighResolution_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.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=182.762 yref=-38.0156 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386309/Model_4FGL_J1211.0-3800_daily_bin500.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 CenA Lobes
adding source EG_v02
adding source G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits.....................!
real 141.54
user 140.10
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits', '/scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits', expMap='/scratch/kocevski/386309/expmap_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.fits', expCube='/scratch/kocevski/386309/ltcube_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386309/Model_4FGL_J1211.0-3800_daily_bin500.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1211.0-3800'

4FGL J1211.0-3800
   Spectrum: PowerLaw
315    Prefactor:  1.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.282e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/386309/ft1_filtered_4FGL_J1211.0-3800_daily_bin500.fits
Spacecraft file(s): /scratch/kocevski/386309/ft2_4FGL_J1211.0-3800_daily_bin500.fits
Exposure map: /scratch/kocevski/386309/expmap_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.fits
Exposure cube: /scratch/kocevski/386309/ltcube_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386309/Model_4FGL_J1211.0-3800_daily_bin500.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) = 7911.10595721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.43       1.0000         .10000E-03   10000.    
     2 'norm      '    27.617       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6263       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.553       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4833       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2792       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5486       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7340       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3279       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0321       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7911.083     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2037 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     129.44        99.637        .86495E-05   -.48569E-04
   2  norm          27.613        27.520       -.22880E-05   -.49464E-05
   3  Prefactor     .10000E-03    34.117        .84144E-05** at limit **
   4  norm          8.6269        8.5761       -.41681E-07   -.16759E-03
   5  Prefactor     29.555        23.337        .87902E-06   -.37673E-04
   6  norm          .10000E-03    13.905        .40218E-06** at limit **
   7  Prefactor     5.0709        6.5562       -.84977E-06   -.14100E-03
   8  Prefactor     24.953        18.702        .25518E-06   -.45370E-04
   9  Prefactor     .10000E-03    20.789       -.99196E-05** at limit **
  10  Prefactor     .10000E-03    9.3729        .66210E-06** at limit **
  11  Prefactor     .10000E-03    57.305       -.53420E-05** at limit **
  12  Prefactor     83.072        169.20        .11308E-03   -.14557E-04
  13  Prefactor     6.4830        3.6893       -.50878E-06   -.10707E-03
  14  Prefactor     .10000E-03    18.212        .50480E-05** at limit **
  15  norm          1.2785        8.6141        .80302E-05   -.87952E-03
  16  Prefactor     9.5485        10.782        .46255E-06   -.88530E-04
  17  norm          .10000E-03    10.140       -.11435E-05** at limit **
  18  Prefactor     9.7346        9.0843        .13911E-06   -.58501E-04
  19  Normalizat    1.3283        .29980       -.61722E-06   -.23438E-03
  20  Prefactor     1.0319        .10912       -.26113E-05    .26981E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 129.445
  norm       = 27.6133
  Prefactor  = 0.0001
  norm       = 8.6269
  Prefactor  = 29.5547
  norm       = 0.0001
  Prefactor  = 5.07088
  Prefactor  = 24.9528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.0725
  Prefactor  = 6.48299
  Prefactor  = 0.000100004
  norm       = 1.2785
  Prefactor  = 9.54845
  norm       = 0.0001
  Prefactor  = 9.73456
  Normalizat = 1.32827
  Prefactor  = 1.03193
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.083     FROM HESSE     STATUS=OK           293 CALLS     2330 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     129.44        99.621        .35389E-04   -1.3428    
   2  norm          27.613        27.531        .76233E-04   -1.4657    
   3  Prefactor     .10000E-03    34.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6269        8.5647        .13648E-03   -1.5120    
   5  Prefactor     29.555        23.325        .73700E-04   -1.4620    
   6  norm          .10000E-03    13.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0709        6.5593        .17855E-03   -1.5258    
   8  Prefactor     24.953        18.721        .80190E-04   -1.4708    
   9  Prefactor     .10000E-03    20.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    57.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     83.072        169.69        .22049E-03   -1.3883    
  13  Prefactor     6.4830        3.6823        .12428E-03   -1.5199    
  14  Prefactor     .10000E-03    18.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2785        8.3734        .39258E-03   -1.5482    
  16  Prefactor     9.5485        10.779        .12969E-03   -1.5090    
  17  norm          .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7346        9.0830        .12844E-03   -1.5084    
  19  Normalizat    1.3283        .35272        .43047E-03   -.82726    
  20  Prefactor     1.0319        .12877        .17577E-03   -.91672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41452e-09
Minuit parameter uncertainties:
  1  99.7502
  2  27.5433
  3  0.000121563
  4  8.56592
  5  23.3318
  6  1.94883e-05
  7  6.56026
  8  18.7257
  9  6.3461e-05
  10  1.38683e-05
  11  0.000270226
  12  170.692
  13  3.68246
  14  0.000527107
  15  6.54488
  16  10.7812
  17  1.34217e-05
  18  9.08431
  19  0.353366
  20  0.128806
Done.

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

Extracting fit parameters...

4FGL J1211.0-3800
   Spectrum: PowerLaw
315    Prefactor:  2.495e+01  1.873e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.282e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.032e+00  1.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
659   Normalization:  1.328e+00  3.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 182.762 -38.016
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.87e-08 +/- 5.90e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.30e-05

TS (Fixed Index): 2.76
Ra Dec: 182.762 -38.016
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386309/likelihoodResults_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.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) = 7910.91511733
delta logL = 0.168323837242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7910.9027196
delta logL = 0.180721572167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.021       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7333       1.0000          .0000       10.000    
     3 'Normalizat'    1.2777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   7910.903     FROM MIGRAD    STATUS=FAILED        98 CALLS      290 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.996        29.924        .10334E-03   -.10154E-03
   2  Index         2.7345        1.1616        .60484E-02    .69197E-03
   3  Normalizat    1.2774        .36730        .43763E-03   -.34472E-03
   4  Prefactor     1.0442        .13092        .17484E-03   -.10767E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7910.903     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      363 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.996        29.924        .18698E-03   -1.4933    
   2  Index         2.7345        1.1616        .82756E-03   -.47024    
   3  Normalizat    1.2774        .36730        .47788E-03   -.84242    
   4  Prefactor     1.0442        .13092        .20364E-03   -.91270    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7910.903     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      393 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.996        22.190        .41337E-05   -.48404E-04
   2  Index         2.7345        .86399        .12097E-02    .87026E-05
   3  Normalizat    1.2774        .36006        .17505E-04   -.26497E-04
   4  Prefactor     1.0442        .12916        .34969E-04   -.79262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9958
  Index      = 2.73449
  Normalizat = 1.27744
  Prefactor  = 1.0442
 **********
 **   18 **HESSE 
 **********

 FCN=   7910.903     FROM HESSE     STATUS=OK            23 CALLS      416 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.996        21.165        .82675E-06   -1.4933    
   2  Index         2.7345        .82410        .48387E-04   -.47024    
   3  Normalizat    1.2774        .35912        .35011E-05   -.84242    
   4  Prefactor     1.0442        .12892        .69938E-05   -.91270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79357e-11
Minuit parameter uncertainties:
  1  21.1751
  2  0.828871
  3  0.359818
  4  0.12896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386309': 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) = 7910.90271802
delta logL = 0.180723151642

Extracting fit parameters...

4FGL J1211.0-3800
   Spectrum: PowerLaw
315    Prefactor:  1.500e+01  2.118e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.734e+00  8.289e-01  0.000e+00  1.000e+01 (-1.000e+00)
317        Scale:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.044e+00  1.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
659   Normalization:  1.277e+00  3.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 182.762 -38.016
Photon Index (Free Index): 2.73 +/- 0.83
Photon Flux (Free Index): 1.15e-07 +/- 9.51e-08
Energy Flux (Free Index): 2.69e-05 +/- 1.89e-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/386309/cmap_HighResolution_368928001_369187201_4FGL_J1211.0-3800_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='7.87e-08', energy_flux2='2.69e-05', photon_flux_error='5.90e-08', dlogl='1.81e-01', energy_flux='3.06e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-05 03:05:05.722101', photon_index_error2='0.83', photon_index2='2.73', ts='2.76', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.89e-05', EG='1.33', time_epoch_completed='1630836305.72', return_code='0', job_id='386309', GAL2='1.04', EG2='1.28', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='9.51e-08', ts2='3.16', photon_index='2.28' WHERE bin_id='500' AND source_name='4FGL J1211.0-3800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:05:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 386309: <4FGL_J1211.0-3800_daily_bin500> in cluster <slac> Done

Job <4FGL_J1211.0-3800_daily_bin500> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 02:50:36 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 02:50:39 2021
Terminated at Sun Sep  5 03:05:06 2021
Results reported at Sun Sep  5 03:05:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.0-3800_daily_bin500 182.762 -38.0156 368928001 369187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1211.0-3800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            870 sec.

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

