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


Performing analysis on: 4FGL_J1211.0-3800_daily_bin302
RA = 182.762, Dec = -38.0156
tmin = 317606401, tmax = 317865601
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='384751', job_status='RUN', time_executed='2021-09-05 02:46:05.622055', time_epoch_executed='1630835165.62' WHERE source_name='4FGL J1211.0-3800' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384751/ft1_4FGL_J1211.0-3800_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384751/ft1_4FGL_J1211.0-3800_daily_bin302.fits outfile=/scratch/kocevski/384751/ft1_filteredMKT_4FGL_J1211.0-3800_daily_bin302.fits ra=182.762 dec=-38.0156 rad=12.0 tmin=317606401.0 tmax=317865601.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.35
user 3.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/384751/ltcube_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.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/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits
.....................!
real 12.13
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/384751/ltcube_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.fits outfile=/scratch/kocevski/384751/expmap_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.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/384751/ltcube_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.fits
.....................!
real 192.62
user 188.28
sys 4.01

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/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits scfile=/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits outfile=/scratch/kocevski/384751/cmap_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits scfile=/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits outfile=/scratch/kocevski/384751/cmap_HighResolution_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.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.71
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384751/Model_4FGL_J1211.0-3800_daily_bin302.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/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits.....................!
real 164.53
user 163.10
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits', '/scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits', expMap='/scratch/kocevski/384751/expmap_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.fits', expCube='/scratch/kocevski/384751/ltcube_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384751/Model_4FGL_J1211.0-3800_daily_bin302.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/384751/ft1_filtered_4FGL_J1211.0-3800_daily_bin302.fits
Spacecraft file(s): /scratch/kocevski/384751/ft2_4FGL_J1211.0-3800_daily_bin302.fits
Exposure map: /scratch/kocevski/384751/expmap_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.fits
Exposure cube: /scratch/kocevski/384751/ltcube_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384751/Model_4FGL_J1211.0-3800_daily_bin302.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) = 9209.79383483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.502       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10422E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.763       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.715       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8604       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9582       1.0000         .10000E-03   10000.    
    17 'norm      '    32.066       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3464       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0366       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=   9209.685     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1762 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.462        34.769       -.54528E-05   -.28669E-03
   2  norm          .10000E-03    13.475       -.16654E-05** at limit **
   3  Prefactor     .10000E-03    4.1593       -.13364E-06** at limit **
   4  norm          .10001E-03    3.3899       -.81644E-06** at limit **
   5  Prefactor     .10000E-03    17.729        .33546E-06** at limit **
   6  norm          19.811        19.685        .66196E-07    .88790E-05
   7  Prefactor     8.2713        6.8433        .94919E-07    .38333E-05
   8  Prefactor     .10000E-03    17.927        .18009E-05** at limit **
   9  Prefactor     27.761        29.988       -.87256E-07   -.18693E-04
  10  Prefactor     .10000E-03    11.321        .14885E-05** at limit **
  11  Prefactor     32.715        23.013        .80444E-07    .10437E-04
  12  Prefactor     .10000E-03    57.464       -.10599E-06** at limit **
  13  Prefactor     .10000E-03    1.9459        .91533E-07** at limit **
  14  Prefactor     .10000E-03    16.897       -.51634E-06** at limit **
  15  norm          4.8605        5.2709       -.60442E-07   -.70555E-04
  16  Prefactor     4.9580        8.7666        .52865E-05   -.13306E-03
  17  norm          32.061        19.071       -.91381E-07   -.29293E-04
  18  Prefactor     .10000E-03    5.6376       -.12613E-07** at limit **
  19  Normalizat    1.3463        .25241        .35084E-06    .19899E-04
  20  Prefactor     1.0366        .94673E-01   -.36864E-06    .17693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4623
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 19.811
  Prefactor  = 8.27129
  Prefactor  = 0.0001
  Prefactor  = 27.7613
  Prefactor  = 0.000100001
  Prefactor  = 32.715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.86048
  Prefactor  = 4.95804
  norm       = 32.0609
  Prefactor  = 0.0001
  Normalizat = 1.3463
  Prefactor  = 1.0366
 **********
 **   18 **HESSE 
 **********

 FCN=   9209.685     FROM HESSE     STATUS=OK           287 CALLS     2049 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.462        36.380        .88458E-04   -1.4803    
   2  norm          .10000E-03    13.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    9.4790        .33787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.811        19.687        .89988E-04   -1.4817    
   7  Prefactor     8.2713        6.8410        .13940E-03   -1.5133    
   8  Prefactor     .10000E-03    18.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.761        29.989        .76033E-04   -1.4654    
  10  Prefactor     .10000E-03    11.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.715        22.890        .70057E-04   -1.4563    
  12  Prefactor     .10000E-03    57.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9871        .25988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8605        5.2683        .18246E-03   -1.5267    
  16  Prefactor     4.9580        8.9536        .90307E-03   -1.5263    
  17  norm          32.061        19.077        .70760E-04   -1.4575    
  18  Prefactor     .10000E-03    5.6829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3463        .29836        .39999E-03   -.82195    
  20  Prefactor     1.0366        .11234        .16816E-03   -.91519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54592e-09
