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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1022
RA = 323.836, Dec = -50.1015
tmin = 504230401, tmax = 504489601
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='605950', job_status='RUN', time_executed='2021-09-26 19:58:56.352878', time_epoch_executed='1632711536.35' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605950/ft1_4FGL_J2135.3-5006_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605950/ft1_4FGL_J2135.3-5006_daily_bin1022.fits outfile=/scratch/kocevski/605950/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1022.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=504230401.0 tmax=504489601.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.64
user 3.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.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/605950/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.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/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/605950/ltcube_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.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/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits
.....................!
real 13.84
user 13.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/605950/ltcube_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.fits outfile=/scratch/kocevski/605950/expmap_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.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/605950/ltcube_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.fits
.....................!
real 190.41
user 185.77
sys 4.26

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/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.fits scfile=/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits outfile=/scratch/kocevski/605950/cmap_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.fits scfile=/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits outfile=/scratch/kocevski/605950/cmap_HighResolution_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.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/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/605950/ft2_4FGL_J2135.3-5006_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605950/Model_4FGL_J2135.3-5006_daily_bin1022.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/605950/ft1_filtered_4FGL_J2135.3-5006_daily_bin1022.fits.....................!
real 54.03
user 52.76
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6628       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.570       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.021       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.495       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9399       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64892       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23993       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67129E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2639       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94666       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=   6802.994     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2752 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.595       -.56678E-06** at limit **
   2  Prefactor     .47082        3.1058        .27433E-05   -.69445E-04
   3  Prefactor     .10000E-03    8.4843       -.13603E-06** at limit **
   4  norm          1.6629        1.2691        .90074E-07   -.31935E-04
   5  Prefactor     5.0254        30.363        .71015E-06   -.87841E-05
   6  Prefactor     38.733        99.903        .56455E-05    .14020E-03
   7  Prefactor     11.022        10.835        .58770E-06   -.47673E-04
   8  Prefactor     34.483        32.391        .71115E-06   -.71585E-04
   9  Prefactor     .10000E-03    36.499        .72938E-07** at limit **
  10  Prefactor     4.9400        5.1340        .50197E-06   -.28071E-04
  11  norm          3.0417        2.9973       -.19579E-07    .11358E-04
  12  Prefactor     .10000E-03    22.772       -.57998E-06** at limit **
  13  Prefactor     4.0792        60.196        .17384E-05   -.91156E-05
  14  Prefactor     .10000E-03    8.0610       -.26776E-06** at limit **
  15  Prefactor     .64856        2.3941        .11360E-05    .34797E-04
  16  Prefactor     .10000E-03    59.097        .47255E-06** at limit **
  17  norm          .24246        4.7856       -.18853E-06   -.15431E-04
  18  Prefactor     5.9283        5.0899        .33937E-06   -.35385E-04
  19  Prefactor     11.591        8.7158       -.77018E-06    .15113E-03
  20  Prefactor     .10005E-03    188.47       -.14024E-04** at limit **
  21  Prefactor     3.6398        10.940        .10139E-04   -.36709E-04
  22  Prefactor     .10000E-03    34.278       -.46531E-06** at limit **
  23  Normalizat    1.2638        .21056       -.29640E-05   -.52353E-04
  24  Prefactor     .94670        .12908       -.28085E-06   -.28005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.470824
  Prefactor  = 0.0001
  norm       = 1.66286
  Prefactor  = 5.0254
  Prefactor  = 38.7335
  Prefactor  = 11.0223
  Prefactor  = 34.4825
  Prefactor  = 0.0001
  Prefactor  = 4.93998
  norm       = 3.04175
  Prefactor  = 0.0001
  Prefactor  = 4.07915
  Prefactor  = 0.0001
  Prefactor  = 0.64856
  Prefactor  = 0.000100001
  norm       = 0.242463
  Prefactor  = 5.9283
  Prefactor  = 11.591
  Prefactor  = 0.000100049
  Prefactor  = 3.63976
  Prefactor  = 0.0001
  Normalizat = 1.26382
  Prefactor  = 0.946698
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.994     FROM HESSE     STATUS=OK           407 CALLS     3159 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .47082        3.1969        .27225E-02   -1.5571    
   3  Prefactor     .10000E-03    8.5024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6629        1.2648        .78548E-04   -1.5450    
   5  Prefactor     5.0254        30.350        .17940E-03   -1.5260    
   6  Prefactor     38.733        100.72        .32269E-03   -1.4462    
   7  Prefactor     11.022        10.843        .12068E-03   -1.5044    
   8  Prefactor     34.483        32.360        .68230E-04   -1.4533    
   9  Prefactor     .10000E-03    36.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9400        5.1310        .17852E-03   -1.5263    
  11  norm          3.0417        3.0011        .13625E-03   -1.5359    
  12  Prefactor     .10000E-03    23.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0792        60.223        .19949E-03   -1.5304    
  14  Prefactor     .10000E-03    8.1445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .64856        2.3378        .23651E-03   -1.5547    
  16  Prefactor     .10000E-03    59.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .24246        25.000        .35061E-02   -1.5610    
  18  Prefactor     5.9283        5.0923        .16491E-03   -1.5221    
  19  Prefactor     11.591        8.7479        .11765E-03   -1.5027    
  20  Prefactor     .10005E-03    198.56        .42006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6398        11.011        .10575E-02   -1.5326    
  22  Prefactor     .10000E-03    34.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2638        .24605        .28233E-03   -.84653    
  24  Prefactor     .94670        .15183        .21020E-03   -.94528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34486e-07
