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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1209
RA = 323.836, Dec = -50.1015
tmin = 552700801, tmax = 552960001
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='607367', job_status='RUN', time_executed='2021-09-26 20:01:28.531618', time_epoch_executed='1632711688.53' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607367/ft1_4FGL_J2135.3-5006_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607367/ft1_4FGL_J2135.3-5006_daily_bin1209.fits outfile=/scratch/kocevski/607367/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1209.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=552700801.0 tmax=552960001.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 2.98
user 2.71
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.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/607367/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/607367/ltcube_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.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/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits
.....................!
real 15.58
user 15.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/607367/ltcube_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.fits outfile=/scratch/kocevski/607367/expmap_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.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/607367/ltcube_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.fits
.....................!
real 195.16
user 188.31
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2135.3-5006 @ 323.836 -50.1015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits scfile=/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits outfile=/scratch/kocevski/607367/cmap_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.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=323.836 yref=-50.1015 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits scfile=/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits outfile=/scratch/kocevski/607367/cmap_HighResolution_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.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=323.836 yref=-50.1015 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607367/Model_4FGL_J2135.3-5006_daily_bin1209.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/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits........................!
real 17.04
user 15.63
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits', '/scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits', expMap='/scratch/kocevski/607367/expmap_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.fits', expCube='/scratch/kocevski/607367/ltcube_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/607367/Model_4FGL_J2135.3-5006_daily_bin1209.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2135.3-5006'

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/607367/ft1_filtered_4FGL_J2135.3-5006_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/607367/ft2_4FGL_J2135.3-5006_daily_bin1209.fits
Exposure map: /scratch/kocevski/607367/expmap_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.fits
Exposure cube: /scratch/kocevski/607367/ltcube_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/607367/Model_4FGL_J2135.3-5006_daily_bin1209.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) = 527.193895049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'norm      '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11922E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    99.168       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.923       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28577E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .56429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   526.8190     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2877 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7476.1        .31244E-02** at limit **
   2  Prefactor    10000.0        1232.6        .64425E-03** at limit **
   3  Prefactor    10000.0        7660.2        .71817E-03** at limit **
   4  norm         10000.0        484.18       -.27745E-03** at limit **
   5  Prefactor    10000.0        8201.6        .46864E-03** at limit **
   6  Prefactor     .10000E-03    8208.6       -.17131E-02** at limit **
   7  Prefactor     .10000E-03    241.98       -.25959E-04** at limit **
   8  Prefactor     99.155        255.94       -.12097E-04    .10239E-04
   9  Prefactor     .10000E-03    849.77       -.24532E-03** at limit **
  10  Prefactor     .10000E-03    48.009        .41230E-04** at limit **
  11  norm          .10000E-03    13.532        .43875E-06** at limit **
  12  Prefactor     8.0040        42.060       -.42732E-05    .41566E-05
  13  Prefactor     .10000E-03    51.923       -.15455E-04** at limit **
  14  Prefactor     10.660        18.595        .11664E-04   -.36411E-05
  15  Prefactor     .10000E-03    5.4877       -.14867E-06** at limit **
  16  Prefactor     .10006E-03    659.66        .18272E-04** at limit **
  17  norm          13.923        15.160       -.52993E-06    .55674E-04
  18  Prefactor     22.279        12.163        .16714E-05    .10662E-03
  19  Prefactor     3.1252        10.102        .72666E-05    .53236E-04
  20  Prefactor     .10000E-03    19.201        .63573E-07** at limit **
  21  Prefactor     .10000E-03    44.888       -.24287E-04** at limit **
  22  Prefactor     .10001E-03    843.43        .14381E-04** at limit **
  23  Normalizat    .10000E-01    .22115       -.60581E-05** at limit **
  24  Prefactor     .56433        .26145       -.56561E-05    .20720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 99.155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.00399
  Prefactor  = 0.0001
  Prefactor  = 10.6597
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  norm       = 13.9234
  Prefactor  = 22.2787
  Prefactor  = 3.12518
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100014
  Normalizat = 0.01
  Prefactor  = 0.564333
 **********
 **   18 **HESSE 
 **********

 FCN=   526.8190     FROM HESSE     STATUS=OK           383 CALLS     3260 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7475.8        .18300E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        1232.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        7660.2        .20194E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        484.19        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        8201.7        .20845E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8208.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    241.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     99.155        256.75        .40369E-04   -1.3713    
   9  Prefactor     .10000E-03    849.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.005        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.537        .82493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0040        42.086        .14186E-03   -1.5142    
  13  Prefactor     .10000E-03    51.926        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.660        18.573        .12275E-03   -1.5055    
  15  Prefactor     .10000E-03    5.4928        .52534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    658.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.923        15.178        .90213E-04   -1.4962    
  18  Prefactor     22.279        12.168        .53286E-04   -1.4764    
  19  Prefactor     3.1252        10.061        .11924E-03   -1.5354    
  20  Prefactor     .10000E-03    19.214        .98282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.284        .29976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    852.41        .21410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .22885        .63000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .56433        .25634        .20373E-03   -1.0911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0389e-10
Minuit parameter uncertainties:
  1  0.000776261
  2  8.91161e-05
  3  0.000353754
  4  5.98616e-05
  5  0.00158559
  6  0.000113733
  7  0.000712524
  8  259.714
  9  0.000364657
  10  5.07803e-05
  11  4.6862e-05
  12  36.7474
  13  8.5277e-05
  14  18.5825
  15  1.91823e-05
  16  0.0130104
  17  15.1822
  18  12.1697
  19  10.0665
  20  2.66514e-05
  21  0.000638904
  22  0.00708082
  23  6.57295e-06
  24  0.256875
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.078e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  5.643e-01  2.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.000e-02  6.573e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 2.29e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607367/likelihoodResults_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.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) = 526.819069371
delta logL = -9.89606907069e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 526.818971156
delta logL = -7.45428337723e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3201       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   526.8190     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      295 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    410.77        .12179E-01** at limit **
   2  Index         2.1455        6.1432        .50000        .35377E-07
   3  Normalizat    .10000E-01    .38974E-02    .62998E-02** at limit **
   4  Prefactor     .56433        .27240E-01    .20373E-03   -.76385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.14554
  Normalizat = 0.01
  Prefactor  = 0.564327
 **********
 **   18 **HESSE 
 **********

 FCN=   526.8190     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6313.4        .15862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1455        8.3028        .50000       -.60759    
   3  Normalizat    .10000E-01    .30106E-01    .12600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56433        .75720E-01    .40747E-04   -1.0911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38495e-09
Minuit parameter uncertainties:
  1  0.0117348
  2  4347.15
  3  8.023e-08
  4  0.0757338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607367': 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) = 526.81897037
delta logL = 4.06253093388e-08

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.173e-02  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.146e+00  4.347e+03  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  5.643e-01  7.573e-02  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.000e-02  8.023e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 323.836 -50.102

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/607367/cmap_HighResolution_552700801_552960001_4FGL_J2135.3-5006_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-01', job_status='DONE', photon_flux_upper_limit='2.29e-06', time_completed='2021-09-26 20:07:35.916414', job_id='607367', GAL2='0.56', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632712055.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='4.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1209' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:07:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 607367: <4FGL_J2135.3-5006_daily_bin1209> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1209> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:26 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:00:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 20:00:47 2021
Terminated at Sun Sep 26 20:07:36 2021
Results reported at Sun Sep 26 20:07:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1209 323.836 -50.1015 552700801 552960001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2135.3-5006 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   354.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   409 sec.
    Turnaround time :                            430 sec.

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