Minuit parameter uncertainties:
  1  36.4191
  2  0.000209025
  3  3.48217e-06
  4  0.000543387
  5  4.51621e-05
  6  19.693
  7  6.84164
  8  0.000155974
  9  30.0051
  10  0.000165231
  11  22.8966
  12  3.318e-05
  13  4.55779e-07
  14  7.0977e-05
  15  5.26877
  16  8.95606
  17  19.0808
  18  3.11028e-07
  19  0.298742
  20  0.112368
Done.

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

Extracting fit parameters...

4FGL J1211.0-3800
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  1.560e-04  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.037e+00  1.124e-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.346e+00  2.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.762 -38.016
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384751/likelihoodResults_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9209.68519002
delta logL = -0.000255242930507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9209.68493487
delta logL = -8.86229827302e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2912       1.0000          .0000       10.000    
     3 'Normalizat'    1.3462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       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.

 FCN=   9209.685     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    354.12        .90712E-02** at limit **
   2  Index         2.2992        8.7114        .50000       -.34565E-05
   3  Normalizat    1.3463        .29633E-01    .90318E-01    .20503E-04
   4  Prefactor     1.0366        .11175E-01    .40764E-01   -.28881E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29923
  Normalizat = 1.34631
  Prefactor  = 1.0366
 **********
 **   18 **HESSE 
 **********

 FCN=   9209.685     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2992        6.1495        .50000       -.57062    
   3  Normalizat    1.3463        .29356        .39999E-03   -.82194    
   4  Prefactor     1.0366        .11105        .16816E-03   -.91519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21729e-11
Minuit parameter uncertainties:
  1  1.56126e-06
  2  4.24004
  3  0.29393
  4  0.111074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384751': 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) = 9209.68493476
delta logL = 1.50721461978e-08

Extracting fit parameters...

4FGL J1211.0-3800
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  1.561e-06  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.299e+00  4.240e+00  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.037e+00  1.111e-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.346e+00  2.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.762 -38.016

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/384751/cmap_HighResolution_317606401_317865601_4FGL_J1211.0-3800_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-05 03:00:24.311045', job_id='384751', GAL2='1.04', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630836024.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='302' AND source_name='4FGL J1211.0-3800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 384751: <4FGL_J1211.0-3800_daily_bin302> in cluster <slac> Done

Job <4FGL_J1211.0-3800_daily_bin302> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:45:53 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:45:55 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:45:55 2021
Terminated at Sun Sep  5 03:00:25 2021
Results reported at Sun Sep  5 03:00:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.0-3800_daily_bin302 182.762 -38.0156 317606401 317865601 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 :                                   852.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             369.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

