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


Performing analysis on: 4FGL_J1211.6-2735_daily_bin1141
RA = 182.901, Dec = -27.5877
tmin = 535075201, tmax = 535334401
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='400360', job_status='RUN', time_executed='2021-09-05 03:31:48.255180', time_epoch_executed='1630837908.26' WHERE source_name='4FGL J1211.6-2735' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400360

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400360/ft1_4FGL_J1211.6-2735_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400360/ft1_4FGL_J1211.6-2735_daily_bin1141.fits outfile=/scratch/kocevski/400360/ft1_filteredMKT_4FGL_J1211.6-2735_daily_bin1141.fits ra=182.901 dec=-27.5877 rad=12.0 tmin=535075201.0 tmax=535334401.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 5.14
user 4.66
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/400360/ltcube_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.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/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits
.....................!
real 12.07
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/400360/ltcube_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.fits outfile=/scratch/kocevski/400360/expmap_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.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/400360/ltcube_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.fits
.....................!
real 191.21
user 185.18
sys 5.63

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 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 183 point sources and 1 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.6-2735 @ 182.901 -27.5877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits scfile=/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits outfile=/scratch/kocevski/400360/cmap_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.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.901 yref=-27.5877 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits scfile=/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits outfile=/scratch/kocevski/400360/cmap_HighResolution_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.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.901 yref=-27.5877 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400360/Model_4FGL_J1211.6-2735_daily_bin1141.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 GAL_V02
Working on...
/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits.....................!
real 126.69
user 125.01
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits', '/scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits', expMap='/scratch/kocevski/400360/expmap_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.fits', expCube='/scratch/kocevski/400360/ltcube_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/400360/Model_4FGL_J1211.6-2735_daily_bin1141.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1211.6-2735'

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  5.517e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  8.728e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/400360/ft1_filtered_4FGL_J1211.6-2735_daily_bin1141.fits
Spacecraft file(s): /scratch/kocevski/400360/ft2_4FGL_J1211.6-2735_daily_bin1141.fits
Exposure map: /scratch/kocevski/400360/expmap_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.fits
Exposure cube: /scratch/kocevski/400360/ltcube_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/400360/Model_4FGL_J1211.6-2735_daily_bin1141.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) = 7608.24987662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.860       1.0000         .10000E-03   10000.    
     4 'norm      '    .59926E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.281       1.0000         .10000E-03   10000.    
     7 'norm      '    8.2784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4211       1.0000         .10000E-03   10000.    
     9 'norm      '    .50574E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    83.338       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2980       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.957       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4582       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7608.226     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2725 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.684        .45718E-05** at limit **
   2  Prefactor     11.172        11.923        .10052E-08   -.20920E-04
   3  Prefactor     10.862        13.106        .83322E-07    .96266E-04
   4  norm          .10045E-03    7.6847       -.44170E-05** at limit **
   5  Prefactor     .10000E-03    1.0184       -.67863E-07** at limit **
   6  Prefactor     17.280        19.267       -.15916E-06    .15043E-04
   7  norm          8.2786        12.733       -.72561E-08    .16324E-04
   8  Prefactor     9.3890        17.286        .22695E-05    .30866E-03
   9  norm          .10000E-03    12.875        .70785E-05** at limit **
  10  Prefactor     4.9739        4.3190        .96609E-06    .83781E-03
  11  Prefactor     .10000E-03    54.398        .27121E-05** at limit **
  12  Prefactor     10.294        12.673        .15211E-08    .54739E-04
  13  Prefactor     .10000E-03    22.163       -.22021E-05** at limit **
  14  Prefactor     .10000E-03    6.3595       -.57151E-07** at limit **
  15  Prefactor     .10000E-03    14.832       -.24171E-05** at limit **
  16  Prefactor     .10000E-03    8.0254        .61390E-06** at limit **
  17  Prefactor     .10000E-03    4.8766        .15473E-06** at limit **
  18  norm          1.8309        .98798        .67304E-08    .36736E-03
  19  Prefactor     83.335        57.033        .19993E-05    .10649E-03
  20  norm          1.3002        5.1094       -.24832E-06    .71829E-03
  21  Prefactor     10.956        6.3367        .22657E-06    .26314E-03
  22  norm          .10000E-03    2.0284        .18843E-07** at limit **
  23  Normalizat    1.4581        .22145        .64484E-07    .22292E-03
  24  Prefactor     .71830        .99402E-01    .12387E-06    .49659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.1716
  Prefactor  = 10.8622
  norm       = 0.000100454
  Prefactor  = 0.0001
  Prefactor  = 17.2797
  norm       = 8.27863
  Prefactor  = 9.389
  norm       = 0.000100001
  Prefactor  = 4.97388
  Prefactor  = 0.0001
  Prefactor  = 10.2942
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83086
  Prefactor  = 83.3347
  norm       = 1.30024
  Prefactor  = 10.9562
  norm       = 0.0001
  Normalizat = 1.45815
  Prefactor  = 0.718301
 **********
 **   18 **HESSE 
 **********

 FCN=   7608.226     FROM HESSE     STATUS=OK           405 CALLS     3130 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.172        11.945        .11986E-03   -1.5039    
   3  Prefactor     10.862        13.114        .12157E-03   -1.5049    
   4  norm          .10045E-03    4.3336        .61483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0199        .85969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.280        19.269        .96346E-04   -1.4876    
   7  norm          8.2786        12.729        .13934E-03   -1.5132    
   8  Prefactor     9.3890        14.680        .13057E-03   -1.5095    
   9  norm          .10000E-03    13.193        .24835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9739        4.3991        .16474E-03   -1.5262    
  11  Prefactor     .10000E-03    54.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.294        12.677        .12489E-03   -1.5066    
  13  Prefactor     .10000E-03    22.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8309        .98305        .60761E-04   -1.5437    
  19  Prefactor     83.335        56.857        .22001E-03   -1.3880    
  20  norm          1.3002        5.7342        .37057E-03   -1.5480    
  21  Prefactor     10.956        6.3475        .12103E-03   -1.5046    
  22  norm          .10000E-03    2.0623        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4581        .26764        .29863E-03   -.78961    
  24  Prefactor     .71830        .11997        .18718E-03   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10575e-09
