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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin599
RA = 323.836, Dec = -50.1015
tmin = 394588801, tmax = 394848001
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='603243', job_status='RUN', time_executed='2021-09-26 19:51:28.571206', time_epoch_executed='1632711088.57' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603243

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603243/ft1_4FGL_J2135.3-5006_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603243/ft1_4FGL_J2135.3-5006_daily_bin599.fits outfile=/scratch/kocevski/603243/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin599.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.55
user 4.29
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.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/603243/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/603243/ltcube_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.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/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits
.....................!
real 14.01
user 13.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/603243/ltcube_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.fits outfile=/scratch/kocevski/603243/expmap_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.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/603243/ltcube_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.fits
.....................!
real 191.54
user 186.17
sys 4.56

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/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.fits scfile=/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits outfile=/scratch/kocevski/603243/cmap_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.fits scfile=/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits outfile=/scratch/kocevski/603243/cmap_HighResolution_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.fits', '/scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits', expMap='/scratch/kocevski/603243/expmap_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.fits', expCube='/scratch/kocevski/603243/ltcube_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603243/Model_4FGL_J2135.3-5006_daily_bin599.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/603243/ft1_filtered_4FGL_J2135.3-5006_daily_bin599.fits
Spacecraft file(s): /scratch/kocevski/603243/ft2_4FGL_J2135.3-5006_daily_bin599.fits
Exposure map: /scratch/kocevski/603243/expmap_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.fits
Exposure cube: /scratch/kocevski/603243/ltcube_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603243/Model_4FGL_J2135.3-5006_daily_bin599.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) = 5260.19011895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13003E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49162E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.319       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .90301E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.0904       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .50182       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=   5260.152     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2801 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.280        79.508        .37558E-06   -.69432E-07
   2  Prefactor     .10000E-03    3.4668        .90782E-06** at limit **
   3  Prefactor     .10000E-03    20.770        .82464E-06** at limit **
   4  norm          3.7761        2.3227        .95397E-08    .37171E-04
   5  Prefactor     .10000E-03    49.618        .66223E-06** at limit **
   6  Prefactor     .10000E-03    32.018       -.23963E-07** at limit **
   7  Prefactor     .10000E-03    12.377        .49909E-06** at limit **
   8  Prefactor     16.768        25.656       -.89822E-06   -.12574E-04
   9  Prefactor     .10002E-03    17.258       -.77368E-06** at limit **
  10  Prefactor     .10000E-03    2.6887        .54831E-07** at limit **
  11  norm          1.1996        3.5758        .10478E-05    .15095E-03
  12  Prefactor     .10000E-03    12.759        .57634E-06** at limit **
  13  Prefactor     .10001E-03    182.22       -.10001E-04** at limit **
  14  Prefactor     .10000E-03    3.8035       -.20381E-05** at limit **
  15  Prefactor     .10000E-03    2.9423       -.88251E-06** at limit **
  16  Prefactor     51.145        101.78       -.27640E-05   -.29735E-04
  17  norm          .10000E-03    2.7579       -.29675E-06** at limit **
  18  Prefactor     .10015E-03    2.7587       -.70588E-06** at limit **
  19  Prefactor     .10000E-03    6.2787       -.15395E-05** at limit **
  20  Prefactor     13.704        33.038       -.13255E-05    .12836E-04
  21  Prefactor     .10000E-03    7.5493       -.16744E-05** at limit **
  22  Prefactor     .10000E-03    50.948       -.64150E-06** at limit **
  23  Normalizat    2.0911        .26000        .49968E-05   -.63496E-04
  24  Prefactor     .50127        .15833       -.63005E-05    .88641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.2799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.77609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7681
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 1.19956
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.1447
  norm       = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 0.0001
  Prefactor  = 13.7041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.09106
  Prefactor  = 0.501274
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.152     FROM HESSE     STATUS=OK           393 CALLS     3194 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.280        79.495        .58936E-04   -1.4346    
   2  Prefactor     .10000E-03    3.5932        .26420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7761        2.3188        .83064E-04   -1.5319    
   5  Prefactor     .10000E-03    49.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.768        25.568        .97790E-04   -1.4889    
   9  Prefactor     .10002E-03    87.095        .58090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7201        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1996        3.5156        .22688E-03   -1.5489    
  12  Prefactor     .10000E-03    12.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    187.94        .21166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8785        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9928        .12166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.145        102.03        .27992E-03   -1.4276    
  17  norm          .10000E-03    2.7598        .11766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10015E-03    38.615        .22834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3997        .17793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.704        33.068        .10797E-03   -1.4967    
  21  Prefactor     .10000E-03    7.6123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    50.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0911        .27263        .23948E-03   -.62287    
  24  Prefactor     .50127        .16491        .27574E-03   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13706e-09