Minuit parameter uncertainties:
  1  0.000161068
  2  2.45363
  3  8.65045e-07
  4  1.26481
  5  24.7185
  6  101.17
  7  10.8444
  8  32.3762
  9  0.000104809
  10  5.1315
  11  3.0012
  12  0.000168569
  13  31.3846
  14  1.93337e-05
  15  2.33813
  16  0.000503577
  17  4.92513
  18  5.09269
  19  8.74891
  20  0.00623453
  21  11.0176
  22  0.00019202
  23  0.246275
  24  0.151897
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.940e+00  5.132e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.467e-01  1.519e-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.264e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.41e-05

TS (Fixed Index): 1.25
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605950/likelihoodResults_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.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) = 6801.85109867
delta logL = 1.14289523253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6801.84238493
delta logL = 1.1516089701

Fit tolerance = 1e-08

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

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

 FCN=   6801.842     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      297 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64674        5.2463        .86525E-02    .93256E-03
   2  Index         4.3604        2.6652        .12927        .14425E-03
   3  Normalizat    1.1752        .55458E-01    .65752E-01    .10381E-05
   4  Prefactor     .98547        .36319E-01    .46085E-01   -.13333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.646745
  Index      = 4.36036
  Normalizat = 1.17521
  Prefactor  = 0.985471
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.842     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64674        11.663        .39151E-04   -1.5547    
   2  Index         4.3604        6.9674        .48469E-02   -.12828    
   3  Normalizat    1.1752        .21552        .29088E-03   -.87373    
   4  Prefactor     .98547        .14009        .20642E-03   -.93215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88221e-07
Minuit parameter uncertainties:
  1  5.49365
  2  5.09272
  3  0.215681
  4  0.140137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605950': 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) = 6801.84238468
delta logL = 1.15160922091

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  6.467e-01  5.494e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  4.360e+00  5.093e+00  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:  9.855e-01  1.401e-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.175e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 4.36 +/- 5.09
Photon Flux (Free Index): 1.11e-07 +/- 6.90e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.26e-05

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/605950/cmap_HighResolution_504230401_504489601_4FGL_J2135.3-5006_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='1.58e-05', photon_flux_error='4.47e-08', dlogl='1.15e+00', energy_flux='1.36e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-26 20:11:00.597150', photon_index_error2='5.09', photon_index2='4.36', ts='1.25', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.26e-05', EG='1.26', time_epoch_completed='1632712260.6', return_code='0', job_id='605950', GAL2='0.99', EG2='1.18', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='6.90e-08', ts2='3.76', photon_index='2.43' WHERE bin_id='1022' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 605950: <4FGL_J2135.3-5006_daily_bin1022> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1022> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:55:22 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:56:25 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:56:25 2021
Terminated at Sun Sep 26 20:11:01 2021
Results reported at Sun Sep 26 20:11:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1022 323.836 -50.1015 504230401 504489601 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 :                                   714.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            939 sec.

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