Minuit parameter uncertainties:
  1  0.000290251
  2  11.9477
  3  13.1172
  4  0.00280419
  5  3.02569e-06
  6  19.2764
  7  12.7335
  8  14.6861
  9  0.000242347
  10  4.39942
  11  0.000216532
  12  12.6804
  13  0.000362504
  14  1.0871e-05
  15  0.000170042
  16  1.6748e-05
  17  5.22649e-07
  18  0.983054
  19  56.8942
  20  5.46176
  21  6.34787
  22  3.19097e-07
  23  0.267896
  24  0.120009
Done.

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

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  3.625e-04  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  8.728e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.183e-01  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.458e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.901 -27.588
Photon Flux Upper Limit: 8.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/400360/likelihoodResults_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.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) = 7608.22664986
delta logL = -0.00021146454128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7608.22644045
delta logL = -2.05488868232e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11304E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9348       1.0000          .0000       10.000    
     3 'Normalizat'    1.4581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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.

 FCN=   7608.226     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10720E-03    7.6224        .18142E-01** at limit **
   2  Index         2.8059        5.8383        .50000        .22467E-04
   3  Normalizat    1.4581        .38445E-02    .29863E-03   -.14086E-05
   4  Prefactor     .71830        .17699E-02    .18718E-03    .49379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107202
  Index      = 2.80593
  Normalizat = 1.45815
  Prefactor  = 0.7183
 **********
 **   18 **HESSE 
 **********

 FCN=   7608.226     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10720E-03    330.40        .67370E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8059        5.9655        .50000       -.45428    
   3  Normalizat    1.4581        .25646E-01    .11945E-04   -.78961    
   4  Prefactor     .71830        .11807E-01    .74871E-05   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.85185e-08
Minuit parameter uncertainties:
  1  0.0981082
  2  628.767
  3  0.0256463
  4  0.0118067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400360': 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): 102
logL (Free Index) = 7608.22643951
delta logL = -1.11788813228e-06

Extracting fit parameters...

4FGL J1211.6-2735
   Spectrum: PowerLaw
289    Prefactor:  1.072e-04  9.811e-02  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.806e+00  6.288e+02  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  8.728e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.183e-01  1.181e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.458e+00  2.565e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.901 -27.588

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/400360/cmap_HighResolution_535075201_535334401_4FGL_J1211.6-2735_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2021-09-05 03:46:42.189706', job_id='400360', GAL2='0.72', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630838802.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1141' AND source_name='4FGL J1211.6-2735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:46:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 400360: <4FGL_J1211.6-2735_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1211.6-2735_daily_bin1141> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 03:30:44 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:30:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:30:46 2021
Terminated at Sun Sep  5 03:46:43 2021
Results reported at Sun Sep  5 03:46:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1211.6-2735_daily_bin1141 182.901 -27.5877 535075201 535334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1211.6-2735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   868.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

