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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1214
RA = 323.836, Dec = -50.1015
tmin = 553996801, tmax = 554256001
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='607376', job_status='RUN', time_executed='2021-09-26 20:04:04.004036', time_epoch_executed='1632711844.0' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607376

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607376/ft1_4FGL_J2135.3-5006_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607376/ft2_4FGL_J2135.3-5006_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607376/ft1_4FGL_J2135.3-5006_daily_bin1214.fits outfile=/scratch/kocevski/607376/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1214.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=553996801.0 tmax=554256001.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.67
user 2.44
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607376/ft1_filtered_4FGL_J2135.3-5006_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/607376/ft2_4FGL_J2135.3-5006_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/607376/ltcube_553996801_554256001_4FGL_J2135.3-5006_daily_bin1214.fits outfile=/scratch/kocevski/607376/expmap_553996801_554256001_4FGL_J2135.3-5006_daily_bin1214.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/607376/ltcube_553996801_554256001_4FGL_J2135.3-5006_daily_bin1214.fits
.....................!
real 192.28
user 186.33
sys 5.09

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/607376/ft1_filtered_4FGL_J2135.3-5006_daily_bin1214.fits scfile=/scratch/kocevski/607376/ft2_4FGL_J2135.3-5006_daily_bin1214.fits outfile=/scratch/kocevski/607376/cmap_553996801_554256001_4FGL_J2135.3-5006_daily_bin1214.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607376/ft1_filtered_4FGL_J2135.3-5006_daily_bin1214.fits scfile=/scratch/kocevski/607376/ft2_4FGL_J2135.3-5006_daily_bin1214.fits outfile=/scratch/kocevski/607376/cmap_HighResolution_553996801_554256001_4FGL_J2135.3-5006_daily_bin1214.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607376/ft1_filtered_4FGL_J2135.3-5006_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/607376/ft2_4FGL_J2135.3-5006_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607376/Model_4FGL_J2135.3-5006_daily_bin1214.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/607376/ft1_filtered_4FGL_J2135.3-5006_daily_bin1214.fits...........................!
real 19.45
user 18.24
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.048       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13234E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.271       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    75.904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.353       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.322       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.234       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.463       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79314       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90354       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=   925.5393     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2746 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1183.8       -.13110E-02** at limit **
   2  Prefactor     .10000E-03    6.2744        .32923E-06** at limit **
   3  Prefactor     .10000E-03    89.493       -.78367E-04** at limit **
   4  norm          .10000E-03    12.372       -.85099E-06** at limit **
   5  Prefactor     62.698        333.71       -.43100E-03    .26910E-04
   6  Prefactor     .10000E-03    211.46        .80886E-04** at limit **
   7  Prefactor     .10000E-03    42.209       -.14770E-04** at limit **
   8  Prefactor     .10000E-03    325.21       -.24674E-03** at limit **
   9  Prefactor     95.137        137.85        .65145E-05    .46122E-04
  10  Prefactor     43.274        31.871        .11408E-04    .11197E-03
  11  norm          .10000E-03    12.648        .87889E-06** at limit **
  12  Prefactor     .10001E-03    137.71        .15869E-03** at limit **
  13  Prefactor     75.765        176.00       -.15015E-03    .17382E-04
  14  Prefactor     .10001E-03    30.617       -.17263E-05** at limit **
  15  Prefactor     20.349        16.457       -.16610E-05    .60862E-04
  16  Prefactor     .10000E-03    234.33        .19842E-04** at limit **
  17  norm          .10000E-03    11.228        .21902E-07** at limit **
  18  Prefactor     18.317        19.880       -.25741E-05    .31464E-04
  19  Prefactor     26.807        24.661       -.25821E-07   -.10512E-05
  20  Prefactor     .10000E-03    40.637        .23693E-04** at limit **
  21  Prefactor     57.222        43.364       -.48259E-05   -.16851E-04
  22  Prefactor     38.458        330.76       -.78490E-05   -.25475E-05
  23  Normalizat    .79405        .67882        .30046E-04    .66828E-04
  24  Prefactor     .90302        .41120        .26373E-04   -.14315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 62.6975
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 95.1372
  Prefactor  = 43.274
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 75.7646
  Prefactor  = 0.000100008
  Prefactor  = 20.3493
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 18.3172
  Prefactor  = 26.8075
  Prefactor  = 0.0001
  Prefactor  = 57.2224
  Prefactor  = 38.4575
  Normalizat = 0.794055
  Prefactor  = 0.903022
 **********
 **   18 **HESSE 
 **********

 FCN=   925.5393     FROM HESSE     STATUS=OK           385 CALLS     3131 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1185.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2762        .74444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    89.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.378        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.698        339.59        .25269E-03   -1.4123    
   6  Prefactor     .10000E-03    211.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    325.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     95.137        138.52        .41207E-04   -1.3754    
  10  Prefactor     43.274        31.863        .60944E-04   -1.4391    
  11  norm          .10000E-03    12.650        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    138.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     75.765        176.67        .23044E-03   -1.3965    
  14  Prefactor     .10001E-03    30.644        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.349        16.509        .88780E-04   -1.4805    
  16  Prefactor     .10000E-03    234.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.233        .99590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.317        19.950        .93570E-04   -1.4852    
  19  Prefactor     26.807        24.798        .77363E-04   -1.4672    
  20  Prefactor     .10000E-03    40.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.222        43.448        .53027E-04   -1.4194    
  22  Prefactor     38.458        331.06        .64627E-04   -1.4467    
  23  Normalizat    .79405        .77225        .38303E-03   -1.0029    
  24  Prefactor     .90302        .46982        .24346E-03   -.96036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16017e-09
