/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 130 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2135.3-5006_daily_bin125
RA = 323.836, Dec = -50.1015
tmin = 271728001, tmax = 271987201
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='601488', job_status='RUN', time_executed='2021-09-26 19:44:42.221073', time_epoch_executed='1632710682.22' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601488/ft1_4FGL_J2135.3-5006_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601488/ft1_4FGL_J2135.3-5006_daily_bin125.fits outfile=/scratch/kocevski/601488/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin125.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=271728001.0 tmax=271987201.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.16
user 2.93
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601488/ft1_filtered_4FGL_J2135.3-5006_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/601488/ltcube_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.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/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits
.....................!
real 15.93
user 15.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601488/ft1_filtered_4FGL_J2135.3-5006_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/601488/ltcube_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.fits outfile=/scratch/kocevski/601488/expmap_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.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/601488/ltcube_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.fits
.....................!
real 193.15
user 186.65
sys 5.71

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/601488/ft1_filtered_4FGL_J2135.3-5006_daily_bin125.fits scfile=/scratch/kocevski/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits outfile=/scratch/kocevski/601488/cmap_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601488/ft1_filtered_4FGL_J2135.3-5006_daily_bin125.fits scfile=/scratch/kocevski/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits outfile=/scratch/kocevski/601488/cmap_HighResolution_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.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.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601488/ft1_filtered_4FGL_J2135.3-5006_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/601488/ft2_4FGL_J2135.3-5006_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601488/Model_4FGL_J2135.3-5006_daily_bin125.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/601488/ft1_filtered_4FGL_J2135.3-5006_daily_bin125.fits.....................!
real 52.75
user 51.42
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.3069       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.318       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.2763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19078       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75227       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1546       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=   6744.825     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2361 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.276       -.43760E-05** at limit **
   2  Prefactor     3.3069        2.0551        .76912E-06   -.32405E-02
   3  Prefactor     .10000E-03    10.646       -.15341E-06** at limit **
   4  norm          18.797        3.3517       -.72248E-08    .13426E-04
   5  Prefactor     .10000E-03    25.185        .44201E-05** at limit **
   6  Prefactor     .10001E-03    55.770        .10608E-04** at limit **
   7  Prefactor     .10000E-03    4.9862       -.19293E-06** at limit **
   8  Prefactor     22.060        18.161        .11898E-06   -.11928E-04
   9  Prefactor     49.307        29.371       -.47518E-06   -.60962E-04
  10  Prefactor     .10000E-03    2.2383        .67860E-07** at limit **
  11  norm          8.2625        4.5704       -.94021E-06   -.79192E-03
  12  Prefactor     .10000E-03    2.6522        .74895E-07** at limit **
  13  Prefactor     .10000E-03    53.863       -.33300E-05** at limit **
  14  Prefactor     .10000E-03    5.0475        .15230E-06** at limit **
  15  Prefactor     .10000E-03    2.9899        .95959E-07** at limit **
  16  Prefactor     .10000E-03    155.52       -.21553E-05** at limit **
  17  norm          8.2760        6.5749       -.93382E-07   -.20292E-04
  18  Prefactor     .17932        2.0809       -.31689E-06    .27757E-03
  19  Prefactor     .10000E-03    5.4074        .12209E-05** at limit **
  20  Prefactor     .10000E-03    6.9824        .97446E-07** at limit **
  21  Prefactor     .10000E-03    5.5876       -.11863E-05** at limit **
  22  Prefactor     .10000E-03    53.982       -.45517E-05** at limit **
  23  Normalizat    .75254        .20342       -.10062E-06    .25662E-04
  24  Prefactor     1.1545        .13774        .11566E-06    .36039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 3.3069
  Prefactor  = 0.0001
  norm       = 18.7974
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 22.0597
  Prefactor  = 49.3069
  Prefactor  = 0.0001
  norm       = 8.26252
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.27603
  Prefactor  = 0.179322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.752537
  Prefactor  = 1.15446
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.825     FROM HESSE     STATUS=OK           389 CALLS     2750 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3069        2.9872        .64591E-03   -1.5344    
   3  Prefactor     .10000E-03    10.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.797        3.3518        .60515E-04   -1.4841    
   5  Prefactor     .10000E-03    25.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    57.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0388        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.060        18.161        .85279E-04   -1.4768    
   9  Prefactor     49.307        29.457        .57102E-04   -1.4302    
  10  Prefactor     .10000E-03    2.2588        .11993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2625        4.6233        .12731E-03   -1.5133    
  12  Prefactor     .10000E-03    2.6647        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.706        .35128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0417        .13849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    156.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.2760        6.5758        .13935E-03   -1.5133    
  18  Prefactor     .17932        22.056        .22313E-02   -1.5623    
  19  Prefactor     .10000E-03    5.5567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.9877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75254        .23306        .33536E-03   -1.0185    
  24  Prefactor     1.1545        .15920        .19422E-03   -.87744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37526e-09
Minuit parameter uncertainties:
  1  0.000482005
  2  2.98736
  3  1.40233e-05
  4  3.35184
  5  0.00047369
  6  0.00169867
  7  6.12321e-06
  8  18.1656
  9  29.4656
  10  1.92839e-06
  11  4.62354
  12  3.48723e-06
  13  0.000501483
  14  9.35904e-05
  15  1.8197e-06
  16  0.000600519
  17  6.5764
  18  3.97786
  19  5.32043e-05
  20  4.39731e-06
  21  5.86587e-05
  22  0.000713284
  23  0.233365
  24  0.159265
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.928e-06  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:  1.154e+00  1.593e-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:  7.525e-01  2.334e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601488/likelihoodResults_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.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) = 6744.82699361
delta logL = -0.00210577739017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6744.82488789
delta logL = -5.09635356138e-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.4248       1.0000          .0000       10.000    
     3 'Normalizat'    .75255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1545       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=   6744.825     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      232 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.565        .12008E-01** at limit **
   2  Index         2.1047        8.3616        .50000       -.26523E-06
   3  Normalizat    .75254        .13898E-01    .33536E-03    .17767E-03
   4  Prefactor     1.1545        .98360E-02    .19422E-03    .34802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10467
  Normalizat = 0.752537
  Prefactor  = 1.15446
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.825     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    239.29        .12249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1047        8.4066        .50000       -.61758    
   3  Normalizat    .75254        .56882E-01    .13414E-04   -1.0185    
   4  Prefactor     1.1545        .40237E-01    .38843E-04   -.87744    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.57888e-09
Minuit parameter uncertainties:
  1  0.000100089
  2  1172
  3  0.0568863
  4  0.0402379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601488': 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) = 6744.82488692
delta logL = 9.12404175324e-07

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.001e-04  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.105e+00  1.172e+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:  1.154e+00  4.024e-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:  7.525e-01  5.689e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/601488/cmap_HighResolution_271728001_271987201_4FGL_J2135.3-5006_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-26 19:56:04.867590', job_id='601488', GAL2='1.15', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632711364.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='9.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='125' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 601488: <4FGL_J2135.3-5006_daily_bin125> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin125> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:40:47 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:42:19 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:42:19 2021
Terminated at Sun Sep 26 19:56:05 2021
Results reported at Sun Sep 26 19:56:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin125 323.836 -50.1015 271728001 271987201 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 :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            918 sec.

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

