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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1032
RA = 323.836, Dec = -50.1015
tmin = 506822401, tmax = 507081601
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='605964', job_status='RUN', time_executed='2021-09-26 19:58:00.059795', time_epoch_executed='1632711480.06' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605964/ft1_4FGL_J2135.3-5006_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605964/ft2_4FGL_J2135.3-5006_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605964/ft1_4FGL_J2135.3-5006_daily_bin1032.fits outfile=/scratch/kocevski/605964/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1032.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=506822401.0 tmax=507081601.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605964/ft1_filtered_4FGL_J2135.3-5006_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/605964/ft2_4FGL_J2135.3-5006_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/605964/ltcube_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.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/605964/ft2_4FGL_J2135.3-5006_daily_bin1032.fits
.....................!
real 15.00
user 14.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605964/ft1_filtered_4FGL_J2135.3-5006_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/605964/ft2_4FGL_J2135.3-5006_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/605964/ltcube_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.fits outfile=/scratch/kocevski/605964/expmap_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.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/605964/ltcube_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.fits
.....................!
real 191.31
user 186.32
sys 4.36

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/605964/ft1_filtered_4FGL_J2135.3-5006_daily_bin1032.fits scfile=/scratch/kocevski/605964/ft2_4FGL_J2135.3-5006_daily_bin1032.fits outfile=/scratch/kocevski/605964/cmap_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605964/ft1_filtered_4FGL_J2135.3-5006_daily_bin1032.fits scfile=/scratch/kocevski/605964/ft2_4FGL_J2135.3-5006_daily_bin1032.fits outfile=/scratch/kocevski/605964/cmap_HighResolution_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.7591       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.048       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7324       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5690       1.0000         .10000E-03   10000.    
    11 'norm      '    12.602       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.430       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0205       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11738E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.828       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59341       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1504       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=   7962.799     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2689 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.915       -.45129E-05** at limit **
   2  Prefactor     4.7594        2.5936        .12407E-07    .60786E-06
   3  Prefactor     .10000E-03    11.160       -.25408E-07** at limit **
   4  norm          .10000E-03    .44252       -.67915E-08** at limit **
   5  Prefactor     27.587        27.817       -.17952E-05   -.40066E-06
   6  Prefactor     61.040        89.747       -.89042E-05   -.89677E-06
   7  Prefactor     2.7308        1.1430        .36148E-07   -.83082E-03
   8  Prefactor     .10000E-03    42.926       -.59473E-05** at limit **
   9  Prefactor     .10000E-03    4.9724        .79333E-08** at limit **
  10  Prefactor     4.5690        3.5680        .31470E-08   -.89698E-05
  11  norm          12.599        5.0651        .54338E-07    .16386E-03
  12  Prefactor     9.4126        7.1869       -.24808E-07   -.26766E-04
  13  Prefactor     .10000E-03    11.205        .30995E-08** at limit **
  14  Prefactor     26.429        10.056       -.90357E-07   -.32957E-04
  15  Prefactor     3.2534        2.9973       -.17163E-07   -.27257E-04
  16  Prefactor     .10000E-03    39.950        .57606E-05** at limit **
  17  norm          1.0270        4.7113       -.75845E-07   -.74696E-04
  18  Prefactor     .10000E-03    2.6452       -.21098E-07** at limit **
  19  Prefactor     12.830        6.3154        .26564E-06   -.21590E-04
  20  Prefactor     .10000E-03    19.527        .10489E-05** at limit **
  21  Prefactor     .10000E-03    5.1321       -.14637E-07** at limit **
  22  Prefactor     .10000E-03    28.463        .33531E-05** at limit **
  23  Normalizat    .59351        .17815        .37089E-06    .33645E-04
  24  Prefactor     1.1503        .11843        .12266E-06    .47918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.75941
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.5869
  Prefactor  = 61.0403
  Prefactor  = 2.73075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56898
  norm       = 12.5986
  Prefactor  = 9.41262
  Prefactor  = 0.0001
  Prefactor  = 26.4287
  Prefactor  = 3.25339
  Prefactor  = 0.0001
  norm       = 1.02699
  Prefactor  = 0.0001
  Prefactor  = 12.8302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.593505
  Prefactor  = 1.15035
 **********
 **   18 **HESSE 
 **********

 FCN=   7962.799     FROM HESSE     STATUS=OK           397 CALLS     3086 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7594        2.5937        .10149E-03   -1.5272    
   3  Prefactor     .10000E-03    11.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .45155        .57918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.587        27.823        .76272E-04   -1.4657    
   6  Prefactor     61.040        89.898        .51353E-04   -1.4144    
   7  Prefactor     2.7308        5.1470        .12317E-02   -1.5377    
   8  Prefactor     .10000E-03    43.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5690        3.5618        .14199E-03   -1.5280    
  11  norm          12.599        5.0660        .11284E-03   -1.4998    
  12  Prefactor     9.4126        7.1964        .65309E-03   -1.5094    
  13  Prefactor     .10000E-03    11.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.429        10.066        .77923E-04   -1.4679    
  15  Prefactor     3.2534        2.9887        .14186E-03   -1.5347    
  16  Prefactor     .10000E-03    39.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0270        4.6425        .37940E-03   -1.5505    
  18  Prefactor     .10000E-03    2.7629        .28316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.830        6.3361        .11184E-03   -1.4991    
  20  Prefactor     .10000E-03    19.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .59351        .19912        .34734E-03   -1.0826    
  24  Prefactor     1.1503        .13258        .17953E-03   -.87873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71585e-10