Minuit parameter uncertainties:
  1  79.6781
  2  3.09294e-05
  3  6.55546e-05
  4  2.31887
  5  0.000148558
  6  6.95859e-05
  7  7.12522e-06
  8  25.5845
  9  0.00261862
  10  5.41893e-07
  11  3.51619
  12  5.37095e-05
  13  0.00226653
  14  5.27302e-05
  15  1.98757e-05
  16  102.383
  17  6.08429e-06
  18  0.00487378
  19  5.2156e-05
  20  33.1124
  21  5.7025e-05
  22  1.29514e-05
  23  0.272834
  24  0.16507
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.419e-07  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.013e-01  1.651e-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:  2.091e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 8.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603243/likelihoodResults_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.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) = 5260.15362614
delta logL = -0.0017368566605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5260.15188933
delta logL = -4.45479599875e-08

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 'Index     '    2.4285       1.0000          .0000       10.000    
     3 'Normalizat'    2.0911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50129       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5260.152     FROM MIGRAD    STATUS=FAILED        94 CALLS      243 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    106.70        .11612E-02** at limit **
   2  Index         2.3838        8.8043        .50000        .15481E-05
   3  Normalizat    2.0911        .40135E-01    .23948E-03   -.45573E-05
   4  Prefactor     .50127        .24801E-01    .27575E-03   -.53597E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5260.152     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      395 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    106.70        .23788E-03** at limit **
   2  Index         2.3838        8.8043        .66305E-04    .15481E-05
   3  Normalizat    2.0911        .40135E-01    .94600E-06   -.45573E-05
   4  Prefactor     .50127        .24801E-01    .99703E-06   -.53597E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5260.152     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      429 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    448.79        .23224E-03** at limit **
   2  Index         2.3592        8.8139        .50000       -.54417E-06
   3  Normalizat    2.0911        .10797        .95792E-05   -.71208E-06
   4  Prefactor     .50127        .66347E-01    .11030E-04    .32983E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.35916
  Normalizat = 2.09106
  Prefactor  = 0.501273
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.152     FROM HESSE     STATUS=OK            29 CALLS      458 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2851        .46448E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3592        8.6577        .50000       -.55644    
   3  Normalizat    2.0911        .26309        .19158E-05   -.62287    
   4  Prefactor     .50127        .16261        .22060E-05   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07907e-09
Minuit parameter uncertainties:
  1  0.000167811
  2  232.597
  3  0.263272
  4  0.162759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603243': 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) = 5260.15188924
delta logL = 4.14429450757e-08

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.678e-04  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.359e+00  2.326e+02  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.013e-01  1.628e-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:  2.091e+00  2.633e-01  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/603243/cmap_HighResolution_394588801_394848001_4FGL_J2135.3-5006_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-26 20:02:16.948444', job_id='603243', GAL2='0.50', fit_tolerance='1e-08', EG2='2.09', EG='2.09', time_epoch_completed='1632711736.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='4.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='599' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:02:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 603243: <4FGL_J2135.3-5006_daily_bin599> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin599> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:45:54 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:47:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 19:47:23 2021
Terminated at Sun Sep 26 20:02:17 2021
Results reported at Sun Sep 26 20:02:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin599 323.836 -50.1015 394588801 394848001 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 :                                   647.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            983 sec.

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