Minuit parameter uncertainties:
  1  8.18854e-05
  2  6.97658e-05
  3  0.000722087
  4  2.86341e-05
  5  294.46
  6  0.000655695
  7  3.9531e-05
  8  0.00111115
  9  138.999
  10  31.8753
  11  2.43469e-05
  12  0.00225887
  13  177.915
  14  0.000965735
  15  16.5126
  16  0.000956271
  17  1.54593e-05
  18  19.9577
  19  24.8076
  20  2.19019e-05
  21  43.4716
  22  227.383
  23  0.783302
  24  0.471951
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.327e+01  3.188e+01  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.030e-01  4.720e-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.941e-01  7.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.02
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.78e-07 +/- 2.78e-07
Energy Flux (Fixed Index): 1.19e-04 +/- 8.77e-05

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) = 925.51001184
delta logL = 0.0292999468647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 925.507284118
delta logL = 0.0320276681301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.221       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6280       1.0000          .0000       10.000    
     3 'Normalizat'    .75325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92029       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=   925.5073     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.254        34.025        .32001E-03    .30153E-05
   2  Index         2.6288        .81680        .39543E-02    .84953E-05
   3  Normalizat    .75307        .67927        .39193E-03    .23709E-04
   4  Prefactor     .92016        .45310        .24127E-03   -.10625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.2539
  Index      = 2.62881
  Normalizat = 0.75307
  Prefactor  = 0.920156
 **********
 **   18 **HESSE 
 **********

 FCN=   925.5073     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.254        33.362        .12800E-04   -1.4454    
   2  Index         2.6288        .80018        .15817E-03   -.49410    
   3  Normalizat    .75307        .67898        .15677E-04   -1.0183    
   4  Prefactor     .92016        .45303        .96509E-05   -.95440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61078e-11
Minuit parameter uncertainties:
  1  33.378
  2  0.804658
  3  0.686814
  4  0.454911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607376': 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) = 925.507281493
delta logL = 0.032030293723

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  3.925e+01  3.338e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.629e+00  8.047e-01  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.202e-01  4.549e-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.531e-01  6.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.63 +/- 0.80
Photon Flux (Free Index): 4.46e-07 +/- 4.14e-07
Energy Flux (Free Index): 1.14e-04 +/- 8.00e-05

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/607376/cmap_HighResolution_553996801_554256001_4FGL_J2135.3-5006_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.78e-07', energy_flux2='1.14e-04', photon_flux_error='2.78e-07', dlogl='3.20e-02', energy_flux='1.19e-04', photon_flux2='4.46e-07', job_status='DONE', time_completed='2021-09-26 20:10:07.004120', photon_index_error2='0.80', photon_index2='2.63', ts='5.02', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='8.00e-05', EG='0.79', time_epoch_completed='1632712207.0', return_code='0', job_id='607376', GAL2='0.92', EG2='0.75', return_code2='0', energy_flux_error='8.77e-05', photon_flux_error2='4.14e-07', ts2='5.03', photon_index='2.43' WHERE bin_id='1214' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 607376: <4FGL_J2135.3-5006_daily_bin1214> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1214> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:27 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:00:49 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:49 2021
Terminated at Sun Sep 26 20:10:07 2021
Results reported at Sun Sep 26 20:10:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1214 323.836 -50.1015 553996801 554256001 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 :                                   362.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             229.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            580 sec.

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