Minuit parameter uncertainties:
  1  5.96491e-06
  2  2.59372
  3  4.63567e-07
  4  3.77393e-07
  5  27.8361
  6  90.0988
  7  5.14784
  8  4.97336e-06
  9  1.41987e-06
  10  3.56192
  11  5.06621
  12  7.1971
  13  2.09068e-06
  14  10.067
  15  2.98888
  16  3.25218e-06
  17  4.36743
  18  4.89382e-06
  19  6.33639
  20  2.55577e-05
  21  4.54953e-06
  22  5.99584e-08
  23  0.199357
  24  0.132622
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.569e+00  3.562e+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:  1.150e+00  1.326e-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:  5.935e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 9.80e-06

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

Saving results to:
/scratch/kocevski/605964/likelihoodResults_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.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) = 7962.78609591
delta logL = 0.0133620046254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7962.78167205
delta logL = 0.017785868331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9282       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2876       1.0000          .0000       10.000    
     3 'Normalizat'    .59957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1475       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=   7962.782     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9289        93.022        .45294E-02    .27393E-03
   2  Index         2.2877        6.0892        .24361        .32595E-04
   3  Normalizat    .59964        .72219E-01    .78070E-01    .46071E-04
   4  Prefactor     1.1475        .40506E-01    .36008E-01   -.68167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92894
  Index      = 2.28768
  Normalizat = 0.599636
  Prefactor  = 1.1475
 **********
 **   18 **HESSE 
 **********

 FCN=   7962.782     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9289        4.2238        .14997E-03   -1.5264    
   2  Index         2.2877        .74072        .93321E-02   -.57337    
   3  Normalizat    .59964        .18859        .34568E-03   -1.0800    
   4  Prefactor     1.1475        .13149        .17972E-03   -.87963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03373e-12
Minuit parameter uncertainties:
  1  4.22401
  2  0.744611
  3  0.188789
  4  0.13153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605964': 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) = 7962.78167191
delta logL = 0.0177860091089

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.929e+00  4.224e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.288e+00  7.446e-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:  1.147e+00  1.315e-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:  5.996e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.29 +/- 0.74
Photon Flux (Free Index): 3.60e-08 +/- 3.48e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.40e-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/605964/cmap_HighResolution_506822401_507081601_4FGL_J2135.3-5006_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.39e-05', photon_flux_error='3.11e-08', dlogl='1.78e-02', energy_flux='1.26e-05', photon_flux2='3.60e-08', job_status='DONE', time_completed='2021-09-26 20:11:05.190073', photon_index_error2='0.74', photon_index2='2.29', ts='2.62', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.40e-05', EG='0.59', time_epoch_completed='1632712265.19', return_code='0', job_id='605964', GAL2='1.15', EG2='0.60', return_code2='0', energy_flux_error='9.80e-06', photon_flux_error2='3.48e-08', ts2='2.65', photon_index='2.43' WHERE bin_id='1032' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:11:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 605964: <4FGL_J2135.3-5006_daily_bin1032> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1032 323.836 -50.1015 506822401 507081601 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 :                                   777.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            942 sec.

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

